2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for crypto++ 5.2.
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.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
echo_test_string="`eval $cmd`" &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
422
PACKAGE_NAME='crypto++'
423
PACKAGE_TARNAME='crypto--'
424
PACKAGE_VERSION='5.2'
425
PACKAGE_STRING='crypto++ 5.2'
428
ac_unique_file="configure.in"
429
# Factoring default headers for most tests.
430
ac_includes_default="\
433
# include <sys/types.h>
436
# include <sys/stat.h>
447
# if !STDC_HEADERS && HAVE_MEMORY_H
453
# include <strings.h>
456
# include <inttypes.h>
466
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 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP EGREP LIBOBJS RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LTLIBOBJS'
469
# Initialize some variables set by options.
471
ac_init_version=false
472
# The variables have the same names as the options, with
473
# dashes changed to underlines.
481
program_transform_name=s,x,x,
489
# Installation directory options.
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
491
# and all the variables that are supposed to be based on exec_prefix
492
# by default will actually change.
493
# Use braces instead of parens because sh, perl, etc. also accept them.
494
bindir='${exec_prefix}/bin'
495
sbindir='${exec_prefix}/sbin'
496
libexecdir='${exec_prefix}/libexec'
497
datadir='${prefix}/share'
498
sysconfdir='${prefix}/etc'
499
sharedstatedir='${prefix}/com'
500
localstatedir='${prefix}/var'
501
libdir='${exec_prefix}/lib'
502
includedir='${prefix}/include'
503
oldincludedir='/usr/include'
504
infodir='${prefix}/info'
505
mandir='${prefix}/man'
510
# If the previous option needs an argument, assign it.
511
if test -n "$ac_prev"; then
512
eval "$ac_prev=\$ac_option"
517
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
# Accept the important Cygnus configure options, so we can diagnose typos.
523
-bindir | --bindir | --bindi | --bind | --bin | --bi)
525
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528
-build | --build | --buil | --bui | --bu)
529
ac_prev=build_alias ;;
530
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
531
build_alias=$ac_optarg ;;
533
-cache-file | --cache-file | --cache-fil | --cache-fi \
534
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535
ac_prev=cache_file ;;
536
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538
cache_file=$ac_optarg ;;
541
cache_file=config.cache ;;
543
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
datadir=$ac_optarg ;;
549
-disable-* | --disable-*)
550
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
# Reject names that are not valid shell variable names.
552
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
554
{ (exit 1); exit 1; }; }
555
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
eval "enable_$ac_feature=no" ;;
558
-enable-* | --enable-*)
559
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560
# Reject names that are not valid shell variable names.
561
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
563
{ (exit 1); exit 1; }; }
564
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569
eval "enable_$ac_feature='$ac_optarg'" ;;
571
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573
| --exec | --exe | --ex)
574
ac_prev=exec_prefix ;;
575
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577
| --exec=* | --exe=* | --ex=*)
578
exec_prefix=$ac_optarg ;;
580
-gas | --gas | --ga | --g)
581
# Obsolete; use --with-gas.
584
-help | --help | --hel | --he | -h)
586
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587
ac_init_help=recursive ;;
588
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589
ac_init_help=short ;;
591
-host | --host | --hos | --ho)
592
ac_prev=host_alias ;;
593
-host=* | --host=* | --hos=* | --ho=*)
594
host_alias=$ac_optarg ;;
596
-includedir | --includedir | --includedi | --included | --include \
597
| --includ | --inclu | --incl | --inc)
598
ac_prev=includedir ;;
599
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600
| --includ=* | --inclu=* | --incl=* | --inc=*)
601
includedir=$ac_optarg ;;
603
-infodir | --infodir | --infodi | --infod | --info | --inf)
605
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606
infodir=$ac_optarg ;;
608
-libdir | --libdir | --libdi | --libd)
610
-libdir=* | --libdir=* | --libdi=* | --libd=*)
613
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614
| --libexe | --libex | --libe)
615
ac_prev=libexecdir ;;
616
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617
| --libexe=* | --libex=* | --libe=*)
618
libexecdir=$ac_optarg ;;
620
-localstatedir | --localstatedir | --localstatedi | --localstated \
621
| --localstate | --localstat | --localsta | --localst \
622
| --locals | --local | --loca | --loc | --lo)
623
ac_prev=localstatedir ;;
624
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627
localstatedir=$ac_optarg ;;
629
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635
# Obsolete; use --without-fp.
638
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
639
| --no-cr | --no-c | -n)
642
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
643
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648
| --oldin | --oldi | --old | --ol | --o)
649
ac_prev=oldincludedir ;;
650
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653
oldincludedir=$ac_optarg ;;
655
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660
-program-prefix | --program-prefix | --program-prefi | --program-pref \
661
| --program-pre | --program-pr | --program-p)
662
ac_prev=program_prefix ;;
663
-program-prefix=* | --program-prefix=* | --program-prefi=* \
664
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665
program_prefix=$ac_optarg ;;
667
-program-suffix | --program-suffix | --program-suffi | --program-suff \
668
| --program-suf | --program-su | --program-s)
669
ac_prev=program_suffix ;;
670
-program-suffix=* | --program-suffix=* | --program-suffi=* \
671
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672
program_suffix=$ac_optarg ;;
674
-program-transform-name | --program-transform-name \
675
| --program-transform-nam | --program-transform-na \
676
| --program-transform-n | --program-transform- \
677
| --program-transform | --program-transfor \
678
| --program-transfo | --program-transf \
679
| --program-trans | --program-tran \
680
| --progr-tra | --program-tr | --program-t)
681
ac_prev=program_transform_name ;;
682
-program-transform-name=* | --program-transform-name=* \
683
| --program-transform-nam=* | --program-transform-na=* \
684
| --program-transform-n=* | --program-transform-=* \
685
| --program-transform=* | --program-transfor=* \
686
| --program-transfo=* | --program-transf=* \
687
| --program-trans=* | --program-tran=* \
688
| --progr-tra=* | --program-tr=* | --program-t=*)
689
program_transform_name=$ac_optarg ;;
691
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
| -silent | --silent | --silen | --sile | --sil)
695
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699
sbindir=$ac_optarg ;;
701
-sharedstatedir | --sharedstatedir | --sharedstatedi \
702
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703
| --sharedst | --shareds | --shared | --share | --shar \
705
ac_prev=sharedstatedir ;;
706
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710
sharedstatedir=$ac_optarg ;;
712
-site | --site | --sit)
714
-site=* | --site=* | --sit=*)
717
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723
| --syscon | --sysco | --sysc | --sys | --sy)
724
ac_prev=sysconfdir ;;
725
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727
sysconfdir=$ac_optarg ;;
729
-target | --target | --targe | --targ | --tar | --ta | --t)
730
ac_prev=target_alias ;;
731
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732
target_alias=$ac_optarg ;;
734
-v | -verbose | --verbose | --verbos | --verbo | --verb)
737
-version | --version | --versio | --versi | --vers | -V)
741
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742
# Reject names that are not valid shell variable names.
743
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744
{ echo "$as_me: error: invalid package name: $ac_package" >&2
745
{ (exit 1); exit 1; }; }
746
ac_package=`echo $ac_package| sed 's/-/_/g'`
748
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751
eval "with_$ac_package='$ac_optarg'" ;;
753
-without-* | --without-*)
754
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755
# Reject names that are not valid shell variable names.
756
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757
{ echo "$as_me: error: invalid package name: $ac_package" >&2
758
{ (exit 1); exit 1; }; }
759
ac_package=`echo $ac_package | sed 's/-/_/g'`
760
eval "with_$ac_package=no" ;;
763
# Obsolete; use --with-x.
766
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767
| --x-incl | --x-inc | --x-in | --x-i)
768
ac_prev=x_includes ;;
769
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771
x_includes=$ac_optarg ;;
773
-x-libraries | --x-libraries | --x-librarie | --x-librari \
774
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775
ac_prev=x_libraries ;;
776
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778
x_libraries=$ac_optarg ;;
780
-*) { echo "$as_me: error: unrecognized option: $ac_option
781
Try \`$0 --help' for more information." >&2
782
{ (exit 1); exit 1; }; }
786
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787
# Reject names that are not valid shell variable names.
788
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
{ (exit 1); exit 1; }; }
791
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
eval "$ac_envvar='$ac_optarg'"
796
# FIXME: should be removed in autoconf 3.0.
797
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806
if test -n "$ac_prev"; then
807
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808
{ echo "$as_me: error: missing argument to $ac_option" >&2
809
{ (exit 1); exit 1; }; }
812
# Be sure to have absolute paths.
813
for ac_var in exec_prefix prefix
815
eval ac_val=$`echo $ac_var`
817
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819
{ (exit 1); exit 1; }; };;
823
# Be sure to have absolute paths.
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825
localstatedir libdir includedir oldincludedir infodir mandir
827
eval ac_val=$`echo $ac_var`
829
[\\/$]* | ?:[\\/]* ) ;;
830
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831
{ (exit 1); exit 1; }; };;
835
# There might be people who depend on the old broken behavior: `$host'
836
# used to hold the argument of --host etc.
837
# FIXME: To remove some day.
842
# FIXME: To remove some day.
843
if test "x$host_alias" != x; then
844
if test "x$build_alias" = x; then
845
cross_compiling=maybe
846
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847
If a cross compiler is detected then cross compile mode will be used." >&2
848
elif test "x$build_alias" != "x$host_alias"; then
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
test "$silent" = yes && exec 6>/dev/null
859
# Find the source files, if location was not specified.
860
if test -z "$srcdir"; then
861
ac_srcdir_defaulted=yes
862
# Try the directory containing this script, then its parent.
863
ac_confdir=`(dirname "$0") 2>/dev/null ||
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
X"$0" : 'X\(//\)[^/]' \| \
866
X"$0" : 'X\(//\)$' \| \
867
X"$0" : 'X\(/\)' \| \
868
. : '\(.\)' 2>/dev/null ||
870
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
872
/^X\(\/\/\)$/{ s//\1/; q; }
873
/^X\(\/\).*/{ s//\1/; q; }
876
if test ! -r $srcdir/$ac_unique_file; then
880
ac_srcdir_defaulted=no
882
if test ! -r $srcdir/$ac_unique_file; then
883
if test "$ac_srcdir_defaulted" = yes; then
884
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885
{ (exit 1); exit 1; }; }
887
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888
{ (exit 1); exit 1; }; }
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893
{ (exit 1); exit 1; }; }
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895
ac_env_build_alias_set=${build_alias+set}
896
ac_env_build_alias_value=$build_alias
897
ac_cv_env_build_alias_set=${build_alias+set}
898
ac_cv_env_build_alias_value=$build_alias
899
ac_env_host_alias_set=${host_alias+set}
900
ac_env_host_alias_value=$host_alias
901
ac_cv_env_host_alias_set=${host_alias+set}
902
ac_cv_env_host_alias_value=$host_alias
903
ac_env_target_alias_set=${target_alias+set}
904
ac_env_target_alias_value=$target_alias
905
ac_cv_env_target_alias_set=${target_alias+set}
906
ac_cv_env_target_alias_value=$target_alias
907
ac_env_CC_set=${CC+set}
909
ac_cv_env_CC_set=${CC+set}
910
ac_cv_env_CC_value=$CC
911
ac_env_CFLAGS_set=${CFLAGS+set}
912
ac_env_CFLAGS_value=$CFLAGS
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
914
ac_cv_env_CFLAGS_value=$CFLAGS
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
916
ac_env_LDFLAGS_value=$LDFLAGS
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920
ac_env_CPPFLAGS_value=$CPPFLAGS
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923
ac_env_CPP_set=${CPP+set}
924
ac_env_CPP_value=$CPP
925
ac_cv_env_CPP_set=${CPP+set}
926
ac_cv_env_CPP_value=$CPP
927
ac_env_CXX_set=${CXX+set}
928
ac_env_CXX_value=$CXX
929
ac_cv_env_CXX_set=${CXX+set}
930
ac_cv_env_CXX_value=$CXX
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932
ac_env_CXXFLAGS_value=$CXXFLAGS
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935
ac_env_CXXCPP_set=${CXXCPP+set}
936
ac_env_CXXCPP_value=$CXXCPP
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
ac_cv_env_CXXCPP_value=$CXXCPP
939
ac_env_F77_set=${F77+set}
940
ac_env_F77_value=$F77
941
ac_cv_env_F77_set=${F77+set}
942
ac_cv_env_F77_value=$F77
943
ac_env_FFLAGS_set=${FFLAGS+set}
944
ac_env_FFLAGS_value=$FFLAGS
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
ac_cv_env_FFLAGS_value=$FFLAGS
949
# Report the --help message.
951
if test "$ac_init_help" = "long"; then
952
# Omit some internal or obsolete options to make the list less imposing.
953
# This message is too long to be a string in the A/UX 3.1 sh.
955
\`configure' configures crypto++ 5.2 to adapt to many kinds of systems.
957
Usage: $0 [OPTION]... [VAR=VALUE]...
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
960
VAR=VALUE. See below for descriptions of some of the useful variables.
962
Defaults for the options are specified in brackets.
965
-h, --help display this help and exit
966
--help=short display options specific to this package
967
--help=recursive display the short help of all the included packages
968
-V, --version display version information and exit
969
-q, --quiet, --silent do not print \`checking...' messages
970
--cache-file=FILE cache test results in FILE [disabled]
971
-C, --config-cache alias for \`--cache-file=config.cache'
972
-n, --no-create do not create output files
973
--srcdir=DIR find the sources in DIR [configure dir or \`..']
978
Installation directories:
979
--prefix=PREFIX install architecture-independent files in PREFIX
981
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984
By default, \`make install' will install all the files in
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987
for instance \`--prefix=\$HOME'.
989
For better control, use the options below.
991
Fine tuning of the installation directories:
992
--bindir=DIR user executables [EPREFIX/bin]
993
--sbindir=DIR system admin executables [EPREFIX/sbin]
994
--libexecdir=DIR program executables [EPREFIX/libexec]
995
--datadir=DIR read-only architecture-independent data [PREFIX/share]
996
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
999
--libdir=DIR object code libraries [EPREFIX/lib]
1000
--includedir=DIR C header files [PREFIX/include]
1001
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1002
--infodir=DIR info documentation [PREFIX/info]
1003
--mandir=DIR man documentation [PREFIX/man]
1009
--program-prefix=PREFIX prepend PREFIX to installed program names
1010
--program-suffix=SUFFIX append SUFFIX to installed program names
1011
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
--build=BUILD configure for building on BUILD [guessed]
1015
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1019
if test -n "$ac_init_help"; then
1020
case $ac_init_help in
1021
short | recursive ) echo "Configuration of crypto++ 5.2:";;
1026
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028
--enable-maintainer-mode enable make rules and dependencies not useful
1029
(and sometimes confusing) to the casual installer
1030
--disable-dependency-tracking Speeds up one-time builds
1031
--enable-dependency-tracking Do not reject slow dependency extractors
1032
--enable-shared[=PKGS]
1033
build shared libraries [default=yes]
1034
--enable-static[=PKGS]
1035
build static libraries [default=yes]
1036
--enable-fast-install[=PKGS]
1037
optimize for fast installation [default=yes]
1038
--disable-libtool-lock avoid locking (might break parallel builds)
1041
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044
--with-pic try to use only PIC/non-PIC objects [default=use
1047
include additional configurations [automatic]
1049
Some influential environment variables:
1050
CC C compiler command
1051
CFLAGS C compiler flags
1052
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1053
nonstandard directory <lib dir>
1054
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055
headers in a nonstandard directory <include dir>
1057
CXX C++ compiler command
1058
CXXFLAGS C++ compiler flags
1059
CXXCPP C++ preprocessor
1060
F77 Fortran 77 compiler command
1061
FFLAGS Fortran 77 compiler flags
1063
Use these variables to override the choices made by `configure' or to help
1064
it to find libraries and programs with nonstandard names/locations.
1069
if test "$ac_init_help" = "recursive"; then
1070
# If there are subdirs, report their specific --help.
1072
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1073
test -d $ac_dir || continue
1076
if test "$ac_dir" != .; then
1077
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1078
# A "../" for each directory in $ac_dir_suffix.
1079
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081
ac_dir_suffix= ac_top_builddir=
1085
.) # No --srcdir option. We are building in place.
1087
if test -z "$ac_top_builddir"; then
1090
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092
[\\/]* | ?:[\\/]* ) # Absolute path.
1093
ac_srcdir=$srcdir$ac_dir_suffix;
1094
ac_top_srcdir=$srcdir ;;
1096
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1097
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100
# Do not use `cd foo && pwd` to compute absolute paths, because
1101
# the directories may not exist.
1103
.) ac_abs_builddir="$ac_dir";;
1106
.) ac_abs_builddir=`pwd`;;
1107
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1108
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1111
case $ac_abs_builddir in
1112
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114
case ${ac_top_builddir}. in
1115
.) ac_abs_top_builddir=$ac_abs_builddir;;
1116
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1117
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120
case $ac_abs_builddir in
1121
.) ac_abs_srcdir=$ac_srcdir;;
1124
.) ac_abs_srcdir=$ac_abs_builddir;;
1125
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1126
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129
case $ac_abs_builddir in
1130
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132
case $ac_top_srcdir in
1133
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1134
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1135
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140
# Check for guested configure; otherwise get Cygnus style configure.
1141
if test -f $ac_srcdir/configure.gnu; then
1143
$SHELL $ac_srcdir/configure.gnu --help=recursive
1144
elif test -f $ac_srcdir/configure; then
1146
$SHELL $ac_srcdir/configure --help=recursive
1147
elif test -f $ac_srcdir/configure.ac ||
1148
test -f $ac_srcdir/configure.in; then
1150
$ac_configure --help
1152
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158
test -n "$ac_init_help" && exit 0
1159
if $ac_init_version; then
1161
crypto++ configure 5.2
1162
generated by GNU Autoconf 2.59
1164
Copyright (C) 2003 Free Software Foundation, Inc.
1165
This configure script is free software; the Free Software Foundation
1166
gives unlimited permission to copy, distribute and modify it.
1172
This file contains any messages produced by compilers while
1173
running configure, to aid debugging if configure makes a mistake.
1175
It was created by crypto++ $as_me 5.2, which was
1176
generated by GNU Autoconf 2.59. Invocation command line was
1187
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1196
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1197
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1198
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1200
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1201
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1202
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210
test -z "$as_dir" && as_dir=.
1211
echo "PATH: $as_dir"
1226
# Keep a trace of the command line.
1227
# Strip out --no-create and --no-recursion so they do not pile up.
1228
# Strip out --silent because we don't want to record it for future runs.
1229
# Also quote any args containing shell meta-characters.
1230
# Make two passes to allow for proper duplicate-argument suppression.
1235
ac_must_keep_next=false
1241
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243
| -silent | --silent | --silen | --sile | --sil)
1245
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252
if test $ac_must_keep_next = true; then
1253
ac_must_keep_next=false # Got value, back to normal.
1256
*=* | --config-cache | -C | -disable-* | --disable-* \
1257
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259
| -with-* | --with-* | -without-* | --without-* | --x)
1260
case "$ac_configure_args0 " in
1261
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264
-* ) ac_must_keep_next=true ;;
1267
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268
# Get rid of the leading space.
1274
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
# When interrupted or exit'd, cleanup temporary files, and complete
1278
# config.log. We remove comments because anyway the quotes in there
1279
# would cause problems or look ugly.
1280
# WARNING: Be sure not to use single quotes in there, as some shells,
1281
# such as our DU 5.0 friend, will then `close' the trap.
1282
trap 'exit_status=$?
1283
# Save into config.log some information that might help in debugging.
1288
## ---------------- ##
1289
## Cache variables. ##
1290
## ---------------- ##
1293
# The following way of writing the cache mishandles newlines in values,
1296
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311
## ----------------- ##
1312
## Output variables. ##
1313
## ----------------- ##
1316
for ac_var in $ac_subst_vars
1318
eval ac_val=$`echo $ac_var`
1319
echo "$ac_var='"'"'$ac_val'"'"'"
1323
if test -n "$ac_subst_files"; then
1330
for ac_var in $ac_subst_files
1332
eval ac_val=$`echo $ac_var`
1333
echo "$ac_var='"'"'$ac_val'"'"'"
1338
if test -s confdefs.h; then
1345
sed "/^$/d" confdefs.h | sort
1348
test "$ac_signal" != 0 &&
1349
echo "$as_me: caught signal $ac_signal"
1350
echo "$as_me: exit $exit_status"
1352
rm -f core *.core &&
1353
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356
for ac_signal in 1 2 13 15; do
1357
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1362
rm -rf conftest* confdefs.h
1363
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366
# Predefined preprocessor variables.
1368
cat >>confdefs.h <<_ACEOF
1369
#define PACKAGE_NAME "$PACKAGE_NAME"
1373
cat >>confdefs.h <<_ACEOF
1374
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378
cat >>confdefs.h <<_ACEOF
1379
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383
cat >>confdefs.h <<_ACEOF
1384
#define PACKAGE_STRING "$PACKAGE_STRING"
1388
cat >>confdefs.h <<_ACEOF
1389
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393
# Let the site file select an alternate cache file if it wants to.
1394
# Prefer explicitly selected file to automatically selected ones.
1395
if test -z "$CONFIG_SITE"; then
1396
if test "x$prefix" != xNONE; then
1397
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402
for ac_site_file in $CONFIG_SITE; do
1403
if test -r "$ac_site_file"; then
1404
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405
echo "$as_me: loading site script $ac_site_file" >&6;}
1406
sed 's/^/| /' "$ac_site_file" >&5
1411
if test -r "$cache_file"; then
1412
# Some versions of bash will fail to source /dev/null (special
1413
# files actually), so we avoid doing that.
1414
if test -f "$cache_file"; then
1415
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416
echo "$as_me: loading cache $cache_file" >&6;}
1418
[\\/]* | ?:[\\/]* ) . $cache_file;;
1419
*) . ./$cache_file;;
1423
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424
echo "$as_me: creating cache $cache_file" >&6;}
1428
# Check that the precious variables saved in the cache have kept the same
1430
ac_cache_corrupted=false
1431
for ac_var in `(set) 2>&1 |
1432
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434
eval ac_new_set=\$ac_env_${ac_var}_set
1435
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436
eval ac_new_val="\$ac_env_${ac_var}_value"
1437
case $ac_old_set,$ac_new_set in
1439
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441
ac_cache_corrupted=: ;;
1443
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445
ac_cache_corrupted=: ;;
1448
if test "x$ac_old_val" != "x$ac_new_val"; then
1449
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1452
echo "$as_me: former value: $ac_old_val" >&2;}
1453
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1454
echo "$as_me: current value: $ac_new_val" >&2;}
1455
ac_cache_corrupted=:
1458
# Pass precious variables to config.status.
1459
if test "$ac_new_set" = set; then
1461
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463
*) ac_arg=$ac_var=$ac_new_val ;;
1465
case " $ac_configure_args " in
1466
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1467
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471
if $ac_cache_corrupted; then
1472
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476
{ (exit 1); exit 1; }; }
1480
ac_cpp='$CPP $CPPFLAGS'
1481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512
am__api_version="1.7"
1514
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1515
if test -f $ac_dir/install-sh; then
1517
ac_install_sh="$ac_aux_dir/install-sh -c"
1519
elif test -f $ac_dir/install.sh; then
1521
ac_install_sh="$ac_aux_dir/install.sh -c"
1523
elif test -f $ac_dir/shtool; then
1525
ac_install_sh="$ac_aux_dir/shtool install -c"
1529
if test -z "$ac_aux_dir"; then
1530
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1531
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1532
{ (exit 1); exit 1; }; }
1534
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1535
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1536
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1538
# Find a good install program. We prefer a C program (faster),
1539
# so one script is as good as another. But avoid the broken or
1540
# incompatible versions:
1541
# SysV /etc/install, /usr/sbin/install
1542
# SunOS /usr/etc/install
1543
# IRIX /sbin/install
1545
# AmigaOS /C/install, which installs bootblocks on floppy discs
1546
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1547
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1548
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1549
# OS/2's system install, which has a completely different semantic
1550
# ./install, which can be erroneously created by make from ./install.sh.
1551
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1552
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1553
if test -z "$INSTALL"; then
1554
if test "${ac_cv_path_install+set}" = set; then
1555
echo $ECHO_N "(cached) $ECHO_C" >&6
1557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561
test -z "$as_dir" && as_dir=.
1562
# Account for people who put trailing slashes in PATH elements.
1564
./ | .// | /cC/* | \
1565
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1566
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1569
# OSF1 and SCO ODT 3.0 have their own names for install.
1570
# Don't use installbsd from OSF since it installs stuff as root
1572
for ac_prog in ginstall scoinst install; do
1573
for ac_exec_ext in '' $ac_executable_extensions; do
1574
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1575
if test $ac_prog = install &&
1576
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1577
# AIX install. It has an incompatible calling convention.
1579
elif test $ac_prog = install &&
1580
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1581
# program-specific install script used by HP pwplus--don't use.
1584
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1596
if test "${ac_cv_path_install+set}" = set; then
1597
INSTALL=$ac_cv_path_install
1599
# As a last resort, use the slow shell script. We don't cache a
1600
# path for INSTALL within a source directory, because that will
1601
# break other packages using the cache if that directory is
1602
# removed, or if the path is relative.
1603
INSTALL=$ac_install_sh
1606
echo "$as_me:$LINENO: result: $INSTALL" >&5
1607
echo "${ECHO_T}$INSTALL" >&6
1609
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1610
# It thinks the first close brace ends the variable substitution.
1611
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1613
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1615
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1617
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1618
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1621
echo timestamp > conftest.file
1622
# Do `set' in a subshell so we don't clobber the current shell's
1623
# arguments. Must try -L first in case configure is actually a
1624
# symlink; some systems play weird games with the mod time of symlinks
1625
# (eg FreeBSD returns the mod time of the symlink's containing
1628
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1629
if test "$*" = "X"; then
1631
set X `ls -t $srcdir/configure conftest.file`
1634
if test "$*" != "X $srcdir/configure conftest.file" \
1635
&& test "$*" != "X conftest.file $srcdir/configure"; then
1637
# If neither matched, then we have a broken ls. This can happen
1638
# if, for instance, CONFIG_SHELL is bash and it inherits a
1639
# broken ls alias from the environment. This has actually
1640
# happened. Such a system could not be considered "sane".
1641
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1642
alias in your environment" >&5
1643
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1644
alias in your environment" >&2;}
1645
{ (exit 1); exit 1; }; }
1648
test "$2" = conftest.file
1654
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1655
Check your system clock" >&5
1656
echo "$as_me: error: newly created file is older than distributed files!
1657
Check your system clock" >&2;}
1658
{ (exit 1); exit 1; }; }
1660
echo "$as_me:$LINENO: result: yes" >&5
1661
echo "${ECHO_T}yes" >&6
1662
test "$program_prefix" != NONE &&
1663
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1664
# Use a double $ so make ignores it.
1665
test "$program_suffix" != NONE &&
1666
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1667
# Double any \ or $. echo might interpret backslashes.
1668
# By default was `s,x,x', remove it if useless.
1669
cat <<\_ACEOF >conftest.sed
1670
s/[\\$]/&&/g;s/;s,x,x,$//
1672
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1676
# expand $ac_aux_dir to an absolute path
1677
am_aux_dir=`cd $ac_aux_dir && pwd`
1679
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1680
# Use eval to expand $SHELL
1681
if eval "$MISSING --run true"; then
1682
am_missing_run="$MISSING --run "
1685
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1686
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1689
for ac_prog in gawk mawk nawk awk
1691
# Extract the first word of "$ac_prog", so it can be a program name with args.
1692
set dummy $ac_prog; ac_word=$2
1693
echo "$as_me:$LINENO: checking for $ac_word" >&5
1694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695
if test "${ac_cv_prog_AWK+set}" = set; then
1696
echo $ECHO_N "(cached) $ECHO_C" >&6
1698
if test -n "$AWK"; then
1699
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705
test -z "$as_dir" && as_dir=.
1706
for ac_exec_ext in '' $ac_executable_extensions; do
1707
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708
ac_cv_prog_AWK="$ac_prog"
1709
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718
if test -n "$AWK"; then
1719
echo "$as_me:$LINENO: result: $AWK" >&5
1720
echo "${ECHO_T}$AWK" >&6
1722
echo "$as_me:$LINENO: result: no" >&5
1723
echo "${ECHO_T}no" >&6
1726
test -n "$AWK" && break
1729
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1730
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1731
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1732
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1733
echo $ECHO_N "(cached) $ECHO_C" >&6
1735
cat >conftest.make <<\_ACEOF
1737
@echo 'ac_maketemp="$(MAKE)"'
1739
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1740
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1741
if test -n "$ac_maketemp"; then
1742
eval ac_cv_prog_make_${ac_make}_set=yes
1744
eval ac_cv_prog_make_${ac_make}_set=no
1748
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1749
echo "$as_me:$LINENO: result: yes" >&5
1750
echo "${ECHO_T}yes" >&6
1753
echo "$as_me:$LINENO: result: no" >&5
1754
echo "${ECHO_T}no" >&6
1755
SET_MAKE="MAKE=${MAKE-make}"
1758
rm -rf .tst 2>/dev/null
1759
mkdir .tst 2>/dev/null
1760
if test -d .tst; then
1765
rmdir .tst 2>/dev/null
1767
# test to see if srcdir already configured
1768
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1769
test -f $srcdir/config.status; then
1770
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1771
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1772
{ (exit 1); exit 1; }; }
1775
# test whether we have cygpath
1776
if test -z "$CYGPATH_W"; then
1777
if (cygpath --version) >/dev/null 2>/dev/null; then
1778
CYGPATH_W='cygpath -w'
1785
# Define the identity of the package.
1790
# Some tools Automake needs.
1792
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1795
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1798
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1801
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1804
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1807
AMTAR=${AMTAR-"${am_missing_run}tar"}
1809
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1811
# Installed binaries are usually stripped using `strip' when the user
1812
# run `make install-strip'. However `strip' might not be the right
1813
# tool to use in cross-compilation environments, therefore Automake
1814
# will honor the `STRIP' environment variable to overrule this program.
1815
if test "$cross_compiling" != no; then
1816
if test -n "$ac_tool_prefix"; then
1817
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1818
set dummy ${ac_tool_prefix}strip; ac_word=$2
1819
echo "$as_me:$LINENO: checking for $ac_word" >&5
1820
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821
if test "${ac_cv_prog_STRIP+set}" = set; then
1822
echo $ECHO_N "(cached) $ECHO_C" >&6
1824
if test -n "$STRIP"; then
1825
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831
test -z "$as_dir" && as_dir=.
1832
for ac_exec_ext in '' $ac_executable_extensions; do
1833
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1835
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843
STRIP=$ac_cv_prog_STRIP
1844
if test -n "$STRIP"; then
1845
echo "$as_me:$LINENO: result: $STRIP" >&5
1846
echo "${ECHO_T}$STRIP" >&6
1848
echo "$as_me:$LINENO: result: no" >&5
1849
echo "${ECHO_T}no" >&6
1853
if test -z "$ac_cv_prog_STRIP"; then
1855
# Extract the first word of "strip", so it can be a program name with args.
1856
set dummy strip; ac_word=$2
1857
echo "$as_me:$LINENO: checking for $ac_word" >&5
1858
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1860
echo $ECHO_N "(cached) $ECHO_C" >&6
1862
if test -n "$ac_ct_STRIP"; then
1863
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869
test -z "$as_dir" && as_dir=.
1870
for ac_exec_ext in '' $ac_executable_extensions; do
1871
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872
ac_cv_prog_ac_ct_STRIP="strip"
1873
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1882
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1883
if test -n "$ac_ct_STRIP"; then
1884
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1885
echo "${ECHO_T}$ac_ct_STRIP" >&6
1887
echo "$as_me:$LINENO: result: no" >&5
1888
echo "${ECHO_T}no" >&6
1893
STRIP="$ac_cv_prog_STRIP"
1897
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1899
# We need awk for the "check" target. The system "awk" is bad on
1904
ac_config_headers="$ac_config_headers cryptopp_config.h"
1906
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1907
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1908
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1909
if test "${enable_maintainer_mode+set}" = set; then
1910
enableval="$enable_maintainer_mode"
1911
USE_MAINTAINER_MODE=$enableval
1913
USE_MAINTAINER_MODE=no
1915
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1916
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1919
if test $USE_MAINTAINER_MODE = yes; then
1920
MAINTAINER_MODE_TRUE=
1921
MAINTAINER_MODE_FALSE='#'
1923
MAINTAINER_MODE_TRUE='#'
1924
MAINTAINER_MODE_FALSE=
1927
MAINT=$MAINTAINER_MODE_TRUE
1932
DEPDIR="${am__leading_dot}deps"
1934
ac_config_commands="$ac_config_commands depfiles"
1937
am_make=${MAKE-make}
1938
cat > confinc << 'END'
1943
# If we don't find an include directive, just comment out the code.
1944
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1945
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1949
# First try GNU make style include.
1950
echo "include confinc" > confmf
1951
# We grep out `Entering directory' and `Leaving directory'
1952
# messages which can occur if `w' ends up in MAKEFLAGS.
1953
# In particular we don't look at `^make:' because GNU make might
1954
# be invoked under some other name (usually "gmake"), in which
1955
# case it prints its new name instead of `make'.
1956
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1961
# Now try BSD make style include.
1962
if test "$am__include" = "#"; then
1963
echo '.include "confinc"' > confmf
1964
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1965
am__include=.include
1972
echo "$as_me:$LINENO: result: $_am_result" >&5
1973
echo "${ECHO_T}$_am_result" >&6
1974
rm -f confinc confmf
1976
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1977
if test "${enable_dependency_tracking+set}" = set; then
1978
enableval="$enable_dependency_tracking"
1981
if test "x$enable_dependency_tracking" != xno; then
1982
am_depcomp="$ac_aux_dir/depcomp"
1987
if test "x$enable_dependency_tracking" != xno; then
1998
ac_cpp='$CPP $CPPFLAGS'
1999
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002
if test -n "$ac_tool_prefix"; then
2003
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2004
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2005
echo "$as_me:$LINENO: checking for $ac_word" >&5
2006
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007
if test "${ac_cv_prog_CC+set}" = set; then
2008
echo $ECHO_N "(cached) $ECHO_C" >&6
2010
if test -n "$CC"; then
2011
ac_cv_prog_CC="$CC" # Let the user override the test.
2013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017
test -z "$as_dir" && as_dir=.
2018
for ac_exec_ext in '' $ac_executable_extensions; do
2019
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2021
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030
if test -n "$CC"; then
2031
echo "$as_me:$LINENO: result: $CC" >&5
2032
echo "${ECHO_T}$CC" >&6
2034
echo "$as_me:$LINENO: result: no" >&5
2035
echo "${ECHO_T}no" >&6
2039
if test -z "$ac_cv_prog_CC"; then
2041
# Extract the first word of "gcc", so it can be a program name with args.
2042
set dummy gcc; ac_word=$2
2043
echo "$as_me:$LINENO: checking for $ac_word" >&5
2044
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046
echo $ECHO_N "(cached) $ECHO_C" >&6
2048
if test -n "$ac_ct_CC"; then
2049
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055
test -z "$as_dir" && as_dir=.
2056
for ac_exec_ext in '' $ac_executable_extensions; do
2057
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058
ac_cv_prog_ac_ct_CC="gcc"
2059
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068
if test -n "$ac_ct_CC"; then
2069
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070
echo "${ECHO_T}$ac_ct_CC" >&6
2072
echo "$as_me:$LINENO: result: no" >&5
2073
echo "${ECHO_T}no" >&6
2081
if test -z "$CC"; then
2082
if test -n "$ac_tool_prefix"; then
2083
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2084
set dummy ${ac_tool_prefix}cc; ac_word=$2
2085
echo "$as_me:$LINENO: checking for $ac_word" >&5
2086
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087
if test "${ac_cv_prog_CC+set}" = set; then
2088
echo $ECHO_N "(cached) $ECHO_C" >&6
2090
if test -n "$CC"; then
2091
ac_cv_prog_CC="$CC" # Let the user override the test.
2093
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097
test -z "$as_dir" && as_dir=.
2098
for ac_exec_ext in '' $ac_executable_extensions; do
2099
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100
ac_cv_prog_CC="${ac_tool_prefix}cc"
2101
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110
if test -n "$CC"; then
2111
echo "$as_me:$LINENO: result: $CC" >&5
2112
echo "${ECHO_T}$CC" >&6
2114
echo "$as_me:$LINENO: result: no" >&5
2115
echo "${ECHO_T}no" >&6
2119
if test -z "$ac_cv_prog_CC"; then
2121
# Extract the first word of "cc", so it can be a program name with args.
2122
set dummy cc; ac_word=$2
2123
echo "$as_me:$LINENO: checking for $ac_word" >&5
2124
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126
echo $ECHO_N "(cached) $ECHO_C" >&6
2128
if test -n "$ac_ct_CC"; then
2129
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135
test -z "$as_dir" && as_dir=.
2136
for ac_exec_ext in '' $ac_executable_extensions; do
2137
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138
ac_cv_prog_ac_ct_CC="cc"
2139
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148
if test -n "$ac_ct_CC"; then
2149
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150
echo "${ECHO_T}$ac_ct_CC" >&6
2152
echo "$as_me:$LINENO: result: no" >&5
2153
echo "${ECHO_T}no" >&6
2162
if test -z "$CC"; then
2163
# Extract the first word of "cc", so it can be a program name with args.
2164
set dummy cc; ac_word=$2
2165
echo "$as_me:$LINENO: checking for $ac_word" >&5
2166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167
if test "${ac_cv_prog_CC+set}" = set; then
2168
echo $ECHO_N "(cached) $ECHO_C" >&6
2170
if test -n "$CC"; then
2171
ac_cv_prog_CC="$CC" # Let the user override the test.
2174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178
test -z "$as_dir" && as_dir=.
2179
for ac_exec_ext in '' $ac_executable_extensions; do
2180
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2182
ac_prog_rejected=yes
2186
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192
if test $ac_prog_rejected = yes; then
2193
# We found a bogon in the path, so make sure we never use it.
2194
set dummy $ac_cv_prog_CC
2196
if test $# != 0; then
2197
# We chose a different compiler from the bogus one.
2198
# However, it has the same basename, so the bogon will be chosen
2199
# first if we set CC to just the basename; use the full file name.
2201
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2207
if test -n "$CC"; then
2208
echo "$as_me:$LINENO: result: $CC" >&5
2209
echo "${ECHO_T}$CC" >&6
2211
echo "$as_me:$LINENO: result: no" >&5
2212
echo "${ECHO_T}no" >&6
2216
if test -z "$CC"; then
2217
if test -n "$ac_tool_prefix"; then
2220
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2221
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2222
echo "$as_me:$LINENO: checking for $ac_word" >&5
2223
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224
if test "${ac_cv_prog_CC+set}" = set; then
2225
echo $ECHO_N "(cached) $ECHO_C" >&6
2227
if test -n "$CC"; then
2228
ac_cv_prog_CC="$CC" # Let the user override the test.
2230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234
test -z "$as_dir" && as_dir=.
2235
for ac_exec_ext in '' $ac_executable_extensions; do
2236
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2238
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247
if test -n "$CC"; then
2248
echo "$as_me:$LINENO: result: $CC" >&5
2249
echo "${ECHO_T}$CC" >&6
2251
echo "$as_me:$LINENO: result: no" >&5
2252
echo "${ECHO_T}no" >&6
2255
test -n "$CC" && break
2258
if test -z "$CC"; then
2262
# Extract the first word of "$ac_prog", so it can be a program name with args.
2263
set dummy $ac_prog; ac_word=$2
2264
echo "$as_me:$LINENO: checking for $ac_word" >&5
2265
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2267
echo $ECHO_N "(cached) $ECHO_C" >&6
2269
if test -n "$ac_ct_CC"; then
2270
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276
test -z "$as_dir" && as_dir=.
2277
for ac_exec_ext in '' $ac_executable_extensions; do
2278
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279
ac_cv_prog_ac_ct_CC="$ac_prog"
2280
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289
if test -n "$ac_ct_CC"; then
2290
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291
echo "${ECHO_T}$ac_ct_CC" >&6
2293
echo "$as_me:$LINENO: result: no" >&5
2294
echo "${ECHO_T}no" >&6
2297
test -n "$ac_ct_CC" && break
2306
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307
See \`config.log' for more details." >&5
2308
echo "$as_me: error: no acceptable C compiler found in \$PATH
2309
See \`config.log' for more details." >&2;}
2310
{ (exit 1); exit 1; }; }
2312
# Provide some information about the compiler.
2313
echo "$as_me:$LINENO:" \
2314
"checking for C compiler version" >&5
2315
ac_compiler=`set X $ac_compile; echo $2`
2316
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2317
(eval $ac_compiler --version </dev/null >&5) 2>&5
2319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320
(exit $ac_status); }
2321
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2322
(eval $ac_compiler -v </dev/null >&5) 2>&5
2324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325
(exit $ac_status); }
2326
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2327
(eval $ac_compiler -V </dev/null >&5) 2>&5
2329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330
(exit $ac_status); }
2332
cat >conftest.$ac_ext <<_ACEOF
2335
cat confdefs.h >>conftest.$ac_ext
2336
cat >>conftest.$ac_ext <<_ACEOF
2337
/* end confdefs.h. */
2347
ac_clean_files_save=$ac_clean_files
2348
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2349
# Try to create an executable without -o first, disregard a.out.
2350
# It will help us diagnose broken compilers, and finding out an intuition
2352
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2353
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2354
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2355
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2356
(eval $ac_link_default) 2>&5
2358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359
(exit $ac_status); }; then
2360
# Find the output, starting from the most likely. This scheme is
2361
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2364
# Be careful to initialize this variable, since it used to be cached.
2365
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2367
# b.out is created by i960 compilers.
2368
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2370
test -f "$ac_file" || continue
2372
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2375
# This is the source file.
2378
# We found the default executable, but exeext='' is most
2382
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383
# FIXME: I believe we export ac_cv_exeext for Libtool,
2384
# but it would be cool to find out if it's true. Does anybody
2385
# maintain Libtool? --akim.
2393
echo "$as_me: failed program was:" >&5
2394
sed 's/^/| /' conftest.$ac_ext >&5
2396
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2397
See \`config.log' for more details." >&5
2398
echo "$as_me: error: C compiler cannot create executables
2399
See \`config.log' for more details." >&2;}
2400
{ (exit 77); exit 77; }; }
2403
ac_exeext=$ac_cv_exeext
2404
echo "$as_me:$LINENO: result: $ac_file" >&5
2405
echo "${ECHO_T}$ac_file" >&6
2407
# Check the compiler produces executables we can run. If not, either
2408
# the compiler is broken, or we cross compile.
2409
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2410
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2411
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2412
# If not cross compiling, check that we can run a simple program.
2413
if test "$cross_compiling" != yes; then
2414
if { ac_try='./$ac_file'
2415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419
(exit $ac_status); }; }; then
2422
if test "$cross_compiling" = maybe; then
2425
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2426
If you meant to cross compile, use \`--host'.
2427
See \`config.log' for more details." >&5
2428
echo "$as_me: error: cannot run C compiled programs.
2429
If you meant to cross compile, use \`--host'.
2430
See \`config.log' for more details." >&2;}
2431
{ (exit 1); exit 1; }; }
2435
echo "$as_me:$LINENO: result: yes" >&5
2436
echo "${ECHO_T}yes" >&6
2438
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2439
ac_clean_files=$ac_clean_files_save
2440
# Check the compiler produces executables we can run. If not, either
2441
# the compiler is broken, or we cross compile.
2442
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2443
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2444
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2445
echo "${ECHO_T}$cross_compiling" >&6
2447
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2448
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2449
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450
(eval $ac_link) 2>&5
2452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453
(exit $ac_status); }; then
2454
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2455
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2456
# work properly (i.e., refer to `conftest.exe'), while it won't with
2458
for ac_file in conftest.exe conftest conftest.*; do
2459
test -f "$ac_file" || continue
2461
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2462
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470
See \`config.log' for more details." >&5
2471
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472
See \`config.log' for more details." >&2;}
2473
{ (exit 1); exit 1; }; }
2476
rm -f conftest$ac_cv_exeext
2477
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478
echo "${ECHO_T}$ac_cv_exeext" >&6
2480
rm -f conftest.$ac_ext
2481
EXEEXT=$ac_cv_exeext
2483
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2485
if test "${ac_cv_objext+set}" = set; then
2486
echo $ECHO_N "(cached) $ECHO_C" >&6
2488
cat >conftest.$ac_ext <<_ACEOF
2491
cat confdefs.h >>conftest.$ac_ext
2492
cat >>conftest.$ac_ext <<_ACEOF
2493
/* end confdefs.h. */
2503
rm -f conftest.o conftest.obj
2504
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505
(eval $ac_compile) 2>&5
2507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508
(exit $ac_status); }; then
2509
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2511
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2512
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2517
echo "$as_me: failed program was:" >&5
2518
sed 's/^/| /' conftest.$ac_ext >&5
2520
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521
See \`config.log' for more details." >&5
2522
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523
See \`config.log' for more details." >&2;}
2524
{ (exit 1); exit 1; }; }
2527
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2529
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530
echo "${ECHO_T}$ac_cv_objext" >&6
2531
OBJEXT=$ac_cv_objext
2533
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2535
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536
echo $ECHO_N "(cached) $ECHO_C" >&6
2538
cat >conftest.$ac_ext <<_ACEOF
2541
cat confdefs.h >>conftest.$ac_ext
2542
cat >>conftest.$ac_ext <<_ACEOF
2543
/* end confdefs.h. */
2556
rm -f conftest.$ac_objext
2557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558
(eval $ac_compile) 2>conftest.er1
2560
grep -v '^ *+' conftest.er1 >conftest.err
2562
cat conftest.err >&5
2563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564
(exit $ac_status); } &&
2565
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
(exit $ac_status); }; } &&
2571
{ ac_try='test -s conftest.$ac_objext'
2572
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576
(exit $ac_status); }; }; then
2579
echo "$as_me: failed program was:" >&5
2580
sed 's/^/| /' conftest.$ac_ext >&5
2584
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2588
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2589
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2590
GCC=`test $ac_compiler_gnu = yes && echo yes`
2591
ac_test_CFLAGS=${CFLAGS+set}
2592
ac_save_CFLAGS=$CFLAGS
2594
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2595
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2596
if test "${ac_cv_prog_cc_g+set}" = set; then
2597
echo $ECHO_N "(cached) $ECHO_C" >&6
2599
cat >conftest.$ac_ext <<_ACEOF
2602
cat confdefs.h >>conftest.$ac_ext
2603
cat >>conftest.$ac_ext <<_ACEOF
2604
/* end confdefs.h. */
2614
rm -f conftest.$ac_objext
2615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616
(eval $ac_compile) 2>conftest.er1
2618
grep -v '^ *+' conftest.er1 >conftest.err
2620
cat conftest.err >&5
2621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622
(exit $ac_status); } &&
2623
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628
(exit $ac_status); }; } &&
2629
{ ac_try='test -s conftest.$ac_objext'
2630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634
(exit $ac_status); }; }; then
2637
echo "$as_me: failed program was:" >&5
2638
sed 's/^/| /' conftest.$ac_ext >&5
2642
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2646
if test "$ac_test_CFLAGS" = set; then
2647
CFLAGS=$ac_save_CFLAGS
2648
elif test $ac_cv_prog_cc_g = yes; then
2649
if test "$GCC" = yes; then
2655
if test "$GCC" = yes; then
2661
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2662
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2663
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2664
echo $ECHO_N "(cached) $ECHO_C" >&6
2666
ac_cv_prog_cc_stdc=no
2668
cat >conftest.$ac_ext <<_ACEOF
2671
cat confdefs.h >>conftest.$ac_ext
2672
cat >>conftest.$ac_ext <<_ACEOF
2673
/* end confdefs.h. */
2676
#include <sys/types.h>
2677
#include <sys/stat.h>
2678
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679
struct buf { int x; };
2680
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681
static char *e (p, i)
2687
static char *f (char * (*g) (char **, int), char **p, ...)
2692
s = g (p, va_arg (v,int));
2697
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2698
function prototypes and stuff, but not '\xHH' hex character constants.
2699
These don't provoke an error unfortunately, instead are silently treated
2700
as 'x'. The following induces an error, until -std1 is added to get
2701
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2702
array size at least. It's necessary to write '\x00'==0 to get something
2703
that's true only with -std1. */
2704
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2706
int test (int i, double x);
2707
struct s1 {int (*f) (int a);};
2708
struct s2 {int (*f) (double a);};
2709
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2715
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2720
# Don't try gcc -ansi; that turns off useful extensions and
2721
# breaks some systems' header files.
2722
# AIX -qlanglvl=ansi
2723
# Ultrix and OSF/1 -std1
2724
# HP-UX 10.20 and later -Ae
2725
# HP-UX older versions -Aa -D_HPUX_SOURCE
2726
# SVR4 -Xc -D__EXTENSIONS__
2727
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729
CC="$ac_save_CC $ac_arg"
2730
rm -f conftest.$ac_objext
2731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732
(eval $ac_compile) 2>conftest.er1
2734
grep -v '^ *+' conftest.er1 >conftest.err
2736
cat conftest.err >&5
2737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738
(exit $ac_status); } &&
2739
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
(exit $ac_status); }; } &&
2745
{ ac_try='test -s conftest.$ac_objext'
2746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
(exit $ac_status); }; }; then
2751
ac_cv_prog_cc_stdc=$ac_arg
2754
echo "$as_me: failed program was:" >&5
2755
sed 's/^/| /' conftest.$ac_ext >&5
2758
rm -f conftest.err conftest.$ac_objext
2760
rm -f conftest.$ac_ext conftest.$ac_objext
2765
case "x$ac_cv_prog_cc_stdc" in
2767
echo "$as_me:$LINENO: result: none needed" >&5
2768
echo "${ECHO_T}none needed" >&6 ;;
2770
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2771
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2772
CC="$CC $ac_cv_prog_cc_stdc" ;;
2775
# Some people use a C++ compiler to compile C. Since we use `exit',
2776
# in C++ we need to declare it. In case someone uses the same compiler
2777
# for both compiling C and C++ we need to have the C++ compiler decide
2778
# the declaration of exit, since it's the most demanding environment.
2779
cat >conftest.$ac_ext <<_ACEOF
2784
rm -f conftest.$ac_objext
2785
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2786
(eval $ac_compile) 2>conftest.er1
2788
grep -v '^ *+' conftest.er1 >conftest.err
2790
cat conftest.err >&5
2791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792
(exit $ac_status); } &&
2793
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798
(exit $ac_status); }; } &&
2799
{ ac_try='test -s conftest.$ac_objext'
2800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804
(exit $ac_status); }; }; then
2805
for ac_declaration in \
2807
'extern "C" void std::exit (int) throw (); using std::exit;' \
2808
'extern "C" void std::exit (int); using std::exit;' \
2809
'extern "C" void exit (int) throw ();' \
2810
'extern "C" void exit (int);' \
2813
cat >conftest.$ac_ext <<_ACEOF
2816
cat confdefs.h >>conftest.$ac_ext
2817
cat >>conftest.$ac_ext <<_ACEOF
2818
/* end confdefs.h. */
2829
rm -f conftest.$ac_objext
2830
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831
(eval $ac_compile) 2>conftest.er1
2833
grep -v '^ *+' conftest.er1 >conftest.err
2835
cat conftest.err >&5
2836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837
(exit $ac_status); } &&
2838
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843
(exit $ac_status); }; } &&
2844
{ ac_try='test -s conftest.$ac_objext'
2845
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849
(exit $ac_status); }; }; then
2852
echo "$as_me: failed program was:" >&5
2853
sed 's/^/| /' conftest.$ac_ext >&5
2857
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858
cat >conftest.$ac_ext <<_ACEOF
2861
cat confdefs.h >>conftest.$ac_ext
2862
cat >>conftest.$ac_ext <<_ACEOF
2863
/* end confdefs.h. */
2873
rm -f conftest.$ac_objext
2874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875
(eval $ac_compile) 2>conftest.er1
2877
grep -v '^ *+' conftest.er1 >conftest.err
2879
cat conftest.err >&5
2880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881
(exit $ac_status); } &&
2882
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887
(exit $ac_status); }; } &&
2888
{ ac_try='test -s conftest.$ac_objext'
2889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893
(exit $ac_status); }; }; then
2896
echo "$as_me: failed program was:" >&5
2897
sed 's/^/| /' conftest.$ac_ext >&5
2900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903
if test -n "$ac_declaration"; then
2904
echo '#ifdef __cplusplus' >>confdefs.h
2905
echo $ac_declaration >>confdefs.h
2906
echo '#endif' >>confdefs.h
2910
echo "$as_me: failed program was:" >&5
2911
sed 's/^/| /' conftest.$ac_ext >&5
2914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916
ac_cpp='$CPP $CPPFLAGS'
2917
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921
depcc="$CC" am_compiler_list=
2923
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2924
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2925
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2926
echo $ECHO_N "(cached) $ECHO_C" >&6
2928
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2929
# We make a subdir and do the tests there. Otherwise we can end up
2930
# making bogus files that we don't know about and never remove. For
2931
# instance it was reported that on HP-UX the gcc test will end up
2932
# making a dummy file named `D' -- because `-MD' means `put the output
2935
# Copy depcomp to subdir because otherwise we won't find it if we're
2936
# using a relative directory.
2937
cp "$am_depcomp" conftest.dir
2939
# We will build objects and dependencies in a subdirectory because
2940
# it helps to detect inapplicable dependency modes. For instance
2941
# both Tru64's cc and ICC support -MD to output dependencies as a
2942
# side effect of compilation, but ICC will put the dependencies in
2943
# the current directory while Tru64 will put them in the object
2947
am_cv_CC_dependencies_compiler_type=none
2948
if test "$am_compiler_list" = ""; then
2949
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2951
for depmode in $am_compiler_list; do
2952
# Setup a source with many dependencies, because some compilers
2953
# like to wrap large dependency lists on column 80 (with \), and
2954
# we should not choose a depcomp mode which is confused by this.
2956
# We need to recreate these files for each test, as the compiler may
2957
# overwrite some of them when testing with obscure command lines.
2958
# This happens at least with the AIX C compiler.
2960
for i in 1 2 3 4 5 6; do
2961
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2964
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2968
# after this tag, mechanisms are not by side-effect, so they'll
2969
# only be used when explicitly requested
2970
if test "x$enable_dependency_tracking" = xyes; then
2978
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2979
# mode. It turns out that the SunPro C++ compiler does not properly
2980
# handle `-M -o', and we need to detect this.
2981
if depmode=$depmode \
2982
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2983
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2984
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2985
>/dev/null 2>conftest.err &&
2986
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2987
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2988
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2989
# icc doesn't choke on unknown options, it will just issue warnings
2990
# (even with -Werror). So we grep stderr for any message
2991
# that says an option was ignored.
2992
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2993
am_cv_CC_dependencies_compiler_type=$depmode
3002
am_cv_CC_dependencies_compiler_type=none
3006
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3007
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3008
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3013
test "x$enable_dependency_tracking" != xno \
3014
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3016
am__fastdepCC_FALSE='#'
3018
am__fastdepCC_TRUE='#'
3019
am__fastdepCC_FALSE=
3025
for ac_func in gethostbyname
3027
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3028
echo "$as_me:$LINENO: checking for $ac_func" >&5
3029
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3030
if eval "test \"\${$as_ac_var+set}\" = set"; then
3031
echo $ECHO_N "(cached) $ECHO_C" >&6
3033
cat >conftest.$ac_ext <<_ACEOF
3036
cat confdefs.h >>conftest.$ac_ext
3037
cat >>conftest.$ac_ext <<_ACEOF
3038
/* end confdefs.h. */
3039
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3040
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3041
#define $ac_func innocuous_$ac_func
3043
/* System header to define __stub macros and hopefully few prototypes,
3044
which can conflict with char $ac_func (); below.
3045
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046
<limits.h> exists even on freestanding compilers. */
3049
# include <limits.h>
3051
# include <assert.h>
3056
/* Override any gcc2 internal prototype to avoid an error. */
3061
/* We use char because int might match the return type of a gcc2
3062
builtin and then its argument prototype would still apply. */
3064
/* The GNU C library defines this for functions which it implements
3065
to always fail with ENOSYS. Some functions are actually named
3066
something starting with __ and the normal name is an alias. */
3067
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3070
char (*f) () = $ac_func;
3079
return f != $ac_func;
3084
rm -f conftest.$ac_objext conftest$ac_exeext
3085
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086
(eval $ac_link) 2>conftest.er1
3088
grep -v '^ *+' conftest.er1 >conftest.err
3090
cat conftest.err >&5
3091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092
(exit $ac_status); } &&
3093
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098
(exit $ac_status); }; } &&
3099
{ ac_try='test -s conftest$ac_exeext'
3100
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104
(exit $ac_status); }; }; then
3105
eval "$as_ac_var=yes"
3107
echo "$as_me: failed program was:" >&5
3108
sed 's/^/| /' conftest.$ac_ext >&5
3110
eval "$as_ac_var=no"
3112
rm -f conftest.err conftest.$ac_objext \
3113
conftest$ac_exeext conftest.$ac_ext
3115
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3116
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3117
if test `eval echo '${'$as_ac_var'}'` = yes; then
3118
cat >>confdefs.h <<_ACEOF
3119
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3126
for ac_func in gettimeofday
3128
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3129
echo "$as_me:$LINENO: checking for $ac_func" >&5
3130
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3131
if eval "test \"\${$as_ac_var+set}\" = set"; then
3132
echo $ECHO_N "(cached) $ECHO_C" >&6
3134
cat >conftest.$ac_ext <<_ACEOF
3137
cat confdefs.h >>conftest.$ac_ext
3138
cat >>conftest.$ac_ext <<_ACEOF
3139
/* end confdefs.h. */
3140
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3141
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3142
#define $ac_func innocuous_$ac_func
3144
/* System header to define __stub macros and hopefully few prototypes,
3145
which can conflict with char $ac_func (); below.
3146
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3147
<limits.h> exists even on freestanding compilers. */
3150
# include <limits.h>
3152
# include <assert.h>
3157
/* Override any gcc2 internal prototype to avoid an error. */
3162
/* We use char because int might match the return type of a gcc2
3163
builtin and then its argument prototype would still apply. */
3165
/* The GNU C library defines this for functions which it implements
3166
to always fail with ENOSYS. Some functions are actually named
3167
something starting with __ and the normal name is an alias. */
3168
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3171
char (*f) () = $ac_func;
3180
return f != $ac_func;
3185
rm -f conftest.$ac_objext conftest$ac_exeext
3186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3187
(eval $ac_link) 2>conftest.er1
3189
grep -v '^ *+' conftest.er1 >conftest.err
3191
cat conftest.err >&5
3192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193
(exit $ac_status); } &&
3194
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199
(exit $ac_status); }; } &&
3200
{ ac_try='test -s conftest$ac_exeext'
3201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205
(exit $ac_status); }; }; then
3206
eval "$as_ac_var=yes"
3208
echo "$as_me: failed program was:" >&5
3209
sed 's/^/| /' conftest.$ac_ext >&5
3211
eval "$as_ac_var=no"
3213
rm -f conftest.err conftest.$ac_objext \
3214
conftest$ac_exeext conftest.$ac_ext
3216
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3217
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3218
if test `eval echo '${'$as_ac_var'}'` = yes; then
3219
cat >>confdefs.h <<_ACEOF
3220
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3227
for ac_func in memmove
3229
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3230
echo "$as_me:$LINENO: checking for $ac_func" >&5
3231
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3232
if eval "test \"\${$as_ac_var+set}\" = set"; then
3233
echo $ECHO_N "(cached) $ECHO_C" >&6
3235
cat >conftest.$ac_ext <<_ACEOF
3238
cat confdefs.h >>conftest.$ac_ext
3239
cat >>conftest.$ac_ext <<_ACEOF
3240
/* end confdefs.h. */
3241
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3242
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3243
#define $ac_func innocuous_$ac_func
3245
/* System header to define __stub macros and hopefully few prototypes,
3246
which can conflict with char $ac_func (); below.
3247
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248
<limits.h> exists even on freestanding compilers. */
3251
# include <limits.h>
3253
# include <assert.h>
3258
/* Override any gcc2 internal prototype to avoid an error. */
3263
/* We use char because int might match the return type of a gcc2
3264
builtin and then its argument prototype would still apply. */
3266
/* The GNU C library defines this for functions which it implements
3267
to always fail with ENOSYS. Some functions are actually named
3268
something starting with __ and the normal name is an alias. */
3269
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3272
char (*f) () = $ac_func;
3281
return f != $ac_func;
3286
rm -f conftest.$ac_objext conftest$ac_exeext
3287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288
(eval $ac_link) 2>conftest.er1
3290
grep -v '^ *+' conftest.er1 >conftest.err
3292
cat conftest.err >&5
3293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294
(exit $ac_status); } &&
3295
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300
(exit $ac_status); }; } &&
3301
{ ac_try='test -s conftest$ac_exeext'
3302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306
(exit $ac_status); }; }; then
3307
eval "$as_ac_var=yes"
3309
echo "$as_me: failed program was:" >&5
3310
sed 's/^/| /' conftest.$ac_ext >&5
3312
eval "$as_ac_var=no"
3314
rm -f conftest.err conftest.$ac_objext \
3315
conftest$ac_exeext conftest.$ac_ext
3317
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3318
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3319
if test `eval echo '${'$as_ac_var'}'` = yes; then
3320
cat >>confdefs.h <<_ACEOF
3321
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3328
for ac_func in memset
3330
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3331
echo "$as_me:$LINENO: checking for $ac_func" >&5
3332
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3333
if eval "test \"\${$as_ac_var+set}\" = set"; then
3334
echo $ECHO_N "(cached) $ECHO_C" >&6
3336
cat >conftest.$ac_ext <<_ACEOF
3339
cat confdefs.h >>conftest.$ac_ext
3340
cat >>conftest.$ac_ext <<_ACEOF
3341
/* end confdefs.h. */
3342
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3343
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3344
#define $ac_func innocuous_$ac_func
3346
/* System header to define __stub macros and hopefully few prototypes,
3347
which can conflict with char $ac_func (); below.
3348
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349
<limits.h> exists even on freestanding compilers. */
3352
# include <limits.h>
3354
# include <assert.h>
3359
/* Override any gcc2 internal prototype to avoid an error. */
3364
/* We use char because int might match the return type of a gcc2
3365
builtin and then its argument prototype would still apply. */
3367
/* The GNU C library defines this for functions which it implements
3368
to always fail with ENOSYS. Some functions are actually named
3369
something starting with __ and the normal name is an alias. */
3370
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3373
char (*f) () = $ac_func;
3382
return f != $ac_func;
3387
rm -f conftest.$ac_objext conftest$ac_exeext
3388
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3389
(eval $ac_link) 2>conftest.er1
3391
grep -v '^ *+' conftest.er1 >conftest.err
3393
cat conftest.err >&5
3394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395
(exit $ac_status); } &&
3396
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401
(exit $ac_status); }; } &&
3402
{ ac_try='test -s conftest$ac_exeext'
3403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407
(exit $ac_status); }; }; then
3408
eval "$as_ac_var=yes"
3410
echo "$as_me: failed program was:" >&5
3411
sed 's/^/| /' conftest.$ac_ext >&5
3413
eval "$as_ac_var=no"
3415
rm -f conftest.err conftest.$ac_objext \
3416
conftest$ac_exeext conftest.$ac_ext
3418
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3419
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3420
if test `eval echo '${'$as_ac_var'}'` = yes; then
3421
cat >>confdefs.h <<_ACEOF
3422
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3431
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3432
echo "$as_me:$LINENO: checking for $ac_func" >&5
3433
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3434
if eval "test \"\${$as_ac_var+set}\" = set"; then
3435
echo $ECHO_N "(cached) $ECHO_C" >&6
3437
cat >conftest.$ac_ext <<_ACEOF
3440
cat confdefs.h >>conftest.$ac_ext
3441
cat >>conftest.$ac_ext <<_ACEOF
3442
/* end confdefs.h. */
3443
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3444
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3445
#define $ac_func innocuous_$ac_func
3447
/* System header to define __stub macros and hopefully few prototypes,
3448
which can conflict with char $ac_func (); below.
3449
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450
<limits.h> exists even on freestanding compilers. */
3453
# include <limits.h>
3455
# include <assert.h>
3460
/* Override any gcc2 internal prototype to avoid an error. */
3465
/* We use char because int might match the return type of a gcc2
3466
builtin and then its argument prototype would still apply. */
3468
/* The GNU C library defines this for functions which it implements
3469
to always fail with ENOSYS. Some functions are actually named
3470
something starting with __ and the normal name is an alias. */
3471
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3474
char (*f) () = $ac_func;
3483
return f != $ac_func;
3488
rm -f conftest.$ac_objext conftest$ac_exeext
3489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3490
(eval $ac_link) 2>conftest.er1
3492
grep -v '^ *+' conftest.er1 >conftest.err
3494
cat conftest.err >&5
3495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496
(exit $ac_status); } &&
3497
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502
(exit $ac_status); }; } &&
3503
{ ac_try='test -s conftest$ac_exeext'
3504
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508
(exit $ac_status); }; }; then
3509
eval "$as_ac_var=yes"
3511
echo "$as_me: failed program was:" >&5
3512
sed 's/^/| /' conftest.$ac_ext >&5
3514
eval "$as_ac_var=no"
3516
rm -f conftest.err conftest.$ac_objext \
3517
conftest$ac_exeext conftest.$ac_ext
3519
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3520
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3521
if test `eval echo '${'$as_ac_var'}'` = yes; then
3522
cat >>confdefs.h <<_ACEOF
3523
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3530
for ac_func in select
3532
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3533
echo "$as_me:$LINENO: checking for $ac_func" >&5
3534
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3535
if eval "test \"\${$as_ac_var+set}\" = set"; then
3536
echo $ECHO_N "(cached) $ECHO_C" >&6
3538
cat >conftest.$ac_ext <<_ACEOF
3541
cat confdefs.h >>conftest.$ac_ext
3542
cat >>conftest.$ac_ext <<_ACEOF
3543
/* end confdefs.h. */
3544
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3545
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3546
#define $ac_func innocuous_$ac_func
3548
/* System header to define __stub macros and hopefully few prototypes,
3549
which can conflict with char $ac_func (); below.
3550
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551
<limits.h> exists even on freestanding compilers. */
3554
# include <limits.h>
3556
# include <assert.h>
3561
/* Override any gcc2 internal prototype to avoid an error. */
3566
/* We use char because int might match the return type of a gcc2
3567
builtin and then its argument prototype would still apply. */
3569
/* The GNU C library defines this for functions which it implements
3570
to always fail with ENOSYS. Some functions are actually named
3571
something starting with __ and the normal name is an alias. */
3572
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3575
char (*f) () = $ac_func;
3584
return f != $ac_func;
3589
rm -f conftest.$ac_objext conftest$ac_exeext
3590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3591
(eval $ac_link) 2>conftest.er1
3593
grep -v '^ *+' conftest.er1 >conftest.err
3595
cat conftest.err >&5
3596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597
(exit $ac_status); } &&
3598
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603
(exit $ac_status); }; } &&
3604
{ ac_try='test -s conftest$ac_exeext'
3605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609
(exit $ac_status); }; }; then
3610
eval "$as_ac_var=yes"
3612
echo "$as_me: failed program was:" >&5
3613
sed 's/^/| /' conftest.$ac_ext >&5
3615
eval "$as_ac_var=no"
3617
rm -f conftest.err conftest.$ac_objext \
3618
conftest$ac_exeext conftest.$ac_ext
3620
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3621
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3622
if test `eval echo '${'$as_ac_var'}'` = yes; then
3623
cat >>confdefs.h <<_ACEOF
3624
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3631
for ac_func in socket
3633
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3634
echo "$as_me:$LINENO: checking for $ac_func" >&5
3635
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3636
if eval "test \"\${$as_ac_var+set}\" = set"; then
3637
echo $ECHO_N "(cached) $ECHO_C" >&6
3639
cat >conftest.$ac_ext <<_ACEOF
3642
cat confdefs.h >>conftest.$ac_ext
3643
cat >>conftest.$ac_ext <<_ACEOF
3644
/* end confdefs.h. */
3645
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3646
For example, HP-UX 11i <limits.h> declares gettimeofday. */
3647
#define $ac_func innocuous_$ac_func
3649
/* System header to define __stub macros and hopefully few prototypes,
3650
which can conflict with char $ac_func (); below.
3651
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652
<limits.h> exists even on freestanding compilers. */
3655
# include <limits.h>
3657
# include <assert.h>
3662
/* Override any gcc2 internal prototype to avoid an error. */
3667
/* We use char because int might match the return type of a gcc2
3668
builtin and then its argument prototype would still apply. */
3670
/* The GNU C library defines this for functions which it implements
3671
to always fail with ENOSYS. Some functions are actually named
3672
something starting with __ and the normal name is an alias. */
3673
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3676
char (*f) () = $ac_func;
3685
return f != $ac_func;
3690
rm -f conftest.$ac_objext conftest$ac_exeext
3691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3692
(eval $ac_link) 2>conftest.er1
3694
grep -v '^ *+' conftest.er1 >conftest.err
3696
cat conftest.err >&5
3697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698
(exit $ac_status); } &&
3699
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704
(exit $ac_status); }; } &&
3705
{ ac_try='test -s conftest$ac_exeext'
3706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710
(exit $ac_status); }; }; then
3711
eval "$as_ac_var=yes"
3713
echo "$as_me: failed program was:" >&5
3714
sed 's/^/| /' conftest.$ac_ext >&5
3716
eval "$as_ac_var=no"
3718
rm -f conftest.err conftest.$ac_objext \
3719
conftest$ac_exeext conftest.$ac_ext
3721
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3722
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3723
if test `eval echo '${'$as_ac_var'}'` = yes; then
3724
cat >>confdefs.h <<_ACEOF
3725
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3732
ac_cpp='$CPP $CPPFLAGS'
3733
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3737
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3738
# On Suns, sometimes $CPP names a directory.
3739
if test -n "$CPP" && test -d "$CPP"; then
3742
if test -z "$CPP"; then
3743
if test "${ac_cv_prog_CPP+set}" = set; then
3744
echo $ECHO_N "(cached) $ECHO_C" >&6
3746
# Double quotes because CPP needs to be expanded
3747
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3750
for ac_c_preproc_warn_flag in '' yes
3752
# Use a header file that comes with gcc, so configuring glibc
3753
# with a fresh cross-compiler works.
3754
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755
# <limits.h> exists even on freestanding compilers.
3756
# On the NeXT, cc -E runs the code through the compiler's parser,
3757
# not just through cpp. "Syntax error" is here to catch this case.
3758
cat >conftest.$ac_ext <<_ACEOF
3761
cat confdefs.h >>conftest.$ac_ext
3762
cat >>conftest.$ac_ext <<_ACEOF
3763
/* end confdefs.h. */
3765
# include <limits.h>
3767
# include <assert.h>
3771
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3772
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3774
grep -v '^ *+' conftest.er1 >conftest.err
3776
cat conftest.err >&5
3777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778
(exit $ac_status); } >/dev/null; then
3779
if test -s conftest.err; then
3780
ac_cpp_err=$ac_c_preproc_warn_flag
3781
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3788
if test -z "$ac_cpp_err"; then
3791
echo "$as_me: failed program was:" >&5
3792
sed 's/^/| /' conftest.$ac_ext >&5
3794
# Broken: fails on valid input.
3797
rm -f conftest.err conftest.$ac_ext
3799
# OK, works on sane cases. Now check whether non-existent headers
3800
# can be detected and how.
3801
cat >conftest.$ac_ext <<_ACEOF
3804
cat confdefs.h >>conftest.$ac_ext
3805
cat >>conftest.$ac_ext <<_ACEOF
3806
/* end confdefs.h. */
3807
#include <ac_nonexistent.h>
3809
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812
grep -v '^ *+' conftest.er1 >conftest.err
3814
cat conftest.err >&5
3815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816
(exit $ac_status); } >/dev/null; then
3817
if test -s conftest.err; then
3818
ac_cpp_err=$ac_c_preproc_warn_flag
3819
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3826
if test -z "$ac_cpp_err"; then
3827
# Broken: success on invalid input.
3830
echo "$as_me: failed program was:" >&5
3831
sed 's/^/| /' conftest.$ac_ext >&5
3833
# Passes both tests.
3837
rm -f conftest.err conftest.$ac_ext
3840
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841
rm -f conftest.err conftest.$ac_ext
3842
if $ac_preproc_ok; then
3854
echo "$as_me:$LINENO: result: $CPP" >&5
3855
echo "${ECHO_T}$CPP" >&6
3857
for ac_c_preproc_warn_flag in '' yes
3859
# Use a header file that comes with gcc, so configuring glibc
3860
# with a fresh cross-compiler works.
3861
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862
# <limits.h> exists even on freestanding compilers.
3863
# On the NeXT, cc -E runs the code through the compiler's parser,
3864
# not just through cpp. "Syntax error" is here to catch this case.
3865
cat >conftest.$ac_ext <<_ACEOF
3868
cat confdefs.h >>conftest.$ac_ext
3869
cat >>conftest.$ac_ext <<_ACEOF
3870
/* end confdefs.h. */
3872
# include <limits.h>
3874
# include <assert.h>
3878
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3879
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3881
grep -v '^ *+' conftest.er1 >conftest.err
3883
cat conftest.err >&5
3884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885
(exit $ac_status); } >/dev/null; then
3886
if test -s conftest.err; then
3887
ac_cpp_err=$ac_c_preproc_warn_flag
3888
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3895
if test -z "$ac_cpp_err"; then
3898
echo "$as_me: failed program was:" >&5
3899
sed 's/^/| /' conftest.$ac_ext >&5
3901
# Broken: fails on valid input.
3904
rm -f conftest.err conftest.$ac_ext
3906
# OK, works on sane cases. Now check whether non-existent headers
3907
# can be detected and how.
3908
cat >conftest.$ac_ext <<_ACEOF
3911
cat confdefs.h >>conftest.$ac_ext
3912
cat >>conftest.$ac_ext <<_ACEOF
3913
/* end confdefs.h. */
3914
#include <ac_nonexistent.h>
3916
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3917
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3919
grep -v '^ *+' conftest.er1 >conftest.err
3921
cat conftest.err >&5
3922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923
(exit $ac_status); } >/dev/null; then
3924
if test -s conftest.err; then
3925
ac_cpp_err=$ac_c_preproc_warn_flag
3926
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3933
if test -z "$ac_cpp_err"; then
3934
# Broken: success on invalid input.
3937
echo "$as_me: failed program was:" >&5
3938
sed 's/^/| /' conftest.$ac_ext >&5
3940
# Passes both tests.
3944
rm -f conftest.err conftest.$ac_ext
3947
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3948
rm -f conftest.err conftest.$ac_ext
3949
if $ac_preproc_ok; then
3952
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3953
See \`config.log' for more details." >&5
3954
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3955
See \`config.log' for more details." >&2;}
3956
{ (exit 1); exit 1; }; }
3960
ac_cpp='$CPP $CPPFLAGS'
3961
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
echo "$as_me:$LINENO: checking for egrep" >&5
3967
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3968
if test "${ac_cv_prog_egrep+set}" = set; then
3969
echo $ECHO_N "(cached) $ECHO_C" >&6
3971
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3972
then ac_cv_prog_egrep='grep -E'
3973
else ac_cv_prog_egrep='egrep'
3976
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3977
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3978
EGREP=$ac_cv_prog_egrep
3981
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3982
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3983
if test "${ac_cv_header_stdc+set}" = set; then
3984
echo $ECHO_N "(cached) $ECHO_C" >&6
3986
cat >conftest.$ac_ext <<_ACEOF
3989
cat confdefs.h >>conftest.$ac_ext
3990
cat >>conftest.$ac_ext <<_ACEOF
3991
/* end confdefs.h. */
4005
rm -f conftest.$ac_objext
4006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4007
(eval $ac_compile) 2>conftest.er1
4009
grep -v '^ *+' conftest.er1 >conftest.err
4011
cat conftest.err >&5
4012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013
(exit $ac_status); } &&
4014
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019
(exit $ac_status); }; } &&
4020
{ ac_try='test -s conftest.$ac_objext'
4021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
(exit $ac_status); }; }; then
4026
ac_cv_header_stdc=yes
4028
echo "$as_me: failed program was:" >&5
4029
sed 's/^/| /' conftest.$ac_ext >&5
4031
ac_cv_header_stdc=no
4033
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4035
if test $ac_cv_header_stdc = yes; then
4036
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4037
cat >conftest.$ac_ext <<_ACEOF
4040
cat confdefs.h >>conftest.$ac_ext
4041
cat >>conftest.$ac_ext <<_ACEOF
4042
/* end confdefs.h. */
4046
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047
$EGREP "memchr" >/dev/null 2>&1; then
4050
ac_cv_header_stdc=no
4056
if test $ac_cv_header_stdc = yes; then
4057
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4058
cat >conftest.$ac_ext <<_ACEOF
4061
cat confdefs.h >>conftest.$ac_ext
4062
cat >>conftest.$ac_ext <<_ACEOF
4063
/* end confdefs.h. */
4067
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068
$EGREP "free" >/dev/null 2>&1; then
4071
ac_cv_header_stdc=no
4077
if test $ac_cv_header_stdc = yes; then
4078
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4079
if test "$cross_compiling" = yes; then
4082
cat >conftest.$ac_ext <<_ACEOF
4085
cat confdefs.h >>conftest.$ac_ext
4086
cat >>conftest.$ac_ext <<_ACEOF
4087
/* end confdefs.h. */
4089
#if ((' ' & 0x0FF) == 0x020)
4090
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4091
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4093
# define ISLOWER(c) \
4094
(('a' <= (c) && (c) <= 'i') \
4095
|| ('j' <= (c) && (c) <= 'r') \
4096
|| ('s' <= (c) && (c) <= 'z'))
4097
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4100
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4105
for (i = 0; i < 256; i++)
4106
if (XOR (islower (i), ISLOWER (i))
4107
|| toupper (i) != TOUPPER (i))
4112
rm -f conftest$ac_exeext
4113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114
(eval $ac_link) 2>&5
4116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4118
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
(exit $ac_status); }; }; then
4125
echo "$as_me: program exited with status $ac_status" >&5
4126
echo "$as_me: failed program was:" >&5
4127
sed 's/^/| /' conftest.$ac_ext >&5
4130
ac_cv_header_stdc=no
4132
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4136
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4137
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4138
if test $ac_cv_header_stdc = yes; then
4140
cat >>confdefs.h <<\_ACEOF
4141
#define STDC_HEADERS 1
4146
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4156
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4157
inttypes.h stdint.h unistd.h
4159
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4160
echo "$as_me:$LINENO: checking for $ac_header" >&5
4161
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4162
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4163
echo $ECHO_N "(cached) $ECHO_C" >&6
4165
cat >conftest.$ac_ext <<_ACEOF
4168
cat confdefs.h >>conftest.$ac_ext
4169
cat >>conftest.$ac_ext <<_ACEOF
4170
/* end confdefs.h. */
4171
$ac_includes_default
4173
#include <$ac_header>
4175
rm -f conftest.$ac_objext
4176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177
(eval $ac_compile) 2>conftest.er1
4179
grep -v '^ *+' conftest.er1 >conftest.err
4181
cat conftest.err >&5
4182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183
(exit $ac_status); } &&
4184
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189
(exit $ac_status); }; } &&
4190
{ ac_try='test -s conftest.$ac_objext'
4191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195
(exit $ac_status); }; }; then
4196
eval "$as_ac_Header=yes"
4198
echo "$as_me: failed program was:" >&5
4199
sed 's/^/| /' conftest.$ac_ext >&5
4201
eval "$as_ac_Header=no"
4203
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4205
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4206
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4207
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4208
cat >>confdefs.h <<_ACEOF
4209
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4218
for ac_header in arpa/inet.h
4220
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4221
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4222
echo "$as_me:$LINENO: checking for $ac_header" >&5
4223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4225
echo $ECHO_N "(cached) $ECHO_C" >&6
4227
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4228
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4230
# Is the header compilable?
4231
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4232
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4233
cat >conftest.$ac_ext <<_ACEOF
4236
cat confdefs.h >>conftest.$ac_ext
4237
cat >>conftest.$ac_ext <<_ACEOF
4238
/* end confdefs.h. */
4239
$ac_includes_default
4240
#include <$ac_header>
4242
rm -f conftest.$ac_objext
4243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244
(eval $ac_compile) 2>conftest.er1
4246
grep -v '^ *+' conftest.er1 >conftest.err
4248
cat conftest.err >&5
4249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250
(exit $ac_status); } &&
4251
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256
(exit $ac_status); }; } &&
4257
{ ac_try='test -s conftest.$ac_objext'
4258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
(exit $ac_status); }; }; then
4263
ac_header_compiler=yes
4265
echo "$as_me: failed program was:" >&5
4266
sed 's/^/| /' conftest.$ac_ext >&5
4268
ac_header_compiler=no
4270
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4271
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4272
echo "${ECHO_T}$ac_header_compiler" >&6
4274
# Is the header present?
4275
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4276
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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_header>
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
ac_header_preproc=yes
4305
echo "$as_me: failed program was:" >&5
4306
sed 's/^/| /' conftest.$ac_ext >&5
4308
ac_header_preproc=no
4310
rm -f conftest.err conftest.$ac_ext
4311
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4312
echo "${ECHO_T}$ac_header_preproc" >&6
4314
# So? What about this header?
4315
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4317
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4318
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4319
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4320
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4321
ac_header_preproc=yes
4324
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4325
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4326
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4327
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4328
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4329
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4330
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4331
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4332
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4333
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4334
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4335
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4338
## ----------------------------------- ##
4339
## Report this to the crypto++ lists. ##
4340
## ----------------------------------- ##
4343
sed "s/^/$as_me: WARNING: /" >&2
4346
echo "$as_me:$LINENO: checking for $ac_header" >&5
4347
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4348
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349
echo $ECHO_N "(cached) $ECHO_C" >&6
4351
eval "$as_ac_Header=\$ac_header_preproc"
4353
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4354
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4357
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4358
cat >>confdefs.h <<_ACEOF
4359
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367
for ac_header in fcntl.h
4369
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4371
echo "$as_me:$LINENO: checking for $ac_header" >&5
4372
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374
echo $ECHO_N "(cached) $ECHO_C" >&6
4376
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4377
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4379
# Is the header compilable?
4380
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4381
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4382
cat >conftest.$ac_ext <<_ACEOF
4385
cat confdefs.h >>conftest.$ac_ext
4386
cat >>conftest.$ac_ext <<_ACEOF
4387
/* end confdefs.h. */
4388
$ac_includes_default
4389
#include <$ac_header>
4391
rm -f conftest.$ac_objext
4392
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393
(eval $ac_compile) 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); } &&
4400
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405
(exit $ac_status); }; } &&
4406
{ ac_try='test -s conftest.$ac_objext'
4407
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411
(exit $ac_status); }; }; then
4412
ac_header_compiler=yes
4414
echo "$as_me: failed program was:" >&5
4415
sed 's/^/| /' conftest.$ac_ext >&5
4417
ac_header_compiler=no
4419
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4420
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4421
echo "${ECHO_T}$ac_header_compiler" >&6
4423
# Is the header present?
4424
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4425
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4426
cat >conftest.$ac_ext <<_ACEOF
4429
cat confdefs.h >>conftest.$ac_ext
4430
cat >>conftest.$ac_ext <<_ACEOF
4431
/* end confdefs.h. */
4432
#include <$ac_header>
4434
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4435
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4437
grep -v '^ *+' conftest.er1 >conftest.err
4439
cat conftest.err >&5
4440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441
(exit $ac_status); } >/dev/null; then
4442
if test -s conftest.err; then
4443
ac_cpp_err=$ac_c_preproc_warn_flag
4444
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4451
if test -z "$ac_cpp_err"; then
4452
ac_header_preproc=yes
4454
echo "$as_me: failed program was:" >&5
4455
sed 's/^/| /' conftest.$ac_ext >&5
4457
ac_header_preproc=no
4459
rm -f conftest.err conftest.$ac_ext
4460
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4461
echo "${ECHO_T}$ac_header_preproc" >&6
4463
# So? What about this header?
4464
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4466
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4467
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4468
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4469
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4470
ac_header_preproc=yes
4473
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4474
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4475
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4476
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4477
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4478
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4479
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4480
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4481
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4482
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4483
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4484
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4487
## ----------------------------------- ##
4488
## Report this to the crypto++ lists. ##
4489
## ----------------------------------- ##
4492
sed "s/^/$as_me: WARNING: /" >&2
4495
echo "$as_me:$LINENO: checking for $ac_header" >&5
4496
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4497
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4498
echo $ECHO_N "(cached) $ECHO_C" >&6
4500
eval "$as_ac_Header=\$ac_header_preproc"
4502
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4503
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507
cat >>confdefs.h <<_ACEOF
4508
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4516
for ac_header in limits.h
4518
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4519
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4520
echo "$as_me:$LINENO: checking for $ac_header" >&5
4521
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523
echo $ECHO_N "(cached) $ECHO_C" >&6
4525
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4526
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4528
# Is the header compilable?
4529
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4530
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4531
cat >conftest.$ac_ext <<_ACEOF
4534
cat confdefs.h >>conftest.$ac_ext
4535
cat >>conftest.$ac_ext <<_ACEOF
4536
/* end confdefs.h. */
4537
$ac_includes_default
4538
#include <$ac_header>
4540
rm -f conftest.$ac_objext
4541
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542
(eval $ac_compile) 2>conftest.er1
4544
grep -v '^ *+' conftest.er1 >conftest.err
4546
cat conftest.err >&5
4547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548
(exit $ac_status); } &&
4549
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554
(exit $ac_status); }; } &&
4555
{ ac_try='test -s conftest.$ac_objext'
4556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560
(exit $ac_status); }; }; then
4561
ac_header_compiler=yes
4563
echo "$as_me: failed program was:" >&5
4564
sed 's/^/| /' conftest.$ac_ext >&5
4566
ac_header_compiler=no
4568
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4570
echo "${ECHO_T}$ac_header_compiler" >&6
4572
# Is the header present?
4573
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4574
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4575
cat >conftest.$ac_ext <<_ACEOF
4578
cat confdefs.h >>conftest.$ac_ext
4579
cat >>conftest.$ac_ext <<_ACEOF
4580
/* end confdefs.h. */
4581
#include <$ac_header>
4583
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4584
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4586
grep -v '^ *+' conftest.er1 >conftest.err
4588
cat conftest.err >&5
4589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590
(exit $ac_status); } >/dev/null; then
4591
if test -s conftest.err; then
4592
ac_cpp_err=$ac_c_preproc_warn_flag
4593
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4600
if test -z "$ac_cpp_err"; then
4601
ac_header_preproc=yes
4603
echo "$as_me: failed program was:" >&5
4604
sed 's/^/| /' conftest.$ac_ext >&5
4606
ac_header_preproc=no
4608
rm -f conftest.err conftest.$ac_ext
4609
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4610
echo "${ECHO_T}$ac_header_preproc" >&6
4612
# So? What about this header?
4613
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4615
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4616
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4617
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4618
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4619
ac_header_preproc=yes
4622
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4623
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4624
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4625
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4626
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4627
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4628
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4629
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4630
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4631
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4632
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4633
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4636
## ----------------------------------- ##
4637
## Report this to the crypto++ lists. ##
4638
## ----------------------------------- ##
4641
sed "s/^/$as_me: WARNING: /" >&2
4644
echo "$as_me:$LINENO: checking for $ac_header" >&5
4645
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4646
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4647
echo $ECHO_N "(cached) $ECHO_C" >&6
4649
eval "$as_ac_Header=\$ac_header_preproc"
4651
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4652
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4655
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4656
cat >>confdefs.h <<_ACEOF
4657
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665
for ac_header in malloc.h
4667
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4668
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4669
echo "$as_me:$LINENO: checking for $ac_header" >&5
4670
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4671
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4672
echo $ECHO_N "(cached) $ECHO_C" >&6
4674
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4675
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4677
# Is the header compilable?
4678
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4679
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4680
cat >conftest.$ac_ext <<_ACEOF
4683
cat confdefs.h >>conftest.$ac_ext
4684
cat >>conftest.$ac_ext <<_ACEOF
4685
/* end confdefs.h. */
4686
$ac_includes_default
4687
#include <$ac_header>
4689
rm -f conftest.$ac_objext
4690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4691
(eval $ac_compile) 2>conftest.er1
4693
grep -v '^ *+' conftest.er1 >conftest.err
4695
cat conftest.err >&5
4696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697
(exit $ac_status); } &&
4698
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703
(exit $ac_status); }; } &&
4704
{ ac_try='test -s conftest.$ac_objext'
4705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709
(exit $ac_status); }; }; then
4710
ac_header_compiler=yes
4712
echo "$as_me: failed program was:" >&5
4713
sed 's/^/| /' conftest.$ac_ext >&5
4715
ac_header_compiler=no
4717
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4718
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4719
echo "${ECHO_T}$ac_header_compiler" >&6
4721
# Is the header present?
4722
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4723
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4724
cat >conftest.$ac_ext <<_ACEOF
4727
cat confdefs.h >>conftest.$ac_ext
4728
cat >>conftest.$ac_ext <<_ACEOF
4729
/* end confdefs.h. */
4730
#include <$ac_header>
4732
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4733
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4735
grep -v '^ *+' conftest.er1 >conftest.err
4737
cat conftest.err >&5
4738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739
(exit $ac_status); } >/dev/null; then
4740
if test -s conftest.err; then
4741
ac_cpp_err=$ac_c_preproc_warn_flag
4742
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4749
if test -z "$ac_cpp_err"; then
4750
ac_header_preproc=yes
4752
echo "$as_me: failed program was:" >&5
4753
sed 's/^/| /' conftest.$ac_ext >&5
4755
ac_header_preproc=no
4757
rm -f conftest.err conftest.$ac_ext
4758
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4759
echo "${ECHO_T}$ac_header_preproc" >&6
4761
# So? What about this header?
4762
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4764
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4765
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4766
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4767
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4768
ac_header_preproc=yes
4771
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4772
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4773
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4774
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4775
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4776
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4777
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4778
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4779
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4780
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4781
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4782
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4785
## ----------------------------------- ##
4786
## Report this to the crypto++ lists. ##
4787
## ----------------------------------- ##
4790
sed "s/^/$as_me: WARNING: /" >&2
4793
echo "$as_me:$LINENO: checking for $ac_header" >&5
4794
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4795
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4796
echo $ECHO_N "(cached) $ECHO_C" >&6
4798
eval "$as_ac_Header=\$ac_header_preproc"
4800
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4801
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4804
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4805
cat >>confdefs.h <<_ACEOF
4806
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4814
for ac_header in netdb.h
4816
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4817
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4818
echo "$as_me:$LINENO: checking for $ac_header" >&5
4819
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4820
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4821
echo $ECHO_N "(cached) $ECHO_C" >&6
4823
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4824
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4826
# Is the header compilable?
4827
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4828
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4829
cat >conftest.$ac_ext <<_ACEOF
4832
cat confdefs.h >>conftest.$ac_ext
4833
cat >>conftest.$ac_ext <<_ACEOF
4834
/* end confdefs.h. */
4835
$ac_includes_default
4836
#include <$ac_header>
4838
rm -f conftest.$ac_objext
4839
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840
(eval $ac_compile) 2>conftest.er1
4842
grep -v '^ *+' conftest.er1 >conftest.err
4844
cat conftest.err >&5
4845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846
(exit $ac_status); } &&
4847
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4848
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852
(exit $ac_status); }; } &&
4853
{ ac_try='test -s conftest.$ac_objext'
4854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858
(exit $ac_status); }; }; then
4859
ac_header_compiler=yes
4861
echo "$as_me: failed program was:" >&5
4862
sed 's/^/| /' conftest.$ac_ext >&5
4864
ac_header_compiler=no
4866
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4867
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4868
echo "${ECHO_T}$ac_header_compiler" >&6
4870
# Is the header present?
4871
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4872
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4873
cat >conftest.$ac_ext <<_ACEOF
4876
cat confdefs.h >>conftest.$ac_ext
4877
cat >>conftest.$ac_ext <<_ACEOF
4878
/* end confdefs.h. */
4879
#include <$ac_header>
4881
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4882
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4884
grep -v '^ *+' conftest.er1 >conftest.err
4886
cat conftest.err >&5
4887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888
(exit $ac_status); } >/dev/null; then
4889
if test -s conftest.err; then
4890
ac_cpp_err=$ac_c_preproc_warn_flag
4891
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4898
if test -z "$ac_cpp_err"; then
4899
ac_header_preproc=yes
4901
echo "$as_me: failed program was:" >&5
4902
sed 's/^/| /' conftest.$ac_ext >&5
4904
ac_header_preproc=no
4906
rm -f conftest.err conftest.$ac_ext
4907
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4908
echo "${ECHO_T}$ac_header_preproc" >&6
4910
# So? What about this header?
4911
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4913
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4914
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4915
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4916
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4917
ac_header_preproc=yes
4920
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4921
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4922
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4923
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4924
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4925
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4926
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4927
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4928
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4929
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4930
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4931
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4934
## ----------------------------------- ##
4935
## Report this to the crypto++ lists. ##
4936
## ----------------------------------- ##
4939
sed "s/^/$as_me: WARNING: /" >&2
4942
echo "$as_me:$LINENO: checking for $ac_header" >&5
4943
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4944
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4945
echo $ECHO_N "(cached) $ECHO_C" >&6
4947
eval "$as_ac_Header=\$ac_header_preproc"
4949
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4950
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4953
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4954
cat >>confdefs.h <<_ACEOF
4955
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963
for ac_header in netinet/in.h
4965
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4967
echo "$as_me:$LINENO: checking for $ac_header" >&5
4968
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970
echo $ECHO_N "(cached) $ECHO_C" >&6
4972
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4973
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4975
# Is the header compilable?
4976
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4977
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4978
cat >conftest.$ac_ext <<_ACEOF
4981
cat confdefs.h >>conftest.$ac_ext
4982
cat >>conftest.$ac_ext <<_ACEOF
4983
/* end confdefs.h. */
4984
$ac_includes_default
4985
#include <$ac_header>
4987
rm -f conftest.$ac_objext
4988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989
(eval $ac_compile) 2>conftest.er1
4991
grep -v '^ *+' conftest.er1 >conftest.err
4993
cat conftest.err >&5
4994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995
(exit $ac_status); } &&
4996
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001
(exit $ac_status); }; } &&
5002
{ ac_try='test -s conftest.$ac_objext'
5003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007
(exit $ac_status); }; }; then
5008
ac_header_compiler=yes
5010
echo "$as_me: failed program was:" >&5
5011
sed 's/^/| /' conftest.$ac_ext >&5
5013
ac_header_compiler=no
5015
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5017
echo "${ECHO_T}$ac_header_compiler" >&6
5019
# Is the header present?
5020
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5021
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5022
cat >conftest.$ac_ext <<_ACEOF
5025
cat confdefs.h >>conftest.$ac_ext
5026
cat >>conftest.$ac_ext <<_ACEOF
5027
/* end confdefs.h. */
5028
#include <$ac_header>
5030
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5031
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5033
grep -v '^ *+' conftest.er1 >conftest.err
5035
cat conftest.err >&5
5036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037
(exit $ac_status); } >/dev/null; then
5038
if test -s conftest.err; then
5039
ac_cpp_err=$ac_c_preproc_warn_flag
5040
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5047
if test -z "$ac_cpp_err"; then
5048
ac_header_preproc=yes
5050
echo "$as_me: failed program was:" >&5
5051
sed 's/^/| /' conftest.$ac_ext >&5
5053
ac_header_preproc=no
5055
rm -f conftest.err conftest.$ac_ext
5056
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5057
echo "${ECHO_T}$ac_header_preproc" >&6
5059
# So? What about this header?
5060
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5062
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5063
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5064
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5065
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5066
ac_header_preproc=yes
5069
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5070
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5071
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5072
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5073
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5074
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5075
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5076
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5077
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5078
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5079
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5080
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5083
## ----------------------------------- ##
5084
## Report this to the crypto++ lists. ##
5085
## ----------------------------------- ##
5088
sed "s/^/$as_me: WARNING: /" >&2
5091
echo "$as_me:$LINENO: checking for $ac_header" >&5
5092
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5093
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5094
echo $ECHO_N "(cached) $ECHO_C" >&6
5096
eval "$as_ac_Header=\$ac_header_preproc"
5098
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5099
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5102
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5103
cat >>confdefs.h <<_ACEOF
5104
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5112
for ac_header in stddef.h
5114
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5115
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5116
echo "$as_me:$LINENO: checking for $ac_header" >&5
5117
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5118
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5119
echo $ECHO_N "(cached) $ECHO_C" >&6
5121
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5122
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5124
# Is the header compilable?
5125
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5126
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5127
cat >conftest.$ac_ext <<_ACEOF
5130
cat confdefs.h >>conftest.$ac_ext
5131
cat >>conftest.$ac_ext <<_ACEOF
5132
/* end confdefs.h. */
5133
$ac_includes_default
5134
#include <$ac_header>
5136
rm -f conftest.$ac_objext
5137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138
(eval $ac_compile) 2>conftest.er1
5140
grep -v '^ *+' conftest.er1 >conftest.err
5142
cat conftest.err >&5
5143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144
(exit $ac_status); } &&
5145
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150
(exit $ac_status); }; } &&
5151
{ ac_try='test -s conftest.$ac_objext'
5152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156
(exit $ac_status); }; }; then
5157
ac_header_compiler=yes
5159
echo "$as_me: failed program was:" >&5
5160
sed 's/^/| /' conftest.$ac_ext >&5
5162
ac_header_compiler=no
5164
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5165
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5166
echo "${ECHO_T}$ac_header_compiler" >&6
5168
# Is the header present?
5169
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5170
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5171
cat >conftest.$ac_ext <<_ACEOF
5174
cat confdefs.h >>conftest.$ac_ext
5175
cat >>conftest.$ac_ext <<_ACEOF
5176
/* end confdefs.h. */
5177
#include <$ac_header>
5179
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5182
grep -v '^ *+' conftest.er1 >conftest.err
5184
cat conftest.err >&5
5185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186
(exit $ac_status); } >/dev/null; then
5187
if test -s conftest.err; then
5188
ac_cpp_err=$ac_c_preproc_warn_flag
5189
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5196
if test -z "$ac_cpp_err"; then
5197
ac_header_preproc=yes
5199
echo "$as_me: failed program was:" >&5
5200
sed 's/^/| /' conftest.$ac_ext >&5
5202
ac_header_preproc=no
5204
rm -f conftest.err conftest.$ac_ext
5205
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206
echo "${ECHO_T}$ac_header_preproc" >&6
5208
# So? What about this header?
5209
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5211
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5212
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5214
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5215
ac_header_preproc=yes
5218
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5219
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5220
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5221
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5222
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5223
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5224
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5225
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5226
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5227
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5228
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5229
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5232
## ----------------------------------- ##
5233
## Report this to the crypto++ lists. ##
5234
## ----------------------------------- ##
5237
sed "s/^/$as_me: WARNING: /" >&2
5240
echo "$as_me:$LINENO: checking for $ac_header" >&5
5241
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5242
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5243
echo $ECHO_N "(cached) $ECHO_C" >&6
5245
eval "$as_ac_Header=\$ac_header_preproc"
5247
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5248
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5251
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5252
cat >>confdefs.h <<_ACEOF
5253
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5261
for ac_header in sys/ioctl.h
5263
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5264
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5265
echo "$as_me:$LINENO: checking for $ac_header" >&5
5266
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5267
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5268
echo $ECHO_N "(cached) $ECHO_C" >&6
5270
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5271
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5273
# Is the header compilable?
5274
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5275
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5276
cat >conftest.$ac_ext <<_ACEOF
5279
cat confdefs.h >>conftest.$ac_ext
5280
cat >>conftest.$ac_ext <<_ACEOF
5281
/* end confdefs.h. */
5282
$ac_includes_default
5283
#include <$ac_header>
5285
rm -f conftest.$ac_objext
5286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287
(eval $ac_compile) 2>conftest.er1
5289
grep -v '^ *+' conftest.er1 >conftest.err
5291
cat conftest.err >&5
5292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293
(exit $ac_status); } &&
5294
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299
(exit $ac_status); }; } &&
5300
{ ac_try='test -s conftest.$ac_objext'
5301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305
(exit $ac_status); }; }; then
5306
ac_header_compiler=yes
5308
echo "$as_me: failed program was:" >&5
5309
sed 's/^/| /' conftest.$ac_ext >&5
5311
ac_header_compiler=no
5313
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5314
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5315
echo "${ECHO_T}$ac_header_compiler" >&6
5317
# Is the header present?
5318
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5319
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5320
cat >conftest.$ac_ext <<_ACEOF
5323
cat confdefs.h >>conftest.$ac_ext
5324
cat >>conftest.$ac_ext <<_ACEOF
5325
/* end confdefs.h. */
5326
#include <$ac_header>
5328
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5329
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5331
grep -v '^ *+' conftest.er1 >conftest.err
5333
cat conftest.err >&5
5334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335
(exit $ac_status); } >/dev/null; then
5336
if test -s conftest.err; then
5337
ac_cpp_err=$ac_c_preproc_warn_flag
5338
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5345
if test -z "$ac_cpp_err"; then
5346
ac_header_preproc=yes
5348
echo "$as_me: failed program was:" >&5
5349
sed 's/^/| /' conftest.$ac_ext >&5
5351
ac_header_preproc=no
5353
rm -f conftest.err conftest.$ac_ext
5354
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5355
echo "${ECHO_T}$ac_header_preproc" >&6
5357
# So? What about this header?
5358
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5360
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5361
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5362
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5363
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5364
ac_header_preproc=yes
5367
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5368
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5369
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5370
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5371
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5372
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5373
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5374
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5378
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5381
## ----------------------------------- ##
5382
## Report this to the crypto++ lists. ##
5383
## ----------------------------------- ##
5386
sed "s/^/$as_me: WARNING: /" >&2
5389
echo "$as_me:$LINENO: checking for $ac_header" >&5
5390
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5391
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5392
echo $ECHO_N "(cached) $ECHO_C" >&6
5394
eval "$as_ac_Header=\$ac_header_preproc"
5396
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5397
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5400
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5401
cat >>confdefs.h <<_ACEOF
5402
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5410
for ac_header in sys/socket.h
5412
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5413
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5414
echo "$as_me:$LINENO: checking for $ac_header" >&5
5415
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5416
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5417
echo $ECHO_N "(cached) $ECHO_C" >&6
5419
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5420
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5422
# Is the header compilable?
5423
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5424
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5425
cat >conftest.$ac_ext <<_ACEOF
5428
cat confdefs.h >>conftest.$ac_ext
5429
cat >>conftest.$ac_ext <<_ACEOF
5430
/* end confdefs.h. */
5431
$ac_includes_default
5432
#include <$ac_header>
5434
rm -f conftest.$ac_objext
5435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5436
(eval $ac_compile) 2>conftest.er1
5438
grep -v '^ *+' conftest.er1 >conftest.err
5440
cat conftest.err >&5
5441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
(exit $ac_status); } &&
5443
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448
(exit $ac_status); }; } &&
5449
{ ac_try='test -s conftest.$ac_objext'
5450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454
(exit $ac_status); }; }; then
5455
ac_header_compiler=yes
5457
echo "$as_me: failed program was:" >&5
5458
sed 's/^/| /' conftest.$ac_ext >&5
5460
ac_header_compiler=no
5462
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5464
echo "${ECHO_T}$ac_header_compiler" >&6
5466
# Is the header present?
5467
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5468
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5469
cat >conftest.$ac_ext <<_ACEOF
5472
cat confdefs.h >>conftest.$ac_ext
5473
cat >>conftest.$ac_ext <<_ACEOF
5474
/* end confdefs.h. */
5475
#include <$ac_header>
5477
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5478
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5480
grep -v '^ *+' conftest.er1 >conftest.err
5482
cat conftest.err >&5
5483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
(exit $ac_status); } >/dev/null; then
5485
if test -s conftest.err; then
5486
ac_cpp_err=$ac_c_preproc_warn_flag
5487
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5494
if test -z "$ac_cpp_err"; then
5495
ac_header_preproc=yes
5497
echo "$as_me: failed program was:" >&5
5498
sed 's/^/| /' conftest.$ac_ext >&5
5500
ac_header_preproc=no
5502
rm -f conftest.err conftest.$ac_ext
5503
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5504
echo "${ECHO_T}$ac_header_preproc" >&6
5506
# So? What about this header?
5507
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5509
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5510
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5511
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5512
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5513
ac_header_preproc=yes
5516
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5517
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5518
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5519
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5520
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5521
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5522
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5523
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5524
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5525
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5526
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5527
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5530
## ----------------------------------- ##
5531
## Report this to the crypto++ lists. ##
5532
## ----------------------------------- ##
5535
sed "s/^/$as_me: WARNING: /" >&2
5538
echo "$as_me:$LINENO: checking for $ac_header" >&5
5539
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5540
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541
echo $ECHO_N "(cached) $ECHO_C" >&6
5543
eval "$as_ac_Header=\$ac_header_preproc"
5545
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5546
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5549
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5550
cat >>confdefs.h <<_ACEOF
5551
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559
for ac_header in sys/time.h
5561
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5562
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5563
echo "$as_me:$LINENO: checking for $ac_header" >&5
5564
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5565
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5566
echo $ECHO_N "(cached) $ECHO_C" >&6
5568
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5569
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5571
# Is the header compilable?
5572
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5573
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5574
cat >conftest.$ac_ext <<_ACEOF
5577
cat confdefs.h >>conftest.$ac_ext
5578
cat >>conftest.$ac_ext <<_ACEOF
5579
/* end confdefs.h. */
5580
$ac_includes_default
5581
#include <$ac_header>
5583
rm -f conftest.$ac_objext
5584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585
(eval $ac_compile) 2>conftest.er1
5587
grep -v '^ *+' conftest.er1 >conftest.err
5589
cat conftest.err >&5
5590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591
(exit $ac_status); } &&
5592
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597
(exit $ac_status); }; } &&
5598
{ ac_try='test -s conftest.$ac_objext'
5599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603
(exit $ac_status); }; }; then
5604
ac_header_compiler=yes
5606
echo "$as_me: failed program was:" >&5
5607
sed 's/^/| /' conftest.$ac_ext >&5
5609
ac_header_compiler=no
5611
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5612
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613
echo "${ECHO_T}$ac_header_compiler" >&6
5615
# Is the header present?
5616
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5617
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5618
cat >conftest.$ac_ext <<_ACEOF
5621
cat confdefs.h >>conftest.$ac_ext
5622
cat >>conftest.$ac_ext <<_ACEOF
5623
/* end confdefs.h. */
5624
#include <$ac_header>
5626
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5627
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5629
grep -v '^ *+' conftest.er1 >conftest.err
5631
cat conftest.err >&5
5632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633
(exit $ac_status); } >/dev/null; then
5634
if test -s conftest.err; then
5635
ac_cpp_err=$ac_c_preproc_warn_flag
5636
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5643
if test -z "$ac_cpp_err"; then
5644
ac_header_preproc=yes
5646
echo "$as_me: failed program was:" >&5
5647
sed 's/^/| /' conftest.$ac_ext >&5
5649
ac_header_preproc=no
5651
rm -f conftest.err conftest.$ac_ext
5652
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653
echo "${ECHO_T}$ac_header_preproc" >&6
5655
# So? What about this header?
5656
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5658
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5659
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5661
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5662
ac_header_preproc=yes
5665
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5666
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5667
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5668
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5669
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5670
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5671
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5672
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5673
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5674
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5675
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5676
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5679
## ----------------------------------- ##
5680
## Report this to the crypto++ lists. ##
5681
## ----------------------------------- ##
5684
sed "s/^/$as_me: WARNING: /" >&2
5687
echo "$as_me:$LINENO: checking for $ac_header" >&5
5688
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5689
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5690
echo $ECHO_N "(cached) $ECHO_C" >&6
5692
eval "$as_ac_Header=\$ac_header_preproc"
5694
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5695
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5698
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5699
cat >>confdefs.h <<_ACEOF
5700
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5707
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
5708
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
5709
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
5710
echo $ECHO_N "(cached) $ECHO_C" >&6
5712
cat >conftest.$ac_ext <<_ACEOF
5715
cat confdefs.h >>conftest.$ac_ext
5716
cat >>conftest.$ac_ext <<_ACEOF
5717
/* end confdefs.h. */
5718
$ac_includes_default
5722
if ((ptrdiff_t *) 0)
5724
if (sizeof (ptrdiff_t))
5730
rm -f conftest.$ac_objext
5731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732
(eval $ac_compile) 2>conftest.er1
5734
grep -v '^ *+' conftest.er1 >conftest.err
5736
cat conftest.err >&5
5737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738
(exit $ac_status); } &&
5739
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744
(exit $ac_status); }; } &&
5745
{ ac_try='test -s conftest.$ac_objext'
5746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750
(exit $ac_status); }; }; then
5751
ac_cv_type_ptrdiff_t=yes
5753
echo "$as_me: failed program was:" >&5
5754
sed 's/^/| /' conftest.$ac_ext >&5
5756
ac_cv_type_ptrdiff_t=no
5758
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5760
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
5761
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
5762
if test $ac_cv_type_ptrdiff_t = yes; then
5764
cat >>confdefs.h <<_ACEOF
5765
#define HAVE_PTRDIFF_T 1
5771
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5772
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5773
if test "${ac_cv_c_const+set}" = set; then
5774
echo $ECHO_N "(cached) $ECHO_C" >&6
5776
cat >conftest.$ac_ext <<_ACEOF
5779
cat confdefs.h >>conftest.$ac_ext
5780
cat >>conftest.$ac_ext <<_ACEOF
5781
/* end confdefs.h. */
5786
/* FIXME: Include the comments suggested by Paul. */
5788
/* Ultrix mips cc rejects this. */
5789
typedef int charset[2];
5791
/* SunOS 4.1.1 cc rejects this. */
5792
char const *const *ccp;
5794
/* NEC SVR4.0.2 mips cc rejects this. */
5795
struct point {int x, y;};
5796
static struct point const zero = {0,0};
5797
/* AIX XL C 1.02.0.0 rejects this.
5798
It does not let you subtract one const X* pointer from another in
5799
an arm of an if-expression whose if-part is not a constant
5801
const char *g = "string";
5802
ccp = &g + (g ? g-g : 0);
5803
/* HPUX 7.0 cc rejects these. */
5806
ccp = (char const *const *) p;
5807
{ /* SCO 3.2v4 cc rejects this. */
5809
char const *s = 0 ? (char *) 0 : (char const *) 0;
5813
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5815
const int *foo = &x[0];
5818
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5819
typedef const int *iptr;
5823
{ /* AIX XL C 1.02.0.0 rejects this saying
5824
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5825
struct s { int j; const int *ap[3]; };
5826
struct s *b; b->j = 5;
5828
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5837
rm -f conftest.$ac_objext
5838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839
(eval $ac_compile) 2>conftest.er1
5841
grep -v '^ *+' conftest.er1 >conftest.err
5843
cat conftest.err >&5
5844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845
(exit $ac_status); } &&
5846
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851
(exit $ac_status); }; } &&
5852
{ ac_try='test -s conftest.$ac_objext'
5853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857
(exit $ac_status); }; }; then
5860
echo "$as_me: failed program was:" >&5
5861
sed 's/^/| /' conftest.$ac_ext >&5
5865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5867
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5868
echo "${ECHO_T}$ac_cv_c_const" >&6
5869
if test $ac_cv_c_const = no; then
5871
cat >>confdefs.h <<\_ACEOF
5877
echo "$as_me:$LINENO: checking for inline" >&5
5878
echo $ECHO_N "checking for inline... $ECHO_C" >&6
5879
if test "${ac_cv_c_inline+set}" = set; then
5880
echo $ECHO_N "(cached) $ECHO_C" >&6
5883
for ac_kw in inline __inline__ __inline; do
5884
cat >conftest.$ac_ext <<_ACEOF
5887
cat confdefs.h >>conftest.$ac_ext
5888
cat >>conftest.$ac_ext <<_ACEOF
5889
/* end confdefs.h. */
5892
static $ac_kw foo_t static_foo () {return 0; }
5893
$ac_kw foo_t foo () {return 0; }
5897
rm -f conftest.$ac_objext
5898
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899
(eval $ac_compile) 2>conftest.er1
5901
grep -v '^ *+' conftest.er1 >conftest.err
5903
cat conftest.err >&5
5904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905
(exit $ac_status); } &&
5906
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5907
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911
(exit $ac_status); }; } &&
5912
{ ac_try='test -s conftest.$ac_objext'
5913
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917
(exit $ac_status); }; }; then
5918
ac_cv_c_inline=$ac_kw; break
5920
echo "$as_me: failed program was:" >&5
5921
sed 's/^/| /' conftest.$ac_ext >&5
5924
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5929
echo "${ECHO_T}$ac_cv_c_inline" >&6
5932
case $ac_cv_c_inline in
5935
case $ac_cv_c_inline in
5937
*) ac_val=$ac_cv_c_inline;;
5939
cat >>confdefs.h <<_ACEOF
5941
#define inline $ac_val
5948
for ac_header in stdlib.h
5950
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952
echo "$as_me:$LINENO: checking for $ac_header" >&5
5953
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5954
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5955
echo $ECHO_N "(cached) $ECHO_C" >&6
5957
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5958
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5960
# Is the header compilable?
5961
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5962
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5963
cat >conftest.$ac_ext <<_ACEOF
5966
cat confdefs.h >>conftest.$ac_ext
5967
cat >>conftest.$ac_ext <<_ACEOF
5968
/* end confdefs.h. */
5969
$ac_includes_default
5970
#include <$ac_header>
5972
rm -f conftest.$ac_objext
5973
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974
(eval $ac_compile) 2>conftest.er1
5976
grep -v '^ *+' conftest.er1 >conftest.err
5978
cat conftest.err >&5
5979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980
(exit $ac_status); } &&
5981
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5982
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986
(exit $ac_status); }; } &&
5987
{ ac_try='test -s conftest.$ac_objext'
5988
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992
(exit $ac_status); }; }; then
5993
ac_header_compiler=yes
5995
echo "$as_me: failed program was:" >&5
5996
sed 's/^/| /' conftest.$ac_ext >&5
5998
ac_header_compiler=no
6000
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6002
echo "${ECHO_T}$ac_header_compiler" >&6
6004
# Is the header present?
6005
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6006
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6007
cat >conftest.$ac_ext <<_ACEOF
6010
cat confdefs.h >>conftest.$ac_ext
6011
cat >>conftest.$ac_ext <<_ACEOF
6012
/* end confdefs.h. */
6013
#include <$ac_header>
6015
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6018
grep -v '^ *+' conftest.er1 >conftest.err
6020
cat conftest.err >&5
6021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022
(exit $ac_status); } >/dev/null; then
6023
if test -s conftest.err; then
6024
ac_cpp_err=$ac_c_preproc_warn_flag
6025
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6032
if test -z "$ac_cpp_err"; then
6033
ac_header_preproc=yes
6035
echo "$as_me: failed program was:" >&5
6036
sed 's/^/| /' conftest.$ac_ext >&5
6038
ac_header_preproc=no
6040
rm -f conftest.err conftest.$ac_ext
6041
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6042
echo "${ECHO_T}$ac_header_preproc" >&6
6044
# So? What about this header?
6045
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6047
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6048
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6049
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6050
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6051
ac_header_preproc=yes
6054
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6055
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6056
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6057
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6058
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6059
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6060
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6061
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6062
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6063
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6064
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6065
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6068
## ----------------------------------- ##
6069
## Report this to the crypto++ lists. ##
6070
## ----------------------------------- ##
6073
sed "s/^/$as_me: WARNING: /" >&2
6076
echo "$as_me:$LINENO: checking for $ac_header" >&5
6077
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6078
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6079
echo $ECHO_N "(cached) $ECHO_C" >&6
6081
eval "$as_ac_Header=\$ac_header_preproc"
6083
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6084
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6087
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6088
cat >>confdefs.h <<_ACEOF
6089
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6096
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6097
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6098
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6099
echo $ECHO_N "(cached) $ECHO_C" >&6
6101
if test "$cross_compiling" = yes; then
6102
ac_cv_func_malloc_0_nonnull=no
6104
cat >conftest.$ac_ext <<_ACEOF
6107
cat confdefs.h >>conftest.$ac_ext
6108
cat >>conftest.$ac_ext <<_ACEOF
6109
/* end confdefs.h. */
6110
#if STDC_HEADERS || HAVE_STDLIB_H
6111
# include <stdlib.h>
6119
exit (malloc (0) ? 0 : 1);
6124
rm -f conftest$ac_exeext
6125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126
(eval $ac_link) 2>&5
6128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134
(exit $ac_status); }; }; then
6135
ac_cv_func_malloc_0_nonnull=yes
6137
echo "$as_me: program exited with status $ac_status" >&5
6138
echo "$as_me: failed program was:" >&5
6139
sed 's/^/| /' conftest.$ac_ext >&5
6142
ac_cv_func_malloc_0_nonnull=no
6144
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6147
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6148
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6149
if test $ac_cv_func_malloc_0_nonnull = yes; then
6151
cat >>confdefs.h <<\_ACEOF
6152
#define HAVE_MALLOC 1
6156
cat >>confdefs.h <<\_ACEOF
6157
#define HAVE_MALLOC 0
6161
"malloc.$ac_objext" | \
6162
*" malloc.$ac_objext" | \
6163
"malloc.$ac_objext "* | \
6164
*" malloc.$ac_objext "* ) ;;
6165
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6169
cat >>confdefs.h <<\_ACEOF
6170
#define malloc rpl_malloc
6177
echo "$as_me:$LINENO: checking for working memcmp" >&5
6178
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6179
if test "${ac_cv_func_memcmp_working+set}" = set; then
6180
echo $ECHO_N "(cached) $ECHO_C" >&6
6182
if test "$cross_compiling" = yes; then
6183
ac_cv_func_memcmp_working=no
6185
cat >conftest.$ac_ext <<_ACEOF
6188
cat confdefs.h >>conftest.$ac_ext
6189
cat >>conftest.$ac_ext <<_ACEOF
6190
/* end confdefs.h. */
6191
$ac_includes_default
6196
/* Some versions of memcmp are not 8-bit clean. */
6197
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6198
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6201
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6202
or more and with at least one buffer not starting on a 4-byte boundary.
6203
William Lewis provided this test program. */
6208
for (i = 0; i < 4; i++)
6212
strcpy (a, "--------01111111");
6213
strcpy (b, "--------10000000");
6214
if (memcmp (a, b, 16) >= 0)
6224
rm -f conftest$ac_exeext
6225
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226
(eval $ac_link) 2>&5
6228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234
(exit $ac_status); }; }; then
6235
ac_cv_func_memcmp_working=yes
6237
echo "$as_me: program exited with status $ac_status" >&5
6238
echo "$as_me: failed program was:" >&5
6239
sed 's/^/| /' conftest.$ac_ext >&5
6242
ac_cv_func_memcmp_working=no
6244
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6247
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6248
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
6249
test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6250
"memcmp.$ac_objext" | \
6251
*" memcmp.$ac_objext" | \
6252
"memcmp.$ac_objext "* | \
6253
*" memcmp.$ac_objext "* ) ;;
6254
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
6260
for ac_header in sys/select.h sys/socket.h
6262
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6263
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6264
echo "$as_me:$LINENO: checking for $ac_header" >&5
6265
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6266
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6267
echo $ECHO_N "(cached) $ECHO_C" >&6
6269
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6272
# Is the header compilable?
6273
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6274
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6275
cat >conftest.$ac_ext <<_ACEOF
6278
cat confdefs.h >>conftest.$ac_ext
6279
cat >>conftest.$ac_ext <<_ACEOF
6280
/* end confdefs.h. */
6281
$ac_includes_default
6282
#include <$ac_header>
6284
rm -f conftest.$ac_objext
6285
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6286
(eval $ac_compile) 2>conftest.er1
6288
grep -v '^ *+' conftest.er1 >conftest.err
6290
cat conftest.err >&5
6291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292
(exit $ac_status); } &&
6293
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298
(exit $ac_status); }; } &&
6299
{ ac_try='test -s conftest.$ac_objext'
6300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304
(exit $ac_status); }; }; then
6305
ac_header_compiler=yes
6307
echo "$as_me: failed program was:" >&5
6308
sed 's/^/| /' conftest.$ac_ext >&5
6310
ac_header_compiler=no
6312
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6313
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6314
echo "${ECHO_T}$ac_header_compiler" >&6
6316
# Is the header present?
6317
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6318
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6319
cat >conftest.$ac_ext <<_ACEOF
6322
cat confdefs.h >>conftest.$ac_ext
6323
cat >>conftest.$ac_ext <<_ACEOF
6324
/* end confdefs.h. */
6325
#include <$ac_header>
6327
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6328
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6330
grep -v '^ *+' conftest.er1 >conftest.err
6332
cat conftest.err >&5
6333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334
(exit $ac_status); } >/dev/null; then
6335
if test -s conftest.err; then
6336
ac_cpp_err=$ac_c_preproc_warn_flag
6337
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6344
if test -z "$ac_cpp_err"; then
6345
ac_header_preproc=yes
6347
echo "$as_me: failed program was:" >&5
6348
sed 's/^/| /' conftest.$ac_ext >&5
6350
ac_header_preproc=no
6352
rm -f conftest.err conftest.$ac_ext
6353
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6354
echo "${ECHO_T}$ac_header_preproc" >&6
6356
# So? What about this header?
6357
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6359
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6360
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6361
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6362
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6363
ac_header_preproc=yes
6366
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6367
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6368
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6369
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6370
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6371
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6372
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6373
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6374
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6375
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6376
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6377
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6380
## ----------------------------------- ##
6381
## Report this to the crypto++ lists. ##
6382
## ----------------------------------- ##
6385
sed "s/^/$as_me: WARNING: /" >&2
6388
echo "$as_me:$LINENO: checking for $ac_header" >&5
6389
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391
echo $ECHO_N "(cached) $ECHO_C" >&6
6393
eval "$as_ac_Header=\$ac_header_preproc"
6395
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6396
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6399
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6400
cat >>confdefs.h <<_ACEOF
6401
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6408
echo "$as_me:$LINENO: checking types of arguments for select" >&5
6409
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
6410
if test "${ac_cv_func_select_args+set}" = set; then
6411
echo $ECHO_N "(cached) $ECHO_C" >&6
6413
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
6414
for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
6415
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
6416
cat >conftest.$ac_ext <<_ACEOF
6419
cat confdefs.h >>conftest.$ac_ext
6420
cat >>conftest.$ac_ext <<_ACEOF
6421
/* end confdefs.h. */
6422
$ac_includes_default
6423
#if HAVE_SYS_SELECT_H
6424
# include <sys/select.h>
6426
#if HAVE_SYS_SOCKET_H
6427
# include <sys/socket.h>
6433
extern int select ($ac_arg1,
6434
$ac_arg234, $ac_arg234, $ac_arg234,
6440
rm -f conftest.$ac_objext
6441
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6442
(eval $ac_compile) 2>conftest.er1
6444
grep -v '^ *+' conftest.er1 >conftest.err
6446
cat conftest.err >&5
6447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448
(exit $ac_status); } &&
6449
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6450
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454
(exit $ac_status); }; } &&
6455
{ ac_try='test -s conftest.$ac_objext'
6456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460
(exit $ac_status); }; }; then
6461
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6463
echo "$as_me: failed program was:" >&5
6464
sed 's/^/| /' conftest.$ac_ext >&5
6467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6471
# Provide a safe default value.
6472
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
6475
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
6476
echo "${ECHO_T}$ac_cv_func_select_args" >&6
6477
ac_save_IFS=$IFS; IFS=','
6478
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6482
cat >>confdefs.h <<_ACEOF
6483
#define SELECT_TYPE_ARG1 $1
6487
cat >>confdefs.h <<_ACEOF
6488
#define SELECT_TYPE_ARG234 ($2)
6492
cat >>confdefs.h <<_ACEOF
6493
#define SELECT_TYPE_ARG5 ($3)
6498
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6499
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6500
if test "${ac_cv_header_stdbool_h+set}" = set; then
6501
echo $ECHO_N "(cached) $ECHO_C" >&6
6503
cat >conftest.$ac_ext <<_ACEOF
6506
cat confdefs.h >>conftest.$ac_ext
6507
cat >>conftest.$ac_ext <<_ACEOF
6508
/* end confdefs.h. */
6510
#include <stdbool.h>
6512
# error bool is not defined
6515
# error false is not defined
6518
# error false is not 0
6521
# error true is not defined
6524
# error true is not 1
6526
#ifndef __bool_true_false_are_defined
6527
# error __bool_true_false_are_defined is not defined
6530
struct s { _Bool s: 1; _Bool t; } s;
6532
char a[true == 1 ? 1 : -1];
6533
char b[false == 0 ? 1 : -1];
6534
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6535
char d[(bool) -0.5 == true ? 1 : -1];
6537
char f[(_Bool) -0.0 == false ? 1 : -1];
6539
char h[sizeof (_Bool)];
6545
return !a + !b + !c + !d + !e + !f + !g + !h + !i;
6550
rm -f conftest.$ac_objext
6551
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552
(eval $ac_compile) 2>conftest.er1
6554
grep -v '^ *+' conftest.er1 >conftest.err
6556
cat conftest.err >&5
6557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558
(exit $ac_status); } &&
6559
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564
(exit $ac_status); }; } &&
6565
{ ac_try='test -s conftest.$ac_objext'
6566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570
(exit $ac_status); }; }; then
6571
ac_cv_header_stdbool_h=yes
6573
echo "$as_me: failed program was:" >&5
6574
sed 's/^/| /' conftest.$ac_ext >&5
6576
ac_cv_header_stdbool_h=no
6578
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6581
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6582
echo "$as_me:$LINENO: checking for _Bool" >&5
6583
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6584
if test "${ac_cv_type__Bool+set}" = set; then
6585
echo $ECHO_N "(cached) $ECHO_C" >&6
6587
cat >conftest.$ac_ext <<_ACEOF
6590
cat confdefs.h >>conftest.$ac_ext
6591
cat >>conftest.$ac_ext <<_ACEOF
6592
/* end confdefs.h. */
6593
$ac_includes_default
6605
rm -f conftest.$ac_objext
6606
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607
(eval $ac_compile) 2>conftest.er1
6609
grep -v '^ *+' conftest.er1 >conftest.err
6611
cat conftest.err >&5
6612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613
(exit $ac_status); } &&
6614
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619
(exit $ac_status); }; } &&
6620
{ ac_try='test -s conftest.$ac_objext'
6621
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625
(exit $ac_status); }; }; then
6626
ac_cv_type__Bool=yes
6628
echo "$as_me: failed program was:" >&5
6629
sed 's/^/| /' conftest.$ac_ext >&5
6633
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6636
echo "${ECHO_T}$ac_cv_type__Bool" >&6
6637
if test $ac_cv_type__Bool = yes; then
6639
cat >>confdefs.h <<_ACEOF
6640
#define HAVE__BOOL 1
6646
if test $ac_cv_header_stdbool_h = yes; then
6648
cat >>confdefs.h <<\_ACEOF
6649
#define HAVE_STDBOOL_H 1
6654
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6655
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6656
if test "${ac_cv_header_time+set}" = set; then
6657
echo $ECHO_N "(cached) $ECHO_C" >&6
6659
cat >conftest.$ac_ext <<_ACEOF
6662
cat confdefs.h >>conftest.$ac_ext
6663
cat >>conftest.$ac_ext <<_ACEOF
6664
/* end confdefs.h. */
6665
#include <sys/types.h>
6666
#include <sys/time.h>
6672
if ((struct tm *) 0)
6678
rm -f conftest.$ac_objext
6679
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680
(eval $ac_compile) 2>conftest.er1
6682
grep -v '^ *+' conftest.er1 >conftest.err
6684
cat conftest.err >&5
6685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686
(exit $ac_status); } &&
6687
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692
(exit $ac_status); }; } &&
6693
{ ac_try='test -s conftest.$ac_objext'
6694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698
(exit $ac_status); }; }; then
6699
ac_cv_header_time=yes
6701
echo "$as_me: failed program was:" >&5
6702
sed 's/^/| /' conftest.$ac_ext >&5
6704
ac_cv_header_time=no
6706
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6708
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6709
echo "${ECHO_T}$ac_cv_header_time" >&6
6710
if test $ac_cv_header_time = yes; then
6712
cat >>confdefs.h <<\_ACEOF
6713
#define TIME_WITH_SYS_TIME 1
6719
if test $ac_cv_c_compiler_gnu = yes; then
6720
echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6721
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6722
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6723
echo $ECHO_N "(cached) $ECHO_C" >&6
6725
ac_pattern="Autoconf.*'x'"
6726
cat >conftest.$ac_ext <<_ACEOF
6729
cat confdefs.h >>conftest.$ac_ext
6730
cat >>conftest.$ac_ext <<_ACEOF
6731
/* end confdefs.h. */
6735
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736
$EGREP "$ac_pattern" >/dev/null 2>&1; then
6737
ac_cv_prog_gcc_traditional=yes
6739
ac_cv_prog_gcc_traditional=no
6744
if test $ac_cv_prog_gcc_traditional = no; then
6745
cat >conftest.$ac_ext <<_ACEOF
6748
cat confdefs.h >>conftest.$ac_ext
6749
cat >>conftest.$ac_ext <<_ACEOF
6750
/* end confdefs.h. */
6754
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755
$EGREP "$ac_pattern" >/dev/null 2>&1; then
6756
ac_cv_prog_gcc_traditional=yes
6762
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6763
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6764
if test $ac_cv_prog_gcc_traditional = yes; then
6765
CC="$CC -traditional"
6770
if test -n "$ac_tool_prefix"; then
6771
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6772
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6773
echo "$as_me:$LINENO: checking for $ac_word" >&5
6774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6775
if test "${ac_cv_prog_RANLIB+set}" = set; then
6776
echo $ECHO_N "(cached) $ECHO_C" >&6
6778
if test -n "$RANLIB"; then
6779
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785
test -z "$as_dir" && as_dir=.
6786
for ac_exec_ext in '' $ac_executable_extensions; do
6787
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6788
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6789
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797
RANLIB=$ac_cv_prog_RANLIB
6798
if test -n "$RANLIB"; then
6799
echo "$as_me:$LINENO: result: $RANLIB" >&5
6800
echo "${ECHO_T}$RANLIB" >&6
6802
echo "$as_me:$LINENO: result: no" >&5
6803
echo "${ECHO_T}no" >&6
6807
if test -z "$ac_cv_prog_RANLIB"; then
6808
ac_ct_RANLIB=$RANLIB
6809
# Extract the first word of "ranlib", so it can be a program name with args.
6810
set dummy ranlib; ac_word=$2
6811
echo "$as_me:$LINENO: checking for $ac_word" >&5
6812
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6813
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6814
echo $ECHO_N "(cached) $ECHO_C" >&6
6816
if test -n "$ac_ct_RANLIB"; then
6817
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823
test -z "$as_dir" && as_dir=.
6824
for ac_exec_ext in '' $ac_executable_extensions; do
6825
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826
ac_cv_prog_ac_ct_RANLIB="ranlib"
6827
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6836
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6837
if test -n "$ac_ct_RANLIB"; then
6838
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6839
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6841
echo "$as_me:$LINENO: result: no" >&5
6842
echo "${ECHO_T}no" >&6
6845
RANLIB=$ac_ct_RANLIB
6847
RANLIB="$ac_cv_prog_RANLIB"
6850
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6851
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6852
if test "${ac_cv_type_signal+set}" = set; then
6853
echo $ECHO_N "(cached) $ECHO_C" >&6
6855
cat >conftest.$ac_ext <<_ACEOF
6858
cat confdefs.h >>conftest.$ac_ext
6859
cat >>conftest.$ac_ext <<_ACEOF
6860
/* end confdefs.h. */
6861
#include <sys/types.h>
6867
extern "C" void (*signal (int, void (*)(int)))(int);
6869
void (*signal ()) ();
6880
rm -f conftest.$ac_objext
6881
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882
(eval $ac_compile) 2>conftest.er1
6884
grep -v '^ *+' conftest.er1 >conftest.err
6886
cat conftest.err >&5
6887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888
(exit $ac_status); } &&
6889
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6890
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894
(exit $ac_status); }; } &&
6895
{ ac_try='test -s conftest.$ac_objext'
6896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900
(exit $ac_status); }; }; then
6901
ac_cv_type_signal=void
6903
echo "$as_me: failed program was:" >&5
6904
sed 's/^/| /' conftest.$ac_ext >&5
6906
ac_cv_type_signal=int
6908
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6910
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6911
echo "${ECHO_T}$ac_cv_type_signal" >&6
6913
cat >>confdefs.h <<_ACEOF
6914
#define RETSIGTYPE $ac_cv_type_signal
6918
echo "$as_me:$LINENO: checking for size_t" >&5
6919
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6920
if test "${ac_cv_type_size_t+set}" = set; then
6921
echo $ECHO_N "(cached) $ECHO_C" >&6
6923
cat >conftest.$ac_ext <<_ACEOF
6926
cat confdefs.h >>conftest.$ac_ext
6927
cat >>conftest.$ac_ext <<_ACEOF
6928
/* end confdefs.h. */
6929
$ac_includes_default
6935
if (sizeof (size_t))
6941
rm -f conftest.$ac_objext
6942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943
(eval $ac_compile) 2>conftest.er1
6945
grep -v '^ *+' conftest.er1 >conftest.err
6947
cat conftest.err >&5
6948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949
(exit $ac_status); } &&
6950
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955
(exit $ac_status); }; } &&
6956
{ ac_try='test -s conftest.$ac_objext'
6957
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961
(exit $ac_status); }; }; then
6962
ac_cv_type_size_t=yes
6964
echo "$as_me: failed program was:" >&5
6965
sed 's/^/| /' conftest.$ac_ext >&5
6967
ac_cv_type_size_t=no
6969
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6971
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6972
echo "${ECHO_T}$ac_cv_type_size_t" >&6
6973
if test $ac_cv_type_size_t = yes; then
6977
cat >>confdefs.h <<_ACEOF
6978
#define size_t unsigned
6985
ac_cpp='$CXXCPP $CPPFLAGS'
6986
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6989
if test -n "$ac_tool_prefix"; then
6990
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6992
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6993
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6994
echo "$as_me:$LINENO: checking for $ac_word" >&5
6995
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6996
if test "${ac_cv_prog_CXX+set}" = set; then
6997
echo $ECHO_N "(cached) $ECHO_C" >&6
6999
if test -n "$CXX"; then
7000
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7002
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006
test -z "$as_dir" && as_dir=.
7007
for ac_exec_ext in '' $ac_executable_extensions; do
7008
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7010
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019
if test -n "$CXX"; then
7020
echo "$as_me:$LINENO: result: $CXX" >&5
7021
echo "${ECHO_T}$CXX" >&6
7023
echo "$as_me:$LINENO: result: no" >&5
7024
echo "${ECHO_T}no" >&6
7027
test -n "$CXX" && break
7030
if test -z "$CXX"; then
7032
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7034
# Extract the first word of "$ac_prog", so it can be a program name with args.
7035
set dummy $ac_prog; ac_word=$2
7036
echo "$as_me:$LINENO: checking for $ac_word" >&5
7037
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7038
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7039
echo $ECHO_N "(cached) $ECHO_C" >&6
7041
if test -n "$ac_ct_CXX"; then
7042
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048
test -z "$as_dir" && as_dir=.
7049
for ac_exec_ext in '' $ac_executable_extensions; do
7050
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051
ac_cv_prog_ac_ct_CXX="$ac_prog"
7052
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7061
if test -n "$ac_ct_CXX"; then
7062
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7063
echo "${ECHO_T}$ac_ct_CXX" >&6
7065
echo "$as_me:$LINENO: result: no" >&5
7066
echo "${ECHO_T}no" >&6
7069
test -n "$ac_ct_CXX" && break
7071
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7077
# Provide some information about the compiler.
7078
echo "$as_me:$LINENO:" \
7079
"checking for C++ compiler version" >&5
7080
ac_compiler=`set X $ac_compile; echo $2`
7081
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7082
(eval $ac_compiler --version </dev/null >&5) 2>&5
7084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085
(exit $ac_status); }
7086
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7087
(eval $ac_compiler -v </dev/null >&5) 2>&5
7089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090
(exit $ac_status); }
7091
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7092
(eval $ac_compiler -V </dev/null >&5) 2>&5
7094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095
(exit $ac_status); }
7097
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7098
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7099
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7100
echo $ECHO_N "(cached) $ECHO_C" >&6
7102
cat >conftest.$ac_ext <<_ACEOF
7105
cat confdefs.h >>conftest.$ac_ext
7106
cat >>conftest.$ac_ext <<_ACEOF
7107
/* end confdefs.h. */
7120
rm -f conftest.$ac_objext
7121
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122
(eval $ac_compile) 2>conftest.er1
7124
grep -v '^ *+' conftest.er1 >conftest.err
7126
cat conftest.err >&5
7127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128
(exit $ac_status); } &&
7129
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134
(exit $ac_status); }; } &&
7135
{ ac_try='test -s conftest.$ac_objext'
7136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140
(exit $ac_status); }; }; then
7143
echo "$as_me: failed program was:" >&5
7144
sed 's/^/| /' conftest.$ac_ext >&5
7148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7149
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7152
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7153
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7154
GXX=`test $ac_compiler_gnu = yes && echo yes`
7155
ac_test_CXXFLAGS=${CXXFLAGS+set}
7156
ac_save_CXXFLAGS=$CXXFLAGS
7158
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7159
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7160
if test "${ac_cv_prog_cxx_g+set}" = set; then
7161
echo $ECHO_N "(cached) $ECHO_C" >&6
7163
cat >conftest.$ac_ext <<_ACEOF
7166
cat confdefs.h >>conftest.$ac_ext
7167
cat >>conftest.$ac_ext <<_ACEOF
7168
/* end confdefs.h. */
7178
rm -f conftest.$ac_objext
7179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180
(eval $ac_compile) 2>conftest.er1
7182
grep -v '^ *+' conftest.er1 >conftest.err
7184
cat conftest.err >&5
7185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186
(exit $ac_status); } &&
7187
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192
(exit $ac_status); }; } &&
7193
{ ac_try='test -s conftest.$ac_objext'
7194
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198
(exit $ac_status); }; }; then
7199
ac_cv_prog_cxx_g=yes
7201
echo "$as_me: failed program was:" >&5
7202
sed 's/^/| /' conftest.$ac_ext >&5
7206
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7208
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7209
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7210
if test "$ac_test_CXXFLAGS" = set; then
7211
CXXFLAGS=$ac_save_CXXFLAGS
7212
elif test $ac_cv_prog_cxx_g = yes; then
7213
if test "$GXX" = yes; then
7219
if test "$GXX" = yes; then
7225
for ac_declaration in \
7227
'extern "C" void std::exit (int) throw (); using std::exit;' \
7228
'extern "C" void std::exit (int); using std::exit;' \
7229
'extern "C" void exit (int) throw ();' \
7230
'extern "C" void exit (int);' \
7233
cat >conftest.$ac_ext <<_ACEOF
7236
cat confdefs.h >>conftest.$ac_ext
7237
cat >>conftest.$ac_ext <<_ACEOF
7238
/* end confdefs.h. */
7249
rm -f conftest.$ac_objext
7250
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7251
(eval $ac_compile) 2>conftest.er1
7253
grep -v '^ *+' conftest.er1 >conftest.err
7255
cat conftest.err >&5
7256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257
(exit $ac_status); } &&
7258
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7259
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263
(exit $ac_status); }; } &&
7264
{ ac_try='test -s conftest.$ac_objext'
7265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269
(exit $ac_status); }; }; then
7272
echo "$as_me: failed program was:" >&5
7273
sed 's/^/| /' conftest.$ac_ext >&5
7277
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278
cat >conftest.$ac_ext <<_ACEOF
7281
cat confdefs.h >>conftest.$ac_ext
7282
cat >>conftest.$ac_ext <<_ACEOF
7283
/* end confdefs.h. */
7293
rm -f conftest.$ac_objext
7294
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7295
(eval $ac_compile) 2>conftest.er1
7297
grep -v '^ *+' conftest.er1 >conftest.err
7299
cat conftest.err >&5
7300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301
(exit $ac_status); } &&
7302
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307
(exit $ac_status); }; } &&
7308
{ ac_try='test -s conftest.$ac_objext'
7309
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313
(exit $ac_status); }; }; then
7316
echo "$as_me: failed program was:" >&5
7317
sed 's/^/| /' conftest.$ac_ext >&5
7320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7323
if test -n "$ac_declaration"; then
7324
echo '#ifdef __cplusplus' >>confdefs.h
7325
echo $ac_declaration >>confdefs.h
7326
echo '#endif' >>confdefs.h
7330
ac_cpp='$CPP $CPPFLAGS'
7331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
depcc="$CXX" am_compiler_list=
7337
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7338
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7339
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7340
echo $ECHO_N "(cached) $ECHO_C" >&6
7342
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7343
# We make a subdir and do the tests there. Otherwise we can end up
7344
# making bogus files that we don't know about and never remove. For
7345
# instance it was reported that on HP-UX the gcc test will end up
7346
# making a dummy file named `D' -- because `-MD' means `put the output
7349
# Copy depcomp to subdir because otherwise we won't find it if we're
7350
# using a relative directory.
7351
cp "$am_depcomp" conftest.dir
7353
# We will build objects and dependencies in a subdirectory because
7354
# it helps to detect inapplicable dependency modes. For instance
7355
# both Tru64's cc and ICC support -MD to output dependencies as a
7356
# side effect of compilation, but ICC will put the dependencies in
7357
# the current directory while Tru64 will put them in the object
7361
am_cv_CXX_dependencies_compiler_type=none
7362
if test "$am_compiler_list" = ""; then
7363
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7365
for depmode in $am_compiler_list; do
7366
# Setup a source with many dependencies, because some compilers
7367
# like to wrap large dependency lists on column 80 (with \), and
7368
# we should not choose a depcomp mode which is confused by this.
7370
# We need to recreate these files for each test, as the compiler may
7371
# overwrite some of them when testing with obscure command lines.
7372
# This happens at least with the AIX C compiler.
7374
for i in 1 2 3 4 5 6; do
7375
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7378
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7382
# after this tag, mechanisms are not by side-effect, so they'll
7383
# only be used when explicitly requested
7384
if test "x$enable_dependency_tracking" = xyes; then
7392
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7393
# mode. It turns out that the SunPro C++ compiler does not properly
7394
# handle `-M -o', and we need to detect this.
7395
if depmode=$depmode \
7396
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7397
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7398
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7399
>/dev/null 2>conftest.err &&
7400
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7401
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7402
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7403
# icc doesn't choke on unknown options, it will just issue warnings
7404
# (even with -Werror). So we grep stderr for any message
7405
# that says an option was ignored.
7406
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
7407
am_cv_CXX_dependencies_compiler_type=$depmode
7416
am_cv_CXX_dependencies_compiler_type=none
7420
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7421
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7422
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7427
test "x$enable_dependency_tracking" != xno \
7428
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7429
am__fastdepCXX_TRUE=
7430
am__fastdepCXX_FALSE='#'
7432
am__fastdepCXX_TRUE='#'
7433
am__fastdepCXX_FALSE=
7437
# Check whether --enable-shared or --disable-shared was given.
7438
if test "${enable_shared+set}" = set; then
7439
enableval="$enable_shared"
7440
p=${PACKAGE-default}
7442
yes) enable_shared=yes ;;
7443
no) enable_shared=no ;;
7446
# Look at the argument we got. We use all the common list separators.
7447
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448
for pkg in $enableval; do
7450
if test "X$pkg" = "X$p"; then
7461
# Check whether --enable-static or --disable-static was given.
7462
if test "${enable_static+set}" = set; then
7463
enableval="$enable_static"
7464
p=${PACKAGE-default}
7466
yes) enable_static=yes ;;
7467
no) enable_static=no ;;
7470
# Look at the argument we got. We use all the common list separators.
7471
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7472
for pkg in $enableval; do
7474
if test "X$pkg" = "X$p"; then
7485
# Check whether --enable-fast-install or --disable-fast-install was given.
7486
if test "${enable_fast_install+set}" = set; then
7487
enableval="$enable_fast_install"
7488
p=${PACKAGE-default}
7490
yes) enable_fast_install=yes ;;
7491
no) enable_fast_install=no ;;
7493
enable_fast_install=no
7494
# Look at the argument we got. We use all the common list separators.
7495
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7496
for pkg in $enableval; do
7498
if test "X$pkg" = "X$p"; then
7499
enable_fast_install=yes
7506
enable_fast_install=yes
7509
# Make sure we can run config.sub.
7510
$ac_config_sub sun4 >/dev/null 2>&1 ||
7511
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7512
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7513
{ (exit 1); exit 1; }; }
7515
echo "$as_me:$LINENO: checking build system type" >&5
7516
echo $ECHO_N "checking build system type... $ECHO_C" >&6
7517
if test "${ac_cv_build+set}" = set; then
7518
echo $ECHO_N "(cached) $ECHO_C" >&6
7520
ac_cv_build_alias=$build_alias
7521
test -z "$ac_cv_build_alias" &&
7522
ac_cv_build_alias=`$ac_config_guess`
7523
test -z "$ac_cv_build_alias" &&
7524
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7525
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7526
{ (exit 1); exit 1; }; }
7527
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7528
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
7529
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
7530
{ (exit 1); exit 1; }; }
7533
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7534
echo "${ECHO_T}$ac_cv_build" >&6
7536
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7537
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7538
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7541
echo "$as_me:$LINENO: checking host system type" >&5
7542
echo $ECHO_N "checking host system type... $ECHO_C" >&6
7543
if test "${ac_cv_host+set}" = set; then
7544
echo $ECHO_N "(cached) $ECHO_C" >&6
7546
ac_cv_host_alias=$host_alias
7547
test -z "$ac_cv_host_alias" &&
7548
ac_cv_host_alias=$ac_cv_build_alias
7549
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7550
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7551
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7552
{ (exit 1); exit 1; }; }
7555
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7556
echo "${ECHO_T}$ac_cv_host" >&6
7558
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7559
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7560
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7563
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7564
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7565
if test "${lt_cv_path_SED+set}" = set; then
7566
echo $ECHO_N "(cached) $ECHO_C" >&6
7568
# Loop through the user's path and test for sed and gsed.
7569
# Then use that list of sed's as ones to test for truncation.
7570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574
test -z "$as_dir" && as_dir=.
7575
for lt_ac_prog in sed gsed; do
7576
for ac_exec_ext in '' $ac_executable_extensions; do
7577
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7578
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7585
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7586
# along with /bin/sed that truncates output.
7587
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7588
test ! -f $lt_ac_sed && break
7589
cat /dev/null > conftest.in
7591
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7592
# Check for GNU sed and select it if it is found.
7593
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7594
lt_cv_path_SED=$lt_ac_sed
7598
cat conftest.in conftest.in >conftest.tmp
7599
mv conftest.tmp conftest.in
7600
cp conftest.in conftest.nl
7602
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7603
cmp -s conftest.out conftest.nl || break
7604
# 10000 chars as input seems more than enough
7605
test $lt_ac_count -gt 10 && break
7606
lt_ac_count=`expr $lt_ac_count + 1`
7607
if test $lt_ac_count -gt $lt_ac_max; then
7608
lt_ac_max=$lt_ac_count
7609
lt_cv_path_SED=$lt_ac_sed
7617
echo "$as_me:$LINENO: result: $SED" >&5
7618
echo "${ECHO_T}$SED" >&6
7621
# Check whether --with-gnu-ld or --without-gnu-ld was given.
7622
if test "${with_gnu_ld+set}" = set; then
7623
withval="$with_gnu_ld"
7624
test "$withval" = no || with_gnu_ld=yes
7629
if test "$GCC" = yes; then
7630
# Check if gcc -print-prog-name=ld gives a path.
7631
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7632
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7635
# gcc leaves a trailing carriage return which upsets mingw
7636
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7638
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7641
# Accept absolute paths.
7643
re_direlt='/[^/][^/]*/\.\./'
7644
# Canonicalize the pathname of ld
7645
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7646
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7647
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7649
test -z "$LD" && LD="$ac_prog"
7652
# If it fails, then pretend we aren't using GCC.
7656
# If it is relative, then search for the first ld in PATH.
7660
elif test "$with_gnu_ld" = yes; then
7661
echo "$as_me:$LINENO: checking for GNU ld" >&5
7662
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7664
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7665
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7667
if test "${lt_cv_path_LD+set}" = set; then
7668
echo $ECHO_N "(cached) $ECHO_C" >&6
7670
if test -z "$LD"; then
7671
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7672
for ac_dir in $PATH; do
7674
test -z "$ac_dir" && ac_dir=.
7675
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7676
lt_cv_path_LD="$ac_dir/$ac_prog"
7677
# Check to see if the program is GNU ld. I'd rather use --version,
7678
# but apparently some GNU ld's only accept -v.
7679
# Break only if it was the GNU/non-GNU ld that we prefer.
7680
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7681
*GNU* | *'with BFD'*)
7682
test "$with_gnu_ld" != no && break
7685
test "$with_gnu_ld" != yes && break
7692
lt_cv_path_LD="$LD" # Let the user override the test with a path.
7697
if test -n "$LD"; then
7698
echo "$as_me:$LINENO: result: $LD" >&5
7699
echo "${ECHO_T}$LD" >&6
7701
echo "$as_me:$LINENO: result: no" >&5
7702
echo "${ECHO_T}no" >&6
7704
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7705
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7706
{ (exit 1); exit 1; }; }
7707
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7708
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7709
if test "${lt_cv_prog_gnu_ld+set}" = set; then
7710
echo $ECHO_N "(cached) $ECHO_C" >&6
7712
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
7713
case `$LD -v 2>&1 </dev/null` in
7714
*GNU* | *'with BFD'*)
7715
lt_cv_prog_gnu_ld=yes
7718
lt_cv_prog_gnu_ld=no
7722
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7723
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7724
with_gnu_ld=$lt_cv_prog_gnu_ld
7727
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7728
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7729
if test "${lt_cv_ld_reload_flag+set}" = set; then
7730
echo $ECHO_N "(cached) $ECHO_C" >&6
7732
lt_cv_ld_reload_flag='-r'
7734
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7735
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7736
reload_flag=$lt_cv_ld_reload_flag
7737
case $reload_flag in
7739
*) reload_flag=" $reload_flag" ;;
7741
reload_cmds='$LD$reload_flag -o $output$reload_objs'
7743
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7744
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7745
if test "${lt_cv_path_NM+set}" = set; then
7746
echo $ECHO_N "(cached) $ECHO_C" >&6
7748
if test -n "$NM"; then
7749
# Let the user override the test.
7752
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7753
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7755
test -z "$ac_dir" && ac_dir=.
7756
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7757
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7758
# Check to see if the nm accepts a BSD-compat flag.
7759
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7760
# nm: unknown option "B" ignored
7761
# Tru64's nm complains that /dev/null is an invalid object file
7762
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7763
*/dev/null* | *'Invalid file or object type'*)
7764
lt_cv_path_NM="$tmp_nm -B"
7768
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7770
lt_cv_path_NM="$tmp_nm -p"
7774
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7775
continue # so that we can try to find one that supports BSD flags
7782
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7785
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7786
echo "${ECHO_T}$lt_cv_path_NM" >&6
7789
echo "$as_me:$LINENO: checking whether ln -s works" >&5
7790
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7792
if test "$LN_S" = "ln -s"; then
7793
echo "$as_me:$LINENO: result: yes" >&5
7794
echo "${ECHO_T}yes" >&6
7796
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7797
echo "${ECHO_T}no, using $LN_S" >&6
7800
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7801
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7802
if test "${lt_cv_deplibs_check_method+set}" = set; then
7803
echo $ECHO_N "(cached) $ECHO_C" >&6
7805
lt_cv_file_magic_cmd='$MAGIC_CMD'
7806
lt_cv_file_magic_test_file=
7807
lt_cv_deplibs_check_method='unknown'
7808
# Need to set the preceding variable on all platforms that support
7809
# interlibrary dependencies.
7810
# 'none' -- dependencies not supported.
7811
# `unknown' -- same as none, but documents that we really don't know.
7812
# 'pass_all' -- all dependencies passed with no checks.
7813
# 'test_compile' -- check by making test program.
7814
# 'file_magic [[regex]]' -- check by looking for files in library path
7815
# which responds to the $file_magic_cmd with a given extended regex.
7816
# If you have `file' or equivalent on your system and you're not sure
7817
# whether `pass_all' will *always* work, you probably want this one.
7821
lt_cv_deplibs_check_method=pass_all
7825
lt_cv_deplibs_check_method=pass_all
7829
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7830
lt_cv_file_magic_cmd='/usr/bin/file -L'
7831
lt_cv_file_magic_test_file=/shlib/libc.so
7835
# func_win32_libid is a shell function defined in ltmain.sh
7836
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7837
lt_cv_file_magic_cmd='func_win32_libid'
7841
# Base MSYS/MinGW do not provide the 'file' command needed by
7842
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
7843
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7844
lt_cv_file_magic_cmd='$OBJDUMP -f'
7847
darwin* | rhapsody*)
7848
lt_cv_deplibs_check_method=pass_all
7851
freebsd* | kfreebsd*-gnu)
7852
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7855
# Not sure whether the presence of OpenBSD here was a mistake.
7856
# Let's accept both of them until this is cleared up.
7857
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7858
lt_cv_file_magic_cmd=/usr/bin/file
7859
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7863
lt_cv_deplibs_check_method=pass_all
7868
lt_cv_deplibs_check_method=pass_all
7871
hpux10.20* | hpux11*)
7872
lt_cv_file_magic_cmd=/usr/bin/file
7875
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7876
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7879
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7880
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7883
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7884
lt_cv_file_magic_test_file=/usr/lib/libc.sl
7889
irix5* | irix6* | nonstopux*)
7891
*-32|*"-32 ") libmagic=32-bit;;
7892
*-n32|*"-n32 ") libmagic=N32;;
7893
*-64|*"-64 ") libmagic=64-bit;;
7894
*) libmagic=never-match;;
7896
lt_cv_deplibs_check_method=pass_all
7899
# This must be Linux ELF.
7901
lt_cv_deplibs_check_method=pass_all
7904
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7905
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7906
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7908
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7913
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7914
lt_cv_file_magic_cmd=/usr/bin/file
7915
lt_cv_file_magic_test_file=/usr/lib/libnls.so
7919
lt_cv_deplibs_check_method=unknown
7923
lt_cv_file_magic_cmd=/usr/bin/file
7924
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7925
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7926
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
7928
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
7932
osf3* | osf4* | osf5*)
7933
lt_cv_deplibs_check_method=pass_all
7937
lt_cv_deplibs_check_method=pass_all
7941
lt_cv_deplibs_check_method=pass_all
7944
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7945
case $host_vendor in
7947
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]'
7948
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7951
lt_cv_deplibs_check_method=pass_all
7954
lt_cv_file_magic_cmd='/bin/file'
7955
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7958
lt_cv_file_magic_cmd='/bin/file'
7959
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7960
lt_cv_file_magic_test_file=/lib/libc.so
7963
lt_cv_deplibs_check_method=pass_all
7968
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
7969
lt_cv_deplibs_check_method=pass_all
7974
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7975
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7976
file_magic_cmd=$lt_cv_file_magic_cmd
7977
deplibs_check_method=$lt_cv_deplibs_check_method
7978
test -z "$deplibs_check_method" && deplibs_check_method=unknown
7983
# If no C compiler was specified, use CC.
7986
# Allow CC to be a program name with arguments.
7989
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7990
if test "${enable_libtool_lock+set}" = set; then
7991
enableval="$enable_libtool_lock"
7994
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7996
# Some flags need to be propagated to the compiler or linker for good
8000
# Find out which ABI we are using.
8001
echo 'int i;' > conftest.$ac_ext
8002
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8003
(eval $ac_compile) 2>&5
8005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006
(exit $ac_status); }; then
8007
case `/usr/bin/file conftest.$ac_objext` in
8019
# Find out which ABI we are using.
8020
echo '#line 8020 "configure"' > conftest.$ac_ext
8021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8022
(eval $ac_compile) 2>&5
8024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025
(exit $ac_status); }; then
8026
if test "$lt_cv_prog_gnu_ld" = yes; then
8027
case `/usr/bin/file conftest.$ac_objext` in
8029
LD="${LD-ld} -melf32bsmip"
8032
LD="${LD-ld} -melf32bmipn32"
8035
LD="${LD-ld} -melf64bmip"
8039
case `/usr/bin/file conftest.$ac_objext` in
8055
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8056
# Find out which ABI we are using.
8057
echo 'int i;' > conftest.$ac_ext
8058
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8059
(eval $ac_compile) 2>&5
8061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062
(exit $ac_status); }; then
8063
case "`/usr/bin/file conftest.o`" in
8067
LD="${LD-ld} -m elf_i386"
8069
ppc64-*linux*|powerpc64-*linux*)
8070
LD="${LD-ld} -m elf32ppclinux"
8073
LD="${LD-ld} -m elf_s390"
8076
LD="${LD-ld} -m elf32_sparc"
8083
LD="${LD-ld} -m elf_x86_64"
8085
ppc*-*linux*|powerpc*-*linux*)
8086
LD="${LD-ld} -m elf64ppc"
8089
LD="${LD-ld} -m elf64_s390"
8092
LD="${LD-ld} -m elf64_sparc"
8102
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
8103
SAVE_CFLAGS="$CFLAGS"
8104
CFLAGS="$CFLAGS -belf"
8105
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8106
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
8107
if test "${lt_cv_cc_needs_belf+set}" = set; then
8108
echo $ECHO_N "(cached) $ECHO_C" >&6
8111
ac_cpp='$CPP $CPPFLAGS'
8112
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8113
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8114
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8116
cat >conftest.$ac_ext <<_ACEOF
8119
cat confdefs.h >>conftest.$ac_ext
8120
cat >>conftest.$ac_ext <<_ACEOF
8121
/* end confdefs.h. */
8131
rm -f conftest.$ac_objext conftest$ac_exeext
8132
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133
(eval $ac_link) 2>conftest.er1
8135
grep -v '^ *+' conftest.er1 >conftest.err
8137
cat conftest.err >&5
8138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139
(exit $ac_status); } &&
8140
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145
(exit $ac_status); }; } &&
8146
{ ac_try='test -s conftest$ac_exeext'
8147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151
(exit $ac_status); }; }; then
8152
lt_cv_cc_needs_belf=yes
8154
echo "$as_me: failed program was:" >&5
8155
sed 's/^/| /' conftest.$ac_ext >&5
8157
lt_cv_cc_needs_belf=no
8159
rm -f conftest.err conftest.$ac_objext \
8160
conftest$ac_exeext conftest.$ac_ext
8162
ac_cpp='$CPP $CPPFLAGS'
8163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8168
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8169
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
8170
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8171
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8172
CFLAGS="$SAVE_CFLAGS"
8178
need_locks="$enable_libtool_lock"
8182
for ac_header in dlfcn.h
8184
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8185
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8186
echo "$as_me:$LINENO: checking for $ac_header" >&5
8187
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8188
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8189
echo $ECHO_N "(cached) $ECHO_C" >&6
8191
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8192
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8194
# Is the header compilable?
8195
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8196
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8197
cat >conftest.$ac_ext <<_ACEOF
8200
cat confdefs.h >>conftest.$ac_ext
8201
cat >>conftest.$ac_ext <<_ACEOF
8202
/* end confdefs.h. */
8203
$ac_includes_default
8204
#include <$ac_header>
8206
rm -f conftest.$ac_objext
8207
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208
(eval $ac_compile) 2>conftest.er1
8210
grep -v '^ *+' conftest.er1 >conftest.err
8212
cat conftest.err >&5
8213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214
(exit $ac_status); } &&
8215
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8216
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220
(exit $ac_status); }; } &&
8221
{ ac_try='test -s conftest.$ac_objext'
8222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226
(exit $ac_status); }; }; then
8227
ac_header_compiler=yes
8229
echo "$as_me: failed program was:" >&5
8230
sed 's/^/| /' conftest.$ac_ext >&5
8232
ac_header_compiler=no
8234
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8235
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8236
echo "${ECHO_T}$ac_header_compiler" >&6
8238
# Is the header present?
8239
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8240
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8241
cat >conftest.$ac_ext <<_ACEOF
8244
cat confdefs.h >>conftest.$ac_ext
8245
cat >>conftest.$ac_ext <<_ACEOF
8246
/* end confdefs.h. */
8247
#include <$ac_header>
8249
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8250
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8252
grep -v '^ *+' conftest.er1 >conftest.err
8254
cat conftest.err >&5
8255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256
(exit $ac_status); } >/dev/null; then
8257
if test -s conftest.err; then
8258
ac_cpp_err=$ac_c_preproc_warn_flag
8259
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8266
if test -z "$ac_cpp_err"; then
8267
ac_header_preproc=yes
8269
echo "$as_me: failed program was:" >&5
8270
sed 's/^/| /' conftest.$ac_ext >&5
8272
ac_header_preproc=no
8274
rm -f conftest.err conftest.$ac_ext
8275
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8276
echo "${ECHO_T}$ac_header_preproc" >&6
8278
# So? What about this header?
8279
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8281
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8282
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8283
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8284
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8285
ac_header_preproc=yes
8288
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8289
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8290
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8291
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8292
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8293
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8294
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8295
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8296
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8297
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8298
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8299
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8302
## ----------------------------------- ##
8303
## Report this to the crypto++ lists. ##
8304
## ----------------------------------- ##
8307
sed "s/^/$as_me: WARNING: /" >&2
8310
echo "$as_me:$LINENO: checking for $ac_header" >&5
8311
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8312
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8313
echo $ECHO_N "(cached) $ECHO_C" >&6
8315
eval "$as_ac_Header=\$ac_header_preproc"
8317
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8318
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8321
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8322
cat >>confdefs.h <<_ACEOF
8323
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8331
ac_cpp='$CXXCPP $CPPFLAGS'
8332
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8333
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8334
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8335
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8336
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8337
if test -z "$CXXCPP"; then
8338
if test "${ac_cv_prog_CXXCPP+set}" = set; then
8339
echo $ECHO_N "(cached) $ECHO_C" >&6
8341
# Double quotes because CXXCPP needs to be expanded
8342
for CXXCPP in "$CXX -E" "/lib/cpp"
8345
for ac_cxx_preproc_warn_flag in '' yes
8347
# Use a header file that comes with gcc, so configuring glibc
8348
# with a fresh cross-compiler works.
8349
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8350
# <limits.h> exists even on freestanding compilers.
8351
# On the NeXT, cc -E runs the code through the compiler's parser,
8352
# not just through cpp. "Syntax error" is here to catch this case.
8353
cat >conftest.$ac_ext <<_ACEOF
8356
cat confdefs.h >>conftest.$ac_ext
8357
cat >>conftest.$ac_ext <<_ACEOF
8358
/* end confdefs.h. */
8360
# include <limits.h>
8362
# include <assert.h>
8366
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8367
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8369
grep -v '^ *+' conftest.er1 >conftest.err
8371
cat conftest.err >&5
8372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373
(exit $ac_status); } >/dev/null; then
8374
if test -s conftest.err; then
8375
ac_cpp_err=$ac_cxx_preproc_warn_flag
8376
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8383
if test -z "$ac_cpp_err"; then
8386
echo "$as_me: failed program was:" >&5
8387
sed 's/^/| /' conftest.$ac_ext >&5
8389
# Broken: fails on valid input.
8392
rm -f conftest.err conftest.$ac_ext
8394
# OK, works on sane cases. Now check whether non-existent headers
8395
# can be detected and how.
8396
cat >conftest.$ac_ext <<_ACEOF
8399
cat confdefs.h >>conftest.$ac_ext
8400
cat >>conftest.$ac_ext <<_ACEOF
8401
/* end confdefs.h. */
8402
#include <ac_nonexistent.h>
8404
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8405
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8407
grep -v '^ *+' conftest.er1 >conftest.err
8409
cat conftest.err >&5
8410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411
(exit $ac_status); } >/dev/null; then
8412
if test -s conftest.err; then
8413
ac_cpp_err=$ac_cxx_preproc_warn_flag
8414
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8421
if test -z "$ac_cpp_err"; then
8422
# Broken: success on invalid input.
8425
echo "$as_me: failed program was:" >&5
8426
sed 's/^/| /' conftest.$ac_ext >&5
8428
# Passes both tests.
8432
rm -f conftest.err conftest.$ac_ext
8435
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8436
rm -f conftest.err conftest.$ac_ext
8437
if $ac_preproc_ok; then
8442
ac_cv_prog_CXXCPP=$CXXCPP
8445
CXXCPP=$ac_cv_prog_CXXCPP
8447
ac_cv_prog_CXXCPP=$CXXCPP
8449
echo "$as_me:$LINENO: result: $CXXCPP" >&5
8450
echo "${ECHO_T}$CXXCPP" >&6
8452
for ac_cxx_preproc_warn_flag in '' yes
8454
# Use a header file that comes with gcc, so configuring glibc
8455
# with a fresh cross-compiler works.
8456
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8457
# <limits.h> exists even on freestanding compilers.
8458
# On the NeXT, cc -E runs the code through the compiler's parser,
8459
# not just through cpp. "Syntax error" is here to catch this case.
8460
cat >conftest.$ac_ext <<_ACEOF
8463
cat confdefs.h >>conftest.$ac_ext
8464
cat >>conftest.$ac_ext <<_ACEOF
8465
/* end confdefs.h. */
8467
# include <limits.h>
8469
# include <assert.h>
8473
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8474
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8476
grep -v '^ *+' conftest.er1 >conftest.err
8478
cat conftest.err >&5
8479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480
(exit $ac_status); } >/dev/null; then
8481
if test -s conftest.err; then
8482
ac_cpp_err=$ac_cxx_preproc_warn_flag
8483
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8490
if test -z "$ac_cpp_err"; then
8493
echo "$as_me: failed program was:" >&5
8494
sed 's/^/| /' conftest.$ac_ext >&5
8496
# Broken: fails on valid input.
8499
rm -f conftest.err conftest.$ac_ext
8501
# OK, works on sane cases. Now check whether non-existent headers
8502
# can be detected and how.
8503
cat >conftest.$ac_ext <<_ACEOF
8506
cat confdefs.h >>conftest.$ac_ext
8507
cat >>conftest.$ac_ext <<_ACEOF
8508
/* end confdefs.h. */
8509
#include <ac_nonexistent.h>
8511
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8512
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8514
grep -v '^ *+' conftest.er1 >conftest.err
8516
cat conftest.err >&5
8517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518
(exit $ac_status); } >/dev/null; then
8519
if test -s conftest.err; then
8520
ac_cpp_err=$ac_cxx_preproc_warn_flag
8521
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8528
if test -z "$ac_cpp_err"; then
8529
# Broken: success on invalid input.
8532
echo "$as_me: failed program was:" >&5
8533
sed 's/^/| /' conftest.$ac_ext >&5
8535
# Passes both tests.
8539
rm -f conftest.err conftest.$ac_ext
8542
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8543
rm -f conftest.err conftest.$ac_ext
8544
if $ac_preproc_ok; then
8547
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8548
See \`config.log' for more details." >&5
8549
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8550
See \`config.log' for more details." >&2;}
8551
{ (exit 1); exit 1; }; }
8555
ac_cpp='$CXXCPP $CPPFLAGS'
8556
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8557
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8558
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8562
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8563
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8565
if test -n "$ac_tool_prefix"; then
8566
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8568
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8569
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8570
echo "$as_me:$LINENO: checking for $ac_word" >&5
8571
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8572
if test "${ac_cv_prog_F77+set}" = set; then
8573
echo $ECHO_N "(cached) $ECHO_C" >&6
8575
if test -n "$F77"; then
8576
ac_cv_prog_F77="$F77" # Let the user override the test.
8578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582
test -z "$as_dir" && as_dir=.
8583
for ac_exec_ext in '' $ac_executable_extensions; do
8584
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8586
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8595
if test -n "$F77"; then
8596
echo "$as_me:$LINENO: result: $F77" >&5
8597
echo "${ECHO_T}$F77" >&6
8599
echo "$as_me:$LINENO: result: no" >&5
8600
echo "${ECHO_T}no" >&6
8603
test -n "$F77" && break
8606
if test -z "$F77"; then
8608
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8610
# Extract the first word of "$ac_prog", so it can be a program name with args.
8611
set dummy $ac_prog; ac_word=$2
8612
echo "$as_me:$LINENO: checking for $ac_word" >&5
8613
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8614
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8615
echo $ECHO_N "(cached) $ECHO_C" >&6
8617
if test -n "$ac_ct_F77"; then
8618
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624
test -z "$as_dir" && as_dir=.
8625
for ac_exec_ext in '' $ac_executable_extensions; do
8626
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627
ac_cv_prog_ac_ct_F77="$ac_prog"
8628
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636
ac_ct_F77=$ac_cv_prog_ac_ct_F77
8637
if test -n "$ac_ct_F77"; then
8638
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8639
echo "${ECHO_T}$ac_ct_F77" >&6
8641
echo "$as_me:$LINENO: result: no" >&5
8642
echo "${ECHO_T}no" >&6
8645
test -n "$ac_ct_F77" && break
8652
# Provide some information about the compiler.
8653
echo "$as_me:8653:" \
8654
"checking for Fortran 77 compiler version" >&5
8655
ac_compiler=`set X $ac_compile; echo $2`
8656
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8657
(eval $ac_compiler --version </dev/null >&5) 2>&5
8659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660
(exit $ac_status); }
8661
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8662
(eval $ac_compiler -v </dev/null >&5) 2>&5
8664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665
(exit $ac_status); }
8666
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8667
(eval $ac_compiler -V </dev/null >&5) 2>&5
8669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670
(exit $ac_status); }
8673
# If we don't use `.F' as extension, the preprocessor is not run on the
8674
# input file. (Note that this only needs to work for GNU compilers.)
8677
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8678
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8679
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8680
echo $ECHO_N "(cached) $ECHO_C" >&6
8682
cat >conftest.$ac_ext <<_ACEOF
8690
rm -f conftest.$ac_objext
8691
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8692
(eval $ac_compile) 2>conftest.er1
8694
grep -v '^ *+' conftest.er1 >conftest.err
8696
cat conftest.err >&5
8697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698
(exit $ac_status); } &&
8699
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
8700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704
(exit $ac_status); }; } &&
8705
{ ac_try='test -s conftest.$ac_objext'
8706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710
(exit $ac_status); }; }; then
8713
echo "$as_me: failed program was:" >&5
8714
sed 's/^/| /' conftest.$ac_ext >&5
8718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8719
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8722
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8723
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8725
ac_test_FFLAGS=${FFLAGS+set}
8726
ac_save_FFLAGS=$FFLAGS
8728
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8729
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8730
if test "${ac_cv_prog_f77_g+set}" = set; then
8731
echo $ECHO_N "(cached) $ECHO_C" >&6
8734
cat >conftest.$ac_ext <<_ACEOF
8739
rm -f conftest.$ac_objext
8740
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741
(eval $ac_compile) 2>conftest.er1
8743
grep -v '^ *+' conftest.er1 >conftest.err
8745
cat conftest.err >&5
8746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747
(exit $ac_status); } &&
8748
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
8749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753
(exit $ac_status); }; } &&
8754
{ ac_try='test -s conftest.$ac_objext'
8755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759
(exit $ac_status); }; }; then
8760
ac_cv_prog_f77_g=yes
8762
echo "$as_me: failed program was:" >&5
8763
sed 's/^/| /' conftest.$ac_ext >&5
8767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8770
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8771
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8772
if test "$ac_test_FFLAGS" = set; then
8773
FFLAGS=$ac_save_FFLAGS
8774
elif test $ac_cv_prog_f77_g = yes; then
8775
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8781
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8788
G77=`test $ac_compiler_gnu = yes && echo yes`
8790
ac_cpp='$CPP $CPPFLAGS'
8791
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8792
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8793
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8797
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8799
# find the maximum length of command line arguments
8800
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8801
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8802
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8803
echo $ECHO_N "(cached) $ECHO_C" >&6
8810
# On DJGPP, this test can blow up pretty badly due to problems in libc
8811
# (any single argument exceeding 2000 bytes causes a buffer overrun
8812
# during glob expansion). Even if it were fixed, the result of this
8813
# check would be larger than it should be.
8814
lt_cv_sys_max_cmd_len=12288; # 12K is about right
8818
# Under GNU Hurd, this test is not required because there is
8819
# no limit to the length of command line arguments.
8820
# Libtool will interpret -1 as no limit whatsoever
8821
lt_cv_sys_max_cmd_len=-1;
8825
# On Win9x/ME, this test blows up -- it succeeds, but takes
8826
# about 5 minutes as the teststring grows exponentially.
8827
# Worse, since 9x/ME are not pre-emptively multitasking,
8828
# you end up with a "frozen" computer, even though with patience
8829
# the test eventually succeeds (with a max line length of 256k).
8830
# Instead, let's just punt: use the minimum linelength reported by
8831
# all of the supported platforms: 8192 (on NT/2K/XP).
8832
lt_cv_sys_max_cmd_len=8192;
8836
# On AmigaOS with pdksh, this test takes hours, literally.
8837
# So we just punt and use a minimum line length of 8192.
8838
lt_cv_sys_max_cmd_len=8192;
8842
# If test is not a shell built-in, we'll probably end up computing a
8843
# maximum length that is only half of the actual maximum length, but
8845
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8846
= "XX$teststring") >/dev/null 2>&1 &&
8847
new_result=`expr "X$teststring" : ".*" 2>&1` &&
8848
lt_cv_sys_max_cmd_len=$new_result &&
8849
test $i != 17 # 1/2 MB should be enough
8852
teststring=$teststring$teststring
8855
# Add a significant safety factor because C++ compilers can tack on massive
8856
# amounts of additional arguments before passing them to the linker.
8857
# It appears as though 1/2 is a usable value.
8858
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8864
if test -n $lt_cv_sys_max_cmd_len ; then
8865
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8866
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8868
echo "$as_me:$LINENO: result: none" >&5
8869
echo "${ECHO_T}none" >&6
8875
# Check for command to grab the raw symbol name followed by C symbol from nm.
8876
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8877
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8878
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8879
echo $ECHO_N "(cached) $ECHO_C" >&6
8882
# These are sane defaults that work on at least a few old systems.
8883
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8885
# Character class describing NM global symbol codes.
8886
symcode='[BCDEGRST]'
8888
# Regexp to match symbols that can be accessed directly from C.
8889
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8891
# Transform the above into a raw symbol and a C symbol.
8892
symxfrm='\1 \2\3 \3'
8894
# Transform an extracted symbol line into a proper C declaration
8895
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8897
# Transform an extracted symbol line into symbol name and symbol address
8898
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8900
# Define system-specific variables.
8905
cygwin* | mingw* | pw32*)
8906
symcode='[ABCDGISTW]'
8908
hpux*) # Its linker distinguishes data from code symbols
8909
if test "$host_cpu" = ia64; then
8910
symcode='[ABCDEGRST]'
8912
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8913
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8916
symcode='[BCDEGRST]'
8919
symcode='[BCDEGQRST]'
8929
# Handle CRLF in mingw tool chain
8933
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8937
# If we're using GNU nm, then use its standard symbol codes.
8938
case `$NM -V 2>&1` in
8939
*GNU* | *'with BFD'*)
8940
symcode='[ABCDGIRSTW]' ;;
8943
# Try without a prefix undercore, then with it.
8944
for ac_symprfx in "" "_"; do
8946
# Write the raw and C identifiers.
8947
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
8949
# Check to see that the pipe works correctly.
8953
cat > conftest.$ac_ext <<EOF
8958
void nm_test_func(){}
8962
int main(){nm_test_var='a';nm_test_func();return(0);}
8965
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966
(eval $ac_compile) 2>&5
8968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969
(exit $ac_status); }; then
8970
# Now try to grab the symbols.
8972
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8973
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976
(exit $ac_status); } && test -s "$nlist"; then
8977
# Try sorting and uniquifying the output.
8978
if sort "$nlist" | uniq > "$nlist"T; then
8979
mv -f "$nlist"T "$nlist"
8984
# Make sure that we snagged all the symbols we need.
8985
if grep ' nm_test_var$' "$nlist" >/dev/null; then
8986
if grep ' nm_test_func$' "$nlist" >/dev/null; then
8987
cat <<EOF > conftest.$ac_ext
8993
# Now generate the symbol file.
8994
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8996
cat <<EOF >> conftest.$ac_ext
8997
#if defined (__STDC__) && __STDC__
8998
# define lt_ptr_t void *
9000
# define lt_ptr_t char *
9004
/* The mapping between symbol names and symbols. */
9009
lt_preloaded_symbols[] =
9012
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9013
cat <<\EOF >> conftest.$ac_ext
9021
# Now try linking the two files.
9022
mv conftest.$ac_objext conftstm.$ac_objext
9023
lt_save_LIBS="$LIBS"
9024
lt_save_CFLAGS="$CFLAGS"
9025
LIBS="conftstm.$ac_objext"
9026
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9027
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028
(eval $ac_link) 2>&5
9030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031
(exit $ac_status); } && test -s conftest${ac_exeext}; then
9034
LIBS="$lt_save_LIBS"
9035
CFLAGS="$lt_save_CFLAGS"
9037
echo "cannot find nm_test_func in $nlist" >&5
9040
echo "cannot find nm_test_var in $nlist" >&5
9043
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9046
echo "$progname: failed program was:" >&5
9047
cat conftest.$ac_ext >&5
9049
rm -f conftest* conftst*
9051
# Do not use the global_symbol_pipe unless it works.
9052
if test "$pipe_works" = yes; then
9055
lt_cv_sys_global_symbol_pipe=
9061
if test -z "$lt_cv_sys_global_symbol_pipe"; then
9062
lt_cv_sys_global_symbol_to_cdecl=
9064
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9065
echo "$as_me:$LINENO: result: failed" >&5
9066
echo "${ECHO_T}failed" >&6
9068
echo "$as_me:$LINENO: result: ok" >&5
9069
echo "${ECHO_T}ok" >&6
9072
echo "$as_me:$LINENO: checking for objdir" >&5
9073
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9074
if test "${lt_cv_objdir+set}" = set; then
9075
echo $ECHO_N "(cached) $ECHO_C" >&6
9077
rm -f .libs 2>/dev/null
9078
mkdir .libs 2>/dev/null
9079
if test -d .libs; then
9082
# MS-DOS does not allow filenames that begin with a dot.
9085
rmdir .libs 2>/dev/null
9087
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9088
echo "${ECHO_T}$lt_cv_objdir" >&6
9089
objdir=$lt_cv_objdir
9097
# AIX sometimes has problems with the GCC collect2 program. For some
9098
# reason, if we set the COLLECT_NAMES environment variable, the problems
9099
# vanish in a puff of smoke.
9100
if test "X${COLLECT_NAMES+set}" != Xset; then
9102
export COLLECT_NAMES
9107
# Sed substitution that helps us do robust quoting. It backslashifies
9108
# metacharacters that are still active within double-quoted strings.
9109
Xsed='sed -e s/^X//'
9110
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9112
# Same as above, but do not quote variable references.
9113
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9115
# Sed substitution to delay expansion of an escaped shell variable in a
9116
# double_quote_subst'ed string.
9117
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9119
# Sed substitution to avoid accidental globbing in evaled expressions
9120
no_glob_subst='s/\*/\\\*/g'
9126
default_ofile=libtool
9127
can_build_shared=yes
9129
# All known linkers require a `.a' archive for static linking (except M$VC,
9130
# which needs '.lib').
9132
ltmain="$ac_aux_dir/ltmain.sh"
9133
ofile="$default_ofile"
9134
with_gnu_ld="$lt_cv_prog_gnu_ld"
9136
if test -n "$ac_tool_prefix"; then
9137
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9138
set dummy ${ac_tool_prefix}ar; ac_word=$2
9139
echo "$as_me:$LINENO: checking for $ac_word" >&5
9140
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9141
if test "${ac_cv_prog_AR+set}" = set; then
9142
echo $ECHO_N "(cached) $ECHO_C" >&6
9144
if test -n "$AR"; then
9145
ac_cv_prog_AR="$AR" # Let the user override the test.
9147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151
test -z "$as_dir" && as_dir=.
9152
for ac_exec_ext in '' $ac_executable_extensions; do
9153
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9154
ac_cv_prog_AR="${ac_tool_prefix}ar"
9155
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9164
if test -n "$AR"; then
9165
echo "$as_me:$LINENO: result: $AR" >&5
9166
echo "${ECHO_T}$AR" >&6
9168
echo "$as_me:$LINENO: result: no" >&5
9169
echo "${ECHO_T}no" >&6
9173
if test -z "$ac_cv_prog_AR"; then
9175
# Extract the first word of "ar", so it can be a program name with args.
9176
set dummy ar; ac_word=$2
9177
echo "$as_me:$LINENO: checking for $ac_word" >&5
9178
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9179
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9180
echo $ECHO_N "(cached) $ECHO_C" >&6
9182
if test -n "$ac_ct_AR"; then
9183
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189
test -z "$as_dir" && as_dir=.
9190
for ac_exec_ext in '' $ac_executable_extensions; do
9191
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9192
ac_cv_prog_ac_ct_AR="ar"
9193
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9199
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9202
ac_ct_AR=$ac_cv_prog_ac_ct_AR
9203
if test -n "$ac_ct_AR"; then
9204
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9205
echo "${ECHO_T}$ac_ct_AR" >&6
9207
echo "$as_me:$LINENO: result: no" >&5
9208
echo "${ECHO_T}no" >&6
9216
if test -n "$ac_tool_prefix"; then
9217
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9218
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9219
echo "$as_me:$LINENO: checking for $ac_word" >&5
9220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9221
if test "${ac_cv_prog_RANLIB+set}" = set; then
9222
echo $ECHO_N "(cached) $ECHO_C" >&6
9224
if test -n "$RANLIB"; then
9225
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231
test -z "$as_dir" && as_dir=.
9232
for ac_exec_ext in '' $ac_executable_extensions; do
9233
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9234
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9235
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9243
RANLIB=$ac_cv_prog_RANLIB
9244
if test -n "$RANLIB"; then
9245
echo "$as_me:$LINENO: result: $RANLIB" >&5
9246
echo "${ECHO_T}$RANLIB" >&6
9248
echo "$as_me:$LINENO: result: no" >&5
9249
echo "${ECHO_T}no" >&6
9253
if test -z "$ac_cv_prog_RANLIB"; then
9254
ac_ct_RANLIB=$RANLIB
9255
# Extract the first word of "ranlib", so it can be a program name with args.
9256
set dummy ranlib; ac_word=$2
9257
echo "$as_me:$LINENO: checking for $ac_word" >&5
9258
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9259
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9260
echo $ECHO_N "(cached) $ECHO_C" >&6
9262
if test -n "$ac_ct_RANLIB"; then
9263
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269
test -z "$as_dir" && as_dir=.
9270
for ac_exec_ext in '' $ac_executable_extensions; do
9271
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9272
ac_cv_prog_ac_ct_RANLIB="ranlib"
9273
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9282
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9283
if test -n "$ac_ct_RANLIB"; then
9284
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9285
echo "${ECHO_T}$ac_ct_RANLIB" >&6
9287
echo "$as_me:$LINENO: result: no" >&5
9288
echo "${ECHO_T}no" >&6
9291
RANLIB=$ac_ct_RANLIB
9293
RANLIB="$ac_cv_prog_RANLIB"
9296
if test -n "$ac_tool_prefix"; then
9297
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9298
set dummy ${ac_tool_prefix}strip; ac_word=$2
9299
echo "$as_me:$LINENO: checking for $ac_word" >&5
9300
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9301
if test "${ac_cv_prog_STRIP+set}" = set; then
9302
echo $ECHO_N "(cached) $ECHO_C" >&6
9304
if test -n "$STRIP"; then
9305
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311
test -z "$as_dir" && as_dir=.
9312
for ac_exec_ext in '' $ac_executable_extensions; do
9313
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9314
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9315
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9323
STRIP=$ac_cv_prog_STRIP
9324
if test -n "$STRIP"; then
9325
echo "$as_me:$LINENO: result: $STRIP" >&5
9326
echo "${ECHO_T}$STRIP" >&6
9328
echo "$as_me:$LINENO: result: no" >&5
9329
echo "${ECHO_T}no" >&6
9333
if test -z "$ac_cv_prog_STRIP"; then
9335
# Extract the first word of "strip", so it can be a program name with args.
9336
set dummy strip; ac_word=$2
9337
echo "$as_me:$LINENO: checking for $ac_word" >&5
9338
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9339
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9340
echo $ECHO_N "(cached) $ECHO_C" >&6
9342
if test -n "$ac_ct_STRIP"; then
9343
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9345
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349
test -z "$as_dir" && as_dir=.
9350
for ac_exec_ext in '' $ac_executable_extensions; do
9351
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9352
ac_cv_prog_ac_ct_STRIP="strip"
9353
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9359
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9362
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9363
if test -n "$ac_ct_STRIP"; then
9364
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9365
echo "${ECHO_T}$ac_ct_STRIP" >&6
9367
echo "$as_me:$LINENO: result: no" >&5
9368
echo "${ECHO_T}no" >&6
9373
STRIP="$ac_cv_prog_STRIP"
9378
old_CFLAGS="$CFLAGS"
9380
# Set sane defaults for various variables
9381
test -z "$AR" && AR=ar
9382
test -z "$AR_FLAGS" && AR_FLAGS=cru
9383
test -z "$AS" && AS=as
9384
test -z "$CC" && CC=cc
9385
test -z "$LTCC" && LTCC=$CC
9386
test -z "$DLLTOOL" && DLLTOOL=dlltool
9387
test -z "$LD" && LD=ld
9388
test -z "$LN_S" && LN_S="ln -s"
9389
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9390
test -z "$NM" && NM=nm
9391
test -z "$SED" && SED=sed
9392
test -z "$OBJDUMP" && OBJDUMP=objdump
9393
test -z "$RANLIB" && RANLIB=:
9394
test -z "$STRIP" && STRIP=:
9395
test -z "$ac_objext" && ac_objext=o
9397
# Determine commands to create old-style static archives.
9398
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9399
old_postinstall_cmds='chmod 644 $oldlib'
9400
old_postuninstall_cmds=
9402
if test -n "$RANLIB"; then
9405
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9408
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9411
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9414
# Only perform the check for file, if the check method requires it
9415
case $deplibs_check_method in
9417
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9418
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9419
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9420
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9421
echo $ECHO_N "(cached) $ECHO_C" >&6
9425
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9428
lt_save_MAGIC_CMD="$MAGIC_CMD"
9429
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9430
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9431
for ac_dir in $ac_dummy; do
9433
test -z "$ac_dir" && ac_dir=.
9434
if test -f $ac_dir/${ac_tool_prefix}file; then
9435
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9436
if test -n "$file_magic_test_file"; then
9437
case $deplibs_check_method in
9439
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9440
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9441
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9442
$EGREP "$file_magic_regex" > /dev/null; then
9447
*** Warning: the command libtool uses to detect shared libraries,
9448
*** $file_magic_cmd, produces output that libtool cannot recognize.
9449
*** The result is that libtool may fail to recognize shared libraries
9450
*** as such. This will affect the creation of libtool libraries that
9451
*** depend on shared libraries, but programs linked with such libtool
9452
*** libraries will work regardless of this problem. Nevertheless, you
9453
*** may want to report the problem to your system manager and/or to
9454
*** bug-libtool@gnu.org
9464
MAGIC_CMD="$lt_save_MAGIC_CMD"
9469
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9470
if test -n "$MAGIC_CMD"; then
9471
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9472
echo "${ECHO_T}$MAGIC_CMD" >&6
9474
echo "$as_me:$LINENO: result: no" >&5
9475
echo "${ECHO_T}no" >&6
9478
if test -z "$lt_cv_path_MAGIC_CMD"; then
9479
if test -n "$ac_tool_prefix"; then
9480
echo "$as_me:$LINENO: checking for file" >&5
9481
echo $ECHO_N "checking for file... $ECHO_C" >&6
9482
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9483
echo $ECHO_N "(cached) $ECHO_C" >&6
9487
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9490
lt_save_MAGIC_CMD="$MAGIC_CMD"
9491
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9492
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9493
for ac_dir in $ac_dummy; do
9495
test -z "$ac_dir" && ac_dir=.
9496
if test -f $ac_dir/file; then
9497
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9498
if test -n "$file_magic_test_file"; then
9499
case $deplibs_check_method in
9501
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9502
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9503
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9504
$EGREP "$file_magic_regex" > /dev/null; then
9509
*** Warning: the command libtool uses to detect shared libraries,
9510
*** $file_magic_cmd, produces output that libtool cannot recognize.
9511
*** The result is that libtool may fail to recognize shared libraries
9512
*** as such. This will affect the creation of libtool libraries that
9513
*** depend on shared libraries, but programs linked with such libtool
9514
*** libraries will work regardless of this problem. Nevertheless, you
9515
*** may want to report the problem to your system manager and/or to
9516
*** bug-libtool@gnu.org
9526
MAGIC_CMD="$lt_save_MAGIC_CMD"
9531
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9532
if test -n "$MAGIC_CMD"; then
9533
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9534
echo "${ECHO_T}$MAGIC_CMD" >&6
9536
echo "$as_me:$LINENO: result: no" >&5
9537
echo "${ECHO_T}no" >&6
9552
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9553
if test "${enable_libtool_lock+set}" = set; then
9554
enableval="$enable_libtool_lock"
9557
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9560
# Check whether --with-pic or --without-pic was given.
9561
if test "${with_pic+set}" = set; then
9567
test -z "$pic_mode" && pic_mode=default
9569
# Use C for the default configuration in the libtool script
9573
ac_cpp='$CPP $CPPFLAGS'
9574
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9579
# Source file extension for C test sources.
9582
# Object file extension for compiled C test sources.
9586
# Code to be used in simple compile tests
9587
lt_simple_compile_test_code="int some_variable = 0;\n"
9589
# Code to be used in simple link tests
9590
lt_simple_link_test_code='int main(){return(0);}\n'
9593
# If no C compiler was specified, use CC.
9596
# Allow CC to be a program name with arguments.
9601
# Check for any special shared library compilation flags.
9604
if test "$GCC" = no; then
9607
lt_prog_cc_shlib='-belf'
9611
if test -n "$lt_prog_cc_shlib"; then
9612
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9613
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9614
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
9616
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9617
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9618
lt_cv_prog_cc_can_build_shared=no
9624
# Check to make sure the static flag actually works.
9626
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9627
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
9628
if test "${lt_prog_compiler_static_works+set}" = set; then
9629
echo $ECHO_N "(cached) $ECHO_C" >&6
9631
lt_prog_compiler_static_works=no
9632
save_LDFLAGS="$LDFLAGS"
9633
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9634
printf "$lt_simple_link_test_code" > conftest.$ac_ext
9635
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9636
# The compiler can only warn and ignore the option if not recognized
9637
# So say no if there are warnings
9638
if test -s conftest.err; then
9639
# Append any errors to the config.log.
9640
cat conftest.err 1>&5
9642
lt_prog_compiler_static_works=yes
9646
LDFLAGS="$save_LDFLAGS"
9649
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9650
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9652
if test x"$lt_prog_compiler_static_works" = xyes; then
9655
lt_prog_compiler_static=
9661
lt_prog_compiler_no_builtin_flag=
9663
if test "$GCC" = yes; then
9664
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9667
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9668
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9669
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9670
echo $ECHO_N "(cached) $ECHO_C" >&6
9672
lt_cv_prog_compiler_rtti_exceptions=no
9673
ac_outfile=conftest.$ac_objext
9674
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9675
lt_compiler_flag="-fno-rtti -fno-exceptions"
9676
# Insert the option either (1) after the last *FLAGS variable, or
9677
# (2) before a word containing "conftest.", or (3) at the end.
9678
# Note that $ac_compile itself does not contain backslashes and begins
9679
# with a dollar sign (not a hyphen), so the echo should work correctly.
9680
# The option is referenced via a variable to avoid confusing sed.
9681
lt_compile=`echo "$ac_compile" | $SED \
9682
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9683
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9684
-e 's:$: $lt_compiler_flag:'`
9685
(eval echo "\"\$as_me:9685: $lt_compile\"" >&5)
9686
(eval "$lt_compile" 2>conftest.err)
9688
cat conftest.err >&5
9689
echo "$as_me:9689: \$? = $ac_status" >&5
9690
if (exit $ac_status) && test -s "$ac_outfile"; then
9691
# The compiler can only warn and ignore the option if not recognized
9692
# So say no if there are warnings
9693
if test ! -s conftest.err; then
9694
lt_cv_prog_compiler_rtti_exceptions=yes
9700
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9701
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9703
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9704
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9711
lt_prog_compiler_wl=
9712
lt_prog_compiler_pic=
9713
lt_prog_compiler_static=
9715
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9716
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9718
if test "$GCC" = yes; then
9719
lt_prog_compiler_wl='-Wl,'
9720
lt_prog_compiler_static='-static'
9724
# All AIX code is PIC.
9725
if test "$host_cpu" = ia64; then
9726
# AIX 5 now supports IA64 processor
9727
lt_prog_compiler_static='-Bstatic'
9732
# FIXME: we need at least 68020 code to build shared libraries, but
9733
# adding the `-m68020' flag to GCC prevents building anything better,
9735
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9738
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9739
# PIC is the default for these OSes.
9742
mingw* | pw32* | os2*)
9743
# This hack is so that the source file can tell whether it is being
9744
# built for inclusion in a dll (and should export symbols for example).
9745
lt_prog_compiler_pic='-DDLL_EXPORT'
9748
darwin* | rhapsody*)
9749
# PIC is the default on this platform
9750
# Common symbols not allowed in MH_DYLIB files
9751
lt_prog_compiler_pic='-fno-common'
9755
# Just because we use GCC doesn't mean we suddenly get shared libraries
9756
# on systems that don't support them.
9757
lt_prog_compiler_can_build_shared=no
9762
if test -d /usr/nec; then
9763
lt_prog_compiler_pic=-Kconform_pic
9768
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9775
lt_prog_compiler_pic='-fPIC'
9781
lt_prog_compiler_pic='-fPIC'
9785
# PORTME Check for flag to pass linker flags through the system compiler.
9788
lt_prog_compiler_wl='-Wl,'
9789
if test "$host_cpu" = ia64; then
9790
# AIX 5 now supports IA64 processor
9791
lt_prog_compiler_static='-Bstatic'
9793
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9797
mingw* | pw32* | os2*)
9798
# This hack is so that the source file can tell whether it is being
9799
# built for inclusion in a dll (and should export symbols for example).
9800
lt_prog_compiler_pic='-DDLL_EXPORT'
9803
hpux9* | hpux10* | hpux11*)
9804
lt_prog_compiler_wl='-Wl,'
9805
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9812
lt_prog_compiler_pic='+Z'
9815
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9816
lt_prog_compiler_static='${wl}-a ${wl}archive'
9819
irix5* | irix6* | nonstopux*)
9820
lt_prog_compiler_wl='-Wl,'
9821
# PIC (with -KPIC) is the default.
9822
lt_prog_compiler_static='-non_shared'
9826
lt_prog_compiler_pic='-KPIC'
9827
lt_prog_compiler_static='-Bstatic'
9833
lt_prog_compiler_wl='-Wl,'
9834
lt_prog_compiler_pic='-KPIC'
9835
lt_prog_compiler_static='-static'
9838
lt_prog_compiler_wl='-Wl,'
9839
# All Alpha code is PIC.
9840
lt_prog_compiler_static='-non_shared'
9845
osf3* | osf4* | osf5*)
9846
lt_prog_compiler_wl='-Wl,'
9847
# All OSF/1 code is PIC.
9848
lt_prog_compiler_static='-non_shared'
9852
lt_prog_compiler_pic='-Kpic'
9853
lt_prog_compiler_static='-dn'
9857
lt_prog_compiler_wl='-Wl,'
9858
lt_prog_compiler_pic='-KPIC'
9859
lt_prog_compiler_static='-Bstatic'
9863
lt_prog_compiler_wl='-Qoption ld '
9864
lt_prog_compiler_pic='-PIC'
9865
lt_prog_compiler_static='-Bstatic'
9868
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9869
lt_prog_compiler_wl='-Wl,'
9870
lt_prog_compiler_pic='-KPIC'
9871
lt_prog_compiler_static='-Bstatic'
9875
if test -d /usr/nec ;then
9876
lt_prog_compiler_pic='-Kconform_pic'
9877
lt_prog_compiler_static='-Bstatic'
9882
lt_prog_compiler_pic='-pic'
9883
lt_prog_compiler_static='-Bstatic'
9887
lt_prog_compiler_can_build_shared=no
9892
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9893
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9896
# Check to make sure the PIC flag actually works.
9898
if test -n "$lt_prog_compiler_pic"; then
9900
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9901
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9902
if test "${lt_prog_compiler_pic_works+set}" = set; then
9903
echo $ECHO_N "(cached) $ECHO_C" >&6
9905
lt_prog_compiler_pic_works=no
9906
ac_outfile=conftest.$ac_objext
9907
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9908
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9909
# Insert the option either (1) after the last *FLAGS variable, or
9910
# (2) before a word containing "conftest.", or (3) at the end.
9911
# Note that $ac_compile itself does not contain backslashes and begins
9912
# with a dollar sign (not a hyphen), so the echo should work correctly.
9913
# The option is referenced via a variable to avoid confusing sed.
9914
lt_compile=`echo "$ac_compile" | $SED \
9915
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9916
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9917
-e 's:$: $lt_compiler_flag:'`
9918
(eval echo "\"\$as_me:9918: $lt_compile\"" >&5)
9919
(eval "$lt_compile" 2>conftest.err)
9921
cat conftest.err >&5
9922
echo "$as_me:9922: \$? = $ac_status" >&5
9923
if (exit $ac_status) && test -s "$ac_outfile"; then
9924
# The compiler can only warn and ignore the option if not recognized
9925
# So say no if there are warnings
9926
if test ! -s conftest.err; then
9927
lt_prog_compiler_pic_works=yes
9933
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9934
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9936
if test x"$lt_prog_compiler_pic_works" = xyes; then
9937
case $lt_prog_compiler_pic in
9939
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9942
lt_prog_compiler_pic=
9943
lt_prog_compiler_can_build_shared=no
9948
# For platforms which do not support PIC, -DPIC is meaningless:
9950
lt_prog_compiler_pic=
9953
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9957
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9958
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9959
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9960
echo $ECHO_N "(cached) $ECHO_C" >&6
9962
lt_cv_prog_compiler_c_o=no
9963
$rm -r conftest 2>/dev/null
9967
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9969
lt_compiler_flag="-o out/conftest2.$ac_objext"
9970
# Insert the option either (1) after the last *FLAGS variable, or
9971
# (2) before a word containing "conftest.", or (3) at the end.
9972
# Note that $ac_compile itself does not contain backslashes and begins
9973
# with a dollar sign (not a hyphen), so the echo should work correctly.
9974
lt_compile=`echo "$ac_compile" | $SED \
9975
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9976
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9977
-e 's:$: $lt_compiler_flag:'`
9978
(eval echo "\"\$as_me:9978: $lt_compile\"" >&5)
9979
(eval "$lt_compile" 2>out/conftest.err)
9981
cat out/conftest.err >&5
9982
echo "$as_me:9982: \$? = $ac_status" >&5
9983
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9985
# The compiler can only warn and ignore the option if not recognized
9986
# So say no if there are warnings
9987
if test ! -s out/conftest.err; then
9988
lt_cv_prog_compiler_c_o=yes
9993
# SGI C++ compiler will create directory out/ii_files/ for
9994
# template instantiation
9995
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9996
$rm out/* && rmdir out
10002
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10003
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10006
hard_links="nottested"
10007
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10008
# do not overwrite the value of need_locks provided by the user
10009
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10010
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10013
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10015
ln conftest.a conftest.b 2>&5 || hard_links=no
10016
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10017
echo "$as_me:$LINENO: result: $hard_links" >&5
10018
echo "${ECHO_T}$hard_links" >&6
10019
if test "$hard_links" = no; then
10020
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10021
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10028
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10029
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10032
allow_undefined_flag=
10033
enable_shared_with_static_runtimes=no
10035
archive_expsym_cmds=
10036
old_archive_From_new_cmds=
10037
old_archive_from_expsyms_cmds=
10038
export_dynamic_flag_spec=
10039
whole_archive_flag_spec=
10040
thread_safe_flag_spec=
10041
hardcode_libdir_flag_spec=
10042
hardcode_libdir_flag_spec_ld=
10043
hardcode_libdir_separator=
10045
hardcode_minus_L=no
10046
hardcode_shlibpath_var=unsupported
10047
link_all_deplibs=unknown
10048
hardcode_automatic=no
10050
module_expsym_cmds=
10051
always_export_symbols=no
10052
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10053
# include_expsyms should be a list of space-separated symbols to be *always*
10054
# included in the symbol list
10056
# exclude_expsyms can be an extended regexp of symbols to exclude
10057
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10058
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10059
# as well as any symbol that contains `d'.
10060
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10061
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10062
# platforms (ab)use it in PIC code, but their linkers get confused if
10063
# the symbol is explicitly referenced. Since portable code cannot
10064
# rely on this symbol name, it's probably fine to never include it in
10065
# preloaded symbol tables.
10066
extract_expsyms_cmds=
10069
cygwin* | mingw* | pw32*)
10070
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10071
# When not using gcc, we currently assume that we are using
10072
# Microsoft Visual C++.
10073
if test "$GCC" != yes; then
10083
if test "$with_gnu_ld" = yes; then
10084
# If archive_cmds runs LD, not CC, wlarc should be empty
10087
# See if GNU ld supports shared libraries.
10089
aix3* | aix4* | aix5*)
10090
# On AIX/PPC, the GNU linker is very broken
10091
if test "$host_cpu" != ia64; then
10095
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10096
*** to be unable to reliably create shared libraries on AIX.
10097
*** Therefore, libtool is disabling shared libraries support. If you
10098
*** really care for shared libraries, you may want to modify your PATH
10099
*** so that a non-GNU linker is found, and then restart.
10106
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)'
10107
hardcode_libdir_flag_spec='-L$libdir'
10108
hardcode_minus_L=yes
10110
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10111
# that the semantics of dynamic libraries on AmigaOS, at least up
10112
# to version 4, is to share data among multiple programs linked
10113
# with the same dynamic library. Since this doesn't match the
10114
# behavior of shared libraries on other platforms, we can't use
10120
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10121
allow_undefined_flag=unsupported
10122
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10123
# support --undefined. This deserves some investigation. FIXME
10124
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10130
cygwin* | mingw* | pw32*)
10131
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10132
# as there is no search path for DLLs.
10133
hardcode_libdir_flag_spec='-L$libdir'
10134
allow_undefined_flag=unsupported
10135
always_export_symbols=no
10136
enable_shared_with_static_runtimes=yes
10137
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10139
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10140
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10141
# If the export-symbols file already is a .def file (1st line
10142
# is EXPORTS), use it as is; otherwise, prepend...
10143
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10144
cp $export_symbols $output_objdir/$soname.def;
10146
echo EXPORTS > $output_objdir/$soname.def;
10147
cat $export_symbols >> $output_objdir/$soname.def;
10149
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10155
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10156
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10157
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10160
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10161
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10166
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10170
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10171
*** create shared libraries on Solaris systems. Therefore, libtool
10172
*** is disabling shared libraries support. We urge you to upgrade GNU
10173
*** binutils to release 2.9.1 or newer. Another option is to modify
10174
*** your PATH or compiler configuration so that the native linker is
10175
*** used, and then restart.
10178
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10179
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10180
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10187
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10189
hardcode_direct=yes
10190
hardcode_shlibpath_var=no
10194
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10195
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10196
archive_cmds="$tmp_archive_cmds"
10197
supports_anon_versioning=no
10198
case `$LD -v 2>/dev/null` in
10199
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10200
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10201
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10202
*\ 2.11.*) ;; # other 2.11 versions
10203
*) supports_anon_versioning=yes ;;
10205
if test $supports_anon_versioning = yes; then
10206
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10207
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10208
$echo "local: *; };" >> $output_objdir/$libname.ver~
10209
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10211
archive_expsym_cmds="$tmp_archive_cmds"
10213
link_all_deplibs=no
10220
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10221
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10222
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10229
if test "$ld_shlibs" = yes; then
10230
runpath_var=LD_RUN_PATH
10231
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10232
export_dynamic_flag_spec='${wl}--export-dynamic'
10233
# ancient GNU ld didn't support --whole-archive et. al.
10234
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10235
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10237
whole_archive_flag_spec=
10241
# PORTME fill in a description of your system's linker (not GNU ld)
10244
allow_undefined_flag=unsupported
10245
always_export_symbols=yes
10246
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'
10247
# Note: this linker hardcodes the directories in LIBPATH if there
10248
# are no directories specified by -L.
10249
hardcode_minus_L=yes
10250
if test "$GCC" = yes && test -z "$link_static_flag"; then
10251
# Neither direct hardcoding nor static linking is supported with a
10253
hardcode_direct=unsupported
10258
if test "$host_cpu" = ia64; then
10259
# On IA64, the linker does run time linking by default, so we don't
10260
# have to do anything special.
10261
aix_use_runtimelinking=no
10262
exp_sym_flag='-Bexport'
10265
# If we're using GNU nm, then we don't want the "-C" option.
10266
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10267
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10268
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10270
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10272
aix_use_runtimelinking=no
10274
# Test if we are trying to use run time linking or normal
10275
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10276
# need to do runtime linking.
10277
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10278
for ld_flag in $LDFLAGS; do
10279
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10280
aix_use_runtimelinking=yes
10286
exp_sym_flag='-bexport'
10287
no_entry_flag='-bnoentry'
10290
# When large executables or shared objects are built, AIX ld can
10291
# have problems creating the table of contents. If linking a library
10292
# or program results in "error TOC overflow" add -mminimal-toc to
10293
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10294
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10297
hardcode_direct=yes
10298
hardcode_libdir_separator=':'
10299
link_all_deplibs=yes
10301
if test "$GCC" = yes; then
10302
case $host_os in aix4.012|aix4.012.*)
10303
# We only want to do this on AIX 4.2 and lower, the check
10304
# below for broken collect2 doesn't work under 4.3+
10305
collect2name=`${CC} -print-prog-name=collect2`
10306
if test -f "$collect2name" && \
10307
strings "$collect2name" | grep resolve_lib_name >/dev/null
10309
# We have reworked collect2
10310
hardcode_direct=yes
10312
# We have old collect2
10313
hardcode_direct=unsupported
10314
# It fails to find uninstalled libraries when the uninstalled
10315
# path is not listed in the libpath. Setting hardcode_minus_L
10316
# to unsupported forces relinking
10317
hardcode_minus_L=yes
10318
hardcode_libdir_flag_spec='-L$libdir'
10319
hardcode_libdir_separator=
10322
shared_flag='-shared'
10325
if test "$host_cpu" = ia64; then
10326
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10327
# chokes on -Wl,-G. The following line is correct:
10330
if test "$aix_use_runtimelinking" = yes; then
10331
shared_flag='${wl}-G'
10333
shared_flag='${wl}-bM:SRE'
10338
# It seems that -bexpall does not export symbols beginning with
10339
# underscore (_), so it is better to generate a list of symbols to export.
10340
always_export_symbols=yes
10341
if test "$aix_use_runtimelinking" = yes; then
10342
# Warning - without using the other runtime loading flags (-brtl),
10343
# -berok will link without error, but may produce a broken library.
10344
allow_undefined_flag='-berok'
10345
# Determine the default libpath from the value encoded in an empty executable.
10346
cat >conftest.$ac_ext <<_ACEOF
10349
cat confdefs.h >>conftest.$ac_ext
10350
cat >>conftest.$ac_ext <<_ACEOF
10351
/* end confdefs.h. */
10361
rm -f conftest.$ac_objext conftest$ac_exeext
10362
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363
(eval $ac_link) 2>conftest.er1
10365
grep -v '^ *+' conftest.er1 >conftest.err
10367
cat conftest.err >&5
10368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369
(exit $ac_status); } &&
10370
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372
(eval $ac_try) 2>&5
10374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375
(exit $ac_status); }; } &&
10376
{ ac_try='test -s conftest$ac_exeext'
10377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378
(eval $ac_try) 2>&5
10380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381
(exit $ac_status); }; }; then
10383
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10385
# Check for a 64-bit object if we didn't find anything.
10386
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10389
echo "$as_me: failed program was:" >&5
10390
sed 's/^/| /' conftest.$ac_ext >&5
10393
rm -f conftest.err conftest.$ac_objext \
10394
conftest$ac_exeext conftest.$ac_ext
10395
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10397
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10398
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"
10400
if test "$host_cpu" = ia64; then
10401
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10402
allow_undefined_flag="-z nodefs"
10403
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10405
# Determine the default libpath from the value encoded in an empty executable.
10406
cat >conftest.$ac_ext <<_ACEOF
10409
cat confdefs.h >>conftest.$ac_ext
10410
cat >>conftest.$ac_ext <<_ACEOF
10411
/* end confdefs.h. */
10421
rm -f conftest.$ac_objext conftest$ac_exeext
10422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423
(eval $ac_link) 2>conftest.er1
10425
grep -v '^ *+' conftest.er1 >conftest.err
10427
cat conftest.err >&5
10428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429
(exit $ac_status); } &&
10430
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10431
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432
(eval $ac_try) 2>&5
10434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435
(exit $ac_status); }; } &&
10436
{ ac_try='test -s conftest$ac_exeext'
10437
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438
(eval $ac_try) 2>&5
10440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441
(exit $ac_status); }; }; then
10443
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10445
# Check for a 64-bit object if we didn't find anything.
10446
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10449
echo "$as_me: failed program was:" >&5
10450
sed 's/^/| /' conftest.$ac_ext >&5
10453
rm -f conftest.err conftest.$ac_objext \
10454
conftest$ac_exeext conftest.$ac_ext
10455
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10457
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10458
# Warning - without using the other run time loading flags,
10459
# -berok will link without error, but may produce a broken library.
10460
no_undefined_flag=' ${wl}-bernotok'
10461
allow_undefined_flag=' ${wl}-berok'
10462
# -bexpall does not export symbols beginning with underscore (_)
10463
always_export_symbols=yes
10464
# Exported symbols can be pulled into shared objects from archives
10465
whole_archive_flag_spec=' '
10466
archive_cmds_need_lc=yes
10467
# This is similar to how AIX traditionally builds it's shared libraries.
10468
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10474
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)'
10475
hardcode_libdir_flag_spec='-L$libdir'
10476
hardcode_minus_L=yes
10477
# see comment about different semantics on the GNU ld section
10482
export_dynamic_flag_spec=-rdynamic
10485
cygwin* | mingw* | pw32*)
10486
# When not using gcc, we currently assume that we are using
10487
# Microsoft Visual C++.
10488
# hardcode_libdir_flag_spec is actually meaningless, as there is
10489
# no search path for DLLs.
10490
hardcode_libdir_flag_spec=' '
10491
allow_undefined_flag=unsupported
10492
# Tell ltmain to make .lib files, not .a files.
10494
# Tell ltmain to make .dll files, not .so files.
10496
# FIXME: Setting linknames here is a bad hack.
10497
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10498
# The linker will automatically build a .lib file if we build a DLL.
10499
old_archive_From_new_cmds='true'
10500
# FIXME: Should let the user specify the lib program.
10501
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10502
fix_srcfile_path='`cygpath -w "$srcfile"`'
10503
enable_shared_with_static_runtimes=yes
10506
darwin* | rhapsody*)
10507
if test "$GXX" = yes ; then
10508
archive_cmds_need_lc=no
10510
rhapsody* | darwin1.[012])
10511
allow_undefined_flag='-undefined suppress'
10514
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10515
allow_undefined_flag='-flat_namespace -undefined suppress'
10517
case ${MACOSX_DEPLOYMENT_TARGET} in
10519
allow_undefined_flag='-flat_namespace -undefined suppress'
10522
allow_undefined_flag='-undefined dynamic_lookup'
10528
lt_int_apple_cc_single_mod=no
10529
output_verbose_link_cmd='echo'
10530
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10531
lt_int_apple_cc_single_mod=yes
10533
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10534
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10536
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10538
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10539
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10540
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10541
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10543
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10545
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10547
hardcode_automatic=yes
10548
hardcode_shlibpath_var=unsupported
10549
whole_archive_flag_spec='-all_load $convenience'
10550
link_all_deplibs=yes
10557
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10558
hardcode_libdir_flag_spec='-L$libdir'
10559
hardcode_shlibpath_var=no
10566
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10567
# support. Future versions do this automatically, but an explicit c++rt0.o
10568
# does not break anything, and helps significantly (at the cost of a little
10571
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10572
hardcode_libdir_flag_spec='-R$libdir'
10573
hardcode_direct=yes
10574
hardcode_shlibpath_var=no
10577
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10579
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10580
hardcode_direct=yes
10581
hardcode_minus_L=yes
10582
hardcode_shlibpath_var=no
10585
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10586
freebsd* | kfreebsd*-gnu)
10587
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10588
hardcode_libdir_flag_spec='-R$libdir'
10589
hardcode_direct=yes
10590
hardcode_shlibpath_var=no
10594
if test "$GCC" = yes; then
10595
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10597
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'
10599
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10600
hardcode_libdir_separator=:
10601
hardcode_direct=yes
10603
# hardcode_minus_L: Not really in the search PATH,
10604
# but as the default location of the library.
10605
hardcode_minus_L=yes
10606
export_dynamic_flag_spec='${wl}-E'
10610
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10611
case "$host_cpu" in
10613
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10616
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10620
case "$host_cpu" in
10622
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10625
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10629
if test "$with_gnu_ld" = no; then
10630
case "$host_cpu" in
10632
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10633
hardcode_libdir_flag_spec_ld='+b $libdir'
10634
hardcode_libdir_separator=:
10636
hardcode_shlibpath_var=no
10639
hardcode_libdir_flag_spec='-L$libdir'
10641
hardcode_shlibpath_var=no
10643
# hardcode_minus_L: Not really in the search PATH,
10644
# but as the default location of the library.
10645
hardcode_minus_L=yes
10648
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10649
hardcode_libdir_separator=:
10650
hardcode_direct=yes
10651
export_dynamic_flag_spec='${wl}-E'
10653
# hardcode_minus_L: Not really in the search PATH,
10654
# but as the default location of the library.
10655
hardcode_minus_L=yes
10661
irix5* | irix6* | nonstopux*)
10662
if test "$GCC" = yes; then
10663
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'
10665
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'
10666
hardcode_libdir_flag_spec_ld='-rpath $libdir'
10668
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10669
hardcode_libdir_separator=:
10670
link_all_deplibs=yes
10673
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10674
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10675
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10677
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10679
hardcode_libdir_flag_spec='-R$libdir'
10680
hardcode_direct=yes
10681
hardcode_shlibpath_var=no
10685
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686
hardcode_direct=yes
10687
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10688
hardcode_libdir_separator=:
10689
hardcode_shlibpath_var=no
10693
hardcode_direct=yes
10694
hardcode_shlibpath_var=no
10695
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10696
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10697
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10698
export_dynamic_flag_spec='${wl}-E'
10701
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10702
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10703
hardcode_libdir_flag_spec='-R$libdir'
10706
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10707
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10714
hardcode_libdir_flag_spec='-L$libdir'
10715
hardcode_minus_L=yes
10716
allow_undefined_flag=unsupported
10717
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'
10718
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10722
if test "$GCC" = yes; then
10723
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10724
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'
10726
allow_undefined_flag=' -expect_unresolved \*'
10727
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'
10729
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10730
hardcode_libdir_separator=:
10733
osf4* | osf5*) # as osf3* with the addition of -msym flag
10734
if test "$GCC" = yes; then
10735
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10736
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'
10737
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10739
allow_undefined_flag=' -expect_unresolved \*'
10740
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'
10741
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10742
$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'
10744
# Both c and cxx compiler support -rpath directly
10745
hardcode_libdir_flag_spec='-rpath $libdir'
10747
hardcode_libdir_separator=:
10751
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10752
hardcode_shlibpath_var=no
10753
export_dynamic_flag_spec='${wl}-Bexport'
10754
runpath_var=LD_RUN_PATH
10755
hardcode_runpath_var=yes
10759
no_undefined_flag=' -z text'
10760
if test "$GCC" = yes; then
10761
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10762
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10763
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10765
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10767
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10769
hardcode_libdir_flag_spec='-R$libdir'
10770
hardcode_shlibpath_var=no
10772
solaris2.[0-5] | solaris2.[0-5].*) ;;
10773
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
10774
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10776
link_all_deplibs=yes
10780
if test "x$host_vendor" = xsequent; then
10781
# Use $CC to link under sequent, because it throws in some extra .o
10782
# files that make .init and .fini sections work.
10783
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10785
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10787
hardcode_libdir_flag_spec='-L$libdir'
10788
hardcode_direct=yes
10789
hardcode_minus_L=yes
10790
hardcode_shlibpath_var=no
10794
case $host_vendor in
10796
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10797
hardcode_direct=yes # is this really true???
10800
## LD is ld it makes a PLAMLIB
10801
## CC just makes a GrossModule.
10802
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10803
reload_cmds='$CC -r -o $output$reload_objs'
10807
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10808
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10811
runpath_var='LD_RUN_PATH'
10812
hardcode_shlibpath_var=no
10816
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10817
hardcode_shlibpath_var=no
10818
export_dynamic_flag_spec='-Bexport'
10822
if test -d /usr/nec; then
10823
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824
hardcode_shlibpath_var=no
10825
runpath_var=LD_RUN_PATH
10826
hardcode_runpath_var=yes
10832
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10833
hardcode_direct=yes
10834
hardcode_minus_L=no
10835
hardcode_shlibpath_var=no
10836
hardcode_runpath_var=yes
10837
runpath_var=LD_RUN_PATH
10840
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10841
no_undefined_flag='${wl}-z ${wl}text'
10842
if test "$GCC" = yes; then
10843
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10845
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10847
runpath_var='LD_RUN_PATH'
10848
hardcode_shlibpath_var=no
10852
no_undefined_flag=' -z text'
10853
# $CC -shared without GNU ld will not create a library from C++
10854
# object files and a static libstdc++, better avoid it by now
10855
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10856
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10857
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10858
hardcode_libdir_flag_spec=
10859
hardcode_shlibpath_var=no
10860
runpath_var='LD_RUN_PATH'
10864
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865
hardcode_libdir_flag_spec='-L$libdir'
10866
hardcode_shlibpath_var=no
10875
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10876
echo "${ECHO_T}$ld_shlibs" >&6
10877
test "$ld_shlibs" = no && can_build_shared=no
10879
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10880
if test "$GCC" = yes; then
10881
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10885
# Do we need to explicitly link libc?
10887
case "x$archive_cmds_need_lc" in
10889
# Assume -lc should be added
10890
archive_cmds_need_lc=yes
10892
if test "$enable_shared" = yes && test "$GCC" = yes; then
10893
case $archive_cmds in
10895
# FIXME: we may have to deal with multi-command sequences.
10898
# Test whether the compiler implicitly links with -lc since on some
10899
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10900
# to ld, don't add -lc before -lgcc.
10901
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10902
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10904
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10907
(eval $ac_compile) 2>&5
10909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910
(exit $ac_status); } 2>conftest.err; then
10913
libobjs=conftest.$ac_objext
10915
wl=$lt_prog_compiler_wl
10921
lt_save_allow_undefined_flag=$allow_undefined_flag
10922
allow_undefined_flag=
10923
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10924
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927
(exit $ac_status); }
10929
archive_cmds_need_lc=no
10931
archive_cmds_need_lc=yes
10933
allow_undefined_flag=$lt_save_allow_undefined_flag
10935
cat conftest.err 1>&5
10938
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10939
echo "${ECHO_T}$archive_cmds_need_lc" >&6
10946
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10947
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10948
library_names_spec=
10949
libname_spec='lib$name'
10953
postuninstall_cmds=
10957
shlibpath_overrides_runpath=unknown
10959
dynamic_linker="$host_os ld.so"
10960
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10961
if test "$GCC" = yes; then
10962
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10963
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10964
# if the path contains ";" then we assume it to be the separator
10965
# otherwise default to the standard path separator (i.e. ":") - it is
10966
# assumed that no part of a normal pathname contains ";" but that should
10967
# okay in the real world where ";" in dirpaths is itself problematic.
10968
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10970
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10973
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10975
need_lib_prefix=unknown
10976
hardcode_into_libs=no
10978
# when you set need_version to no, make sure it does not cause -set_version
10979
# flags to be left without arguments
10980
need_version=unknown
10985
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10986
shlibpath_var=LIBPATH
10988
# AIX 3 has no versioning support, so we append a major version to the name.
10989
soname_spec='${libname}${release}${shared_ext}$major'
10996
hardcode_into_libs=yes
10997
if test "$host_cpu" = ia64; then
10998
# AIX 5 supports IA64
10999
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11000
shlibpath_var=LD_LIBRARY_PATH
11002
# With GCC up to 2.95.x, collect2 would create an import file
11003
# for dependence libraries. The import file would start with
11004
# the line `#! .'. This would cause the generated library to
11005
# depend on `.', always an invalid library. This was fixed in
11006
# development snapshots of GCC prior to 3.0.
11008
aix4 | aix4.[01] | aix4.[01].*)
11009
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11011
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11014
can_build_shared=no
11018
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11019
# soname into executable. Probably we can add versioning support to
11020
# collect2, so additional links can be useful in future.
11021
if test "$aix_use_runtimelinking" = yes; then
11022
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11023
# instead of lib<name>.a to let people know that these are not
11024
# typical AIX shared libraries.
11025
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027
# We preserve .a as extension for shared libraries through AIX4.2
11028
# and later when we are not doing run time linking.
11029
library_names_spec='${libname}${release}.a $libname.a'
11030
soname_spec='${libname}${release}${shared_ext}$major'
11032
shlibpath_var=LIBPATH
11037
library_names_spec='$libname.ixlibrary $libname.a'
11038
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11039
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'
11043
library_names_spec='${libname}${shared_ext}'
11044
dynamic_linker="$host_os ld.so"
11045
shlibpath_var=LIBRARY_PATH
11051
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052
soname_spec='${libname}${release}${shared_ext}$major'
11053
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11054
shlibpath_var=LD_LIBRARY_PATH
11055
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11056
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11057
# the default ld.so.conf also contains /usr/contrib/lib and
11058
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11059
# libtool to hard-code these into programs
11062
cygwin* | mingw* | pw32*)
11063
version_type=windows
11068
case $GCC,$host_os in
11069
yes,cygwin* | yes,mingw* | yes,pw32*)
11070
library_names_spec='$libname.dll.a'
11071
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11072
postinstall_cmds='base_file=`basename \${file}`~
11073
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11074
dldir=$destdir/`dirname \$dlpath`~
11075
test -d \$dldir || mkdir -p \$dldir~
11076
$install_prog $dir/$dlname \$dldir/$dlname'
11077
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11078
dlpath=$dir/\$dldll~
11080
shlibpath_overrides_runpath=yes
11084
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11085
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11086
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11089
# MinGW DLLs use traditional 'lib' prefix
11090
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11091
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11092
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11093
# It is most probably a Windows format PATH printed by
11094
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11095
# path with ; separators, and with drive letters. We can handle the
11096
# drive letters (cygwin fileutils understands them), so leave them,
11097
# especially as we might pass files found there to a mingw objdump,
11098
# which wouldn't understand a cygwinified path. Ahh.
11099
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11101
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11105
# pw32 DLLs use 'pw' prefix rather than 'lib'
11106
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11112
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11115
dynamic_linker='Win32 ld.exe'
11116
# FIXME: first we should search . and the directory the executable is in
11120
darwin* | rhapsody*)
11121
dynamic_linker="$host_os dyld"
11122
version_type=darwin
11125
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11126
soname_spec='${libname}${release}${major}$shared_ext'
11127
shlibpath_overrides_runpath=yes
11128
shlibpath_var=DYLD_LIBRARY_PATH
11129
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11130
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11131
if test "$GCC" = yes; then
11132
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11134
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11136
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11144
soname_spec='${libname}${release}${shared_ext}$major'
11145
shlibpath_var=LD_LIBRARY_PATH
11156
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11157
soname_spec='${libname}${release}${shared_ext}$major'
11158
shlibpath_var=LD_LIBRARY_PATH
11159
shlibpath_overrides_runpath=no
11160
hardcode_into_libs=yes
11161
dynamic_linker='GNU ld.so'
11165
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11166
version_type=freebsd-$objformat
11167
case $version_type in
11169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11174
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11178
shlibpath_var=LD_LIBRARY_PATH
11181
shlibpath_overrides_runpath=yes
11183
freebsd3.01* | freebsdelf3.01*)
11184
shlibpath_overrides_runpath=yes
11185
hardcode_into_libs=yes
11188
shlibpath_overrides_runpath=no
11189
hardcode_into_libs=yes
11198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11199
soname_spec='${libname}${release}${shared_ext}$major'
11200
shlibpath_var=LD_LIBRARY_PATH
11201
hardcode_into_libs=yes
11204
hpux9* | hpux10* | hpux11*)
11205
# Give a soname corresponding to the major version so that dld.sl refuses to
11206
# link against other versions.
11210
case "$host_cpu" in
11213
hardcode_into_libs=yes
11214
dynamic_linker="$host_os dld.so"
11215
shlibpath_var=LD_LIBRARY_PATH
11216
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11217
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218
soname_spec='${libname}${release}${shared_ext}$major'
11219
if test "X$HPUX_IA64_MODE" = X32; then
11220
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11222
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11224
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11228
hardcode_into_libs=yes
11229
dynamic_linker="$host_os dld.sl"
11230
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11231
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233
soname_spec='${libname}${release}${shared_ext}$major'
11234
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11235
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11239
dynamic_linker="$host_os dld.sl"
11240
shlibpath_var=SHLIB_PATH
11241
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11243
soname_spec='${libname}${release}${shared_ext}$major'
11246
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11247
postinstall_cmds='chmod 555 $lib'
11250
irix5* | irix6* | nonstopux*)
11252
nonstopux*) version_type=nonstopux ;;
11254
if test "$lt_cv_prog_gnu_ld" = yes; then
11262
soname_spec='${libname}${release}${shared_ext}$major'
11263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11265
irix5* | nonstopux*)
11266
libsuff= shlibsuff=
11269
case $LD in # libtool.m4 will add one of these switches to LD
11270
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11271
libsuff= shlibsuff= libmagic=32-bit;;
11272
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11273
libsuff=32 shlibsuff=N32 libmagic=N32;;
11274
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11275
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11276
*) libsuff= shlibsuff= libmagic=never-match;;
11280
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11281
shlibpath_overrides_runpath=no
11282
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11283
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11284
hardcode_into_libs=yes
11287
# No shared lib support for Linux oldld, aout, or coff.
11288
linux*oldld* | linux*aout* | linux*coff*)
11292
# This must be Linux ELF.
11297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298
soname_spec='${libname}${release}${shared_ext}$major'
11299
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11300
shlibpath_var=LD_LIBRARY_PATH
11301
shlibpath_overrides_runpath=no
11302
# This implies no fast_install, which is unacceptable.
11303
# Some rework will be needed to allow for fast_install
11304
# before this can be enabled.
11305
hardcode_into_libs=yes
11307
# Append ld.so.conf contents to the search path
11308
if test -f /etc/ld.so.conf; then
11309
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11310
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11313
# We used to test for /lib/ld.so.1 and disable shared libraries on
11314
# powerpc, because MkLinux only supported shared libraries with the
11315
# GNU dynamic linker. Since this was broken with cross compilers,
11316
# most powerpc-linux boxes support dynamic linking these days and
11317
# people can always --disable-shared, the test was removed, and we
11318
# assume the GNU/Linux dynamic linker is in use.
11319
dynamic_linker='GNU/Linux ld.so'
11326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11327
soname_spec='${libname}${release}${shared_ext}$major'
11328
shlibpath_var=LD_LIBRARY_PATH
11329
shlibpath_overrides_runpath=no
11330
hardcode_into_libs=yes
11331
dynamic_linker='NetBSD ld.elf_so'
11338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11339
soname_spec='${libname}${release}${shared_ext}$major'
11340
shlibpath_var=LD_LIBRARY_PATH
11341
shlibpath_overrides_runpath=no
11342
hardcode_into_libs=yes
11343
dynamic_linker='GNU ld.so'
11350
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11352
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353
dynamic_linker='NetBSD (a.out) ld.so'
11355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11356
soname_spec='${libname}${release}${shared_ext}$major'
11357
dynamic_linker='NetBSD ld.elf_so'
11359
shlibpath_var=LD_LIBRARY_PATH
11360
shlibpath_overrides_runpath=yes
11361
hardcode_into_libs=yes
11366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367
shlibpath_var=LD_LIBRARY_PATH
11368
shlibpath_overrides_runpath=yes
11375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376
soname_spec='${libname}${release}${shared_ext}$major'
11377
shlibpath_var=LD_LIBRARY_PATH
11378
shlibpath_overrides_runpath=yes
11385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11386
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11387
shlibpath_var=LD_LIBRARY_PATH
11388
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11390
openbsd2.[89] | openbsd2.[89].*)
11391
shlibpath_overrides_runpath=no
11394
shlibpath_overrides_runpath=yes
11398
shlibpath_overrides_runpath=yes
11403
libname_spec='$name'
11406
library_names_spec='$libname${shared_ext} $libname.a'
11407
dynamic_linker='OS/2 ld.exe'
11408
shlibpath_var=LIBPATH
11411
osf3* | osf4* | osf5*)
11415
soname_spec='${libname}${release}${shared_ext}$major'
11416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417
shlibpath_var=LD_LIBRARY_PATH
11418
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11419
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11424
soname_spec='${libname}${release}${shared_ext}$major'
11425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426
shlibpath_var=LD_LIBRARY_PATH
11433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434
soname_spec='${libname}${release}${shared_ext}$major'
11435
shlibpath_var=LD_LIBRARY_PATH
11436
shlibpath_overrides_runpath=yes
11437
hardcode_into_libs=yes
11438
# ldd complains unless libraries are executable
11439
postinstall_cmds='chmod +x $lib'
11444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11445
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11446
shlibpath_var=LD_LIBRARY_PATH
11447
shlibpath_overrides_runpath=yes
11448
if test "$with_gnu_ld" = yes; then
11454
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457
soname_spec='${libname}${release}${shared_ext}$major'
11458
shlibpath_var=LD_LIBRARY_PATH
11459
case $host_vendor in
11461
shlibpath_overrides_runpath=no
11463
export_dynamic_flag_spec='${wl}-Blargedynsym'
11464
runpath_var=LD_RUN_PATH
11472
shlibpath_overrides_runpath=no
11473
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11479
if test -d /usr/nec ;then
11481
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11482
soname_spec='$libname${shared_ext}.$major'
11483
shlibpath_var=LD_LIBRARY_PATH
11489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11490
soname_spec='${libname}${release}${shared_ext}$major'
11491
shlibpath_var=LD_LIBRARY_PATH
11498
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11499
echo "${ECHO_T}$dynamic_linker" >&6
11500
test "$dynamic_linker" = no && can_build_shared=no
11502
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11503
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11505
if test -n "$hardcode_libdir_flag_spec" || \
11506
test -n "$runpath_var " || \
11507
test "X$hardcode_automatic"="Xyes" ; then
11509
# We can hardcode non-existant directories.
11510
if test "$hardcode_direct" != no &&
11511
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11512
# have to relink, otherwise we might link with an installed library
11513
# when we should be linking with a yet-to-be-installed one
11514
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11515
test "$hardcode_minus_L" != no; then
11516
# Linking always hardcodes the temporary library directory.
11517
hardcode_action=relink
11519
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11520
hardcode_action=immediate
11523
# We cannot hardcode anything, or else we can only hardcode existing
11525
hardcode_action=unsupported
11527
echo "$as_me:$LINENO: result: $hardcode_action" >&5
11528
echo "${ECHO_T}$hardcode_action" >&6
11530
if test "$hardcode_action" = relink; then
11531
# Fast installation is not supported
11532
enable_fast_install=no
11533
elif test "$shlibpath_overrides_runpath" = yes ||
11534
test "$enable_shared" = no; then
11535
# Fast installation is not necessary
11536
enable_fast_install=needless
11541
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11542
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11543
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11544
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11545
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11546
echo "$as_me:$LINENO: result: yes" >&5
11547
echo "${ECHO_T}yes" >&6
11549
# FIXME - insert some real tests, host_os isn't really good enough
11552
if test -n "$STRIP" ; then
11553
striplib="$STRIP -x"
11554
echo "$as_me:$LINENO: result: yes" >&5
11555
echo "${ECHO_T}yes" >&6
11557
echo "$as_me:$LINENO: result: no" >&5
11558
echo "${ECHO_T}no" >&6
11562
echo "$as_me:$LINENO: result: no" >&5
11563
echo "${ECHO_T}no" >&6
11568
if test "x$enable_dlopen" != xyes; then
11569
enable_dlopen=unknown
11570
enable_dlopen_self=unknown
11571
enable_dlopen_self_static=unknown
11578
lt_cv_dlopen="load_add_on"
11580
lt_cv_dlopen_self=yes
11584
lt_cv_dlopen="LoadLibrary"
11589
lt_cv_dlopen="dlopen"
11594
# if libdl is installed we need to link against it
11595
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11596
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11597
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11598
echo $ECHO_N "(cached) $ECHO_C" >&6
11600
ac_check_lib_save_LIBS=$LIBS
11602
cat >conftest.$ac_ext <<_ACEOF
11605
cat confdefs.h >>conftest.$ac_ext
11606
cat >>conftest.$ac_ext <<_ACEOF
11607
/* end confdefs.h. */
11609
/* Override any gcc2 internal prototype to avoid an error. */
11613
/* We use char because int might match the return type of a gcc2
11614
builtin and then its argument prototype would still apply. */
11624
rm -f conftest.$ac_objext conftest$ac_exeext
11625
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626
(eval $ac_link) 2>conftest.er1
11628
grep -v '^ *+' conftest.er1 >conftest.err
11630
cat conftest.err >&5
11631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632
(exit $ac_status); } &&
11633
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635
(eval $ac_try) 2>&5
11637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638
(exit $ac_status); }; } &&
11639
{ ac_try='test -s conftest$ac_exeext'
11640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641
(eval $ac_try) 2>&5
11643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644
(exit $ac_status); }; }; then
11645
ac_cv_lib_dl_dlopen=yes
11647
echo "$as_me: failed program was:" >&5
11648
sed 's/^/| /' conftest.$ac_ext >&5
11650
ac_cv_lib_dl_dlopen=no
11652
rm -f conftest.err conftest.$ac_objext \
11653
conftest$ac_exeext conftest.$ac_ext
11654
LIBS=$ac_check_lib_save_LIBS
11656
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11657
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11658
if test $ac_cv_lib_dl_dlopen = yes; then
11659
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11662
lt_cv_dlopen="dyld"
11664
lt_cv_dlopen_self=yes
11671
echo "$as_me:$LINENO: checking for shl_load" >&5
11672
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11673
if test "${ac_cv_func_shl_load+set}" = set; then
11674
echo $ECHO_N "(cached) $ECHO_C" >&6
11676
cat >conftest.$ac_ext <<_ACEOF
11679
cat confdefs.h >>conftest.$ac_ext
11680
cat >>conftest.$ac_ext <<_ACEOF
11681
/* end confdefs.h. */
11682
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11683
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684
#define shl_load innocuous_shl_load
11686
/* System header to define __stub macros and hopefully few prototypes,
11687
which can conflict with char shl_load (); below.
11688
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689
<limits.h> exists even on freestanding compilers. */
11692
# include <limits.h>
11694
# include <assert.h>
11699
/* Override any gcc2 internal prototype to avoid an error. */
11704
/* We use char because int might match the return type of a gcc2
11705
builtin and then its argument prototype would still apply. */
11707
/* The GNU C library defines this for functions which it implements
11708
to always fail with ENOSYS. Some functions are actually named
11709
something starting with __ and the normal name is an alias. */
11710
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11713
char (*f) () = shl_load;
11722
return f != shl_load;
11727
rm -f conftest.$ac_objext conftest$ac_exeext
11728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729
(eval $ac_link) 2>conftest.er1
11731
grep -v '^ *+' conftest.er1 >conftest.err
11733
cat conftest.err >&5
11734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735
(exit $ac_status); } &&
11736
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738
(eval $ac_try) 2>&5
11740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741
(exit $ac_status); }; } &&
11742
{ ac_try='test -s conftest$ac_exeext'
11743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744
(eval $ac_try) 2>&5
11746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747
(exit $ac_status); }; }; then
11748
ac_cv_func_shl_load=yes
11750
echo "$as_me: failed program was:" >&5
11751
sed 's/^/| /' conftest.$ac_ext >&5
11753
ac_cv_func_shl_load=no
11755
rm -f conftest.err conftest.$ac_objext \
11756
conftest$ac_exeext conftest.$ac_ext
11758
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11759
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11760
if test $ac_cv_func_shl_load = yes; then
11761
lt_cv_dlopen="shl_load"
11763
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11764
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11765
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11766
echo $ECHO_N "(cached) $ECHO_C" >&6
11768
ac_check_lib_save_LIBS=$LIBS
11770
cat >conftest.$ac_ext <<_ACEOF
11773
cat confdefs.h >>conftest.$ac_ext
11774
cat >>conftest.$ac_ext <<_ACEOF
11775
/* end confdefs.h. */
11777
/* Override any gcc2 internal prototype to avoid an error. */
11781
/* We use char because int might match the return type of a gcc2
11782
builtin and then its argument prototype would still apply. */
11792
rm -f conftest.$ac_objext conftest$ac_exeext
11793
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11794
(eval $ac_link) 2>conftest.er1
11796
grep -v '^ *+' conftest.er1 >conftest.err
11798
cat conftest.err >&5
11799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800
(exit $ac_status); } &&
11801
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803
(eval $ac_try) 2>&5
11805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806
(exit $ac_status); }; } &&
11807
{ ac_try='test -s conftest$ac_exeext'
11808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809
(eval $ac_try) 2>&5
11811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812
(exit $ac_status); }; }; then
11813
ac_cv_lib_dld_shl_load=yes
11815
echo "$as_me: failed program was:" >&5
11816
sed 's/^/| /' conftest.$ac_ext >&5
11818
ac_cv_lib_dld_shl_load=no
11820
rm -f conftest.err conftest.$ac_objext \
11821
conftest$ac_exeext conftest.$ac_ext
11822
LIBS=$ac_check_lib_save_LIBS
11824
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11825
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11826
if test $ac_cv_lib_dld_shl_load = yes; then
11827
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11829
echo "$as_me:$LINENO: checking for dlopen" >&5
11830
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11831
if test "${ac_cv_func_dlopen+set}" = set; then
11832
echo $ECHO_N "(cached) $ECHO_C" >&6
11834
cat >conftest.$ac_ext <<_ACEOF
11837
cat confdefs.h >>conftest.$ac_ext
11838
cat >>conftest.$ac_ext <<_ACEOF
11839
/* end confdefs.h. */
11840
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11841
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842
#define dlopen innocuous_dlopen
11844
/* System header to define __stub macros and hopefully few prototypes,
11845
which can conflict with char dlopen (); below.
11846
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847
<limits.h> exists even on freestanding compilers. */
11850
# include <limits.h>
11852
# include <assert.h>
11857
/* Override any gcc2 internal prototype to avoid an error. */
11862
/* We use char because int might match the return type of a gcc2
11863
builtin and then its argument prototype would still apply. */
11865
/* The GNU C library defines this for functions which it implements
11866
to always fail with ENOSYS. Some functions are actually named
11867
something starting with __ and the normal name is an alias. */
11868
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11871
char (*f) () = dlopen;
11880
return f != dlopen;
11885
rm -f conftest.$ac_objext conftest$ac_exeext
11886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11887
(eval $ac_link) 2>conftest.er1
11889
grep -v '^ *+' conftest.er1 >conftest.err
11891
cat conftest.err >&5
11892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893
(exit $ac_status); } &&
11894
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896
(eval $ac_try) 2>&5
11898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899
(exit $ac_status); }; } &&
11900
{ ac_try='test -s conftest$ac_exeext'
11901
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902
(eval $ac_try) 2>&5
11904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905
(exit $ac_status); }; }; then
11906
ac_cv_func_dlopen=yes
11908
echo "$as_me: failed program was:" >&5
11909
sed 's/^/| /' conftest.$ac_ext >&5
11911
ac_cv_func_dlopen=no
11913
rm -f conftest.err conftest.$ac_objext \
11914
conftest$ac_exeext conftest.$ac_ext
11916
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11917
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11918
if test $ac_cv_func_dlopen = yes; then
11919
lt_cv_dlopen="dlopen"
11921
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11922
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11923
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11924
echo $ECHO_N "(cached) $ECHO_C" >&6
11926
ac_check_lib_save_LIBS=$LIBS
11928
cat >conftest.$ac_ext <<_ACEOF
11931
cat confdefs.h >>conftest.$ac_ext
11932
cat >>conftest.$ac_ext <<_ACEOF
11933
/* end confdefs.h. */
11935
/* Override any gcc2 internal prototype to avoid an error. */
11939
/* We use char because int might match the return type of a gcc2
11940
builtin and then its argument prototype would still apply. */
11950
rm -f conftest.$ac_objext conftest$ac_exeext
11951
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11952
(eval $ac_link) 2>conftest.er1
11954
grep -v '^ *+' conftest.er1 >conftest.err
11956
cat conftest.err >&5
11957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958
(exit $ac_status); } &&
11959
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11960
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961
(eval $ac_try) 2>&5
11963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964
(exit $ac_status); }; } &&
11965
{ ac_try='test -s conftest$ac_exeext'
11966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967
(eval $ac_try) 2>&5
11969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970
(exit $ac_status); }; }; then
11971
ac_cv_lib_dl_dlopen=yes
11973
echo "$as_me: failed program was:" >&5
11974
sed 's/^/| /' conftest.$ac_ext >&5
11976
ac_cv_lib_dl_dlopen=no
11978
rm -f conftest.err conftest.$ac_objext \
11979
conftest$ac_exeext conftest.$ac_ext
11980
LIBS=$ac_check_lib_save_LIBS
11982
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11983
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11984
if test $ac_cv_lib_dl_dlopen = yes; then
11985
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11987
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11988
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11989
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11990
echo $ECHO_N "(cached) $ECHO_C" >&6
11992
ac_check_lib_save_LIBS=$LIBS
11993
LIBS="-lsvld $LIBS"
11994
cat >conftest.$ac_ext <<_ACEOF
11997
cat confdefs.h >>conftest.$ac_ext
11998
cat >>conftest.$ac_ext <<_ACEOF
11999
/* end confdefs.h. */
12001
/* Override any gcc2 internal prototype to avoid an error. */
12005
/* We use char because int might match the return type of a gcc2
12006
builtin and then its argument prototype would still apply. */
12016
rm -f conftest.$ac_objext conftest$ac_exeext
12017
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12018
(eval $ac_link) 2>conftest.er1
12020
grep -v '^ *+' conftest.er1 >conftest.err
12022
cat conftest.err >&5
12023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024
(exit $ac_status); } &&
12025
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027
(eval $ac_try) 2>&5
12029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030
(exit $ac_status); }; } &&
12031
{ ac_try='test -s conftest$ac_exeext'
12032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033
(eval $ac_try) 2>&5
12035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036
(exit $ac_status); }; }; then
12037
ac_cv_lib_svld_dlopen=yes
12039
echo "$as_me: failed program was:" >&5
12040
sed 's/^/| /' conftest.$ac_ext >&5
12042
ac_cv_lib_svld_dlopen=no
12044
rm -f conftest.err conftest.$ac_objext \
12045
conftest$ac_exeext conftest.$ac_ext
12046
LIBS=$ac_check_lib_save_LIBS
12048
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12049
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12050
if test $ac_cv_lib_svld_dlopen = yes; then
12051
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12053
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12054
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12055
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12056
echo $ECHO_N "(cached) $ECHO_C" >&6
12058
ac_check_lib_save_LIBS=$LIBS
12060
cat >conftest.$ac_ext <<_ACEOF
12063
cat confdefs.h >>conftest.$ac_ext
12064
cat >>conftest.$ac_ext <<_ACEOF
12065
/* end confdefs.h. */
12067
/* Override any gcc2 internal prototype to avoid an error. */
12071
/* We use char because int might match the return type of a gcc2
12072
builtin and then its argument prototype would still apply. */
12082
rm -f conftest.$ac_objext conftest$ac_exeext
12083
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12084
(eval $ac_link) 2>conftest.er1
12086
grep -v '^ *+' conftest.er1 >conftest.err
12088
cat conftest.err >&5
12089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090
(exit $ac_status); } &&
12091
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12092
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093
(eval $ac_try) 2>&5
12095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096
(exit $ac_status); }; } &&
12097
{ ac_try='test -s conftest$ac_exeext'
12098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099
(eval $ac_try) 2>&5
12101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102
(exit $ac_status); }; }; then
12103
ac_cv_lib_dld_dld_link=yes
12105
echo "$as_me: failed program was:" >&5
12106
sed 's/^/| /' conftest.$ac_ext >&5
12108
ac_cv_lib_dld_dld_link=no
12110
rm -f conftest.err conftest.$ac_objext \
12111
conftest$ac_exeext conftest.$ac_ext
12112
LIBS=$ac_check_lib_save_LIBS
12114
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12115
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12116
if test $ac_cv_lib_dld_dld_link = yes; then
12117
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12138
if test "x$lt_cv_dlopen" != xno; then
12144
case $lt_cv_dlopen in
12146
save_CPPFLAGS="$CPPFLAGS"
12147
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12149
save_LDFLAGS="$LDFLAGS"
12150
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12153
LIBS="$lt_cv_dlopen_libs $LIBS"
12155
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12156
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12157
if test "${lt_cv_dlopen_self+set}" = set; then
12158
echo $ECHO_N "(cached) $ECHO_C" >&6
12160
if test "$cross_compiling" = yes; then :
12161
lt_cv_dlopen_self=cross
12163
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12164
lt_status=$lt_dlunknown
12165
cat > conftest.$ac_ext <<EOF
12166
#line 12166 "configure"
12167
#include "confdefs.h"
12176
# define LT_DLGLOBAL RTLD_GLOBAL
12179
# define LT_DLGLOBAL DL_GLOBAL
12181
# define LT_DLGLOBAL 0
12185
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12186
find out it does not work in some platform. */
12187
#ifndef LT_DLLAZY_OR_NOW
12189
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12192
# define LT_DLLAZY_OR_NOW DL_LAZY
12195
# define LT_DLLAZY_OR_NOW RTLD_NOW
12198
# define LT_DLLAZY_OR_NOW DL_NOW
12200
# define LT_DLLAZY_OR_NOW 0
12208
extern "C" void exit (int);
12211
void fnord() { int i=42;}
12214
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12215
int status = $lt_dlunknown;
12219
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12220
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12221
/* dlclose (self); */
12227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228
(eval $ac_link) 2>&5
12230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12232
(./conftest; exit; ) 2>/dev/null
12234
case x$lt_status in
12235
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12236
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12237
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12240
# compilation failed
12241
lt_cv_dlopen_self=no
12248
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12249
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12251
if test "x$lt_cv_dlopen_self" = xyes; then
12252
LDFLAGS="$LDFLAGS $link_static_flag"
12253
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12254
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12255
if test "${lt_cv_dlopen_self_static+set}" = set; then
12256
echo $ECHO_N "(cached) $ECHO_C" >&6
12258
if test "$cross_compiling" = yes; then :
12259
lt_cv_dlopen_self_static=cross
12261
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12262
lt_status=$lt_dlunknown
12263
cat > conftest.$ac_ext <<EOF
12264
#line 12264 "configure"
12265
#include "confdefs.h"
12274
# define LT_DLGLOBAL RTLD_GLOBAL
12277
# define LT_DLGLOBAL DL_GLOBAL
12279
# define LT_DLGLOBAL 0
12283
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12284
find out it does not work in some platform. */
12285
#ifndef LT_DLLAZY_OR_NOW
12287
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12290
# define LT_DLLAZY_OR_NOW DL_LAZY
12293
# define LT_DLLAZY_OR_NOW RTLD_NOW
12296
# define LT_DLLAZY_OR_NOW DL_NOW
12298
# define LT_DLLAZY_OR_NOW 0
12306
extern "C" void exit (int);
12309
void fnord() { int i=42;}
12312
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12313
int status = $lt_dlunknown;
12317
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12318
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12319
/* dlclose (self); */
12325
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326
(eval $ac_link) 2>&5
12328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12330
(./conftest; exit; ) 2>/dev/null
12332
case x$lt_status in
12333
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12334
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12335
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12338
# compilation failed
12339
lt_cv_dlopen_self_static=no
12346
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12347
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12350
CPPFLAGS="$save_CPPFLAGS"
12351
LDFLAGS="$save_LDFLAGS"
12356
case $lt_cv_dlopen_self in
12357
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12358
*) enable_dlopen_self=unknown ;;
12361
case $lt_cv_dlopen_self_static in
12362
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12363
*) enable_dlopen_self_static=unknown ;;
12368
# Report which librarie types wil actually be built
12369
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12370
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12371
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12372
echo "${ECHO_T}$can_build_shared" >&6
12374
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12375
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12376
test "$can_build_shared" = "no" && enable_shared=no
12378
# On AIX, shared libraries and static libraries use the same namespace, and
12379
# are all built from PIC.
12382
test "$enable_shared" = yes && enable_static=no
12383
if test -n "$RANLIB"; then
12384
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12385
postinstall_cmds='$RANLIB $lib'
12390
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12391
test "$enable_shared" = yes && enable_static=no
12394
darwin* | rhapsody*)
12395
if test "$GCC" = yes; then
12396
archive_cmds_need_lc=no
12398
rhapsody* | darwin1.[012])
12399
allow_undefined_flag='-undefined suppress'
12402
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12403
allow_undefined_flag='-flat_namespace -undefined suppress'
12405
case ${MACOSX_DEPLOYMENT_TARGET} in
12407
allow_undefined_flag='-flat_namespace -undefined suppress'
12410
allow_undefined_flag='-undefined dynamic_lookup'
12416
output_verbose_link_cmd='echo'
12417
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
12418
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12419
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12420
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12421
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12423
hardcode_automatic=yes
12424
hardcode_shlibpath_var=unsupported
12425
whole_archive_flag_spec='-all_load $convenience'
12426
link_all_deplibs=yes
12432
echo "$as_me:$LINENO: result: $enable_shared" >&5
12433
echo "${ECHO_T}$enable_shared" >&6
12435
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12436
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12437
# Make sure either enable_shared or enable_static is yes.
12438
test "$enable_shared" = yes || enable_static=yes
12439
echo "$as_me:$LINENO: result: $enable_static" >&5
12440
echo "${ECHO_T}$enable_static" >&6
12442
# The else clause should only fire when bootstrapping the
12443
# libtool distribution, otherwise you forgot to ship ltmain.sh
12444
# with your package, and you will get complaints that there are
12445
# no rules to generate ltmain.sh.
12446
if test -f "$ltmain"; then
12447
# See if we are running on zsh, and set the options which allow our commands through
12448
# without removal of \ escapes.
12449
if test -n "${ZSH_VERSION+set}" ; then
12450
setopt NO_GLOB_SUBST
12452
# Now quote all the things that may contain metacharacters while being
12453
# careful not to overquote the AC_SUBSTed values. We take copies of the
12454
# variables and quote the copies for generation of the libtool script.
12455
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12457
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12458
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12459
deplibs_check_method reload_flag reload_cmds need_locks \
12460
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12461
lt_cv_sys_global_symbol_to_c_name_address \
12462
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12463
old_postinstall_cmds old_postuninstall_cmds \
12467
lt_prog_compiler_wl \
12468
lt_prog_compiler_pic \
12469
lt_prog_compiler_static \
12470
lt_prog_compiler_no_builtin_flag \
12471
export_dynamic_flag_spec \
12472
thread_safe_flag_spec \
12473
whole_archive_flag_spec \
12474
enable_shared_with_static_runtimes \
12476
old_archive_from_new_cmds \
12481
compiler_lib_search_path \
12483
archive_expsym_cmds \
12485
postuninstall_cmds \
12486
old_archive_from_expsyms_cmds \
12487
allow_undefined_flag \
12488
no_undefined_flag \
12489
export_symbols_cmds \
12490
hardcode_libdir_flag_spec \
12491
hardcode_libdir_flag_spec_ld \
12492
hardcode_libdir_separator \
12493
hardcode_automatic \
12495
module_expsym_cmds \
12496
lt_cv_prog_compiler_c_o \
12498
include_expsyms; do
12501
old_archive_cmds | \
12502
old_archive_from_new_cmds | \
12504
archive_expsym_cmds | \
12506
module_expsym_cmds | \
12507
old_archive_from_expsyms_cmds | \
12508
export_symbols_cmds | \
12509
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12510
postinstall_cmds | postuninstall_cmds | \
12511
old_postinstall_cmds | old_postuninstall_cmds | \
12512
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12513
# Double-quote double-evaled strings.
12514
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12517
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12523
*'\$0 --fallback-echo"')
12524
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12528
cfgfile="${ofile}T"
12529
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12531
{ echo "$as_me:$LINENO: creating $ofile" >&5
12532
echo "$as_me: creating $ofile" >&6;}
12534
cat <<__EOF__ >> "$cfgfile"
12537
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12538
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12539
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12541
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12542
# Free Software Foundation, Inc.
12544
# This file is part of GNU Libtool:
12545
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12547
# This program is free software; you can redistribute it and/or modify
12548
# it under the terms of the GNU General Public License as published by
12549
# the Free Software Foundation; either version 2 of the License, or
12550
# (at your option) any later version.
12552
# This program is distributed in the hope that it will be useful, but
12553
# WITHOUT ANY WARRANTY; without even the implied warranty of
12554
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12555
# General Public License for more details.
12557
# You should have received a copy of the GNU General Public License
12558
# along with this program; if not, write to the Free Software
12559
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
12561
# As a special exception to the GNU General Public License, if you
12562
# distribute this file as part of a program that contains a
12563
# configuration script generated by Autoconf, you may include it under
12564
# the same distribution terms that you use for the rest of that program.
12566
# A sed program that does not truncate output.
12569
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12570
Xsed="$SED -e s/^X//"
12572
# The HP-UX ksh and POSIX shell print the target directory to stdout
12573
# if CDPATH is set.
12574
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
12576
# The names of the tagged configurations supported by this script.
12579
# ### BEGIN LIBTOOL CONFIG
12581
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12583
# Shell to use when invoking shell scripts.
12586
# Whether or not to build shared libraries.
12587
build_libtool_libs=$enable_shared
12589
# Whether or not to build static libraries.
12590
build_old_libs=$enable_static
12592
# Whether or not to add -lc for building shared libraries.
12593
build_libtool_need_lc=$archive_cmds_need_lc
12595
# Whether or not to disallow shared libs when runtime libs are static
12596
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12598
# Whether or not to optimize for fast installation.
12599
fast_install=$enable_fast_install
12602
host_alias=$host_alias
12605
# An echo program that does not interpret backslashes.
12610
AR_FLAGS=$lt_AR_FLAGS
12615
# A language-specific compiler.
12618
# Is the compiler the GNU C compiler?
12624
# The linker used to build libraries.
12627
# Whether we need hard or soft links.
12630
# A BSD-compatible nm program.
12633
# A symbol stripping program
12636
# Used to examine libraries when file_magic_cmd begins "file"
12637
MAGIC_CMD=$MAGIC_CMD
12639
# Used on cygwin: DLL creation program.
12642
# Used on cygwin: object dumper.
12645
# Used on cygwin: assembler.
12648
# The name of the directory that contains temporary libtool files.
12651
# How to create reloadable object files.
12652
reload_flag=$lt_reload_flag
12653
reload_cmds=$lt_reload_cmds
12655
# How to pass a linker flag through the compiler.
12656
wl=$lt_lt_prog_compiler_wl
12658
# Object file suffix (normally "o").
12659
objext="$ac_objext"
12661
# Old archive suffix (normally "a").
12664
# Shared library suffix (normally ".so").
12665
shrext_cmds='$shrext_cmds'
12667
# Executable file suffix (normally "").
12670
# Additional compiler flags for building library objects.
12671
pic_flag=$lt_lt_prog_compiler_pic
12674
# What is the maximum length of a command?
12675
max_cmd_len=$lt_cv_sys_max_cmd_len
12677
# Does compiler simultaneously support -c and -o options?
12678
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12680
# Must we lock files when doing compilation ?
12681
need_locks=$lt_need_locks
12683
# Do we need the lib prefix for modules?
12684
need_lib_prefix=$need_lib_prefix
12686
# Do we need a version for libraries?
12687
need_version=$need_version
12689
# Whether dlopen is supported.
12690
dlopen_support=$enable_dlopen
12692
# Whether dlopen of programs is supported.
12693
dlopen_self=$enable_dlopen_self
12695
# Whether dlopen of statically linked programs is supported.
12696
dlopen_self_static=$enable_dlopen_self_static
12698
# Compiler flag to prevent dynamic linking.
12699
link_static_flag=$lt_lt_prog_compiler_static
12701
# Compiler flag to turn off builtin functions.
12702
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12704
# Compiler flag to allow reflexive dlopens.
12705
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12707
# Compiler flag to generate shared objects directly from archives.
12708
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12710
# Compiler flag to generate thread-safe objects.
12711
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12713
# Library versioning type.
12714
version_type=$version_type
12716
# Format of library name prefix.
12717
libname_spec=$lt_libname_spec
12719
# List of archive names. First name is the real one, the rest are links.
12720
# The last name is the one that the linker finds with -lNAME.
12721
library_names_spec=$lt_library_names_spec
12723
# The coded name of the library, if different from the real name.
12724
soname_spec=$lt_soname_spec
12726
# Commands used to build and install an old-style archive.
12728
old_archive_cmds=$lt_old_archive_cmds
12729
old_postinstall_cmds=$lt_old_postinstall_cmds
12730
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12732
# Create an old-style archive from a shared archive.
12733
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12735
# Create a temporary old-style archive to link instead of a shared archive.
12736
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12738
# Commands used to build and install a shared archive.
12739
archive_cmds=$lt_archive_cmds
12740
archive_expsym_cmds=$lt_archive_expsym_cmds
12741
postinstall_cmds=$lt_postinstall_cmds
12742
postuninstall_cmds=$lt_postuninstall_cmds
12744
# Commands used to build a loadable module (assumed same as above if empty)
12745
module_cmds=$lt_module_cmds
12746
module_expsym_cmds=$lt_module_expsym_cmds
12748
# Commands to strip libraries.
12749
old_striplib=$lt_old_striplib
12750
striplib=$lt_striplib
12752
# Dependencies to place before the objects being linked to create a
12754
predep_objects=$lt_predep_objects
12756
# Dependencies to place after the objects being linked to create a
12758
postdep_objects=$lt_postdep_objects
12760
# Dependencies to place before the objects being linked to create a
12762
predeps=$lt_predeps
12764
# Dependencies to place after the objects being linked to create a
12766
postdeps=$lt_postdeps
12768
# The library search path used internally by the compiler when linking
12769
# a shared library.
12770
compiler_lib_search_path=$lt_compiler_lib_search_path
12772
# Method to check whether dependent libraries are shared objects.
12773
deplibs_check_method=$lt_deplibs_check_method
12775
# Command to use when deplibs_check_method == file_magic.
12776
file_magic_cmd=$lt_file_magic_cmd
12778
# Flag that allows shared libraries with undefined symbols to be built.
12779
allow_undefined_flag=$lt_allow_undefined_flag
12781
# Flag that forces no undefined symbols.
12782
no_undefined_flag=$lt_no_undefined_flag
12784
# Commands used to finish a libtool library installation in a directory.
12785
finish_cmds=$lt_finish_cmds
12787
# Same as above, but a single script fragment to be evaled but not shown.
12788
finish_eval=$lt_finish_eval
12790
# Take the output of nm and produce a listing of raw symbols and C names.
12791
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12793
# Transform the output of nm in a proper C declaration
12794
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12796
# Transform the output of nm in a C name address pair
12797
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12799
# This is the shared library runtime path variable.
12800
runpath_var=$runpath_var
12802
# This is the shared library path variable.
12803
shlibpath_var=$shlibpath_var
12805
# Is shlibpath searched before the hard-coded library search path?
12806
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12808
# How to hardcode a shared library path into an executable.
12809
hardcode_action=$hardcode_action
12811
# Whether we should hardcode library paths into libraries.
12812
hardcode_into_libs=$hardcode_into_libs
12814
# Flag to hardcode \$libdir into a binary during linking.
12815
# This must work even if \$libdir does not exist.
12816
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12818
# If ld is used when linking, flag to hardcode \$libdir into
12819
# a binary during linking. This must work even if \$libdir does
12821
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12823
# Whether we need a single -rpath flag with a separated argument.
12824
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12826
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12827
# resulting binary.
12828
hardcode_direct=$hardcode_direct
12830
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12831
# resulting binary.
12832
hardcode_minus_L=$hardcode_minus_L
12834
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12835
# the resulting binary.
12836
hardcode_shlibpath_var=$hardcode_shlibpath_var
12838
# Set to yes if building a shared library automatically hardcodes DIR into the library
12839
# and all subsequent libraries and executables linked against it.
12840
hardcode_automatic=$hardcode_automatic
12842
# Variables whose values should be saved in libtool wrapper scripts and
12843
# restored at relink time.
12844
variables_saved_for_relink="$variables_saved_for_relink"
12846
# Whether libtool must link a program against all its dependency libraries.
12847
link_all_deplibs=$link_all_deplibs
12849
# Compile-time system search path for libraries
12850
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12852
# Run-time system search path for libraries
12853
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12855
# Fix the shell variable \$srcfile for the compiler.
12856
fix_srcfile_path="$fix_srcfile_path"
12858
# Set to yes if exported symbols are required.
12859
always_export_symbols=$always_export_symbols
12861
# The commands to list exported symbols.
12862
export_symbols_cmds=$lt_export_symbols_cmds
12864
# The commands to extract the exported symbol list from a shared archive.
12865
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12867
# Symbols that should not be listed in the preloaded symbols.
12868
exclude_expsyms=$lt_exclude_expsyms
12870
# Symbols that must always be exported.
12871
include_expsyms=$lt_include_expsyms
12873
# ### END LIBTOOL CONFIG
12880
cat <<\EOF >> "$cfgfile"
12882
# AIX sometimes has problems with the GCC collect2 program. For some
12883
# reason, if we set the COLLECT_NAMES environment variable, the problems
12884
# vanish in a puff of smoke.
12885
if test "X${COLLECT_NAMES+set}" != Xset; then
12887
export COLLECT_NAMES
12893
# We use sed instead of cat because bash on DJGPP gets confused if
12894
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12895
# text mode, it properly converts lines to CR/LF. This bash problem
12896
# is reportedly fixed, but why not run on old versions too?
12897
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12899
mv -f "$cfgfile" "$ofile" || \
12900
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12904
# If there is no Makefile yet, we rely on a make rule to execute
12905
# `config.status --recheck' to rerun these tests and create the
12906
# libtool script then.
12907
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12908
if test -f "$ltmain_in"; then
12909
test -f Makefile && make "$ltmain"
12915
ac_cpp='$CPP $CPPFLAGS'
12916
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12923
# Check whether --with-tags or --without-tags was given.
12924
if test "${with_tags+set}" = set; then
12925
withval="$with_tags"
12926
tagnames="$withval"
12929
if test -f "$ltmain" && test -n "$tagnames"; then
12930
if test ! -f "${ofile}"; then
12931
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12932
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12935
if test -z "$LTCC"; then
12936
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12937
if test -z "$LTCC"; then
12938
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12939
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12941
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12942
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12946
# Extract list of available tagged configurations in $ofile.
12947
# Note that this assumes the entire list is on one line.
12948
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12950
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12951
for tagname in $tagnames; do
12953
# Check whether tagname contains only valid characters
12954
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12956
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12957
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12958
{ (exit 1); exit 1; }; }
12962
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12964
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12965
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12966
{ (exit 1); exit 1; }; }
12969
# Update the list of available tags.
12970
if test -n "$tagname"; then
12971
echo appending configuration tag \"$tagname\" to $ofile
12975
if test -n "$CXX" && test "X$CXX" != "Xno"; then
12977
ac_cpp='$CXXCPP $CPPFLAGS'
12978
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12979
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12980
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12985
archive_cmds_need_lc_CXX=no
12986
allow_undefined_flag_CXX=
12987
always_export_symbols_CXX=no
12988
archive_expsym_cmds_CXX=
12989
export_dynamic_flag_spec_CXX=
12990
hardcode_direct_CXX=no
12991
hardcode_libdir_flag_spec_CXX=
12992
hardcode_libdir_flag_spec_ld_CXX=
12993
hardcode_libdir_separator_CXX=
12994
hardcode_minus_L_CXX=no
12995
hardcode_automatic_CXX=no
12997
module_expsym_cmds_CXX=
12998
link_all_deplibs_CXX=unknown
12999
old_archive_cmds_CXX=$old_archive_cmds
13000
no_undefined_flag_CXX=
13001
whole_archive_flag_spec_CXX=
13002
enable_shared_with_static_runtimes_CXX=no
13004
# Dependencies to place before and after the object being linked:
13005
predep_objects_CXX=
13006
postdep_objects_CXX=
13009
compiler_lib_search_path_CXX=
13011
# Source file extension for C++ test sources.
13014
# Object file extension for compiled C++ test sources.
13018
# Code to be used in simple compile tests
13019
lt_simple_compile_test_code="int some_variable = 0;\n"
13021
# Code to be used in simple link tests
13022
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13024
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13026
# If no C compiler was specified, use CC.
13029
# Allow CC to be a program name with arguments.
13033
# Allow CC to be a program name with arguments.
13038
lt_save_with_gnu_ld=$with_gnu_ld
13039
lt_save_path_LD=$lt_cv_path_LD
13040
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13041
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13043
unset lt_cv_prog_gnu_ld
13045
if test -n "${lt_cv_path_LDCXX+set}"; then
13046
lt_cv_path_LD=$lt_cv_path_LDCXX
13048
unset lt_cv_path_LD
13050
test -z "${LDCXX+set}" || LD=$LDCXX
13054
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13056
# We don't want -fno-exception wen compiling C++ code, so set the
13057
# no_builtin_flag separately
13058
if test "$GXX" = yes; then
13059
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13061
lt_prog_compiler_no_builtin_flag_CXX=
13064
if test "$GXX" = yes; then
13065
# Set up default GNU C++ configuration
13068
# Check whether --with-gnu-ld or --without-gnu-ld was given.
13069
if test "${with_gnu_ld+set}" = set; then
13070
withval="$with_gnu_ld"
13071
test "$withval" = no || with_gnu_ld=yes
13076
if test "$GCC" = yes; then
13077
# Check if gcc -print-prog-name=ld gives a path.
13078
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13079
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13082
# gcc leaves a trailing carriage return which upsets mingw
13083
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13085
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13088
# Accept absolute paths.
13090
re_direlt='/[^/][^/]*/\.\./'
13091
# Canonicalize the pathname of ld
13092
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13093
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13094
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13096
test -z "$LD" && LD="$ac_prog"
13099
# If it fails, then pretend we aren't using GCC.
13103
# If it is relative, then search for the first ld in PATH.
13104
with_gnu_ld=unknown
13107
elif test "$with_gnu_ld" = yes; then
13108
echo "$as_me:$LINENO: checking for GNU ld" >&5
13109
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13111
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13112
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13114
if test "${lt_cv_path_LD+set}" = set; then
13115
echo $ECHO_N "(cached) $ECHO_C" >&6
13117
if test -z "$LD"; then
13118
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13119
for ac_dir in $PATH; do
13121
test -z "$ac_dir" && ac_dir=.
13122
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13123
lt_cv_path_LD="$ac_dir/$ac_prog"
13124
# Check to see if the program is GNU ld. I'd rather use --version,
13125
# but apparently some GNU ld's only accept -v.
13126
# Break only if it was the GNU/non-GNU ld that we prefer.
13127
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13128
*GNU* | *'with BFD'*)
13129
test "$with_gnu_ld" != no && break
13132
test "$with_gnu_ld" != yes && break
13139
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13143
LD="$lt_cv_path_LD"
13144
if test -n "$LD"; then
13145
echo "$as_me:$LINENO: result: $LD" >&5
13146
echo "${ECHO_T}$LD" >&6
13148
echo "$as_me:$LINENO: result: no" >&5
13149
echo "${ECHO_T}no" >&6
13151
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13152
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13153
{ (exit 1); exit 1; }; }
13154
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13155
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13156
if test "${lt_cv_prog_gnu_ld+set}" = set; then
13157
echo $ECHO_N "(cached) $ECHO_C" >&6
13159
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
13160
case `$LD -v 2>&1 </dev/null` in
13161
*GNU* | *'with BFD'*)
13162
lt_cv_prog_gnu_ld=yes
13165
lt_cv_prog_gnu_ld=no
13169
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13170
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13171
with_gnu_ld=$lt_cv_prog_gnu_ld
13175
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13176
# archiving commands below assume that GNU ld is being used.
13177
if test "$with_gnu_ld" = yes; then
13178
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13181
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13182
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13184
# If archive_cmds runs LD, not CC, wlarc should be empty
13185
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13186
# investigate it a little bit more. (MM)
13189
# ancient GNU ld didn't support --whole-archive et. al.
13190
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13191
grep 'no-whole-archive' > /dev/null; then
13192
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13194
whole_archive_flag_spec_CXX=
13200
# A generic and very simple default shared library creation
13201
# command for GNU C++ for the case where it uses the native
13202
# linker, instead of GNU ld. If possible, this setting should
13203
# overridden to take advantage of the native linker features on
13204
# the platform it is being used on.
13205
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13208
# Commands to make compiler produce verbose output that lists
13209
# what "hidden" libraries, object files and flags are used when
13210
# linking a shared library.
13211
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13219
# PORTME: fill in a description of your system's C++ link characteristics
13220
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13221
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13225
# FIXME: insert proper C++ library support
13229
if test "$host_cpu" = ia64; then
13230
# On IA64, the linker does run time linking by default, so we don't
13231
# have to do anything special.
13232
aix_use_runtimelinking=no
13233
exp_sym_flag='-Bexport'
13236
aix_use_runtimelinking=no
13238
# Test if we are trying to use run time linking or normal
13239
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13240
# need to do runtime linking.
13241
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13242
for ld_flag in $LDFLAGS; do
13245
aix_use_runtimelinking=yes
13252
exp_sym_flag='-bexport'
13253
no_entry_flag='-bnoentry'
13256
# When large executables or shared objects are built, AIX ld can
13257
# have problems creating the table of contents. If linking a library
13258
# or program results in "error TOC overflow" add -mminimal-toc to
13259
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13260
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13262
archive_cmds_CXX=''
13263
hardcode_direct_CXX=yes
13264
hardcode_libdir_separator_CXX=':'
13265
link_all_deplibs_CXX=yes
13267
if test "$GXX" = yes; then
13268
case $host_os in aix4.012|aix4.012.*)
13269
# We only want to do this on AIX 4.2 and lower, the check
13270
# below for broken collect2 doesn't work under 4.3+
13271
collect2name=`${CC} -print-prog-name=collect2`
13272
if test -f "$collect2name" && \
13273
strings "$collect2name" | grep resolve_lib_name >/dev/null
13275
# We have reworked collect2
13276
hardcode_direct_CXX=yes
13278
# We have old collect2
13279
hardcode_direct_CXX=unsupported
13280
# It fails to find uninstalled libraries when the uninstalled
13281
# path is not listed in the libpath. Setting hardcode_minus_L
13282
# to unsupported forces relinking
13283
hardcode_minus_L_CXX=yes
13284
hardcode_libdir_flag_spec_CXX='-L$libdir'
13285
hardcode_libdir_separator_CXX=
13288
shared_flag='-shared'
13291
if test "$host_cpu" = ia64; then
13292
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13293
# chokes on -Wl,-G. The following line is correct:
13296
if test "$aix_use_runtimelinking" = yes; then
13297
shared_flag='${wl}-G'
13299
shared_flag='${wl}-bM:SRE'
13304
# It seems that -bexpall does not export symbols beginning with
13305
# underscore (_), so it is better to generate a list of symbols to export.
13306
always_export_symbols_CXX=yes
13307
if test "$aix_use_runtimelinking" = yes; then
13308
# Warning - without using the other runtime loading flags (-brtl),
13309
# -berok will link without error, but may produce a broken library.
13310
allow_undefined_flag_CXX='-berok'
13311
# Determine the default libpath from the value encoded in an empty executable.
13312
cat >conftest.$ac_ext <<_ACEOF
13315
cat confdefs.h >>conftest.$ac_ext
13316
cat >>conftest.$ac_ext <<_ACEOF
13317
/* end confdefs.h. */
13327
rm -f conftest.$ac_objext conftest$ac_exeext
13328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13329
(eval $ac_link) 2>conftest.er1
13331
grep -v '^ *+' conftest.er1 >conftest.err
13333
cat conftest.err >&5
13334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335
(exit $ac_status); } &&
13336
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13337
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338
(eval $ac_try) 2>&5
13340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341
(exit $ac_status); }; } &&
13342
{ ac_try='test -s conftest$ac_exeext'
13343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344
(eval $ac_try) 2>&5
13346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347
(exit $ac_status); }; }; then
13349
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13351
# Check for a 64-bit object if we didn't find anything.
13352
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13355
echo "$as_me: failed program was:" >&5
13356
sed 's/^/| /' conftest.$ac_ext >&5
13359
rm -f conftest.err conftest.$ac_objext \
13360
conftest$ac_exeext conftest.$ac_ext
13361
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13363
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13365
archive_expsym_cmds_CXX="\$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"
13367
if test "$host_cpu" = ia64; then
13368
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13369
allow_undefined_flag_CXX="-z nodefs"
13370
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13372
# Determine the default libpath from the value encoded in an empty executable.
13373
cat >conftest.$ac_ext <<_ACEOF
13376
cat confdefs.h >>conftest.$ac_ext
13377
cat >>conftest.$ac_ext <<_ACEOF
13378
/* end confdefs.h. */
13388
rm -f conftest.$ac_objext conftest$ac_exeext
13389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390
(eval $ac_link) 2>conftest.er1
13392
grep -v '^ *+' conftest.er1 >conftest.err
13394
cat conftest.err >&5
13395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396
(exit $ac_status); } &&
13397
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399
(eval $ac_try) 2>&5
13401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402
(exit $ac_status); }; } &&
13403
{ ac_try='test -s conftest$ac_exeext'
13404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405
(eval $ac_try) 2>&5
13407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408
(exit $ac_status); }; }; then
13410
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13412
# Check for a 64-bit object if we didn't find anything.
13413
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13416
echo "$as_me: failed program was:" >&5
13417
sed 's/^/| /' conftest.$ac_ext >&5
13420
rm -f conftest.err conftest.$ac_objext \
13421
conftest$ac_exeext conftest.$ac_ext
13422
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13424
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13425
# Warning - without using the other run time loading flags,
13426
# -berok will link without error, but may produce a broken library.
13427
no_undefined_flag_CXX=' ${wl}-bernotok'
13428
allow_undefined_flag_CXX=' ${wl}-berok'
13429
# -bexpall does not export symbols beginning with underscore (_)
13430
always_export_symbols_CXX=yes
13431
# Exported symbols can be pulled into shared objects from archives
13432
whole_archive_flag_spec_CXX=' '
13433
archive_cmds_need_lc_CXX=yes
13434
# This is similar to how AIX traditionally builds it's shared libraries.
13435
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13440
case $cc_basename in
13442
# FIXME: insert proper C++ library support
13448
cygwin* | mingw* | pw32*)
13449
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13450
# as there is no search path for DLLs.
13451
hardcode_libdir_flag_spec_CXX='-L$libdir'
13452
allow_undefined_flag_CXX=unsupported
13453
always_export_symbols_CXX=no
13454
enable_shared_with_static_runtimes_CXX=yes
13456
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13457
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13458
# If the export-symbols file already is a .def file (1st line
13459
# is EXPORTS), use it as is; otherwise, prepend...
13460
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13461
cp $export_symbols $output_objdir/$soname.def;
13463
echo EXPORTS > $output_objdir/$soname.def;
13464
cat $export_symbols >> $output_objdir/$soname.def;
13466
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13472
darwin* | rhapsody*)
13473
if test "$GXX" = yes; then
13474
archive_cmds_need_lc_CXX=no
13476
rhapsody* | darwin1.[012])
13477
allow_undefined_flag_CXX='-undefined suppress'
13480
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13481
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
13483
case ${MACOSX_DEPLOYMENT_TARGET} in
13485
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
13488
allow_undefined_flag_CXX='-undefined dynamic_lookup'
13494
lt_int_apple_cc_single_mod=no
13495
output_verbose_link_cmd='echo'
13496
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13497
lt_int_apple_cc_single_mod=yes
13499
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13500
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13502
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13504
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13506
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13507
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13508
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13510
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13512
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13513
hardcode_direct_CXX=no
13514
hardcode_automatic_CXX=yes
13515
hardcode_shlibpath_var_CXX=unsupported
13516
whole_archive_flag_spec_CXX='-all_load $convenience'
13517
link_all_deplibs_CXX=yes
13524
case $cc_basename in
13526
# FIXME: insert proper C++ library support
13530
# Green Hills C++ Compiler
13531
# FIXME: insert proper C++ library support
13535
# FIXME: insert proper C++ library support
13541
# C++ shared libraries reported to be fairly broken before switch to ELF
13545
archive_cmds_need_lc_CXX=no
13547
freebsd* | kfreebsd*-gnu)
13548
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13555
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13556
hardcode_libdir_separator_CXX=:
13557
export_dynamic_flag_spec_CXX='${wl}-E'
13558
hardcode_direct_CXX=yes
13559
hardcode_minus_L_CXX=yes # Not in the search PATH,
13560
# but as the default
13561
# location of the library.
13563
case $cc_basename in
13565
# FIXME: insert proper C++ library support
13569
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13570
# Commands to make compiler produce verbose output that lists
13571
# what "hidden" libraries, object files and flags are used when
13572
# linking a shared library.
13574
# There doesn't appear to be a way to prevent this compiler from
13575
# explicitly linking system object files so we need to strip them
13576
# from the output so that they don't get included in the library
13578
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13581
if test "$GXX" = yes; then
13582
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13584
# FIXME: insert proper C++ library support
13591
if test $with_gnu_ld = no; then
13592
case "$host_cpu" in
13594
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13595
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13596
hardcode_libdir_separator_CXX=:
13599
hardcode_libdir_flag_spec_CXX='-L$libdir'
13602
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13603
hardcode_libdir_separator_CXX=:
13604
export_dynamic_flag_spec_CXX='${wl}-E'
13608
case "$host_cpu" in
13610
hardcode_direct_CXX=no
13611
hardcode_shlibpath_var_CXX=no
13614
hardcode_direct_CXX=no
13615
hardcode_shlibpath_var_CXX=no
13616
hardcode_minus_L_CXX=yes # Not in the search PATH,
13617
# but as the default
13618
# location of the library.
13621
hardcode_direct_CXX=yes
13622
hardcode_minus_L_CXX=yes # Not in the search PATH,
13623
# but as the default
13624
# location of the library.
13628
case $cc_basename in
13630
# FIXME: insert proper C++ library support
13634
case "$host_cpu" in
13636
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13639
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13642
# Commands to make compiler produce verbose output that lists
13643
# what "hidden" libraries, object files and flags are used when
13644
# linking a shared library.
13646
# There doesn't appear to be a way to prevent this compiler from
13647
# explicitly linking system object files so we need to strip them
13648
# from the output so that they don't get included in the library
13650
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13653
if test "$GXX" = yes; then
13654
if test $with_gnu_ld = no; then
13655
case "$host_cpu" in
13657
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13660
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13665
# FIXME: insert proper C++ library support
13672
case $cc_basename in
13675
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13677
# Archives containing C++ object files must be created using
13678
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13679
# necessary to make sure instantiated templates are included
13681
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13684
if test "$GXX" = yes; then
13685
if test "$with_gnu_ld" = no; then
13686
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13688
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13691
link_all_deplibs_CXX=yes
13694
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13695
hardcode_libdir_separator_CXX=:
13698
case $cc_basename in
13700
# Kuck and Associates, Inc. (KAI) C++ Compiler
13702
# KCC will only create a shared library if the output file
13703
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13704
# to its proper name (with version) after linking.
13705
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13706
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13707
# Commands to make compiler produce verbose output that lists
13708
# what "hidden" libraries, object files and flags are used when
13709
# linking a shared library.
13711
# There doesn't appear to be a way to prevent this compiler from
13712
# explicitly linking system object files so we need to strip them
13713
# from the output so that they don't get included in the library
13715
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13717
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13718
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13720
# Archives containing C++ object files must be created using
13721
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13722
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13727
archive_cmds_need_lc_CXX=no
13728
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13730
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13731
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13732
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13736
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13737
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13739
runpath_var=LD_RUN_PATH
13740
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13741
hardcode_libdir_separator_CXX=:
13743
# Commands to make compiler produce verbose output that lists
13744
# what "hidden" libraries, object files and flags are used when
13745
# linking a shared library.
13747
# There doesn't appear to be a way to prevent this compiler from
13748
# explicitly linking system object files so we need to strip them
13749
# from the output so that they don't get included in the library
13751
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13756
# FIXME: insert proper C++ library support
13760
# FIXME: insert proper C++ library support
13764
case $cc_basename in
13766
# FIXME: insert proper C++ library support
13770
# FIXME: insert proper C++ library support
13775
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13776
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13777
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13779
hardcode_libdir_flag_spec_CXX='-R$libdir'
13780
hardcode_direct_CXX=yes
13781
hardcode_shlibpath_var_CXX=no
13783
# Workaround some broken pre-1.5 toolchains
13784
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13787
case $cc_basename in
13789
# Kuck and Associates, Inc. (KAI) C++ Compiler
13791
# KCC will only create a shared library if the output file
13792
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13793
# to its proper name (with version) after linking.
13794
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13796
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13797
hardcode_libdir_separator_CXX=:
13799
# Archives containing C++ object files must be created using
13800
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13801
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13805
# Rational C++ 2.4.1
13806
# FIXME: insert proper C++ library support
13810
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13811
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13813
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13814
hardcode_libdir_separator_CXX=:
13816
# Commands to make compiler produce verbose output that lists
13817
# what "hidden" libraries, object files and flags are used when
13818
# linking a shared library.
13820
# There doesn't appear to be a way to prevent this compiler from
13821
# explicitly linking system object files so we need to strip them
13822
# from the output so that they don't get included in the library
13824
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13827
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13828
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13829
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13831
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13832
hardcode_libdir_separator_CXX=:
13834
# Commands to make compiler produce verbose output that lists
13835
# what "hidden" libraries, object files and flags are used when
13836
# linking a shared library.
13837
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13840
# FIXME: insert proper C++ library support
13847
case $cc_basename in
13849
# Kuck and Associates, Inc. (KAI) C++ Compiler
13851
# KCC will only create a shared library if the output file
13852
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13853
# to its proper name (with version) after linking.
13854
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13856
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13857
hardcode_libdir_separator_CXX=:
13859
# Archives containing C++ object files must be created using
13860
# the KAI C++ compiler.
13861
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13864
# Rational C++ 2.4.1
13865
# FIXME: insert proper C++ library support
13869
allow_undefined_flag_CXX=' -expect_unresolved \*'
13870
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13871
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13872
echo "-hidden">> $lib.exp~
13873
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
13876
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13877
hardcode_libdir_separator_CXX=:
13879
# Commands to make compiler produce verbose output that lists
13880
# what "hidden" libraries, object files and flags are used when
13881
# linking a shared library.
13883
# There doesn't appear to be a way to prevent this compiler from
13884
# explicitly linking system object files so we need to strip them
13885
# from the output so that they don't get included in the library
13887
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13890
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13891
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13892
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13894
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13895
hardcode_libdir_separator_CXX=:
13897
# Commands to make compiler produce verbose output that lists
13898
# what "hidden" libraries, object files and flags are used when
13899
# linking a shared library.
13900
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13903
# FIXME: insert proper C++ library support
13910
# FIXME: insert proper C++ library support
13914
archive_cmds_need_lc_CXX=no
13915
case $cc_basename in
13917
# FIXME: insert proper C++ library support
13921
# FIXME: insert proper C++ library support
13927
case $cc_basename in
13930
# FIXME: insert proper C++ library support
13935
# FIXME: insert proper C++ library support
13939
# FIXME: insert proper C++ library support
13945
case $cc_basename in
13947
# Sun C++ 4.2, 5.x and Centerline C++
13948
no_undefined_flag_CXX=' -zdefs'
13949
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13950
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13951
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13953
hardcode_libdir_flag_spec_CXX='-R$libdir'
13954
hardcode_shlibpath_var_CXX=no
13956
solaris2.0-5 | solaris2.0-5.*) ;;
13958
# The C++ compiler is used as linker so we must use $wl
13959
# flag to pass the commands to the underlying system
13961
# Supported since Solaris 2.6 (maybe 2.5.1?)
13962
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13965
link_all_deplibs_CXX=yes
13967
# Commands to make compiler produce verbose output that lists
13968
# what "hidden" libraries, object files and flags are used when
13969
# linking a shared library.
13971
# There doesn't appear to be a way to prevent this compiler from
13972
# explicitly linking system object files so we need to strip them
13973
# from the output so that they don't get included in the library
13975
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13977
# Archives containing C++ object files must be created using
13978
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13979
# necessary to make sure instantiated templates are included
13981
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13984
# Green Hills C++ Compiler
13985
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13987
# The C++ compiler must be used to create the archive.
13988
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13991
# GNU C++ compiler with Solaris linker
13992
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13993
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13994
if $CC --version | grep -v '^2\.7' > /dev/null; then
13995
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13996
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13997
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13999
# Commands to make compiler produce verbose output that lists
14000
# what "hidden" libraries, object files and flags are used when
14001
# linking a shared library.
14002
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14004
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14006
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14007
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14008
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14010
# Commands to make compiler produce verbose output that lists
14011
# what "hidden" libraries, object files and flags are used when
14012
# linking a shared library.
14013
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14016
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14021
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14022
archive_cmds_need_lc_CXX=no
14025
case $cc_basename in
14027
# NonStop-UX NCC 3.20
14028
# FIXME: insert proper C++ library support
14032
# FIXME: insert proper C++ library support
14038
# FIXME: insert proper C++ library support
14042
# FIXME: insert proper C++ library support
14046
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14047
echo "${ECHO_T}$ld_shlibs_CXX" >&6
14048
test "$ld_shlibs_CXX" = no && can_build_shared=no
14054
cat > conftest.$ac_ext <<EOF
14058
Foo (void) { a = 0; }
14064
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065
(eval $ac_compile) 2>&5
14067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068
(exit $ac_status); }; then
14069
# Parse the compiler output and extract the necessary
14070
# objects, libraries and library flags.
14072
# Sentinel used to keep track of whether or not we are before
14073
# the conftest object file.
14074
pre_test_object_deps_done=no
14076
# The `*' in the case matches for architectures that use `case' in
14077
# $output_verbose_cmd can trigger glob expansion during the loop
14078
# eval without this substitution.
14079
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14081
for p in `eval $output_verbose_link_cmd`; do
14085
# Some compilers place space between "-{L,R}" and the path.
14086
# Remove the space.
14087
if test $p = "-L" \
14088
|| test $p = "-R"; then
14095
if test "$pre_test_object_deps_done" = no; then
14098
# Internal compiler library paths should come after those
14099
# provided the user. The postdeps already come after the
14100
# user supplied libs so there is no need to process them.
14101
if test -z "$compiler_lib_search_path_CXX"; then
14102
compiler_lib_search_path_CXX="${prev}${p}"
14104
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14107
# The "-l" case would never come before the object being
14108
# linked, so don't bother handling this case.
14111
if test -z "$postdeps_CXX"; then
14112
postdeps_CXX="${prev}${p}"
14114
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14120
# This assumes that the test object file only shows up
14121
# once in the compiler output.
14122
if test "$p" = "conftest.$objext"; then
14123
pre_test_object_deps_done=yes
14127
if test "$pre_test_object_deps_done" = no; then
14128
if test -z "$predep_objects_CXX"; then
14129
predep_objects_CXX="$p"
14131
predep_objects_CXX="$predep_objects_CXX $p"
14134
if test -z "$postdep_objects_CXX"; then
14135
postdep_objects_CXX="$p"
14137
postdep_objects_CXX="$postdep_objects_CXX $p"
14142
*) ;; # Ignore the rest.
14150
echo "libtool.m4: error: problem compiling CXX test program"
14153
$rm -f confest.$objext
14155
case " $postdeps_CXX " in
14156
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14159
lt_prog_compiler_wl_CXX=
14160
lt_prog_compiler_pic_CXX=
14161
lt_prog_compiler_static_CXX=
14163
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14164
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14166
# C++ specific cases for pic, static, wl, etc.
14167
if test "$GXX" = yes; then
14168
lt_prog_compiler_wl_CXX='-Wl,'
14169
lt_prog_compiler_static_CXX='-static'
14173
# All AIX code is PIC.
14174
if test "$host_cpu" = ia64; then
14175
# AIX 5 now supports IA64 processor
14176
lt_prog_compiler_static_CXX='-Bstatic'
14180
# FIXME: we need at least 68020 code to build shared libraries, but
14181
# adding the `-m68020' flag to GCC prevents building anything better,
14183
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14185
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14186
# PIC is the default for these OSes.
14188
mingw* | os2* | pw32*)
14189
# This hack is so that the source file can tell whether it is being
14190
# built for inclusion in a dll (and should export symbols for example).
14191
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14193
darwin* | rhapsody*)
14194
# PIC is the default on this platform
14195
# Common symbols not allowed in MH_DYLIB files
14196
lt_prog_compiler_pic_CXX='-fno-common'
14199
# DJGPP does not support shared libraries at all
14200
lt_prog_compiler_pic_CXX=
14203
if test -d /usr/nec; then
14204
lt_prog_compiler_pic_CXX=-Kconform_pic
14208
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14209
# not for PA HP-UX.
14210
case "$host_cpu" in
14214
lt_prog_compiler_pic_CXX='-fPIC'
14219
lt_prog_compiler_pic_CXX='-fPIC'
14225
# All AIX code is PIC.
14226
if test "$host_cpu" = ia64; then
14227
# AIX 5 now supports IA64 processor
14228
lt_prog_compiler_static_CXX='-Bstatic'
14230
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14234
case $cc_basename in
14236
# Green Hills C++ Compiler
14237
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14242
case $cc_basename in
14244
lt_prog_compiler_pic_CXX='-KPIC'
14247
# Green Hills C++ Compiler
14248
lt_prog_compiler_pic_CXX='-pic'
14254
freebsd* | kfreebsd*-gnu)
14255
# FreeBSD uses GNU C++
14257
hpux9* | hpux10* | hpux11*)
14258
case $cc_basename in
14260
lt_prog_compiler_wl_CXX='-Wl,'
14261
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14262
if test "$host_cpu" != ia64; then
14263
lt_prog_compiler_pic_CXX='+Z'
14267
lt_prog_compiler_wl_CXX='-Wl,'
14268
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14269
case "$host_cpu" in
14274
lt_prog_compiler_pic_CXX='+Z'
14282
irix5* | irix6* | nonstopux*)
14283
case $cc_basename in
14285
lt_prog_compiler_wl_CXX='-Wl,'
14286
lt_prog_compiler_static_CXX='-non_shared'
14287
# CC pic flag -KPIC is the default.
14294
case $cc_basename in
14297
lt_prog_compiler_wl_CXX='--backend -Wl,'
14298
lt_prog_compiler_pic_CXX='-fPIC'
14302
lt_prog_compiler_wl_CXX='-Wl,'
14303
lt_prog_compiler_pic_CXX='-KPIC'
14304
lt_prog_compiler_static_CXX='-static'
14308
# Make sure the PIC flag is empty. It appears that all Alpha
14309
# Linux and Compaq Tru64 Unix objects are PIC.
14310
lt_prog_compiler_pic_CXX=
14311
lt_prog_compiler_static_CXX='-non_shared'
14322
case $cc_basename in
14324
lt_prog_compiler_pic_CXX='-W c,exportall'
14330
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14332
osf3* | osf4* | osf5*)
14333
case $cc_basename in
14335
lt_prog_compiler_wl_CXX='--backend -Wl,'
14338
# Rational C++ 2.4.1
14339
lt_prog_compiler_pic_CXX='-pic'
14342
# Digital/Compaq C++
14343
lt_prog_compiler_wl_CXX='-Wl,'
14344
# Make sure the PIC flag is empty. It appears that all Alpha
14345
# Linux and Compaq Tru64 Unix objects are PIC.
14346
lt_prog_compiler_pic_CXX=
14347
lt_prog_compiler_static_CXX='-non_shared'
14356
case $cc_basename in
14358
lt_prog_compiler_pic_CXX='-fPIC'
14365
case $cc_basename in
14367
# Sun C++ 4.2, 5.x and Centerline C++
14368
lt_prog_compiler_pic_CXX='-KPIC'
14369
lt_prog_compiler_static_CXX='-Bstatic'
14370
lt_prog_compiler_wl_CXX='-Qoption ld '
14373
# Green Hills C++ Compiler
14374
lt_prog_compiler_pic_CXX='-PIC'
14381
case $cc_basename in
14384
lt_prog_compiler_pic_CXX='-pic'
14385
lt_prog_compiler_static_CXX='-Bstatic'
14389
lt_prog_compiler_pic_CXX='-pic'
14396
case $cc_basename in
14398
# NonStop-UX NCC 3.20
14399
lt_prog_compiler_pic_CXX='-KPIC'
14410
lt_prog_compiler_can_build_shared_CXX=no
14415
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14416
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14419
# Check to make sure the PIC flag actually works.
14421
if test -n "$lt_prog_compiler_pic_CXX"; then
14423
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14424
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14425
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14426
echo $ECHO_N "(cached) $ECHO_C" >&6
14428
lt_prog_compiler_pic_works_CXX=no
14429
ac_outfile=conftest.$ac_objext
14430
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14431
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14432
# Insert the option either (1) after the last *FLAGS variable, or
14433
# (2) before a word containing "conftest.", or (3) at the end.
14434
# Note that $ac_compile itself does not contain backslashes and begins
14435
# with a dollar sign (not a hyphen), so the echo should work correctly.
14436
# The option is referenced via a variable to avoid confusing sed.
14437
lt_compile=`echo "$ac_compile" | $SED \
14438
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14439
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14440
-e 's:$: $lt_compiler_flag:'`
14441
(eval echo "\"\$as_me:14441: $lt_compile\"" >&5)
14442
(eval "$lt_compile" 2>conftest.err)
14444
cat conftest.err >&5
14445
echo "$as_me:14445: \$? = $ac_status" >&5
14446
if (exit $ac_status) && test -s "$ac_outfile"; then
14447
# The compiler can only warn and ignore the option if not recognized
14448
# So say no if there are warnings
14449
if test ! -s conftest.err; then
14450
lt_prog_compiler_pic_works_CXX=yes
14456
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14457
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14459
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14460
case $lt_prog_compiler_pic_CXX in
14462
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14465
lt_prog_compiler_pic_CXX=
14466
lt_prog_compiler_can_build_shared_CXX=no
14471
# For platforms which do not support PIC, -DPIC is meaningless:
14473
lt_prog_compiler_pic_CXX=
14476
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14480
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14481
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14482
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14483
echo $ECHO_N "(cached) $ECHO_C" >&6
14485
lt_cv_prog_compiler_c_o_CXX=no
14486
$rm -r conftest 2>/dev/null
14490
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14492
lt_compiler_flag="-o out/conftest2.$ac_objext"
14493
# Insert the option either (1) after the last *FLAGS variable, or
14494
# (2) before a word containing "conftest.", or (3) at the end.
14495
# Note that $ac_compile itself does not contain backslashes and begins
14496
# with a dollar sign (not a hyphen), so the echo should work correctly.
14497
lt_compile=`echo "$ac_compile" | $SED \
14498
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14499
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14500
-e 's:$: $lt_compiler_flag:'`
14501
(eval echo "\"\$as_me:14501: $lt_compile\"" >&5)
14502
(eval "$lt_compile" 2>out/conftest.err)
14504
cat out/conftest.err >&5
14505
echo "$as_me:14505: \$? = $ac_status" >&5
14506
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14508
# The compiler can only warn and ignore the option if not recognized
14509
# So say no if there are warnings
14510
if test ! -s out/conftest.err; then
14511
lt_cv_prog_compiler_c_o_CXX=yes
14516
# SGI C++ compiler will create directory out/ii_files/ for
14517
# template instantiation
14518
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14519
$rm out/* && rmdir out
14525
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14526
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14529
hard_links="nottested"
14530
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14531
# do not overwrite the value of need_locks provided by the user
14532
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14533
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14536
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14538
ln conftest.a conftest.b 2>&5 || hard_links=no
14539
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14540
echo "$as_me:$LINENO: result: $hard_links" >&5
14541
echo "${ECHO_T}$hard_links" >&6
14542
if test "$hard_links" = no; then
14543
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14544
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14551
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14552
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14554
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14557
# If we're using GNU nm, then we don't want the "-C" option.
14558
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14559
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14560
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14562
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14566
export_symbols_cmds_CXX="$ltdll_cmds"
14569
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14572
link_all_deplibs_CXX=no
14575
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14579
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14580
echo "${ECHO_T}$ld_shlibs_CXX" >&6
14581
test "$ld_shlibs_CXX" = no && can_build_shared=no
14583
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14584
if test "$GCC" = yes; then
14585
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14589
# Do we need to explicitly link libc?
14591
case "x$archive_cmds_need_lc_CXX" in
14593
# Assume -lc should be added
14594
archive_cmds_need_lc_CXX=yes
14596
if test "$enable_shared" = yes && test "$GCC" = yes; then
14597
case $archive_cmds_CXX in
14599
# FIXME: we may have to deal with multi-command sequences.
14602
# Test whether the compiler implicitly links with -lc since on some
14603
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14604
# to ld, don't add -lc before -lgcc.
14605
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14606
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14608
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14610
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14611
(eval $ac_compile) 2>&5
14613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614
(exit $ac_status); } 2>conftest.err; then
14617
libobjs=conftest.$ac_objext
14619
wl=$lt_prog_compiler_wl_CXX
14625
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14626
allow_undefined_flag_CXX=
14627
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14628
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631
(exit $ac_status); }
14633
archive_cmds_need_lc_CXX=no
14635
archive_cmds_need_lc_CXX=yes
14637
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14639
cat conftest.err 1>&5
14642
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14643
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14650
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14651
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14652
library_names_spec=
14653
libname_spec='lib$name'
14657
postuninstall_cmds=
14661
shlibpath_overrides_runpath=unknown
14663
dynamic_linker="$host_os ld.so"
14664
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14665
if test "$GCC" = yes; then
14666
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14667
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14668
# if the path contains ";" then we assume it to be the separator
14669
# otherwise default to the standard path separator (i.e. ":") - it is
14670
# assumed that no part of a normal pathname contains ";" but that should
14671
# okay in the real world where ";" in dirpaths is itself problematic.
14672
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14674
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14677
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14679
need_lib_prefix=unknown
14680
hardcode_into_libs=no
14682
# when you set need_version to no, make sure it does not cause -set_version
14683
# flags to be left without arguments
14684
need_version=unknown
14689
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14690
shlibpath_var=LIBPATH
14692
# AIX 3 has no versioning support, so we append a major version to the name.
14693
soname_spec='${libname}${release}${shared_ext}$major'
14700
hardcode_into_libs=yes
14701
if test "$host_cpu" = ia64; then
14702
# AIX 5 supports IA64
14703
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14704
shlibpath_var=LD_LIBRARY_PATH
14706
# With GCC up to 2.95.x, collect2 would create an import file
14707
# for dependence libraries. The import file would start with
14708
# the line `#! .'. This would cause the generated library to
14709
# depend on `.', always an invalid library. This was fixed in
14710
# development snapshots of GCC prior to 3.0.
14712
aix4 | aix4.[01] | aix4.[01].*)
14713
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14715
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14718
can_build_shared=no
14722
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14723
# soname into executable. Probably we can add versioning support to
14724
# collect2, so additional links can be useful in future.
14725
if test "$aix_use_runtimelinking" = yes; then
14726
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14727
# instead of lib<name>.a to let people know that these are not
14728
# typical AIX shared libraries.
14729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731
# We preserve .a as extension for shared libraries through AIX4.2
14732
# and later when we are not doing run time linking.
14733
library_names_spec='${libname}${release}.a $libname.a'
14734
soname_spec='${libname}${release}${shared_ext}$major'
14736
shlibpath_var=LIBPATH
14741
library_names_spec='$libname.ixlibrary $libname.a'
14742
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14743
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'
14747
library_names_spec='${libname}${shared_ext}'
14748
dynamic_linker="$host_os ld.so"
14749
shlibpath_var=LIBRARY_PATH
14755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756
soname_spec='${libname}${release}${shared_ext}$major'
14757
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14758
shlibpath_var=LD_LIBRARY_PATH
14759
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14760
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14761
# the default ld.so.conf also contains /usr/contrib/lib and
14762
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14763
# libtool to hard-code these into programs
14766
cygwin* | mingw* | pw32*)
14767
version_type=windows
14772
case $GCC,$host_os in
14773
yes,cygwin* | yes,mingw* | yes,pw32*)
14774
library_names_spec='$libname.dll.a'
14775
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14776
postinstall_cmds='base_file=`basename \${file}`~
14777
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14778
dldir=$destdir/`dirname \$dlpath`~
14779
test -d \$dldir || mkdir -p \$dldir~
14780
$install_prog $dir/$dlname \$dldir/$dlname'
14781
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14782
dlpath=$dir/\$dldll~
14784
shlibpath_overrides_runpath=yes
14788
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14789
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14790
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14793
# MinGW DLLs use traditional 'lib' prefix
14794
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14795
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14796
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14797
# It is most probably a Windows format PATH printed by
14798
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14799
# path with ; separators, and with drive letters. We can handle the
14800
# drive letters (cygwin fileutils understands them), so leave them,
14801
# especially as we might pass files found there to a mingw objdump,
14802
# which wouldn't understand a cygwinified path. Ahh.
14803
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14805
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14809
# pw32 DLLs use 'pw' prefix rather than 'lib'
14810
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14816
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14819
dynamic_linker='Win32 ld.exe'
14820
# FIXME: first we should search . and the directory the executable is in
14824
darwin* | rhapsody*)
14825
dynamic_linker="$host_os dyld"
14826
version_type=darwin
14829
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14830
soname_spec='${libname}${release}${major}$shared_ext'
14831
shlibpath_overrides_runpath=yes
14832
shlibpath_var=DYLD_LIBRARY_PATH
14833
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14834
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14835
if test "$GCC" = yes; then
14836
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14838
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14840
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14848
soname_spec='${libname}${release}${shared_ext}$major'
14849
shlibpath_var=LD_LIBRARY_PATH
14860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14861
soname_spec='${libname}${release}${shared_ext}$major'
14862
shlibpath_var=LD_LIBRARY_PATH
14863
shlibpath_overrides_runpath=no
14864
hardcode_into_libs=yes
14865
dynamic_linker='GNU ld.so'
14869
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14870
version_type=freebsd-$objformat
14871
case $version_type in
14873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14878
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14882
shlibpath_var=LD_LIBRARY_PATH
14885
shlibpath_overrides_runpath=yes
14887
freebsd3.01* | freebsdelf3.01*)
14888
shlibpath_overrides_runpath=yes
14889
hardcode_into_libs=yes
14892
shlibpath_overrides_runpath=no
14893
hardcode_into_libs=yes
14902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14903
soname_spec='${libname}${release}${shared_ext}$major'
14904
shlibpath_var=LD_LIBRARY_PATH
14905
hardcode_into_libs=yes
14908
hpux9* | hpux10* | hpux11*)
14909
# Give a soname corresponding to the major version so that dld.sl refuses to
14910
# link against other versions.
14914
case "$host_cpu" in
14917
hardcode_into_libs=yes
14918
dynamic_linker="$host_os dld.so"
14919
shlibpath_var=LD_LIBRARY_PATH
14920
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14921
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922
soname_spec='${libname}${release}${shared_ext}$major'
14923
if test "X$HPUX_IA64_MODE" = X32; then
14924
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14926
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14928
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14932
hardcode_into_libs=yes
14933
dynamic_linker="$host_os dld.sl"
14934
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14935
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937
soname_spec='${libname}${release}${shared_ext}$major'
14938
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14939
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14943
dynamic_linker="$host_os dld.sl"
14944
shlibpath_var=SHLIB_PATH
14945
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947
soname_spec='${libname}${release}${shared_ext}$major'
14950
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14951
postinstall_cmds='chmod 555 $lib'
14954
irix5* | irix6* | nonstopux*)
14956
nonstopux*) version_type=nonstopux ;;
14958
if test "$lt_cv_prog_gnu_ld" = yes; then
14966
soname_spec='${libname}${release}${shared_ext}$major'
14967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14969
irix5* | nonstopux*)
14970
libsuff= shlibsuff=
14973
case $LD in # libtool.m4 will add one of these switches to LD
14974
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14975
libsuff= shlibsuff= libmagic=32-bit;;
14976
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14977
libsuff=32 shlibsuff=N32 libmagic=N32;;
14978
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14979
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14980
*) libsuff= shlibsuff= libmagic=never-match;;
14984
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14985
shlibpath_overrides_runpath=no
14986
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14987
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14988
hardcode_into_libs=yes
14991
# No shared lib support for Linux oldld, aout, or coff.
14992
linux*oldld* | linux*aout* | linux*coff*)
14996
# This must be Linux ELF.
15001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002
soname_spec='${libname}${release}${shared_ext}$major'
15003
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15004
shlibpath_var=LD_LIBRARY_PATH
15005
shlibpath_overrides_runpath=no
15006
# This implies no fast_install, which is unacceptable.
15007
# Some rework will be needed to allow for fast_install
15008
# before this can be enabled.
15009
hardcode_into_libs=yes
15011
# Append ld.so.conf contents to the search path
15012
if test -f /etc/ld.so.conf; then
15013
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15014
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15017
# We used to test for /lib/ld.so.1 and disable shared libraries on
15018
# powerpc, because MkLinux only supported shared libraries with the
15019
# GNU dynamic linker. Since this was broken with cross compilers,
15020
# most powerpc-linux boxes support dynamic linking these days and
15021
# people can always --disable-shared, the test was removed, and we
15022
# assume the GNU/Linux dynamic linker is in use.
15023
dynamic_linker='GNU/Linux ld.so'
15030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15031
soname_spec='${libname}${release}${shared_ext}$major'
15032
shlibpath_var=LD_LIBRARY_PATH
15033
shlibpath_overrides_runpath=no
15034
hardcode_into_libs=yes
15035
dynamic_linker='NetBSD ld.elf_so'
15042
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15043
soname_spec='${libname}${release}${shared_ext}$major'
15044
shlibpath_var=LD_LIBRARY_PATH
15045
shlibpath_overrides_runpath=no
15046
hardcode_into_libs=yes
15047
dynamic_linker='GNU ld.so'
15054
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15056
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15057
dynamic_linker='NetBSD (a.out) ld.so'
15059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15060
soname_spec='${libname}${release}${shared_ext}$major'
15061
dynamic_linker='NetBSD ld.elf_so'
15063
shlibpath_var=LD_LIBRARY_PATH
15064
shlibpath_overrides_runpath=yes
15065
hardcode_into_libs=yes
15070
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071
shlibpath_var=LD_LIBRARY_PATH
15072
shlibpath_overrides_runpath=yes
15079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080
soname_spec='${libname}${release}${shared_ext}$major'
15081
shlibpath_var=LD_LIBRARY_PATH
15082
shlibpath_overrides_runpath=yes
15089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15090
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15091
shlibpath_var=LD_LIBRARY_PATH
15092
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15094
openbsd2.[89] | openbsd2.[89].*)
15095
shlibpath_overrides_runpath=no
15098
shlibpath_overrides_runpath=yes
15102
shlibpath_overrides_runpath=yes
15107
libname_spec='$name'
15110
library_names_spec='$libname${shared_ext} $libname.a'
15111
dynamic_linker='OS/2 ld.exe'
15112
shlibpath_var=LIBPATH
15115
osf3* | osf4* | osf5*)
15119
soname_spec='${libname}${release}${shared_ext}$major'
15120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121
shlibpath_var=LD_LIBRARY_PATH
15122
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15123
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15128
soname_spec='${libname}${release}${shared_ext}$major'
15129
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130
shlibpath_var=LD_LIBRARY_PATH
15137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138
soname_spec='${libname}${release}${shared_ext}$major'
15139
shlibpath_var=LD_LIBRARY_PATH
15140
shlibpath_overrides_runpath=yes
15141
hardcode_into_libs=yes
15142
# ldd complains unless libraries are executable
15143
postinstall_cmds='chmod +x $lib'
15148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15149
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15150
shlibpath_var=LD_LIBRARY_PATH
15151
shlibpath_overrides_runpath=yes
15152
if test "$with_gnu_ld" = yes; then
15158
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161
soname_spec='${libname}${release}${shared_ext}$major'
15162
shlibpath_var=LD_LIBRARY_PATH
15163
case $host_vendor in
15165
shlibpath_overrides_runpath=no
15167
export_dynamic_flag_spec='${wl}-Blargedynsym'
15168
runpath_var=LD_RUN_PATH
15176
shlibpath_overrides_runpath=no
15177
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15183
if test -d /usr/nec ;then
15185
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15186
soname_spec='$libname${shared_ext}.$major'
15187
shlibpath_var=LD_LIBRARY_PATH
15193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194
soname_spec='${libname}${release}${shared_ext}$major'
15195
shlibpath_var=LD_LIBRARY_PATH
15202
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15203
echo "${ECHO_T}$dynamic_linker" >&6
15204
test "$dynamic_linker" = no && can_build_shared=no
15206
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15207
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15208
hardcode_action_CXX=
15209
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15210
test -n "$runpath_var CXX" || \
15211
test "X$hardcode_automatic_CXX"="Xyes" ; then
15213
# We can hardcode non-existant directories.
15214
if test "$hardcode_direct_CXX" != no &&
15215
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15216
# have to relink, otherwise we might link with an installed library
15217
# when we should be linking with a yet-to-be-installed one
15218
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15219
test "$hardcode_minus_L_CXX" != no; then
15220
# Linking always hardcodes the temporary library directory.
15221
hardcode_action_CXX=relink
15223
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15224
hardcode_action_CXX=immediate
15227
# We cannot hardcode anything, or else we can only hardcode existing
15229
hardcode_action_CXX=unsupported
15231
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15232
echo "${ECHO_T}$hardcode_action_CXX" >&6
15234
if test "$hardcode_action_CXX" = relink; then
15235
# Fast installation is not supported
15236
enable_fast_install=no
15237
elif test "$shlibpath_overrides_runpath" = yes ||
15238
test "$enable_shared" = no; then
15239
# Fast installation is not necessary
15240
enable_fast_install=needless
15245
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15246
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15247
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15248
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15249
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15250
echo "$as_me:$LINENO: result: yes" >&5
15251
echo "${ECHO_T}yes" >&6
15253
# FIXME - insert some real tests, host_os isn't really good enough
15256
if test -n "$STRIP" ; then
15257
striplib="$STRIP -x"
15258
echo "$as_me:$LINENO: result: yes" >&5
15259
echo "${ECHO_T}yes" >&6
15261
echo "$as_me:$LINENO: result: no" >&5
15262
echo "${ECHO_T}no" >&6
15266
echo "$as_me:$LINENO: result: no" >&5
15267
echo "${ECHO_T}no" >&6
15272
if test "x$enable_dlopen" != xyes; then
15273
enable_dlopen=unknown
15274
enable_dlopen_self=unknown
15275
enable_dlopen_self_static=unknown
15282
lt_cv_dlopen="load_add_on"
15284
lt_cv_dlopen_self=yes
15288
lt_cv_dlopen="LoadLibrary"
15293
lt_cv_dlopen="dlopen"
15298
# if libdl is installed we need to link against it
15299
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15300
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15301
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15302
echo $ECHO_N "(cached) $ECHO_C" >&6
15304
ac_check_lib_save_LIBS=$LIBS
15306
cat >conftest.$ac_ext <<_ACEOF
15309
cat confdefs.h >>conftest.$ac_ext
15310
cat >>conftest.$ac_ext <<_ACEOF
15311
/* end confdefs.h. */
15313
/* Override any gcc2 internal prototype to avoid an error. */
15317
/* We use char because int might match the return type of a gcc2
15318
builtin and then its argument prototype would still apply. */
15328
rm -f conftest.$ac_objext conftest$ac_exeext
15329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330
(eval $ac_link) 2>conftest.er1
15332
grep -v '^ *+' conftest.er1 >conftest.err
15334
cat conftest.err >&5
15335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336
(exit $ac_status); } &&
15337
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339
(eval $ac_try) 2>&5
15341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342
(exit $ac_status); }; } &&
15343
{ ac_try='test -s conftest$ac_exeext'
15344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345
(eval $ac_try) 2>&5
15347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348
(exit $ac_status); }; }; then
15349
ac_cv_lib_dl_dlopen=yes
15351
echo "$as_me: failed program was:" >&5
15352
sed 's/^/| /' conftest.$ac_ext >&5
15354
ac_cv_lib_dl_dlopen=no
15356
rm -f conftest.err conftest.$ac_objext \
15357
conftest$ac_exeext conftest.$ac_ext
15358
LIBS=$ac_check_lib_save_LIBS
15360
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15361
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15362
if test $ac_cv_lib_dl_dlopen = yes; then
15363
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15366
lt_cv_dlopen="dyld"
15368
lt_cv_dlopen_self=yes
15375
echo "$as_me:$LINENO: checking for shl_load" >&5
15376
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15377
if test "${ac_cv_func_shl_load+set}" = set; then
15378
echo $ECHO_N "(cached) $ECHO_C" >&6
15380
cat >conftest.$ac_ext <<_ACEOF
15383
cat confdefs.h >>conftest.$ac_ext
15384
cat >>conftest.$ac_ext <<_ACEOF
15385
/* end confdefs.h. */
15386
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15387
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15388
#define shl_load innocuous_shl_load
15390
/* System header to define __stub macros and hopefully few prototypes,
15391
which can conflict with char shl_load (); below.
15392
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15393
<limits.h> exists even on freestanding compilers. */
15396
# include <limits.h>
15398
# include <assert.h>
15403
/* Override any gcc2 internal prototype to avoid an error. */
15408
/* We use char because int might match the return type of a gcc2
15409
builtin and then its argument prototype would still apply. */
15411
/* The GNU C library defines this for functions which it implements
15412
to always fail with ENOSYS. Some functions are actually named
15413
something starting with __ and the normal name is an alias. */
15414
#if defined (__stub_shl_load) || defined (__stub___shl_load)
15417
char (*f) () = shl_load;
15426
return f != shl_load;
15431
rm -f conftest.$ac_objext conftest$ac_exeext
15432
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433
(eval $ac_link) 2>conftest.er1
15435
grep -v '^ *+' conftest.er1 >conftest.err
15437
cat conftest.err >&5
15438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439
(exit $ac_status); } &&
15440
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15441
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442
(eval $ac_try) 2>&5
15444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445
(exit $ac_status); }; } &&
15446
{ ac_try='test -s conftest$ac_exeext'
15447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448
(eval $ac_try) 2>&5
15450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451
(exit $ac_status); }; }; then
15452
ac_cv_func_shl_load=yes
15454
echo "$as_me: failed program was:" >&5
15455
sed 's/^/| /' conftest.$ac_ext >&5
15457
ac_cv_func_shl_load=no
15459
rm -f conftest.err conftest.$ac_objext \
15460
conftest$ac_exeext conftest.$ac_ext
15462
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15463
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15464
if test $ac_cv_func_shl_load = yes; then
15465
lt_cv_dlopen="shl_load"
15467
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15468
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15469
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15470
echo $ECHO_N "(cached) $ECHO_C" >&6
15472
ac_check_lib_save_LIBS=$LIBS
15474
cat >conftest.$ac_ext <<_ACEOF
15477
cat confdefs.h >>conftest.$ac_ext
15478
cat >>conftest.$ac_ext <<_ACEOF
15479
/* end confdefs.h. */
15481
/* Override any gcc2 internal prototype to avoid an error. */
15485
/* We use char because int might match the return type of a gcc2
15486
builtin and then its argument prototype would still apply. */
15496
rm -f conftest.$ac_objext conftest$ac_exeext
15497
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15498
(eval $ac_link) 2>conftest.er1
15500
grep -v '^ *+' conftest.er1 >conftest.err
15502
cat conftest.err >&5
15503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504
(exit $ac_status); } &&
15505
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507
(eval $ac_try) 2>&5
15509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510
(exit $ac_status); }; } &&
15511
{ ac_try='test -s conftest$ac_exeext'
15512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513
(eval $ac_try) 2>&5
15515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516
(exit $ac_status); }; }; then
15517
ac_cv_lib_dld_shl_load=yes
15519
echo "$as_me: failed program was:" >&5
15520
sed 's/^/| /' conftest.$ac_ext >&5
15522
ac_cv_lib_dld_shl_load=no
15524
rm -f conftest.err conftest.$ac_objext \
15525
conftest$ac_exeext conftest.$ac_ext
15526
LIBS=$ac_check_lib_save_LIBS
15528
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15529
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15530
if test $ac_cv_lib_dld_shl_load = yes; then
15531
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15533
echo "$as_me:$LINENO: checking for dlopen" >&5
15534
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15535
if test "${ac_cv_func_dlopen+set}" = set; then
15536
echo $ECHO_N "(cached) $ECHO_C" >&6
15538
cat >conftest.$ac_ext <<_ACEOF
15541
cat confdefs.h >>conftest.$ac_ext
15542
cat >>conftest.$ac_ext <<_ACEOF
15543
/* end confdefs.h. */
15544
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15545
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15546
#define dlopen innocuous_dlopen
15548
/* System header to define __stub macros and hopefully few prototypes,
15549
which can conflict with char dlopen (); below.
15550
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15551
<limits.h> exists even on freestanding compilers. */
15554
# include <limits.h>
15556
# include <assert.h>
15561
/* Override any gcc2 internal prototype to avoid an error. */
15566
/* We use char because int might match the return type of a gcc2
15567
builtin and then its argument prototype would still apply. */
15569
/* The GNU C library defines this for functions which it implements
15570
to always fail with ENOSYS. Some functions are actually named
15571
something starting with __ and the normal name is an alias. */
15572
#if defined (__stub_dlopen) || defined (__stub___dlopen)
15575
char (*f) () = dlopen;
15584
return f != dlopen;
15589
rm -f conftest.$ac_objext conftest$ac_exeext
15590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591
(eval $ac_link) 2>conftest.er1
15593
grep -v '^ *+' conftest.er1 >conftest.err
15595
cat conftest.err >&5
15596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597
(exit $ac_status); } &&
15598
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600
(eval $ac_try) 2>&5
15602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603
(exit $ac_status); }; } &&
15604
{ ac_try='test -s conftest$ac_exeext'
15605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606
(eval $ac_try) 2>&5
15608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609
(exit $ac_status); }; }; then
15610
ac_cv_func_dlopen=yes
15612
echo "$as_me: failed program was:" >&5
15613
sed 's/^/| /' conftest.$ac_ext >&5
15615
ac_cv_func_dlopen=no
15617
rm -f conftest.err conftest.$ac_objext \
15618
conftest$ac_exeext conftest.$ac_ext
15620
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15621
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15622
if test $ac_cv_func_dlopen = yes; then
15623
lt_cv_dlopen="dlopen"
15625
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15626
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15627
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15628
echo $ECHO_N "(cached) $ECHO_C" >&6
15630
ac_check_lib_save_LIBS=$LIBS
15632
cat >conftest.$ac_ext <<_ACEOF
15635
cat confdefs.h >>conftest.$ac_ext
15636
cat >>conftest.$ac_ext <<_ACEOF
15637
/* end confdefs.h. */
15639
/* Override any gcc2 internal prototype to avoid an error. */
15643
/* We use char because int might match the return type of a gcc2
15644
builtin and then its argument prototype would still apply. */
15654
rm -f conftest.$ac_objext conftest$ac_exeext
15655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15656
(eval $ac_link) 2>conftest.er1
15658
grep -v '^ *+' conftest.er1 >conftest.err
15660
cat conftest.err >&5
15661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662
(exit $ac_status); } &&
15663
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665
(eval $ac_try) 2>&5
15667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668
(exit $ac_status); }; } &&
15669
{ ac_try='test -s conftest$ac_exeext'
15670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671
(eval $ac_try) 2>&5
15673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674
(exit $ac_status); }; }; then
15675
ac_cv_lib_dl_dlopen=yes
15677
echo "$as_me: failed program was:" >&5
15678
sed 's/^/| /' conftest.$ac_ext >&5
15680
ac_cv_lib_dl_dlopen=no
15682
rm -f conftest.err conftest.$ac_objext \
15683
conftest$ac_exeext conftest.$ac_ext
15684
LIBS=$ac_check_lib_save_LIBS
15686
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15687
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15688
if test $ac_cv_lib_dl_dlopen = yes; then
15689
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15691
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15692
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15693
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15694
echo $ECHO_N "(cached) $ECHO_C" >&6
15696
ac_check_lib_save_LIBS=$LIBS
15697
LIBS="-lsvld $LIBS"
15698
cat >conftest.$ac_ext <<_ACEOF
15701
cat confdefs.h >>conftest.$ac_ext
15702
cat >>conftest.$ac_ext <<_ACEOF
15703
/* end confdefs.h. */
15705
/* Override any gcc2 internal prototype to avoid an error. */
15709
/* We use char because int might match the return type of a gcc2
15710
builtin and then its argument prototype would still apply. */
15720
rm -f conftest.$ac_objext conftest$ac_exeext
15721
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15722
(eval $ac_link) 2>conftest.er1
15724
grep -v '^ *+' conftest.er1 >conftest.err
15726
cat conftest.err >&5
15727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728
(exit $ac_status); } &&
15729
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731
(eval $ac_try) 2>&5
15733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734
(exit $ac_status); }; } &&
15735
{ ac_try='test -s conftest$ac_exeext'
15736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737
(eval $ac_try) 2>&5
15739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740
(exit $ac_status); }; }; then
15741
ac_cv_lib_svld_dlopen=yes
15743
echo "$as_me: failed program was:" >&5
15744
sed 's/^/| /' conftest.$ac_ext >&5
15746
ac_cv_lib_svld_dlopen=no
15748
rm -f conftest.err conftest.$ac_objext \
15749
conftest$ac_exeext conftest.$ac_ext
15750
LIBS=$ac_check_lib_save_LIBS
15752
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15753
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15754
if test $ac_cv_lib_svld_dlopen = yes; then
15755
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15757
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15758
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15759
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15760
echo $ECHO_N "(cached) $ECHO_C" >&6
15762
ac_check_lib_save_LIBS=$LIBS
15764
cat >conftest.$ac_ext <<_ACEOF
15767
cat confdefs.h >>conftest.$ac_ext
15768
cat >>conftest.$ac_ext <<_ACEOF
15769
/* end confdefs.h. */
15771
/* Override any gcc2 internal prototype to avoid an error. */
15775
/* We use char because int might match the return type of a gcc2
15776
builtin and then its argument prototype would still apply. */
15786
rm -f conftest.$ac_objext conftest$ac_exeext
15787
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788
(eval $ac_link) 2>conftest.er1
15790
grep -v '^ *+' conftest.er1 >conftest.err
15792
cat conftest.err >&5
15793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794
(exit $ac_status); } &&
15795
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797
(eval $ac_try) 2>&5
15799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800
(exit $ac_status); }; } &&
15801
{ ac_try='test -s conftest$ac_exeext'
15802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15803
(eval $ac_try) 2>&5
15805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806
(exit $ac_status); }; }; then
15807
ac_cv_lib_dld_dld_link=yes
15809
echo "$as_me: failed program was:" >&5
15810
sed 's/^/| /' conftest.$ac_ext >&5
15812
ac_cv_lib_dld_dld_link=no
15814
rm -f conftest.err conftest.$ac_objext \
15815
conftest$ac_exeext conftest.$ac_ext
15816
LIBS=$ac_check_lib_save_LIBS
15818
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15819
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15820
if test $ac_cv_lib_dld_dld_link = yes; then
15821
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15842
if test "x$lt_cv_dlopen" != xno; then
15848
case $lt_cv_dlopen in
15850
save_CPPFLAGS="$CPPFLAGS"
15851
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15853
save_LDFLAGS="$LDFLAGS"
15854
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15857
LIBS="$lt_cv_dlopen_libs $LIBS"
15859
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15860
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15861
if test "${lt_cv_dlopen_self+set}" = set; then
15862
echo $ECHO_N "(cached) $ECHO_C" >&6
15864
if test "$cross_compiling" = yes; then :
15865
lt_cv_dlopen_self=cross
15867
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15868
lt_status=$lt_dlunknown
15869
cat > conftest.$ac_ext <<EOF
15870
#line 15870 "configure"
15871
#include "confdefs.h"
15880
# define LT_DLGLOBAL RTLD_GLOBAL
15883
# define LT_DLGLOBAL DL_GLOBAL
15885
# define LT_DLGLOBAL 0
15889
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15890
find out it does not work in some platform. */
15891
#ifndef LT_DLLAZY_OR_NOW
15893
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15896
# define LT_DLLAZY_OR_NOW DL_LAZY
15899
# define LT_DLLAZY_OR_NOW RTLD_NOW
15902
# define LT_DLLAZY_OR_NOW DL_NOW
15904
# define LT_DLLAZY_OR_NOW 0
15912
extern "C" void exit (int);
15915
void fnord() { int i=42;}
15918
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15919
int status = $lt_dlunknown;
15923
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15924
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15925
/* dlclose (self); */
15931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15932
(eval $ac_link) 2>&5
15934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15936
(./conftest; exit; ) 2>/dev/null
15938
case x$lt_status in
15939
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15940
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15941
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15944
# compilation failed
15945
lt_cv_dlopen_self=no
15952
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15953
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15955
if test "x$lt_cv_dlopen_self" = xyes; then
15956
LDFLAGS="$LDFLAGS $link_static_flag"
15957
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15958
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15959
if test "${lt_cv_dlopen_self_static+set}" = set; then
15960
echo $ECHO_N "(cached) $ECHO_C" >&6
15962
if test "$cross_compiling" = yes; then :
15963
lt_cv_dlopen_self_static=cross
15965
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15966
lt_status=$lt_dlunknown
15967
cat > conftest.$ac_ext <<EOF
15968
#line 15968 "configure"
15969
#include "confdefs.h"
15978
# define LT_DLGLOBAL RTLD_GLOBAL
15981
# define LT_DLGLOBAL DL_GLOBAL
15983
# define LT_DLGLOBAL 0
15987
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15988
find out it does not work in some platform. */
15989
#ifndef LT_DLLAZY_OR_NOW
15991
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15994
# define LT_DLLAZY_OR_NOW DL_LAZY
15997
# define LT_DLLAZY_OR_NOW RTLD_NOW
16000
# define LT_DLLAZY_OR_NOW DL_NOW
16002
# define LT_DLLAZY_OR_NOW 0
16010
extern "C" void exit (int);
16013
void fnord() { int i=42;}
16016
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16017
int status = $lt_dlunknown;
16021
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16022
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16023
/* dlclose (self); */
16029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16030
(eval $ac_link) 2>&5
16032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16034
(./conftest; exit; ) 2>/dev/null
16036
case x$lt_status in
16037
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16038
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16039
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16042
# compilation failed
16043
lt_cv_dlopen_self_static=no
16050
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16051
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16054
CPPFLAGS="$save_CPPFLAGS"
16055
LDFLAGS="$save_LDFLAGS"
16060
case $lt_cv_dlopen_self in
16061
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16062
*) enable_dlopen_self=unknown ;;
16065
case $lt_cv_dlopen_self_static in
16066
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16067
*) enable_dlopen_self_static=unknown ;;
16072
# The else clause should only fire when bootstrapping the
16073
# libtool distribution, otherwise you forgot to ship ltmain.sh
16074
# with your package, and you will get complaints that there are
16075
# no rules to generate ltmain.sh.
16076
if test -f "$ltmain"; then
16077
# See if we are running on zsh, and set the options which allow our commands through
16078
# without removal of \ escapes.
16079
if test -n "${ZSH_VERSION+set}" ; then
16080
setopt NO_GLOB_SUBST
16082
# Now quote all the things that may contain metacharacters while being
16083
# careful not to overquote the AC_SUBSTed values. We take copies of the
16084
# variables and quote the copies for generation of the libtool script.
16085
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16087
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16088
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16089
deplibs_check_method reload_flag reload_cmds need_locks \
16090
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16091
lt_cv_sys_global_symbol_to_c_name_address \
16092
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16093
old_postinstall_cmds old_postuninstall_cmds \
16097
lt_prog_compiler_wl_CXX \
16098
lt_prog_compiler_pic_CXX \
16099
lt_prog_compiler_static_CXX \
16100
lt_prog_compiler_no_builtin_flag_CXX \
16101
export_dynamic_flag_spec_CXX \
16102
thread_safe_flag_spec_CXX \
16103
whole_archive_flag_spec_CXX \
16104
enable_shared_with_static_runtimes_CXX \
16105
old_archive_cmds_CXX \
16106
old_archive_from_new_cmds_CXX \
16107
predep_objects_CXX \
16108
postdep_objects_CXX \
16111
compiler_lib_search_path_CXX \
16113
archive_expsym_cmds_CXX \
16114
postinstall_cmds_CXX \
16115
postuninstall_cmds_CXX \
16116
old_archive_from_expsyms_cmds_CXX \
16117
allow_undefined_flag_CXX \
16118
no_undefined_flag_CXX \
16119
export_symbols_cmds_CXX \
16120
hardcode_libdir_flag_spec_CXX \
16121
hardcode_libdir_flag_spec_ld_CXX \
16122
hardcode_libdir_separator_CXX \
16123
hardcode_automatic_CXX \
16125
module_expsym_cmds_CXX \
16126
lt_cv_prog_compiler_c_o_CXX \
16127
exclude_expsyms_CXX \
16128
include_expsyms_CXX; do
16131
old_archive_cmds_CXX | \
16132
old_archive_from_new_cmds_CXX | \
16133
archive_cmds_CXX | \
16134
archive_expsym_cmds_CXX | \
16135
module_cmds_CXX | \
16136
module_expsym_cmds_CXX | \
16137
old_archive_from_expsyms_cmds_CXX | \
16138
export_symbols_cmds_CXX | \
16139
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16140
postinstall_cmds | postuninstall_cmds | \
16141
old_postinstall_cmds | old_postuninstall_cmds | \
16142
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16143
# Double-quote double-evaled strings.
16144
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16147
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16153
*'\$0 --fallback-echo"')
16154
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16160
cat <<__EOF__ >> "$cfgfile"
16161
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16163
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16165
# Shell to use when invoking shell scripts.
16168
# Whether or not to build shared libraries.
16169
build_libtool_libs=$enable_shared
16171
# Whether or not to build static libraries.
16172
build_old_libs=$enable_static
16174
# Whether or not to add -lc for building shared libraries.
16175
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16177
# Whether or not to disallow shared libs when runtime libs are static
16178
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16180
# Whether or not to optimize for fast installation.
16181
fast_install=$enable_fast_install
16184
host_alias=$host_alias
16187
# An echo program that does not interpret backslashes.
16192
AR_FLAGS=$lt_AR_FLAGS
16197
# A language-specific compiler.
16198
CC=$lt_compiler_CXX
16200
# Is the compiler the GNU C compiler?
16206
# The linker used to build libraries.
16209
# Whether we need hard or soft links.
16212
# A BSD-compatible nm program.
16215
# A symbol stripping program
16218
# Used to examine libraries when file_magic_cmd begins "file"
16219
MAGIC_CMD=$MAGIC_CMD
16221
# Used on cygwin: DLL creation program.
16224
# Used on cygwin: object dumper.
16227
# Used on cygwin: assembler.
16230
# The name of the directory that contains temporary libtool files.
16233
# How to create reloadable object files.
16234
reload_flag=$lt_reload_flag
16235
reload_cmds=$lt_reload_cmds
16237
# How to pass a linker flag through the compiler.
16238
wl=$lt_lt_prog_compiler_wl_CXX
16240
# Object file suffix (normally "o").
16241
objext="$ac_objext"
16243
# Old archive suffix (normally "a").
16246
# Shared library suffix (normally ".so").
16247
shrext_cmds='$shrext_cmds'
16249
# Executable file suffix (normally "").
16252
# Additional compiler flags for building library objects.
16253
pic_flag=$lt_lt_prog_compiler_pic_CXX
16256
# What is the maximum length of a command?
16257
max_cmd_len=$lt_cv_sys_max_cmd_len
16259
# Does compiler simultaneously support -c and -o options?
16260
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16262
# Must we lock files when doing compilation ?
16263
need_locks=$lt_need_locks
16265
# Do we need the lib prefix for modules?
16266
need_lib_prefix=$need_lib_prefix
16268
# Do we need a version for libraries?
16269
need_version=$need_version
16271
# Whether dlopen is supported.
16272
dlopen_support=$enable_dlopen
16274
# Whether dlopen of programs is supported.
16275
dlopen_self=$enable_dlopen_self
16277
# Whether dlopen of statically linked programs is supported.
16278
dlopen_self_static=$enable_dlopen_self_static
16280
# Compiler flag to prevent dynamic linking.
16281
link_static_flag=$lt_lt_prog_compiler_static_CXX
16283
# Compiler flag to turn off builtin functions.
16284
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16286
# Compiler flag to allow reflexive dlopens.
16287
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16289
# Compiler flag to generate shared objects directly from archives.
16290
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16292
# Compiler flag to generate thread-safe objects.
16293
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16295
# Library versioning type.
16296
version_type=$version_type
16298
# Format of library name prefix.
16299
libname_spec=$lt_libname_spec
16301
# List of archive names. First name is the real one, the rest are links.
16302
# The last name is the one that the linker finds with -lNAME.
16303
library_names_spec=$lt_library_names_spec
16305
# The coded name of the library, if different from the real name.
16306
soname_spec=$lt_soname_spec
16308
# Commands used to build and install an old-style archive.
16310
old_archive_cmds=$lt_old_archive_cmds_CXX
16311
old_postinstall_cmds=$lt_old_postinstall_cmds
16312
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16314
# Create an old-style archive from a shared archive.
16315
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16317
# Create a temporary old-style archive to link instead of a shared archive.
16318
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16320
# Commands used to build and install a shared archive.
16321
archive_cmds=$lt_archive_cmds_CXX
16322
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16323
postinstall_cmds=$lt_postinstall_cmds
16324
postuninstall_cmds=$lt_postuninstall_cmds
16326
# Commands used to build a loadable module (assumed same as above if empty)
16327
module_cmds=$lt_module_cmds_CXX
16328
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16330
# Commands to strip libraries.
16331
old_striplib=$lt_old_striplib
16332
striplib=$lt_striplib
16334
# Dependencies to place before the objects being linked to create a
16336
predep_objects=$lt_predep_objects_CXX
16338
# Dependencies to place after the objects being linked to create a
16340
postdep_objects=$lt_postdep_objects_CXX
16342
# Dependencies to place before the objects being linked to create a
16344
predeps=$lt_predeps_CXX
16346
# Dependencies to place after the objects being linked to create a
16348
postdeps=$lt_postdeps_CXX
16350
# The library search path used internally by the compiler when linking
16351
# a shared library.
16352
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16354
# Method to check whether dependent libraries are shared objects.
16355
deplibs_check_method=$lt_deplibs_check_method
16357
# Command to use when deplibs_check_method == file_magic.
16358
file_magic_cmd=$lt_file_magic_cmd
16360
# Flag that allows shared libraries with undefined symbols to be built.
16361
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16363
# Flag that forces no undefined symbols.
16364
no_undefined_flag=$lt_no_undefined_flag_CXX
16366
# Commands used to finish a libtool library installation in a directory.
16367
finish_cmds=$lt_finish_cmds
16369
# Same as above, but a single script fragment to be evaled but not shown.
16370
finish_eval=$lt_finish_eval
16372
# Take the output of nm and produce a listing of raw symbols and C names.
16373
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16375
# Transform the output of nm in a proper C declaration
16376
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16378
# Transform the output of nm in a C name address pair
16379
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16381
# This is the shared library runtime path variable.
16382
runpath_var=$runpath_var
16384
# This is the shared library path variable.
16385
shlibpath_var=$shlibpath_var
16387
# Is shlibpath searched before the hard-coded library search path?
16388
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16390
# How to hardcode a shared library path into an executable.
16391
hardcode_action=$hardcode_action_CXX
16393
# Whether we should hardcode library paths into libraries.
16394
hardcode_into_libs=$hardcode_into_libs
16396
# Flag to hardcode \$libdir into a binary during linking.
16397
# This must work even if \$libdir does not exist.
16398
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16400
# If ld is used when linking, flag to hardcode \$libdir into
16401
# a binary during linking. This must work even if \$libdir does
16403
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16405
# Whether we need a single -rpath flag with a separated argument.
16406
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16408
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16409
# resulting binary.
16410
hardcode_direct=$hardcode_direct_CXX
16412
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16413
# resulting binary.
16414
hardcode_minus_L=$hardcode_minus_L_CXX
16416
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16417
# the resulting binary.
16418
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16420
# Set to yes if building a shared library automatically hardcodes DIR into the library
16421
# and all subsequent libraries and executables linked against it.
16422
hardcode_automatic=$hardcode_automatic_CXX
16424
# Variables whose values should be saved in libtool wrapper scripts and
16425
# restored at relink time.
16426
variables_saved_for_relink="$variables_saved_for_relink"
16428
# Whether libtool must link a program against all its dependency libraries.
16429
link_all_deplibs=$link_all_deplibs_CXX
16431
# Compile-time system search path for libraries
16432
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16434
# Run-time system search path for libraries
16435
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16437
# Fix the shell variable \$srcfile for the compiler.
16438
fix_srcfile_path="$fix_srcfile_path_CXX"
16440
# Set to yes if exported symbols are required.
16441
always_export_symbols=$always_export_symbols_CXX
16443
# The commands to list exported symbols.
16444
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16446
# The commands to extract the exported symbol list from a shared archive.
16447
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16449
# Symbols that should not be listed in the preloaded symbols.
16450
exclude_expsyms=$lt_exclude_expsyms_CXX
16452
# Symbols that must always be exported.
16453
include_expsyms=$lt_include_expsyms_CXX
16455
# ### END LIBTOOL TAG CONFIG: $tagname
16461
# If there is no Makefile yet, we rely on a make rule to execute
16462
# `config.status --recheck' to rerun these tests and create the
16463
# libtool script then.
16464
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16465
if test -f "$ltmain_in"; then
16466
test -f Makefile && make "$ltmain"
16472
ac_cpp='$CPP $CPPFLAGS'
16473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16481
with_gnu_ldcxx=$with_gnu_ld
16482
with_gnu_ld=$lt_save_with_gnu_ld
16483
lt_cv_path_LDCXX=$lt_cv_path_LD
16484
lt_cv_path_LD=$lt_save_path_LD
16485
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16486
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16494
if test -n "$F77" && test "X$F77" != "Xno"; then
16497
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16498
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16499
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16502
archive_cmds_need_lc_F77=no
16503
allow_undefined_flag_F77=
16504
always_export_symbols_F77=no
16505
archive_expsym_cmds_F77=
16506
export_dynamic_flag_spec_F77=
16507
hardcode_direct_F77=no
16508
hardcode_libdir_flag_spec_F77=
16509
hardcode_libdir_flag_spec_ld_F77=
16510
hardcode_libdir_separator_F77=
16511
hardcode_minus_L_F77=no
16512
hardcode_automatic_F77=no
16514
module_expsym_cmds_F77=
16515
link_all_deplibs_F77=unknown
16516
old_archive_cmds_F77=$old_archive_cmds
16517
no_undefined_flag_F77=
16518
whole_archive_flag_spec_F77=
16519
enable_shared_with_static_runtimes_F77=no
16521
# Source file extension for f77 test sources.
16524
# Object file extension for compiled f77 test sources.
16528
# Code to be used in simple compile tests
16529
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
16531
# Code to be used in simple link tests
16532
lt_simple_link_test_code=" program t\n end\n"
16534
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16536
# If no C compiler was specified, use CC.
16539
# Allow CC to be a program name with arguments.
16543
# Allow CC to be a program name with arguments.
16548
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16550
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16551
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16552
echo "$as_me:$LINENO: result: $can_build_shared" >&5
16553
echo "${ECHO_T}$can_build_shared" >&6
16555
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16556
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16557
test "$can_build_shared" = "no" && enable_shared=no
16559
# On AIX, shared libraries and static libraries use the same namespace, and
16560
# are all built from PIC.
16563
test "$enable_shared" = yes && enable_static=no
16564
if test -n "$RANLIB"; then
16565
archive_cmds="$archive_cmds~\$RANLIB \$lib"
16566
postinstall_cmds='$RANLIB $lib'
16570
test "$enable_shared" = yes && enable_static=no
16573
echo "$as_me:$LINENO: result: $enable_shared" >&5
16574
echo "${ECHO_T}$enable_shared" >&6
16576
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16577
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16578
# Make sure either enable_shared or enable_static is yes.
16579
test "$enable_shared" = yes || enable_static=yes
16580
echo "$as_me:$LINENO: result: $enable_static" >&5
16581
echo "${ECHO_T}$enable_static" >&6
16583
test "$ld_shlibs_F77" = no && can_build_shared=no
16588
lt_prog_compiler_wl_F77=
16589
lt_prog_compiler_pic_F77=
16590
lt_prog_compiler_static_F77=
16592
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16593
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16595
if test "$GCC" = yes; then
16596
lt_prog_compiler_wl_F77='-Wl,'
16597
lt_prog_compiler_static_F77='-static'
16601
# All AIX code is PIC.
16602
if test "$host_cpu" = ia64; then
16603
# AIX 5 now supports IA64 processor
16604
lt_prog_compiler_static_F77='-Bstatic'
16609
# FIXME: we need at least 68020 code to build shared libraries, but
16610
# adding the `-m68020' flag to GCC prevents building anything better,
16612
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16615
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16616
# PIC is the default for these OSes.
16619
mingw* | pw32* | os2*)
16620
# This hack is so that the source file can tell whether it is being
16621
# built for inclusion in a dll (and should export symbols for example).
16622
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16625
darwin* | rhapsody*)
16626
# PIC is the default on this platform
16627
# Common symbols not allowed in MH_DYLIB files
16628
lt_prog_compiler_pic_F77='-fno-common'
16632
# Just because we use GCC doesn't mean we suddenly get shared libraries
16633
# on systems that don't support them.
16634
lt_prog_compiler_can_build_shared_F77=no
16639
if test -d /usr/nec; then
16640
lt_prog_compiler_pic_F77=-Kconform_pic
16645
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16646
# not for PA HP-UX.
16647
case "$host_cpu" in
16652
lt_prog_compiler_pic_F77='-fPIC'
16658
lt_prog_compiler_pic_F77='-fPIC'
16662
# PORTME Check for flag to pass linker flags through the system compiler.
16665
lt_prog_compiler_wl_F77='-Wl,'
16666
if test "$host_cpu" = ia64; then
16667
# AIX 5 now supports IA64 processor
16668
lt_prog_compiler_static_F77='-Bstatic'
16670
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16674
mingw* | pw32* | os2*)
16675
# This hack is so that the source file can tell whether it is being
16676
# built for inclusion in a dll (and should export symbols for example).
16677
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16680
hpux9* | hpux10* | hpux11*)
16681
lt_prog_compiler_wl_F77='-Wl,'
16682
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16683
# not for PA HP-UX.
16684
case "$host_cpu" in
16689
lt_prog_compiler_pic_F77='+Z'
16692
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16693
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16696
irix5* | irix6* | nonstopux*)
16697
lt_prog_compiler_wl_F77='-Wl,'
16698
# PIC (with -KPIC) is the default.
16699
lt_prog_compiler_static_F77='-non_shared'
16703
lt_prog_compiler_pic_F77='-KPIC'
16704
lt_prog_compiler_static_F77='-Bstatic'
16710
lt_prog_compiler_wl_F77='-Wl,'
16711
lt_prog_compiler_pic_F77='-KPIC'
16712
lt_prog_compiler_static_F77='-static'
16715
lt_prog_compiler_wl_F77='-Wl,'
16716
# All Alpha code is PIC.
16717
lt_prog_compiler_static_F77='-non_shared'
16722
osf3* | osf4* | osf5*)
16723
lt_prog_compiler_wl_F77='-Wl,'
16724
# All OSF/1 code is PIC.
16725
lt_prog_compiler_static_F77='-non_shared'
16729
lt_prog_compiler_pic_F77='-Kpic'
16730
lt_prog_compiler_static_F77='-dn'
16734
lt_prog_compiler_wl_F77='-Wl,'
16735
lt_prog_compiler_pic_F77='-KPIC'
16736
lt_prog_compiler_static_F77='-Bstatic'
16740
lt_prog_compiler_wl_F77='-Qoption ld '
16741
lt_prog_compiler_pic_F77='-PIC'
16742
lt_prog_compiler_static_F77='-Bstatic'
16745
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16746
lt_prog_compiler_wl_F77='-Wl,'
16747
lt_prog_compiler_pic_F77='-KPIC'
16748
lt_prog_compiler_static_F77='-Bstatic'
16752
if test -d /usr/nec ;then
16753
lt_prog_compiler_pic_F77='-Kconform_pic'
16754
lt_prog_compiler_static_F77='-Bstatic'
16759
lt_prog_compiler_pic_F77='-pic'
16760
lt_prog_compiler_static_F77='-Bstatic'
16764
lt_prog_compiler_can_build_shared_F77=no
16769
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16770
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16773
# Check to make sure the PIC flag actually works.
16775
if test -n "$lt_prog_compiler_pic_F77"; then
16777
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16778
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16779
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16780
echo $ECHO_N "(cached) $ECHO_C" >&6
16782
lt_prog_compiler_pic_works_F77=no
16783
ac_outfile=conftest.$ac_objext
16784
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16785
lt_compiler_flag="$lt_prog_compiler_pic_F77"
16786
# Insert the option either (1) after the last *FLAGS variable, or
16787
# (2) before a word containing "conftest.", or (3) at the end.
16788
# Note that $ac_compile itself does not contain backslashes and begins
16789
# with a dollar sign (not a hyphen), so the echo should work correctly.
16790
# The option is referenced via a variable to avoid confusing sed.
16791
lt_compile=`echo "$ac_compile" | $SED \
16792
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16793
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16794
-e 's:$: $lt_compiler_flag:'`
16795
(eval echo "\"\$as_me:16795: $lt_compile\"" >&5)
16796
(eval "$lt_compile" 2>conftest.err)
16798
cat conftest.err >&5
16799
echo "$as_me:16799: \$? = $ac_status" >&5
16800
if (exit $ac_status) && test -s "$ac_outfile"; then
16801
# The compiler can only warn and ignore the option if not recognized
16802
# So say no if there are warnings
16803
if test ! -s conftest.err; then
16804
lt_prog_compiler_pic_works_F77=yes
16810
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16811
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16813
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16814
case $lt_prog_compiler_pic_F77 in
16816
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16819
lt_prog_compiler_pic_F77=
16820
lt_prog_compiler_can_build_shared_F77=no
16825
# For platforms which do not support PIC, -DPIC is meaningless:
16827
lt_prog_compiler_pic_F77=
16830
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16834
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16835
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16836
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16837
echo $ECHO_N "(cached) $ECHO_C" >&6
16839
lt_cv_prog_compiler_c_o_F77=no
16840
$rm -r conftest 2>/dev/null
16844
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16846
lt_compiler_flag="-o out/conftest2.$ac_objext"
16847
# Insert the option either (1) after the last *FLAGS variable, or
16848
# (2) before a word containing "conftest.", or (3) at the end.
16849
# Note that $ac_compile itself does not contain backslashes and begins
16850
# with a dollar sign (not a hyphen), so the echo should work correctly.
16851
lt_compile=`echo "$ac_compile" | $SED \
16852
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16853
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16854
-e 's:$: $lt_compiler_flag:'`
16855
(eval echo "\"\$as_me:16855: $lt_compile\"" >&5)
16856
(eval "$lt_compile" 2>out/conftest.err)
16858
cat out/conftest.err >&5
16859
echo "$as_me:16859: \$? = $ac_status" >&5
16860
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16862
# The compiler can only warn and ignore the option if not recognized
16863
# So say no if there are warnings
16864
if test ! -s out/conftest.err; then
16865
lt_cv_prog_compiler_c_o_F77=yes
16870
# SGI C++ compiler will create directory out/ii_files/ for
16871
# template instantiation
16872
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16873
$rm out/* && rmdir out
16879
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16880
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16883
hard_links="nottested"
16884
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16885
# do not overwrite the value of need_locks provided by the user
16886
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16887
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16890
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16892
ln conftest.a conftest.b 2>&5 || hard_links=no
16893
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16894
echo "$as_me:$LINENO: result: $hard_links" >&5
16895
echo "${ECHO_T}$hard_links" >&6
16896
if test "$hard_links" = no; then
16897
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16898
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16905
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16906
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16909
allow_undefined_flag_F77=
16910
enable_shared_with_static_runtimes_F77=no
16912
archive_expsym_cmds_F77=
16913
old_archive_From_new_cmds_F77=
16914
old_archive_from_expsyms_cmds_F77=
16915
export_dynamic_flag_spec_F77=
16916
whole_archive_flag_spec_F77=
16917
thread_safe_flag_spec_F77=
16918
hardcode_libdir_flag_spec_F77=
16919
hardcode_libdir_flag_spec_ld_F77=
16920
hardcode_libdir_separator_F77=
16921
hardcode_direct_F77=no
16922
hardcode_minus_L_F77=no
16923
hardcode_shlibpath_var_F77=unsupported
16924
link_all_deplibs_F77=unknown
16925
hardcode_automatic_F77=no
16927
module_expsym_cmds_F77=
16928
always_export_symbols_F77=no
16929
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16930
# include_expsyms should be a list of space-separated symbols to be *always*
16931
# included in the symbol list
16932
include_expsyms_F77=
16933
# exclude_expsyms can be an extended regexp of symbols to exclude
16934
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16935
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16936
# as well as any symbol that contains `d'.
16937
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16938
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16939
# platforms (ab)use it in PIC code, but their linkers get confused if
16940
# the symbol is explicitly referenced. Since portable code cannot
16941
# rely on this symbol name, it's probably fine to never include it in
16942
# preloaded symbol tables.
16943
extract_expsyms_cmds=
16946
cygwin* | mingw* | pw32*)
16947
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16948
# When not using gcc, we currently assume that we are using
16949
# Microsoft Visual C++.
16950
if test "$GCC" != yes; then
16960
if test "$with_gnu_ld" = yes; then
16961
# If archive_cmds runs LD, not CC, wlarc should be empty
16964
# See if GNU ld supports shared libraries.
16966
aix3* | aix4* | aix5*)
16967
# On AIX/PPC, the GNU linker is very broken
16968
if test "$host_cpu" != ia64; then
16972
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16973
*** to be unable to reliably create shared libraries on AIX.
16974
*** Therefore, libtool is disabling shared libraries support. If you
16975
*** really care for shared libraries, you may want to modify your PATH
16976
*** so that a non-GNU linker is found, and then restart.
16983
archive_cmds_F77='$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)'
16984
hardcode_libdir_flag_spec_F77='-L$libdir'
16985
hardcode_minus_L_F77=yes
16987
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16988
# that the semantics of dynamic libraries on AmigaOS, at least up
16989
# to version 4, is to share data among multiple programs linked
16990
# with the same dynamic library. Since this doesn't match the
16991
# behavior of shared libraries on other platforms, we can't use
16997
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16998
allow_undefined_flag_F77=unsupported
16999
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17000
# support --undefined. This deserves some investigation. FIXME
17001
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17007
cygwin* | mingw* | pw32*)
17008
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17009
# as there is no search path for DLLs.
17010
hardcode_libdir_flag_spec_F77='-L$libdir'
17011
allow_undefined_flag_F77=unsupported
17012
always_export_symbols_F77=no
17013
enable_shared_with_static_runtimes_F77=yes
17014
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17016
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17017
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17018
# If the export-symbols file already is a .def file (1st line
17019
# is EXPORTS), use it as is; otherwise, prepend...
17020
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17021
cp $export_symbols $output_objdir/$soname.def;
17023
echo EXPORTS > $output_objdir/$soname.def;
17024
cat $export_symbols >> $output_objdir/$soname.def;
17026
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17032
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17033
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17034
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17037
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17038
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17043
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17047
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17048
*** create shared libraries on Solaris systems. Therefore, libtool
17049
*** is disabling shared libraries support. We urge you to upgrade GNU
17050
*** binutils to release 2.9.1 or newer. Another option is to modify
17051
*** your PATH or compiler configuration so that the native linker is
17052
*** used, and then restart.
17055
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17056
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17057
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17064
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17066
hardcode_direct_F77=yes
17067
hardcode_shlibpath_var_F77=no
17071
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17072
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17073
archive_cmds_F77="$tmp_archive_cmds"
17074
supports_anon_versioning=no
17075
case `$LD -v 2>/dev/null` in
17076
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17077
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17078
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17079
*\ 2.11.*) ;; # other 2.11 versions
17080
*) supports_anon_versioning=yes ;;
17082
if test $supports_anon_versioning = yes; then
17083
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17084
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17085
$echo "local: *; };" >> $output_objdir/$libname.ver~
17086
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17088
archive_expsym_cmds_F77="$tmp_archive_cmds"
17090
link_all_deplibs_F77=no
17097
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17098
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17106
if test "$ld_shlibs_F77" = yes; then
17107
runpath_var=LD_RUN_PATH
17108
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17109
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17110
# ancient GNU ld didn't support --whole-archive et. al.
17111
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17112
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17114
whole_archive_flag_spec_F77=
17118
# PORTME fill in a description of your system's linker (not GNU ld)
17121
allow_undefined_flag_F77=unsupported
17122
always_export_symbols_F77=yes
17123
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17124
# Note: this linker hardcodes the directories in LIBPATH if there
17125
# are no directories specified by -L.
17126
hardcode_minus_L_F77=yes
17127
if test "$GCC" = yes && test -z "$link_static_flag"; then
17128
# Neither direct hardcoding nor static linking is supported with a
17130
hardcode_direct_F77=unsupported
17135
if test "$host_cpu" = ia64; then
17136
# On IA64, the linker does run time linking by default, so we don't
17137
# have to do anything special.
17138
aix_use_runtimelinking=no
17139
exp_sym_flag='-Bexport'
17142
# If we're using GNU nm, then we don't want the "-C" option.
17143
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17144
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17145
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17147
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17149
aix_use_runtimelinking=no
17151
# Test if we are trying to use run time linking or normal
17152
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17153
# need to do runtime linking.
17154
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17155
for ld_flag in $LDFLAGS; do
17156
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17157
aix_use_runtimelinking=yes
17163
exp_sym_flag='-bexport'
17164
no_entry_flag='-bnoentry'
17167
# When large executables or shared objects are built, AIX ld can
17168
# have problems creating the table of contents. If linking a library
17169
# or program results in "error TOC overflow" add -mminimal-toc to
17170
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17171
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17173
archive_cmds_F77=''
17174
hardcode_direct_F77=yes
17175
hardcode_libdir_separator_F77=':'
17176
link_all_deplibs_F77=yes
17178
if test "$GCC" = yes; then
17179
case $host_os in aix4.012|aix4.012.*)
17180
# We only want to do this on AIX 4.2 and lower, the check
17181
# below for broken collect2 doesn't work under 4.3+
17182
collect2name=`${CC} -print-prog-name=collect2`
17183
if test -f "$collect2name" && \
17184
strings "$collect2name" | grep resolve_lib_name >/dev/null
17186
# We have reworked collect2
17187
hardcode_direct_F77=yes
17189
# We have old collect2
17190
hardcode_direct_F77=unsupported
17191
# It fails to find uninstalled libraries when the uninstalled
17192
# path is not listed in the libpath. Setting hardcode_minus_L
17193
# to unsupported forces relinking
17194
hardcode_minus_L_F77=yes
17195
hardcode_libdir_flag_spec_F77='-L$libdir'
17196
hardcode_libdir_separator_F77=
17199
shared_flag='-shared'
17202
if test "$host_cpu" = ia64; then
17203
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17204
# chokes on -Wl,-G. The following line is correct:
17207
if test "$aix_use_runtimelinking" = yes; then
17208
shared_flag='${wl}-G'
17210
shared_flag='${wl}-bM:SRE'
17215
# It seems that -bexpall does not export symbols beginning with
17216
# underscore (_), so it is better to generate a list of symbols to export.
17217
always_export_symbols_F77=yes
17218
if test "$aix_use_runtimelinking" = yes; then
17219
# Warning - without using the other runtime loading flags (-brtl),
17220
# -berok will link without error, but may produce a broken library.
17221
allow_undefined_flag_F77='-berok'
17222
# Determine the default libpath from the value encoded in an empty executable.
17223
cat >conftest.$ac_ext <<_ACEOF
17228
rm -f conftest.$ac_objext conftest$ac_exeext
17229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17230
(eval $ac_link) 2>conftest.er1
17232
grep -v '^ *+' conftest.er1 >conftest.err
17234
cat conftest.err >&5
17235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236
(exit $ac_status); } &&
17237
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
17238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239
(eval $ac_try) 2>&5
17241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242
(exit $ac_status); }; } &&
17243
{ ac_try='test -s conftest$ac_exeext'
17244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245
(eval $ac_try) 2>&5
17247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248
(exit $ac_status); }; }; then
17250
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17252
# Check for a 64-bit object if we didn't find anything.
17253
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17256
echo "$as_me: failed program was:" >&5
17257
sed 's/^/| /' conftest.$ac_ext >&5
17260
rm -f conftest.err conftest.$ac_objext \
17261
conftest$ac_exeext conftest.$ac_ext
17262
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17264
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17265
archive_expsym_cmds_F77="\$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"
17267
if test "$host_cpu" = ia64; then
17268
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17269
allow_undefined_flag_F77="-z nodefs"
17270
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17272
# Determine the default libpath from the value encoded in an empty executable.
17273
cat >conftest.$ac_ext <<_ACEOF
17278
rm -f conftest.$ac_objext conftest$ac_exeext
17279
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17280
(eval $ac_link) 2>conftest.er1
17282
grep -v '^ *+' conftest.er1 >conftest.err
17284
cat conftest.err >&5
17285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286
(exit $ac_status); } &&
17287
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
17288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289
(eval $ac_try) 2>&5
17291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292
(exit $ac_status); }; } &&
17293
{ ac_try='test -s conftest$ac_exeext'
17294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295
(eval $ac_try) 2>&5
17297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298
(exit $ac_status); }; }; then
17300
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17302
# Check for a 64-bit object if we didn't find anything.
17303
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17306
echo "$as_me: failed program was:" >&5
17307
sed 's/^/| /' conftest.$ac_ext >&5
17310
rm -f conftest.err conftest.$ac_objext \
17311
conftest$ac_exeext conftest.$ac_ext
17312
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17314
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17315
# Warning - without using the other run time loading flags,
17316
# -berok will link without error, but may produce a broken library.
17317
no_undefined_flag_F77=' ${wl}-bernotok'
17318
allow_undefined_flag_F77=' ${wl}-berok'
17319
# -bexpall does not export symbols beginning with underscore (_)
17320
always_export_symbols_F77=yes
17321
# Exported symbols can be pulled into shared objects from archives
17322
whole_archive_flag_spec_F77=' '
17323
archive_cmds_need_lc_F77=yes
17324
# This is similar to how AIX traditionally builds it's shared libraries.
17325
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17331
archive_cmds_F77='$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)'
17332
hardcode_libdir_flag_spec_F77='-L$libdir'
17333
hardcode_minus_L_F77=yes
17334
# see comment about different semantics on the GNU ld section
17339
export_dynamic_flag_spec_F77=-rdynamic
17342
cygwin* | mingw* | pw32*)
17343
# When not using gcc, we currently assume that we are using
17344
# Microsoft Visual C++.
17345
# hardcode_libdir_flag_spec is actually meaningless, as there is
17346
# no search path for DLLs.
17347
hardcode_libdir_flag_spec_F77=' '
17348
allow_undefined_flag_F77=unsupported
17349
# Tell ltmain to make .lib files, not .a files.
17351
# Tell ltmain to make .dll files, not .so files.
17353
# FIXME: Setting linknames here is a bad hack.
17354
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17355
# The linker will automatically build a .lib file if we build a DLL.
17356
old_archive_From_new_cmds_F77='true'
17357
# FIXME: Should let the user specify the lib program.
17358
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17359
fix_srcfile_path='`cygpath -w "$srcfile"`'
17360
enable_shared_with_static_runtimes_F77=yes
17363
darwin* | rhapsody*)
17364
if test "$GXX" = yes ; then
17365
archive_cmds_need_lc_F77=no
17367
rhapsody* | darwin1.[012])
17368
allow_undefined_flag_F77='-undefined suppress'
17371
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17372
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
17374
case ${MACOSX_DEPLOYMENT_TARGET} in
17376
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
17379
allow_undefined_flag_F77='-undefined dynamic_lookup'
17385
lt_int_apple_cc_single_mod=no
17386
output_verbose_link_cmd='echo'
17387
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17388
lt_int_apple_cc_single_mod=yes
17390
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17391
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17393
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17395
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17396
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17397
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17398
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17400
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17402
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17403
hardcode_direct_F77=no
17404
hardcode_automatic_F77=yes
17405
hardcode_shlibpath_var_F77=unsupported
17406
whole_archive_flag_spec_F77='-all_load $convenience'
17407
link_all_deplibs_F77=yes
17414
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17415
hardcode_libdir_flag_spec_F77='-L$libdir'
17416
hardcode_shlibpath_var_F77=no
17423
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17424
# support. Future versions do this automatically, but an explicit c++rt0.o
17425
# does not break anything, and helps significantly (at the cost of a little
17428
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17429
hardcode_libdir_flag_spec_F77='-R$libdir'
17430
hardcode_direct_F77=yes
17431
hardcode_shlibpath_var_F77=no
17434
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17436
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17437
hardcode_direct_F77=yes
17438
hardcode_minus_L_F77=yes
17439
hardcode_shlibpath_var_F77=no
17442
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17443
freebsd* | kfreebsd*-gnu)
17444
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17445
hardcode_libdir_flag_spec_F77='-R$libdir'
17446
hardcode_direct_F77=yes
17447
hardcode_shlibpath_var_F77=no
17451
if test "$GCC" = yes; then
17452
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17454
archive_cmds_F77='$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'
17456
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17457
hardcode_libdir_separator_F77=:
17458
hardcode_direct_F77=yes
17460
# hardcode_minus_L: Not really in the search PATH,
17461
# but as the default location of the library.
17462
hardcode_minus_L_F77=yes
17463
export_dynamic_flag_spec_F77='${wl}-E'
17467
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17468
case "$host_cpu" in
17470
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17473
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17477
case "$host_cpu" in
17479
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17482
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17486
if test "$with_gnu_ld" = no; then
17487
case "$host_cpu" in
17489
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17490
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17491
hardcode_libdir_separator_F77=:
17492
hardcode_direct_F77=no
17493
hardcode_shlibpath_var_F77=no
17496
hardcode_libdir_flag_spec_F77='-L$libdir'
17497
hardcode_direct_F77=no
17498
hardcode_shlibpath_var_F77=no
17500
# hardcode_minus_L: Not really in the search PATH,
17501
# but as the default location of the library.
17502
hardcode_minus_L_F77=yes
17505
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17506
hardcode_libdir_separator_F77=:
17507
hardcode_direct_F77=yes
17508
export_dynamic_flag_spec_F77='${wl}-E'
17510
# hardcode_minus_L: Not really in the search PATH,
17511
# but as the default location of the library.
17512
hardcode_minus_L_F77=yes
17518
irix5* | irix6* | nonstopux*)
17519
if test "$GCC" = yes; then
17520
archive_cmds_F77='$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'
17522
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17523
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17525
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17526
hardcode_libdir_separator_F77=:
17527
link_all_deplibs_F77=yes
17530
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17531
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17532
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17534
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17536
hardcode_libdir_flag_spec_F77='-R$libdir'
17537
hardcode_direct_F77=yes
17538
hardcode_shlibpath_var_F77=no
17542
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17543
hardcode_direct_F77=yes
17544
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17545
hardcode_libdir_separator_F77=:
17546
hardcode_shlibpath_var_F77=no
17550
hardcode_direct_F77=yes
17551
hardcode_shlibpath_var_F77=no
17552
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17553
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17554
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17555
export_dynamic_flag_spec_F77='${wl}-E'
17558
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17559
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17560
hardcode_libdir_flag_spec_F77='-R$libdir'
17563
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17564
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17571
hardcode_libdir_flag_spec_F77='-L$libdir'
17572
hardcode_minus_L_F77=yes
17573
allow_undefined_flag_F77=unsupported
17574
archive_cmds_F77='$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'
17575
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17579
if test "$GCC" = yes; then
17580
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17581
archive_cmds_F77='$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'
17583
allow_undefined_flag_F77=' -expect_unresolved \*'
17584
archive_cmds_F77='$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'
17586
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17587
hardcode_libdir_separator_F77=:
17590
osf4* | osf5*) # as osf3* with the addition of -msym flag
17591
if test "$GCC" = yes; then
17592
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17593
archive_cmds_F77='$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'
17594
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17596
allow_undefined_flag_F77=' -expect_unresolved \*'
17597
archive_cmds_F77='$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'
17598
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17599
$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'
17601
# Both c and cxx compiler support -rpath directly
17602
hardcode_libdir_flag_spec_F77='-rpath $libdir'
17604
hardcode_libdir_separator_F77=:
17608
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17609
hardcode_shlibpath_var_F77=no
17610
export_dynamic_flag_spec_F77='${wl}-Bexport'
17611
runpath_var=LD_RUN_PATH
17612
hardcode_runpath_var=yes
17616
no_undefined_flag_F77=' -z text'
17617
if test "$GCC" = yes; then
17618
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17620
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17622
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17623
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17624
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17626
hardcode_libdir_flag_spec_F77='-R$libdir'
17627
hardcode_shlibpath_var_F77=no
17629
solaris2.[0-5] | solaris2.[0-5].*) ;;
17630
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17631
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17633
link_all_deplibs_F77=yes
17637
if test "x$host_vendor" = xsequent; then
17638
# Use $CC to link under sequent, because it throws in some extra .o
17639
# files that make .init and .fini sections work.
17640
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17642
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17644
hardcode_libdir_flag_spec_F77='-L$libdir'
17645
hardcode_direct_F77=yes
17646
hardcode_minus_L_F77=yes
17647
hardcode_shlibpath_var_F77=no
17651
case $host_vendor in
17653
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17654
hardcode_direct_F77=yes # is this really true???
17657
## LD is ld it makes a PLAMLIB
17658
## CC just makes a GrossModule.
17659
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17660
reload_cmds_F77='$CC -r -o $output$reload_objs'
17661
hardcode_direct_F77=no
17664
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17665
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17668
runpath_var='LD_RUN_PATH'
17669
hardcode_shlibpath_var_F77=no
17673
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674
hardcode_shlibpath_var_F77=no
17675
export_dynamic_flag_spec_F77='-Bexport'
17679
if test -d /usr/nec; then
17680
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17681
hardcode_shlibpath_var_F77=no
17682
runpath_var=LD_RUN_PATH
17683
hardcode_runpath_var=yes
17689
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17690
hardcode_direct_F77=yes
17691
hardcode_minus_L_F77=no
17692
hardcode_shlibpath_var_F77=no
17693
hardcode_runpath_var=yes
17694
runpath_var=LD_RUN_PATH
17697
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17698
no_undefined_flag_F77='${wl}-z ${wl}text'
17699
if test "$GCC" = yes; then
17700
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17702
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17704
runpath_var='LD_RUN_PATH'
17705
hardcode_shlibpath_var_F77=no
17709
no_undefined_flag_F77=' -z text'
17710
# $CC -shared without GNU ld will not create a library from C++
17711
# object files and a static libstdc++, better avoid it by now
17712
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17713
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17714
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17715
hardcode_libdir_flag_spec_F77=
17716
hardcode_shlibpath_var_F77=no
17717
runpath_var='LD_RUN_PATH'
17721
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17722
hardcode_libdir_flag_spec_F77='-L$libdir'
17723
hardcode_shlibpath_var_F77=no
17732
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17733
echo "${ECHO_T}$ld_shlibs_F77" >&6
17734
test "$ld_shlibs_F77" = no && can_build_shared=no
17736
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17737
if test "$GCC" = yes; then
17738
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17742
# Do we need to explicitly link libc?
17744
case "x$archive_cmds_need_lc_F77" in
17746
# Assume -lc should be added
17747
archive_cmds_need_lc_F77=yes
17749
if test "$enable_shared" = yes && test "$GCC" = yes; then
17750
case $archive_cmds_F77 in
17752
# FIXME: we may have to deal with multi-command sequences.
17755
# Test whether the compiler implicitly links with -lc since on some
17756
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17757
# to ld, don't add -lc before -lgcc.
17758
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17759
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17761
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17764
(eval $ac_compile) 2>&5
17766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767
(exit $ac_status); } 2>conftest.err; then
17770
libobjs=conftest.$ac_objext
17772
wl=$lt_prog_compiler_wl_F77
17778
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17779
allow_undefined_flag_F77=
17780
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17781
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784
(exit $ac_status); }
17786
archive_cmds_need_lc_F77=no
17788
archive_cmds_need_lc_F77=yes
17790
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17792
cat conftest.err 1>&5
17795
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17796
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17803
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17804
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17805
library_names_spec=
17806
libname_spec='lib$name'
17810
postuninstall_cmds=
17814
shlibpath_overrides_runpath=unknown
17816
dynamic_linker="$host_os ld.so"
17817
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17818
if test "$GCC" = yes; then
17819
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17820
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17821
# if the path contains ";" then we assume it to be the separator
17822
# otherwise default to the standard path separator (i.e. ":") - it is
17823
# assumed that no part of a normal pathname contains ";" but that should
17824
# okay in the real world where ";" in dirpaths is itself problematic.
17825
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17827
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17830
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17832
need_lib_prefix=unknown
17833
hardcode_into_libs=no
17835
# when you set need_version to no, make sure it does not cause -set_version
17836
# flags to be left without arguments
17837
need_version=unknown
17842
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17843
shlibpath_var=LIBPATH
17845
# AIX 3 has no versioning support, so we append a major version to the name.
17846
soname_spec='${libname}${release}${shared_ext}$major'
17853
hardcode_into_libs=yes
17854
if test "$host_cpu" = ia64; then
17855
# AIX 5 supports IA64
17856
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17857
shlibpath_var=LD_LIBRARY_PATH
17859
# With GCC up to 2.95.x, collect2 would create an import file
17860
# for dependence libraries. The import file would start with
17861
# the line `#! .'. This would cause the generated library to
17862
# depend on `.', always an invalid library. This was fixed in
17863
# development snapshots of GCC prior to 3.0.
17865
aix4 | aix4.[01] | aix4.[01].*)
17866
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17868
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17871
can_build_shared=no
17875
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17876
# soname into executable. Probably we can add versioning support to
17877
# collect2, so additional links can be useful in future.
17878
if test "$aix_use_runtimelinking" = yes; then
17879
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17880
# instead of lib<name>.a to let people know that these are not
17881
# typical AIX shared libraries.
17882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884
# We preserve .a as extension for shared libraries through AIX4.2
17885
# and later when we are not doing run time linking.
17886
library_names_spec='${libname}${release}.a $libname.a'
17887
soname_spec='${libname}${release}${shared_ext}$major'
17889
shlibpath_var=LIBPATH
17894
library_names_spec='$libname.ixlibrary $libname.a'
17895
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17896
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'
17900
library_names_spec='${libname}${shared_ext}'
17901
dynamic_linker="$host_os ld.so"
17902
shlibpath_var=LIBRARY_PATH
17908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909
soname_spec='${libname}${release}${shared_ext}$major'
17910
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17911
shlibpath_var=LD_LIBRARY_PATH
17912
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17913
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17914
# the default ld.so.conf also contains /usr/contrib/lib and
17915
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17916
# libtool to hard-code these into programs
17919
cygwin* | mingw* | pw32*)
17920
version_type=windows
17925
case $GCC,$host_os in
17926
yes,cygwin* | yes,mingw* | yes,pw32*)
17927
library_names_spec='$libname.dll.a'
17928
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17929
postinstall_cmds='base_file=`basename \${file}`~
17930
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17931
dldir=$destdir/`dirname \$dlpath`~
17932
test -d \$dldir || mkdir -p \$dldir~
17933
$install_prog $dir/$dlname \$dldir/$dlname'
17934
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17935
dlpath=$dir/\$dldll~
17937
shlibpath_overrides_runpath=yes
17941
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17942
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17943
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17946
# MinGW DLLs use traditional 'lib' prefix
17947
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17948
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17949
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17950
# It is most probably a Windows format PATH printed by
17951
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17952
# path with ; separators, and with drive letters. We can handle the
17953
# drive letters (cygwin fileutils understands them), so leave them,
17954
# especially as we might pass files found there to a mingw objdump,
17955
# which wouldn't understand a cygwinified path. Ahh.
17956
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17958
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17962
# pw32 DLLs use 'pw' prefix rather than 'lib'
17963
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17969
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17972
dynamic_linker='Win32 ld.exe'
17973
# FIXME: first we should search . and the directory the executable is in
17977
darwin* | rhapsody*)
17978
dynamic_linker="$host_os dyld"
17979
version_type=darwin
17982
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17983
soname_spec='${libname}${release}${major}$shared_ext'
17984
shlibpath_overrides_runpath=yes
17985
shlibpath_var=DYLD_LIBRARY_PATH
17986
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17987
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17988
if test "$GCC" = yes; then
17989
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17991
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17993
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18001
soname_spec='${libname}${release}${shared_ext}$major'
18002
shlibpath_var=LD_LIBRARY_PATH
18013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18014
soname_spec='${libname}${release}${shared_ext}$major'
18015
shlibpath_var=LD_LIBRARY_PATH
18016
shlibpath_overrides_runpath=no
18017
hardcode_into_libs=yes
18018
dynamic_linker='GNU ld.so'
18022
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18023
version_type=freebsd-$objformat
18024
case $version_type in
18026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18031
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18035
shlibpath_var=LD_LIBRARY_PATH
18038
shlibpath_overrides_runpath=yes
18040
freebsd3.01* | freebsdelf3.01*)
18041
shlibpath_overrides_runpath=yes
18042
hardcode_into_libs=yes
18045
shlibpath_overrides_runpath=no
18046
hardcode_into_libs=yes
18055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18056
soname_spec='${libname}${release}${shared_ext}$major'
18057
shlibpath_var=LD_LIBRARY_PATH
18058
hardcode_into_libs=yes
18061
hpux9* | hpux10* | hpux11*)
18062
# Give a soname corresponding to the major version so that dld.sl refuses to
18063
# link against other versions.
18067
case "$host_cpu" in
18070
hardcode_into_libs=yes
18071
dynamic_linker="$host_os dld.so"
18072
shlibpath_var=LD_LIBRARY_PATH
18073
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075
soname_spec='${libname}${release}${shared_ext}$major'
18076
if test "X$HPUX_IA64_MODE" = X32; then
18077
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18079
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18081
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18085
hardcode_into_libs=yes
18086
dynamic_linker="$host_os dld.sl"
18087
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18088
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090
soname_spec='${libname}${release}${shared_ext}$major'
18091
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18092
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18096
dynamic_linker="$host_os dld.sl"
18097
shlibpath_var=SHLIB_PATH
18098
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18099
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100
soname_spec='${libname}${release}${shared_ext}$major'
18103
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18104
postinstall_cmds='chmod 555 $lib'
18107
irix5* | irix6* | nonstopux*)
18109
nonstopux*) version_type=nonstopux ;;
18111
if test "$lt_cv_prog_gnu_ld" = yes; then
18119
soname_spec='${libname}${release}${shared_ext}$major'
18120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18122
irix5* | nonstopux*)
18123
libsuff= shlibsuff=
18126
case $LD in # libtool.m4 will add one of these switches to LD
18127
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18128
libsuff= shlibsuff= libmagic=32-bit;;
18129
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18130
libsuff=32 shlibsuff=N32 libmagic=N32;;
18131
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18132
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18133
*) libsuff= shlibsuff= libmagic=never-match;;
18137
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18138
shlibpath_overrides_runpath=no
18139
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18140
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18141
hardcode_into_libs=yes
18144
# No shared lib support for Linux oldld, aout, or coff.
18145
linux*oldld* | linux*aout* | linux*coff*)
18149
# This must be Linux ELF.
18154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18155
soname_spec='${libname}${release}${shared_ext}$major'
18156
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18157
shlibpath_var=LD_LIBRARY_PATH
18158
shlibpath_overrides_runpath=no
18159
# This implies no fast_install, which is unacceptable.
18160
# Some rework will be needed to allow for fast_install
18161
# before this can be enabled.
18162
hardcode_into_libs=yes
18164
# Append ld.so.conf contents to the search path
18165
if test -f /etc/ld.so.conf; then
18166
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
18167
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18170
# We used to test for /lib/ld.so.1 and disable shared libraries on
18171
# powerpc, because MkLinux only supported shared libraries with the
18172
# GNU dynamic linker. Since this was broken with cross compilers,
18173
# most powerpc-linux boxes support dynamic linking these days and
18174
# people can always --disable-shared, the test was removed, and we
18175
# assume the GNU/Linux dynamic linker is in use.
18176
dynamic_linker='GNU/Linux ld.so'
18183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18184
soname_spec='${libname}${release}${shared_ext}$major'
18185
shlibpath_var=LD_LIBRARY_PATH
18186
shlibpath_overrides_runpath=no
18187
hardcode_into_libs=yes
18188
dynamic_linker='NetBSD ld.elf_so'
18195
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196
soname_spec='${libname}${release}${shared_ext}$major'
18197
shlibpath_var=LD_LIBRARY_PATH
18198
shlibpath_overrides_runpath=no
18199
hardcode_into_libs=yes
18200
dynamic_linker='GNU ld.so'
18207
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18209
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18210
dynamic_linker='NetBSD (a.out) ld.so'
18212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18213
soname_spec='${libname}${release}${shared_ext}$major'
18214
dynamic_linker='NetBSD ld.elf_so'
18216
shlibpath_var=LD_LIBRARY_PATH
18217
shlibpath_overrides_runpath=yes
18218
hardcode_into_libs=yes
18223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224
shlibpath_var=LD_LIBRARY_PATH
18225
shlibpath_overrides_runpath=yes
18232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233
soname_spec='${libname}${release}${shared_ext}$major'
18234
shlibpath_var=LD_LIBRARY_PATH
18235
shlibpath_overrides_runpath=yes
18242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18243
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18244
shlibpath_var=LD_LIBRARY_PATH
18245
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18247
openbsd2.[89] | openbsd2.[89].*)
18248
shlibpath_overrides_runpath=no
18251
shlibpath_overrides_runpath=yes
18255
shlibpath_overrides_runpath=yes
18260
libname_spec='$name'
18263
library_names_spec='$libname${shared_ext} $libname.a'
18264
dynamic_linker='OS/2 ld.exe'
18265
shlibpath_var=LIBPATH
18268
osf3* | osf4* | osf5*)
18272
soname_spec='${libname}${release}${shared_ext}$major'
18273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18274
shlibpath_var=LD_LIBRARY_PATH
18275
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18276
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18281
soname_spec='${libname}${release}${shared_ext}$major'
18282
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18283
shlibpath_var=LD_LIBRARY_PATH
18290
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291
soname_spec='${libname}${release}${shared_ext}$major'
18292
shlibpath_var=LD_LIBRARY_PATH
18293
shlibpath_overrides_runpath=yes
18294
hardcode_into_libs=yes
18295
# ldd complains unless libraries are executable
18296
postinstall_cmds='chmod +x $lib'
18301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18302
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18303
shlibpath_var=LD_LIBRARY_PATH
18304
shlibpath_overrides_runpath=yes
18305
if test "$with_gnu_ld" = yes; then
18311
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314
soname_spec='${libname}${release}${shared_ext}$major'
18315
shlibpath_var=LD_LIBRARY_PATH
18316
case $host_vendor in
18318
shlibpath_overrides_runpath=no
18320
export_dynamic_flag_spec='${wl}-Blargedynsym'
18321
runpath_var=LD_RUN_PATH
18329
shlibpath_overrides_runpath=no
18330
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18336
if test -d /usr/nec ;then
18338
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18339
soname_spec='$libname${shared_ext}.$major'
18340
shlibpath_var=LD_LIBRARY_PATH
18346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18347
soname_spec='${libname}${release}${shared_ext}$major'
18348
shlibpath_var=LD_LIBRARY_PATH
18355
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18356
echo "${ECHO_T}$dynamic_linker" >&6
18357
test "$dynamic_linker" = no && can_build_shared=no
18359
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18360
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18361
hardcode_action_F77=
18362
if test -n "$hardcode_libdir_flag_spec_F77" || \
18363
test -n "$runpath_var F77" || \
18364
test "X$hardcode_automatic_F77"="Xyes" ; then
18366
# We can hardcode non-existant directories.
18367
if test "$hardcode_direct_F77" != no &&
18368
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18369
# have to relink, otherwise we might link with an installed library
18370
# when we should be linking with a yet-to-be-installed one
18371
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18372
test "$hardcode_minus_L_F77" != no; then
18373
# Linking always hardcodes the temporary library directory.
18374
hardcode_action_F77=relink
18376
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18377
hardcode_action_F77=immediate
18380
# We cannot hardcode anything, or else we can only hardcode existing
18382
hardcode_action_F77=unsupported
18384
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18385
echo "${ECHO_T}$hardcode_action_F77" >&6
18387
if test "$hardcode_action_F77" = relink; then
18388
# Fast installation is not supported
18389
enable_fast_install=no
18390
elif test "$shlibpath_overrides_runpath" = yes ||
18391
test "$enable_shared" = no; then
18392
# Fast installation is not necessary
18393
enable_fast_install=needless
18398
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18399
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18400
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18401
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18402
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18403
echo "$as_me:$LINENO: result: yes" >&5
18404
echo "${ECHO_T}yes" >&6
18406
# FIXME - insert some real tests, host_os isn't really good enough
18409
if test -n "$STRIP" ; then
18410
striplib="$STRIP -x"
18411
echo "$as_me:$LINENO: result: yes" >&5
18412
echo "${ECHO_T}yes" >&6
18414
echo "$as_me:$LINENO: result: no" >&5
18415
echo "${ECHO_T}no" >&6
18419
echo "$as_me:$LINENO: result: no" >&5
18420
echo "${ECHO_T}no" >&6
18427
# The else clause should only fire when bootstrapping the
18428
# libtool distribution, otherwise you forgot to ship ltmain.sh
18429
# with your package, and you will get complaints that there are
18430
# no rules to generate ltmain.sh.
18431
if test -f "$ltmain"; then
18432
# See if we are running on zsh, and set the options which allow our commands through
18433
# without removal of \ escapes.
18434
if test -n "${ZSH_VERSION+set}" ; then
18435
setopt NO_GLOB_SUBST
18437
# Now quote all the things that may contain metacharacters while being
18438
# careful not to overquote the AC_SUBSTed values. We take copies of the
18439
# variables and quote the copies for generation of the libtool script.
18440
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18442
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18443
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18444
deplibs_check_method reload_flag reload_cmds need_locks \
18445
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18446
lt_cv_sys_global_symbol_to_c_name_address \
18447
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18448
old_postinstall_cmds old_postuninstall_cmds \
18452
lt_prog_compiler_wl_F77 \
18453
lt_prog_compiler_pic_F77 \
18454
lt_prog_compiler_static_F77 \
18455
lt_prog_compiler_no_builtin_flag_F77 \
18456
export_dynamic_flag_spec_F77 \
18457
thread_safe_flag_spec_F77 \
18458
whole_archive_flag_spec_F77 \
18459
enable_shared_with_static_runtimes_F77 \
18460
old_archive_cmds_F77 \
18461
old_archive_from_new_cmds_F77 \
18462
predep_objects_F77 \
18463
postdep_objects_F77 \
18466
compiler_lib_search_path_F77 \
18468
archive_expsym_cmds_F77 \
18469
postinstall_cmds_F77 \
18470
postuninstall_cmds_F77 \
18471
old_archive_from_expsyms_cmds_F77 \
18472
allow_undefined_flag_F77 \
18473
no_undefined_flag_F77 \
18474
export_symbols_cmds_F77 \
18475
hardcode_libdir_flag_spec_F77 \
18476
hardcode_libdir_flag_spec_ld_F77 \
18477
hardcode_libdir_separator_F77 \
18478
hardcode_automatic_F77 \
18480
module_expsym_cmds_F77 \
18481
lt_cv_prog_compiler_c_o_F77 \
18482
exclude_expsyms_F77 \
18483
include_expsyms_F77; do
18486
old_archive_cmds_F77 | \
18487
old_archive_from_new_cmds_F77 | \
18488
archive_cmds_F77 | \
18489
archive_expsym_cmds_F77 | \
18490
module_cmds_F77 | \
18491
module_expsym_cmds_F77 | \
18492
old_archive_from_expsyms_cmds_F77 | \
18493
export_symbols_cmds_F77 | \
18494
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18495
postinstall_cmds | postuninstall_cmds | \
18496
old_postinstall_cmds | old_postuninstall_cmds | \
18497
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18498
# Double-quote double-evaled strings.
18499
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18502
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18508
*'\$0 --fallback-echo"')
18509
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18515
cat <<__EOF__ >> "$cfgfile"
18516
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18518
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18520
# Shell to use when invoking shell scripts.
18523
# Whether or not to build shared libraries.
18524
build_libtool_libs=$enable_shared
18526
# Whether or not to build static libraries.
18527
build_old_libs=$enable_static
18529
# Whether or not to add -lc for building shared libraries.
18530
build_libtool_need_lc=$archive_cmds_need_lc_F77
18532
# Whether or not to disallow shared libs when runtime libs are static
18533
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18535
# Whether or not to optimize for fast installation.
18536
fast_install=$enable_fast_install
18539
host_alias=$host_alias
18542
# An echo program that does not interpret backslashes.
18547
AR_FLAGS=$lt_AR_FLAGS
18552
# A language-specific compiler.
18553
CC=$lt_compiler_F77
18555
# Is the compiler the GNU C compiler?
18561
# The linker used to build libraries.
18564
# Whether we need hard or soft links.
18567
# A BSD-compatible nm program.
18570
# A symbol stripping program
18573
# Used to examine libraries when file_magic_cmd begins "file"
18574
MAGIC_CMD=$MAGIC_CMD
18576
# Used on cygwin: DLL creation program.
18579
# Used on cygwin: object dumper.
18582
# Used on cygwin: assembler.
18585
# The name of the directory that contains temporary libtool files.
18588
# How to create reloadable object files.
18589
reload_flag=$lt_reload_flag
18590
reload_cmds=$lt_reload_cmds
18592
# How to pass a linker flag through the compiler.
18593
wl=$lt_lt_prog_compiler_wl_F77
18595
# Object file suffix (normally "o").
18596
objext="$ac_objext"
18598
# Old archive suffix (normally "a").
18601
# Shared library suffix (normally ".so").
18602
shrext_cmds='$shrext_cmds'
18604
# Executable file suffix (normally "").
18607
# Additional compiler flags for building library objects.
18608
pic_flag=$lt_lt_prog_compiler_pic_F77
18611
# What is the maximum length of a command?
18612
max_cmd_len=$lt_cv_sys_max_cmd_len
18614
# Does compiler simultaneously support -c and -o options?
18615
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18617
# Must we lock files when doing compilation ?
18618
need_locks=$lt_need_locks
18620
# Do we need the lib prefix for modules?
18621
need_lib_prefix=$need_lib_prefix
18623
# Do we need a version for libraries?
18624
need_version=$need_version
18626
# Whether dlopen is supported.
18627
dlopen_support=$enable_dlopen
18629
# Whether dlopen of programs is supported.
18630
dlopen_self=$enable_dlopen_self
18632
# Whether dlopen of statically linked programs is supported.
18633
dlopen_self_static=$enable_dlopen_self_static
18635
# Compiler flag to prevent dynamic linking.
18636
link_static_flag=$lt_lt_prog_compiler_static_F77
18638
# Compiler flag to turn off builtin functions.
18639
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18641
# Compiler flag to allow reflexive dlopens.
18642
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18644
# Compiler flag to generate shared objects directly from archives.
18645
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18647
# Compiler flag to generate thread-safe objects.
18648
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18650
# Library versioning type.
18651
version_type=$version_type
18653
# Format of library name prefix.
18654
libname_spec=$lt_libname_spec
18656
# List of archive names. First name is the real one, the rest are links.
18657
# The last name is the one that the linker finds with -lNAME.
18658
library_names_spec=$lt_library_names_spec
18660
# The coded name of the library, if different from the real name.
18661
soname_spec=$lt_soname_spec
18663
# Commands used to build and install an old-style archive.
18665
old_archive_cmds=$lt_old_archive_cmds_F77
18666
old_postinstall_cmds=$lt_old_postinstall_cmds
18667
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18669
# Create an old-style archive from a shared archive.
18670
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18672
# Create a temporary old-style archive to link instead of a shared archive.
18673
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18675
# Commands used to build and install a shared archive.
18676
archive_cmds=$lt_archive_cmds_F77
18677
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18678
postinstall_cmds=$lt_postinstall_cmds
18679
postuninstall_cmds=$lt_postuninstall_cmds
18681
# Commands used to build a loadable module (assumed same as above if empty)
18682
module_cmds=$lt_module_cmds_F77
18683
module_expsym_cmds=$lt_module_expsym_cmds_F77
18685
# Commands to strip libraries.
18686
old_striplib=$lt_old_striplib
18687
striplib=$lt_striplib
18689
# Dependencies to place before the objects being linked to create a
18691
predep_objects=$lt_predep_objects_F77
18693
# Dependencies to place after the objects being linked to create a
18695
postdep_objects=$lt_postdep_objects_F77
18697
# Dependencies to place before the objects being linked to create a
18699
predeps=$lt_predeps_F77
18701
# Dependencies to place after the objects being linked to create a
18703
postdeps=$lt_postdeps_F77
18705
# The library search path used internally by the compiler when linking
18706
# a shared library.
18707
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18709
# Method to check whether dependent libraries are shared objects.
18710
deplibs_check_method=$lt_deplibs_check_method
18712
# Command to use when deplibs_check_method == file_magic.
18713
file_magic_cmd=$lt_file_magic_cmd
18715
# Flag that allows shared libraries with undefined symbols to be built.
18716
allow_undefined_flag=$lt_allow_undefined_flag_F77
18718
# Flag that forces no undefined symbols.
18719
no_undefined_flag=$lt_no_undefined_flag_F77
18721
# Commands used to finish a libtool library installation in a directory.
18722
finish_cmds=$lt_finish_cmds
18724
# Same as above, but a single script fragment to be evaled but not shown.
18725
finish_eval=$lt_finish_eval
18727
# Take the output of nm and produce a listing of raw symbols and C names.
18728
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18730
# Transform the output of nm in a proper C declaration
18731
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18733
# Transform the output of nm in a C name address pair
18734
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18736
# This is the shared library runtime path variable.
18737
runpath_var=$runpath_var
18739
# This is the shared library path variable.
18740
shlibpath_var=$shlibpath_var
18742
# Is shlibpath searched before the hard-coded library search path?
18743
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18745
# How to hardcode a shared library path into an executable.
18746
hardcode_action=$hardcode_action_F77
18748
# Whether we should hardcode library paths into libraries.
18749
hardcode_into_libs=$hardcode_into_libs
18751
# Flag to hardcode \$libdir into a binary during linking.
18752
# This must work even if \$libdir does not exist.
18753
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18755
# If ld is used when linking, flag to hardcode \$libdir into
18756
# a binary during linking. This must work even if \$libdir does
18758
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18760
# Whether we need a single -rpath flag with a separated argument.
18761
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18763
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18764
# resulting binary.
18765
hardcode_direct=$hardcode_direct_F77
18767
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18768
# resulting binary.
18769
hardcode_minus_L=$hardcode_minus_L_F77
18771
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18772
# the resulting binary.
18773
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18775
# Set to yes if building a shared library automatically hardcodes DIR into the library
18776
# and all subsequent libraries and executables linked against it.
18777
hardcode_automatic=$hardcode_automatic_F77
18779
# Variables whose values should be saved in libtool wrapper scripts and
18780
# restored at relink time.
18781
variables_saved_for_relink="$variables_saved_for_relink"
18783
# Whether libtool must link a program against all its dependency libraries.
18784
link_all_deplibs=$link_all_deplibs_F77
18786
# Compile-time system search path for libraries
18787
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18789
# Run-time system search path for libraries
18790
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18792
# Fix the shell variable \$srcfile for the compiler.
18793
fix_srcfile_path="$fix_srcfile_path_F77"
18795
# Set to yes if exported symbols are required.
18796
always_export_symbols=$always_export_symbols_F77
18798
# The commands to list exported symbols.
18799
export_symbols_cmds=$lt_export_symbols_cmds_F77
18801
# The commands to extract the exported symbol list from a shared archive.
18802
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18804
# Symbols that should not be listed in the preloaded symbols.
18805
exclude_expsyms=$lt_exclude_expsyms_F77
18807
# Symbols that must always be exported.
18808
include_expsyms=$lt_include_expsyms_F77
18810
# ### END LIBTOOL TAG CONFIG: $tagname
18816
# If there is no Makefile yet, we rely on a make rule to execute
18817
# `config.status --recheck' to rerun these tests and create the
18818
# libtool script then.
18819
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18820
if test -f "$ltmain_in"; then
18821
test -f Makefile && make "$ltmain"
18827
ac_cpp='$CPP $CPPFLAGS'
18828
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18829
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18840
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18844
# Source file extension for Java test sources.
18847
# Object file extension for compiled Java test sources.
18851
# Code to be used in simple compile tests
18852
lt_simple_compile_test_code="class foo {}\n"
18854
# Code to be used in simple link tests
18855
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18857
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18859
# If no C compiler was specified, use CC.
18862
# Allow CC to be a program name with arguments.
18866
# Allow CC to be a program name with arguments.
18872
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18873
archive_cmds_need_lc_GCJ=no
18876
lt_prog_compiler_no_builtin_flag_GCJ=
18878
if test "$GCC" = yes; then
18879
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18882
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18883
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18884
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18885
echo $ECHO_N "(cached) $ECHO_C" >&6
18887
lt_cv_prog_compiler_rtti_exceptions=no
18888
ac_outfile=conftest.$ac_objext
18889
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18890
lt_compiler_flag="-fno-rtti -fno-exceptions"
18891
# Insert the option either (1) after the last *FLAGS variable, or
18892
# (2) before a word containing "conftest.", or (3) at the end.
18893
# Note that $ac_compile itself does not contain backslashes and begins
18894
# with a dollar sign (not a hyphen), so the echo should work correctly.
18895
# The option is referenced via a variable to avoid confusing sed.
18896
lt_compile=`echo "$ac_compile" | $SED \
18897
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18898
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18899
-e 's:$: $lt_compiler_flag:'`
18900
(eval echo "\"\$as_me:18900: $lt_compile\"" >&5)
18901
(eval "$lt_compile" 2>conftest.err)
18903
cat conftest.err >&5
18904
echo "$as_me:18904: \$? = $ac_status" >&5
18905
if (exit $ac_status) && test -s "$ac_outfile"; then
18906
# The compiler can only warn and ignore the option if not recognized
18907
# So say no if there are warnings
18908
if test ! -s conftest.err; then
18909
lt_cv_prog_compiler_rtti_exceptions=yes
18915
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18916
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18918
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18919
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18926
lt_prog_compiler_wl_GCJ=
18927
lt_prog_compiler_pic_GCJ=
18928
lt_prog_compiler_static_GCJ=
18930
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18931
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18933
if test "$GCC" = yes; then
18934
lt_prog_compiler_wl_GCJ='-Wl,'
18935
lt_prog_compiler_static_GCJ='-static'
18939
# All AIX code is PIC.
18940
if test "$host_cpu" = ia64; then
18941
# AIX 5 now supports IA64 processor
18942
lt_prog_compiler_static_GCJ='-Bstatic'
18947
# FIXME: we need at least 68020 code to build shared libraries, but
18948
# adding the `-m68020' flag to GCC prevents building anything better,
18950
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18953
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18954
# PIC is the default for these OSes.
18957
mingw* | pw32* | os2*)
18958
# This hack is so that the source file can tell whether it is being
18959
# built for inclusion in a dll (and should export symbols for example).
18960
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18963
darwin* | rhapsody*)
18964
# PIC is the default on this platform
18965
# Common symbols not allowed in MH_DYLIB files
18966
lt_prog_compiler_pic_GCJ='-fno-common'
18970
# Just because we use GCC doesn't mean we suddenly get shared libraries
18971
# on systems that don't support them.
18972
lt_prog_compiler_can_build_shared_GCJ=no
18977
if test -d /usr/nec; then
18978
lt_prog_compiler_pic_GCJ=-Kconform_pic
18983
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18984
# not for PA HP-UX.
18985
case "$host_cpu" in
18990
lt_prog_compiler_pic_GCJ='-fPIC'
18996
lt_prog_compiler_pic_GCJ='-fPIC'
19000
# PORTME Check for flag to pass linker flags through the system compiler.
19003
lt_prog_compiler_wl_GCJ='-Wl,'
19004
if test "$host_cpu" = ia64; then
19005
# AIX 5 now supports IA64 processor
19006
lt_prog_compiler_static_GCJ='-Bstatic'
19008
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19012
mingw* | pw32* | os2*)
19013
# This hack is so that the source file can tell whether it is being
19014
# built for inclusion in a dll (and should export symbols for example).
19015
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19018
hpux9* | hpux10* | hpux11*)
19019
lt_prog_compiler_wl_GCJ='-Wl,'
19020
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19021
# not for PA HP-UX.
19022
case "$host_cpu" in
19027
lt_prog_compiler_pic_GCJ='+Z'
19030
# Is there a better lt_prog_compiler_static that works with the bundled CC?
19031
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19034
irix5* | irix6* | nonstopux*)
19035
lt_prog_compiler_wl_GCJ='-Wl,'
19036
# PIC (with -KPIC) is the default.
19037
lt_prog_compiler_static_GCJ='-non_shared'
19041
lt_prog_compiler_pic_GCJ='-KPIC'
19042
lt_prog_compiler_static_GCJ='-Bstatic'
19048
lt_prog_compiler_wl_GCJ='-Wl,'
19049
lt_prog_compiler_pic_GCJ='-KPIC'
19050
lt_prog_compiler_static_GCJ='-static'
19053
lt_prog_compiler_wl_GCJ='-Wl,'
19054
# All Alpha code is PIC.
19055
lt_prog_compiler_static_GCJ='-non_shared'
19060
osf3* | osf4* | osf5*)
19061
lt_prog_compiler_wl_GCJ='-Wl,'
19062
# All OSF/1 code is PIC.
19063
lt_prog_compiler_static_GCJ='-non_shared'
19067
lt_prog_compiler_pic_GCJ='-Kpic'
19068
lt_prog_compiler_static_GCJ='-dn'
19072
lt_prog_compiler_wl_GCJ='-Wl,'
19073
lt_prog_compiler_pic_GCJ='-KPIC'
19074
lt_prog_compiler_static_GCJ='-Bstatic'
19078
lt_prog_compiler_wl_GCJ='-Qoption ld '
19079
lt_prog_compiler_pic_GCJ='-PIC'
19080
lt_prog_compiler_static_GCJ='-Bstatic'
19083
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19084
lt_prog_compiler_wl_GCJ='-Wl,'
19085
lt_prog_compiler_pic_GCJ='-KPIC'
19086
lt_prog_compiler_static_GCJ='-Bstatic'
19090
if test -d /usr/nec ;then
19091
lt_prog_compiler_pic_GCJ='-Kconform_pic'
19092
lt_prog_compiler_static_GCJ='-Bstatic'
19097
lt_prog_compiler_pic_GCJ='-pic'
19098
lt_prog_compiler_static_GCJ='-Bstatic'
19102
lt_prog_compiler_can_build_shared_GCJ=no
19107
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19108
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
19111
# Check to make sure the PIC flag actually works.
19113
if test -n "$lt_prog_compiler_pic_GCJ"; then
19115
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19116
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
19117
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19118
echo $ECHO_N "(cached) $ECHO_C" >&6
19120
lt_prog_compiler_pic_works_GCJ=no
19121
ac_outfile=conftest.$ac_objext
19122
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19123
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19124
# Insert the option either (1) after the last *FLAGS variable, or
19125
# (2) before a word containing "conftest.", or (3) at the end.
19126
# Note that $ac_compile itself does not contain backslashes and begins
19127
# with a dollar sign (not a hyphen), so the echo should work correctly.
19128
# The option is referenced via a variable to avoid confusing sed.
19129
lt_compile=`echo "$ac_compile" | $SED \
19130
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19131
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19132
-e 's:$: $lt_compiler_flag:'`
19133
(eval echo "\"\$as_me:19133: $lt_compile\"" >&5)
19134
(eval "$lt_compile" 2>conftest.err)
19136
cat conftest.err >&5
19137
echo "$as_me:19137: \$? = $ac_status" >&5
19138
if (exit $ac_status) && test -s "$ac_outfile"; then
19139
# The compiler can only warn and ignore the option if not recognized
19140
# So say no if there are warnings
19141
if test ! -s conftest.err; then
19142
lt_prog_compiler_pic_works_GCJ=yes
19148
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19149
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
19151
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19152
case $lt_prog_compiler_pic_GCJ in
19154
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19157
lt_prog_compiler_pic_GCJ=
19158
lt_prog_compiler_can_build_shared_GCJ=no
19163
# For platforms which do not support PIC, -DPIC is meaningless:
19165
lt_prog_compiler_pic_GCJ=
19168
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19172
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19173
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19174
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19175
echo $ECHO_N "(cached) $ECHO_C" >&6
19177
lt_cv_prog_compiler_c_o_GCJ=no
19178
$rm -r conftest 2>/dev/null
19182
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19184
lt_compiler_flag="-o out/conftest2.$ac_objext"
19185
# Insert the option either (1) after the last *FLAGS variable, or
19186
# (2) before a word containing "conftest.", or (3) at the end.
19187
# Note that $ac_compile itself does not contain backslashes and begins
19188
# with a dollar sign (not a hyphen), so the echo should work correctly.
19189
lt_compile=`echo "$ac_compile" | $SED \
19190
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19191
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19192
-e 's:$: $lt_compiler_flag:'`
19193
(eval echo "\"\$as_me:19193: $lt_compile\"" >&5)
19194
(eval "$lt_compile" 2>out/conftest.err)
19196
cat out/conftest.err >&5
19197
echo "$as_me:19197: \$? = $ac_status" >&5
19198
if (exit $ac_status) && test -s out/conftest2.$ac_objext
19200
# The compiler can only warn and ignore the option if not recognized
19201
# So say no if there are warnings
19202
if test ! -s out/conftest.err; then
19203
lt_cv_prog_compiler_c_o_GCJ=yes
19208
# SGI C++ compiler will create directory out/ii_files/ for
19209
# template instantiation
19210
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19211
$rm out/* && rmdir out
19217
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19218
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19221
hard_links="nottested"
19222
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19223
# do not overwrite the value of need_locks provided by the user
19224
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19225
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19228
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19230
ln conftest.a conftest.b 2>&5 || hard_links=no
19231
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19232
echo "$as_me:$LINENO: result: $hard_links" >&5
19233
echo "${ECHO_T}$hard_links" >&6
19234
if test "$hard_links" = no; then
19235
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19236
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19243
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19244
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19247
allow_undefined_flag_GCJ=
19248
enable_shared_with_static_runtimes_GCJ=no
19250
archive_expsym_cmds_GCJ=
19251
old_archive_From_new_cmds_GCJ=
19252
old_archive_from_expsyms_cmds_GCJ=
19253
export_dynamic_flag_spec_GCJ=
19254
whole_archive_flag_spec_GCJ=
19255
thread_safe_flag_spec_GCJ=
19256
hardcode_libdir_flag_spec_GCJ=
19257
hardcode_libdir_flag_spec_ld_GCJ=
19258
hardcode_libdir_separator_GCJ=
19259
hardcode_direct_GCJ=no
19260
hardcode_minus_L_GCJ=no
19261
hardcode_shlibpath_var_GCJ=unsupported
19262
link_all_deplibs_GCJ=unknown
19263
hardcode_automatic_GCJ=no
19265
module_expsym_cmds_GCJ=
19266
always_export_symbols_GCJ=no
19267
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19268
# include_expsyms should be a list of space-separated symbols to be *always*
19269
# included in the symbol list
19270
include_expsyms_GCJ=
19271
# exclude_expsyms can be an extended regexp of symbols to exclude
19272
# it will be wrapped by ` (' and `)$', so one must not match beginning or
19273
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19274
# as well as any symbol that contains `d'.
19275
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19276
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19277
# platforms (ab)use it in PIC code, but their linkers get confused if
19278
# the symbol is explicitly referenced. Since portable code cannot
19279
# rely on this symbol name, it's probably fine to never include it in
19280
# preloaded symbol tables.
19281
extract_expsyms_cmds=
19284
cygwin* | mingw* | pw32*)
19285
# FIXME: the MSVC++ port hasn't been tested in a loooong time
19286
# When not using gcc, we currently assume that we are using
19287
# Microsoft Visual C++.
19288
if test "$GCC" != yes; then
19298
if test "$with_gnu_ld" = yes; then
19299
# If archive_cmds runs LD, not CC, wlarc should be empty
19302
# See if GNU ld supports shared libraries.
19304
aix3* | aix4* | aix5*)
19305
# On AIX/PPC, the GNU linker is very broken
19306
if test "$host_cpu" != ia64; then
19310
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19311
*** to be unable to reliably create shared libraries on AIX.
19312
*** Therefore, libtool is disabling shared libraries support. If you
19313
*** really care for shared libraries, you may want to modify your PATH
19314
*** so that a non-GNU linker is found, and then restart.
19321
archive_cmds_GCJ='$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)'
19322
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19323
hardcode_minus_L_GCJ=yes
19325
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19326
# that the semantics of dynamic libraries on AmigaOS, at least up
19327
# to version 4, is to share data among multiple programs linked
19328
# with the same dynamic library. Since this doesn't match the
19329
# behavior of shared libraries on other platforms, we can't use
19335
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19336
allow_undefined_flag_GCJ=unsupported
19337
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19338
# support --undefined. This deserves some investigation. FIXME
19339
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345
cygwin* | mingw* | pw32*)
19346
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19347
# as there is no search path for DLLs.
19348
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19349
allow_undefined_flag_GCJ=unsupported
19350
always_export_symbols_GCJ=no
19351
enable_shared_with_static_runtimes_GCJ=yes
19352
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19354
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19355
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19356
# If the export-symbols file already is a .def file (1st line
19357
# is EXPORTS), use it as is; otherwise, prepend...
19358
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19359
cp $export_symbols $output_objdir/$soname.def;
19361
echo EXPORTS > $output_objdir/$soname.def;
19362
cat $export_symbols >> $output_objdir/$soname.def;
19364
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19370
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
19371
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19372
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19375
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19376
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19381
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19385
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19386
*** create shared libraries on Solaris systems. Therefore, libtool
19387
*** is disabling shared libraries support. We urge you to upgrade GNU
19388
*** binutils to release 2.9.1 or newer. Another option is to modify
19389
*** your PATH or compiler configuration so that the native linker is
19390
*** used, and then restart.
19393
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19394
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19395
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19402
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19404
hardcode_direct_GCJ=yes
19405
hardcode_shlibpath_var_GCJ=no
19409
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19410
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19411
archive_cmds_GCJ="$tmp_archive_cmds"
19412
supports_anon_versioning=no
19413
case `$LD -v 2>/dev/null` in
19414
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19415
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19416
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19417
*\ 2.11.*) ;; # other 2.11 versions
19418
*) supports_anon_versioning=yes ;;
19420
if test $supports_anon_versioning = yes; then
19421
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19422
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19423
$echo "local: *; };" >> $output_objdir/$libname.ver~
19424
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19426
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
19428
link_all_deplibs_GCJ=no
19435
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19436
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19437
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19444
if test "$ld_shlibs_GCJ" = yes; then
19445
runpath_var=LD_RUN_PATH
19446
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19447
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19448
# ancient GNU ld didn't support --whole-archive et. al.
19449
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19450
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19452
whole_archive_flag_spec_GCJ=
19456
# PORTME fill in a description of your system's linker (not GNU ld)
19459
allow_undefined_flag_GCJ=unsupported
19460
always_export_symbols_GCJ=yes
19461
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19462
# Note: this linker hardcodes the directories in LIBPATH if there
19463
# are no directories specified by -L.
19464
hardcode_minus_L_GCJ=yes
19465
if test "$GCC" = yes && test -z "$link_static_flag"; then
19466
# Neither direct hardcoding nor static linking is supported with a
19468
hardcode_direct_GCJ=unsupported
19473
if test "$host_cpu" = ia64; then
19474
# On IA64, the linker does run time linking by default, so we don't
19475
# have to do anything special.
19476
aix_use_runtimelinking=no
19477
exp_sym_flag='-Bexport'
19480
# If we're using GNU nm, then we don't want the "-C" option.
19481
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19482
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19483
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19485
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19487
aix_use_runtimelinking=no
19489
# Test if we are trying to use run time linking or normal
19490
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19491
# need to do runtime linking.
19492
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19493
for ld_flag in $LDFLAGS; do
19494
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19495
aix_use_runtimelinking=yes
19501
exp_sym_flag='-bexport'
19502
no_entry_flag='-bnoentry'
19505
# When large executables or shared objects are built, AIX ld can
19506
# have problems creating the table of contents. If linking a library
19507
# or program results in "error TOC overflow" add -mminimal-toc to
19508
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19509
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19511
archive_cmds_GCJ=''
19512
hardcode_direct_GCJ=yes
19513
hardcode_libdir_separator_GCJ=':'
19514
link_all_deplibs_GCJ=yes
19516
if test "$GCC" = yes; then
19517
case $host_os in aix4.012|aix4.012.*)
19518
# We only want to do this on AIX 4.2 and lower, the check
19519
# below for broken collect2 doesn't work under 4.3+
19520
collect2name=`${CC} -print-prog-name=collect2`
19521
if test -f "$collect2name" && \
19522
strings "$collect2name" | grep resolve_lib_name >/dev/null
19524
# We have reworked collect2
19525
hardcode_direct_GCJ=yes
19527
# We have old collect2
19528
hardcode_direct_GCJ=unsupported
19529
# It fails to find uninstalled libraries when the uninstalled
19530
# path is not listed in the libpath. Setting hardcode_minus_L
19531
# to unsupported forces relinking
19532
hardcode_minus_L_GCJ=yes
19533
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19534
hardcode_libdir_separator_GCJ=
19537
shared_flag='-shared'
19540
if test "$host_cpu" = ia64; then
19541
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19542
# chokes on -Wl,-G. The following line is correct:
19545
if test "$aix_use_runtimelinking" = yes; then
19546
shared_flag='${wl}-G'
19548
shared_flag='${wl}-bM:SRE'
19553
# It seems that -bexpall does not export symbols beginning with
19554
# underscore (_), so it is better to generate a list of symbols to export.
19555
always_export_symbols_GCJ=yes
19556
if test "$aix_use_runtimelinking" = yes; then
19557
# Warning - without using the other runtime loading flags (-brtl),
19558
# -berok will link without error, but may produce a broken library.
19559
allow_undefined_flag_GCJ='-berok'
19560
# Determine the default libpath from the value encoded in an empty executable.
19561
cat >conftest.$ac_ext <<_ACEOF
19564
cat confdefs.h >>conftest.$ac_ext
19565
cat >>conftest.$ac_ext <<_ACEOF
19566
/* end confdefs.h. */
19576
rm -f conftest.$ac_objext conftest$ac_exeext
19577
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578
(eval $ac_link) 2>conftest.er1
19580
grep -v '^ *+' conftest.er1 >conftest.err
19582
cat conftest.err >&5
19583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584
(exit $ac_status); } &&
19585
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19586
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587
(eval $ac_try) 2>&5
19589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590
(exit $ac_status); }; } &&
19591
{ ac_try='test -s conftest$ac_exeext'
19592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593
(eval $ac_try) 2>&5
19595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596
(exit $ac_status); }; }; then
19598
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19600
# Check for a 64-bit object if we didn't find anything.
19601
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19604
echo "$as_me: failed program was:" >&5
19605
sed 's/^/| /' conftest.$ac_ext >&5
19608
rm -f conftest.err conftest.$ac_objext \
19609
conftest$ac_exeext conftest.$ac_ext
19610
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19612
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19613
archive_expsym_cmds_GCJ="\$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"
19615
if test "$host_cpu" = ia64; then
19616
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19617
allow_undefined_flag_GCJ="-z nodefs"
19618
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19620
# Determine the default libpath from the value encoded in an empty executable.
19621
cat >conftest.$ac_ext <<_ACEOF
19624
cat confdefs.h >>conftest.$ac_ext
19625
cat >>conftest.$ac_ext <<_ACEOF
19626
/* end confdefs.h. */
19636
rm -f conftest.$ac_objext conftest$ac_exeext
19637
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19638
(eval $ac_link) 2>conftest.er1
19640
grep -v '^ *+' conftest.er1 >conftest.err
19642
cat conftest.err >&5
19643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644
(exit $ac_status); } &&
19645
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19646
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647
(eval $ac_try) 2>&5
19649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650
(exit $ac_status); }; } &&
19651
{ ac_try='test -s conftest$ac_exeext'
19652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653
(eval $ac_try) 2>&5
19655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656
(exit $ac_status); }; }; then
19658
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19660
# Check for a 64-bit object if we didn't find anything.
19661
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19664
echo "$as_me: failed program was:" >&5
19665
sed 's/^/| /' conftest.$ac_ext >&5
19668
rm -f conftest.err conftest.$ac_objext \
19669
conftest$ac_exeext conftest.$ac_ext
19670
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19672
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19673
# Warning - without using the other run time loading flags,
19674
# -berok will link without error, but may produce a broken library.
19675
no_undefined_flag_GCJ=' ${wl}-bernotok'
19676
allow_undefined_flag_GCJ=' ${wl}-berok'
19677
# -bexpall does not export symbols beginning with underscore (_)
19678
always_export_symbols_GCJ=yes
19679
# Exported symbols can be pulled into shared objects from archives
19680
whole_archive_flag_spec_GCJ=' '
19681
archive_cmds_need_lc_GCJ=yes
19682
# This is similar to how AIX traditionally builds it's shared libraries.
19683
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19689
archive_cmds_GCJ='$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)'
19690
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19691
hardcode_minus_L_GCJ=yes
19692
# see comment about different semantics on the GNU ld section
19697
export_dynamic_flag_spec_GCJ=-rdynamic
19700
cygwin* | mingw* | pw32*)
19701
# When not using gcc, we currently assume that we are using
19702
# Microsoft Visual C++.
19703
# hardcode_libdir_flag_spec is actually meaningless, as there is
19704
# no search path for DLLs.
19705
hardcode_libdir_flag_spec_GCJ=' '
19706
allow_undefined_flag_GCJ=unsupported
19707
# Tell ltmain to make .lib files, not .a files.
19709
# Tell ltmain to make .dll files, not .so files.
19711
# FIXME: Setting linknames here is a bad hack.
19712
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19713
# The linker will automatically build a .lib file if we build a DLL.
19714
old_archive_From_new_cmds_GCJ='true'
19715
# FIXME: Should let the user specify the lib program.
19716
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19717
fix_srcfile_path='`cygpath -w "$srcfile"`'
19718
enable_shared_with_static_runtimes_GCJ=yes
19721
darwin* | rhapsody*)
19722
if test "$GXX" = yes ; then
19723
archive_cmds_need_lc_GCJ=no
19725
rhapsody* | darwin1.[012])
19726
allow_undefined_flag_GCJ='-undefined suppress'
19729
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19730
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19732
case ${MACOSX_DEPLOYMENT_TARGET} in
19734
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19737
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
19743
lt_int_apple_cc_single_mod=no
19744
output_verbose_link_cmd='echo'
19745
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19746
lt_int_apple_cc_single_mod=yes
19748
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19749
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19751
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19753
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19754
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19755
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19756
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19758
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19760
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19761
hardcode_direct_GCJ=no
19762
hardcode_automatic_GCJ=yes
19763
hardcode_shlibpath_var_GCJ=unsupported
19764
whole_archive_flag_spec_GCJ='-all_load $convenience'
19765
link_all_deplibs_GCJ=yes
19772
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19773
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19774
hardcode_shlibpath_var_GCJ=no
19781
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19782
# support. Future versions do this automatically, but an explicit c++rt0.o
19783
# does not break anything, and helps significantly (at the cost of a little
19786
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19787
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19788
hardcode_direct_GCJ=yes
19789
hardcode_shlibpath_var_GCJ=no
19792
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19794
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19795
hardcode_direct_GCJ=yes
19796
hardcode_minus_L_GCJ=yes
19797
hardcode_shlibpath_var_GCJ=no
19800
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19801
freebsd* | kfreebsd*-gnu)
19802
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19803
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19804
hardcode_direct_GCJ=yes
19805
hardcode_shlibpath_var_GCJ=no
19809
if test "$GCC" = yes; then
19810
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19812
archive_cmds_GCJ='$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'
19814
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19815
hardcode_libdir_separator_GCJ=:
19816
hardcode_direct_GCJ=yes
19818
# hardcode_minus_L: Not really in the search PATH,
19819
# but as the default location of the library.
19820
hardcode_minus_L_GCJ=yes
19821
export_dynamic_flag_spec_GCJ='${wl}-E'
19825
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19826
case "$host_cpu" in
19828
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19831
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19835
case "$host_cpu" in
19837
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19840
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19844
if test "$with_gnu_ld" = no; then
19845
case "$host_cpu" in
19847
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19848
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19849
hardcode_libdir_separator_GCJ=:
19850
hardcode_direct_GCJ=no
19851
hardcode_shlibpath_var_GCJ=no
19854
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19855
hardcode_direct_GCJ=no
19856
hardcode_shlibpath_var_GCJ=no
19858
# hardcode_minus_L: Not really in the search PATH,
19859
# but as the default location of the library.
19860
hardcode_minus_L_GCJ=yes
19863
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19864
hardcode_libdir_separator_GCJ=:
19865
hardcode_direct_GCJ=yes
19866
export_dynamic_flag_spec_GCJ='${wl}-E'
19868
# hardcode_minus_L: Not really in the search PATH,
19869
# but as the default location of the library.
19870
hardcode_minus_L_GCJ=yes
19876
irix5* | irix6* | nonstopux*)
19877
if test "$GCC" = yes; then
19878
archive_cmds_GCJ='$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'
19880
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19881
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19883
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19884
hardcode_libdir_separator_GCJ=:
19885
link_all_deplibs_GCJ=yes
19888
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
19889
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19890
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19892
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19894
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19895
hardcode_direct_GCJ=yes
19896
hardcode_shlibpath_var_GCJ=no
19900
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19901
hardcode_direct_GCJ=yes
19902
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19903
hardcode_libdir_separator_GCJ=:
19904
hardcode_shlibpath_var_GCJ=no
19908
hardcode_direct_GCJ=yes
19909
hardcode_shlibpath_var_GCJ=no
19910
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19911
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19912
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19913
export_dynamic_flag_spec_GCJ='${wl}-E'
19916
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19917
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19918
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19921
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19922
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19929
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19930
hardcode_minus_L_GCJ=yes
19931
allow_undefined_flag_GCJ=unsupported
19932
archive_cmds_GCJ='$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'
19933
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19937
if test "$GCC" = yes; then
19938
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19939
archive_cmds_GCJ='$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'
19941
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19942
archive_cmds_GCJ='$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'
19944
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19945
hardcode_libdir_separator_GCJ=:
19948
osf4* | osf5*) # as osf3* with the addition of -msym flag
19949
if test "$GCC" = yes; then
19950
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19951
archive_cmds_GCJ='$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'
19952
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19954
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19955
archive_cmds_GCJ='$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'
19956
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19957
$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'
19959
# Both c and cxx compiler support -rpath directly
19960
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19962
hardcode_libdir_separator_GCJ=:
19966
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19967
hardcode_shlibpath_var_GCJ=no
19968
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19969
runpath_var=LD_RUN_PATH
19970
hardcode_runpath_var=yes
19974
no_undefined_flag_GCJ=' -z text'
19975
if test "$GCC" = yes; then
19976
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19977
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19978
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19980
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19981
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19982
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19984
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19985
hardcode_shlibpath_var_GCJ=no
19987
solaris2.[0-5] | solaris2.[0-5].*) ;;
19988
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
19989
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19991
link_all_deplibs_GCJ=yes
19995
if test "x$host_vendor" = xsequent; then
19996
# Use $CC to link under sequent, because it throws in some extra .o
19997
# files that make .init and .fini sections work.
19998
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20000
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20002
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20003
hardcode_direct_GCJ=yes
20004
hardcode_minus_L_GCJ=yes
20005
hardcode_shlibpath_var_GCJ=no
20009
case $host_vendor in
20011
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20012
hardcode_direct_GCJ=yes # is this really true???
20015
## LD is ld it makes a PLAMLIB
20016
## CC just makes a GrossModule.
20017
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20018
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20019
hardcode_direct_GCJ=no
20022
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20023
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20026
runpath_var='LD_RUN_PATH'
20027
hardcode_shlibpath_var_GCJ=no
20031
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20032
hardcode_shlibpath_var_GCJ=no
20033
export_dynamic_flag_spec_GCJ='-Bexport'
20037
if test -d /usr/nec; then
20038
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20039
hardcode_shlibpath_var_GCJ=no
20040
runpath_var=LD_RUN_PATH
20041
hardcode_runpath_var=yes
20047
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20048
hardcode_direct_GCJ=yes
20049
hardcode_minus_L_GCJ=no
20050
hardcode_shlibpath_var_GCJ=no
20051
hardcode_runpath_var=yes
20052
runpath_var=LD_RUN_PATH
20055
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20056
no_undefined_flag_GCJ='${wl}-z ${wl}text'
20057
if test "$GCC" = yes; then
20058
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20060
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20062
runpath_var='LD_RUN_PATH'
20063
hardcode_shlibpath_var_GCJ=no
20067
no_undefined_flag_GCJ=' -z text'
20068
# $CC -shared without GNU ld will not create a library from C++
20069
# object files and a static libstdc++, better avoid it by now
20070
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20071
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20072
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20073
hardcode_libdir_flag_spec_GCJ=
20074
hardcode_shlibpath_var_GCJ=no
20075
runpath_var='LD_RUN_PATH'
20079
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20080
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20081
hardcode_shlibpath_var_GCJ=no
20090
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20091
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20092
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20094
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20095
if test "$GCC" = yes; then
20096
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20100
# Do we need to explicitly link libc?
20102
case "x$archive_cmds_need_lc_GCJ" in
20104
# Assume -lc should be added
20105
archive_cmds_need_lc_GCJ=yes
20107
if test "$enable_shared" = yes && test "$GCC" = yes; then
20108
case $archive_cmds_GCJ in
20110
# FIXME: we may have to deal with multi-command sequences.
20113
# Test whether the compiler implicitly links with -lc since on some
20114
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20115
# to ld, don't add -lc before -lgcc.
20116
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20117
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20119
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20121
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20122
(eval $ac_compile) 2>&5
20124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125
(exit $ac_status); } 2>conftest.err; then
20128
libobjs=conftest.$ac_objext
20130
wl=$lt_prog_compiler_wl_GCJ
20136
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20137
allow_undefined_flag_GCJ=
20138
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20139
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142
(exit $ac_status); }
20144
archive_cmds_need_lc_GCJ=no
20146
archive_cmds_need_lc_GCJ=yes
20148
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20150
cat conftest.err 1>&5
20153
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20154
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20161
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20162
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20163
library_names_spec=
20164
libname_spec='lib$name'
20168
postuninstall_cmds=
20172
shlibpath_overrides_runpath=unknown
20174
dynamic_linker="$host_os ld.so"
20175
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20176
if test "$GCC" = yes; then
20177
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20178
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20179
# if the path contains ";" then we assume it to be the separator
20180
# otherwise default to the standard path separator (i.e. ":") - it is
20181
# assumed that no part of a normal pathname contains ";" but that should
20182
# okay in the real world where ";" in dirpaths is itself problematic.
20183
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20185
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20188
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20190
need_lib_prefix=unknown
20191
hardcode_into_libs=no
20193
# when you set need_version to no, make sure it does not cause -set_version
20194
# flags to be left without arguments
20195
need_version=unknown
20200
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20201
shlibpath_var=LIBPATH
20203
# AIX 3 has no versioning support, so we append a major version to the name.
20204
soname_spec='${libname}${release}${shared_ext}$major'
20211
hardcode_into_libs=yes
20212
if test "$host_cpu" = ia64; then
20213
# AIX 5 supports IA64
20214
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20215
shlibpath_var=LD_LIBRARY_PATH
20217
# With GCC up to 2.95.x, collect2 would create an import file
20218
# for dependence libraries. The import file would start with
20219
# the line `#! .'. This would cause the generated library to
20220
# depend on `.', always an invalid library. This was fixed in
20221
# development snapshots of GCC prior to 3.0.
20223
aix4 | aix4.[01] | aix4.[01].*)
20224
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20226
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20229
can_build_shared=no
20233
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20234
# soname into executable. Probably we can add versioning support to
20235
# collect2, so additional links can be useful in future.
20236
if test "$aix_use_runtimelinking" = yes; then
20237
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20238
# instead of lib<name>.a to let people know that these are not
20239
# typical AIX shared libraries.
20240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20242
# We preserve .a as extension for shared libraries through AIX4.2
20243
# and later when we are not doing run time linking.
20244
library_names_spec='${libname}${release}.a $libname.a'
20245
soname_spec='${libname}${release}${shared_ext}$major'
20247
shlibpath_var=LIBPATH
20252
library_names_spec='$libname.ixlibrary $libname.a'
20253
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20254
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'
20258
library_names_spec='${libname}${shared_ext}'
20259
dynamic_linker="$host_os ld.so"
20260
shlibpath_var=LIBRARY_PATH
20266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267
soname_spec='${libname}${release}${shared_ext}$major'
20268
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20269
shlibpath_var=LD_LIBRARY_PATH
20270
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20271
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20272
# the default ld.so.conf also contains /usr/contrib/lib and
20273
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20274
# libtool to hard-code these into programs
20277
cygwin* | mingw* | pw32*)
20278
version_type=windows
20283
case $GCC,$host_os in
20284
yes,cygwin* | yes,mingw* | yes,pw32*)
20285
library_names_spec='$libname.dll.a'
20286
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20287
postinstall_cmds='base_file=`basename \${file}`~
20288
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20289
dldir=$destdir/`dirname \$dlpath`~
20290
test -d \$dldir || mkdir -p \$dldir~
20291
$install_prog $dir/$dlname \$dldir/$dlname'
20292
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20293
dlpath=$dir/\$dldll~
20295
shlibpath_overrides_runpath=yes
20299
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20300
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20301
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20304
# MinGW DLLs use traditional 'lib' prefix
20305
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20306
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20307
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20308
# It is most probably a Windows format PATH printed by
20309
# mingw gcc, but we are running on Cygwin. Gcc prints its search
20310
# path with ; separators, and with drive letters. We can handle the
20311
# drive letters (cygwin fileutils understands them), so leave them,
20312
# especially as we might pass files found there to a mingw objdump,
20313
# which wouldn't understand a cygwinified path. Ahh.
20314
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20316
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20320
# pw32 DLLs use 'pw' prefix rather than 'lib'
20321
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20327
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20330
dynamic_linker='Win32 ld.exe'
20331
# FIXME: first we should search . and the directory the executable is in
20335
darwin* | rhapsody*)
20336
dynamic_linker="$host_os dyld"
20337
version_type=darwin
20340
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20341
soname_spec='${libname}${release}${major}$shared_ext'
20342
shlibpath_overrides_runpath=yes
20343
shlibpath_var=DYLD_LIBRARY_PATH
20344
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20345
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20346
if test "$GCC" = yes; then
20347
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20349
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20351
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20359
soname_spec='${libname}${release}${shared_ext}$major'
20360
shlibpath_var=LD_LIBRARY_PATH
20371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20372
soname_spec='${libname}${release}${shared_ext}$major'
20373
shlibpath_var=LD_LIBRARY_PATH
20374
shlibpath_overrides_runpath=no
20375
hardcode_into_libs=yes
20376
dynamic_linker='GNU ld.so'
20380
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20381
version_type=freebsd-$objformat
20382
case $version_type in
20384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20389
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20393
shlibpath_var=LD_LIBRARY_PATH
20396
shlibpath_overrides_runpath=yes
20398
freebsd3.01* | freebsdelf3.01*)
20399
shlibpath_overrides_runpath=yes
20400
hardcode_into_libs=yes
20403
shlibpath_overrides_runpath=no
20404
hardcode_into_libs=yes
20413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20414
soname_spec='${libname}${release}${shared_ext}$major'
20415
shlibpath_var=LD_LIBRARY_PATH
20416
hardcode_into_libs=yes
20419
hpux9* | hpux10* | hpux11*)
20420
# Give a soname corresponding to the major version so that dld.sl refuses to
20421
# link against other versions.
20425
case "$host_cpu" in
20428
hardcode_into_libs=yes
20429
dynamic_linker="$host_os dld.so"
20430
shlibpath_var=LD_LIBRARY_PATH
20431
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433
soname_spec='${libname}${release}${shared_ext}$major'
20434
if test "X$HPUX_IA64_MODE" = X32; then
20435
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20437
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20439
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20443
hardcode_into_libs=yes
20444
dynamic_linker="$host_os dld.sl"
20445
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20446
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20447
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20448
soname_spec='${libname}${release}${shared_ext}$major'
20449
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20450
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20454
dynamic_linker="$host_os dld.sl"
20455
shlibpath_var=SHLIB_PATH
20456
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458
soname_spec='${libname}${release}${shared_ext}$major'
20461
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20462
postinstall_cmds='chmod 555 $lib'
20465
irix5* | irix6* | nonstopux*)
20467
nonstopux*) version_type=nonstopux ;;
20469
if test "$lt_cv_prog_gnu_ld" = yes; then
20477
soname_spec='${libname}${release}${shared_ext}$major'
20478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20480
irix5* | nonstopux*)
20481
libsuff= shlibsuff=
20484
case $LD in # libtool.m4 will add one of these switches to LD
20485
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20486
libsuff= shlibsuff= libmagic=32-bit;;
20487
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20488
libsuff=32 shlibsuff=N32 libmagic=N32;;
20489
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20490
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20491
*) libsuff= shlibsuff= libmagic=never-match;;
20495
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20496
shlibpath_overrides_runpath=no
20497
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20498
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20499
hardcode_into_libs=yes
20502
# No shared lib support for Linux oldld, aout, or coff.
20503
linux*oldld* | linux*aout* | linux*coff*)
20507
# This must be Linux ELF.
20512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513
soname_spec='${libname}${release}${shared_ext}$major'
20514
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20515
shlibpath_var=LD_LIBRARY_PATH
20516
shlibpath_overrides_runpath=no
20517
# This implies no fast_install, which is unacceptable.
20518
# Some rework will be needed to allow for fast_install
20519
# before this can be enabled.
20520
hardcode_into_libs=yes
20522
# Append ld.so.conf contents to the search path
20523
if test -f /etc/ld.so.conf; then
20524
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20525
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20528
# We used to test for /lib/ld.so.1 and disable shared libraries on
20529
# powerpc, because MkLinux only supported shared libraries with the
20530
# GNU dynamic linker. Since this was broken with cross compilers,
20531
# most powerpc-linux boxes support dynamic linking these days and
20532
# people can always --disable-shared, the test was removed, and we
20533
# assume the GNU/Linux dynamic linker is in use.
20534
dynamic_linker='GNU/Linux ld.so'
20541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20542
soname_spec='${libname}${release}${shared_ext}$major'
20543
shlibpath_var=LD_LIBRARY_PATH
20544
shlibpath_overrides_runpath=no
20545
hardcode_into_libs=yes
20546
dynamic_linker='NetBSD ld.elf_so'
20553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20554
soname_spec='${libname}${release}${shared_ext}$major'
20555
shlibpath_var=LD_LIBRARY_PATH
20556
shlibpath_overrides_runpath=no
20557
hardcode_into_libs=yes
20558
dynamic_linker='GNU ld.so'
20565
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20567
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20568
dynamic_linker='NetBSD (a.out) ld.so'
20570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20571
soname_spec='${libname}${release}${shared_ext}$major'
20572
dynamic_linker='NetBSD ld.elf_so'
20574
shlibpath_var=LD_LIBRARY_PATH
20575
shlibpath_overrides_runpath=yes
20576
hardcode_into_libs=yes
20581
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20582
shlibpath_var=LD_LIBRARY_PATH
20583
shlibpath_overrides_runpath=yes
20590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20591
soname_spec='${libname}${release}${shared_ext}$major'
20592
shlibpath_var=LD_LIBRARY_PATH
20593
shlibpath_overrides_runpath=yes
20600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20601
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20602
shlibpath_var=LD_LIBRARY_PATH
20603
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20605
openbsd2.[89] | openbsd2.[89].*)
20606
shlibpath_overrides_runpath=no
20609
shlibpath_overrides_runpath=yes
20613
shlibpath_overrides_runpath=yes
20618
libname_spec='$name'
20621
library_names_spec='$libname${shared_ext} $libname.a'
20622
dynamic_linker='OS/2 ld.exe'
20623
shlibpath_var=LIBPATH
20626
osf3* | osf4* | osf5*)
20630
soname_spec='${libname}${release}${shared_ext}$major'
20631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20632
shlibpath_var=LD_LIBRARY_PATH
20633
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20634
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20639
soname_spec='${libname}${release}${shared_ext}$major'
20640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20641
shlibpath_var=LD_LIBRARY_PATH
20648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20649
soname_spec='${libname}${release}${shared_ext}$major'
20650
shlibpath_var=LD_LIBRARY_PATH
20651
shlibpath_overrides_runpath=yes
20652
hardcode_into_libs=yes
20653
# ldd complains unless libraries are executable
20654
postinstall_cmds='chmod +x $lib'
20659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20660
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20661
shlibpath_var=LD_LIBRARY_PATH
20662
shlibpath_overrides_runpath=yes
20663
if test "$with_gnu_ld" = yes; then
20669
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20672
soname_spec='${libname}${release}${shared_ext}$major'
20673
shlibpath_var=LD_LIBRARY_PATH
20674
case $host_vendor in
20676
shlibpath_overrides_runpath=no
20678
export_dynamic_flag_spec='${wl}-Blargedynsym'
20679
runpath_var=LD_RUN_PATH
20687
shlibpath_overrides_runpath=no
20688
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20694
if test -d /usr/nec ;then
20696
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20697
soname_spec='$libname${shared_ext}.$major'
20698
shlibpath_var=LD_LIBRARY_PATH
20704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20705
soname_spec='${libname}${release}${shared_ext}$major'
20706
shlibpath_var=LD_LIBRARY_PATH
20713
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20714
echo "${ECHO_T}$dynamic_linker" >&6
20715
test "$dynamic_linker" = no && can_build_shared=no
20717
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20718
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20719
hardcode_action_GCJ=
20720
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20721
test -n "$runpath_var GCJ" || \
20722
test "X$hardcode_automatic_GCJ"="Xyes" ; then
20724
# We can hardcode non-existant directories.
20725
if test "$hardcode_direct_GCJ" != no &&
20726
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20727
# have to relink, otherwise we might link with an installed library
20728
# when we should be linking with a yet-to-be-installed one
20729
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20730
test "$hardcode_minus_L_GCJ" != no; then
20731
# Linking always hardcodes the temporary library directory.
20732
hardcode_action_GCJ=relink
20734
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20735
hardcode_action_GCJ=immediate
20738
# We cannot hardcode anything, or else we can only hardcode existing
20740
hardcode_action_GCJ=unsupported
20742
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20743
echo "${ECHO_T}$hardcode_action_GCJ" >&6
20745
if test "$hardcode_action_GCJ" = relink; then
20746
# Fast installation is not supported
20747
enable_fast_install=no
20748
elif test "$shlibpath_overrides_runpath" = yes ||
20749
test "$enable_shared" = no; then
20750
# Fast installation is not necessary
20751
enable_fast_install=needless
20756
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20757
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20758
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20759
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20760
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20761
echo "$as_me:$LINENO: result: yes" >&5
20762
echo "${ECHO_T}yes" >&6
20764
# FIXME - insert some real tests, host_os isn't really good enough
20767
if test -n "$STRIP" ; then
20768
striplib="$STRIP -x"
20769
echo "$as_me:$LINENO: result: yes" >&5
20770
echo "${ECHO_T}yes" >&6
20772
echo "$as_me:$LINENO: result: no" >&5
20773
echo "${ECHO_T}no" >&6
20777
echo "$as_me:$LINENO: result: no" >&5
20778
echo "${ECHO_T}no" >&6
20783
if test "x$enable_dlopen" != xyes; then
20784
enable_dlopen=unknown
20785
enable_dlopen_self=unknown
20786
enable_dlopen_self_static=unknown
20793
lt_cv_dlopen="load_add_on"
20795
lt_cv_dlopen_self=yes
20799
lt_cv_dlopen="LoadLibrary"
20804
lt_cv_dlopen="dlopen"
20809
# if libdl is installed we need to link against it
20810
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20811
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20812
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20813
echo $ECHO_N "(cached) $ECHO_C" >&6
20815
ac_check_lib_save_LIBS=$LIBS
20817
cat >conftest.$ac_ext <<_ACEOF
20820
cat confdefs.h >>conftest.$ac_ext
20821
cat >>conftest.$ac_ext <<_ACEOF
20822
/* end confdefs.h. */
20824
/* Override any gcc2 internal prototype to avoid an error. */
20828
/* We use char because int might match the return type of a gcc2
20829
builtin and then its argument prototype would still apply. */
20839
rm -f conftest.$ac_objext conftest$ac_exeext
20840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841
(eval $ac_link) 2>conftest.er1
20843
grep -v '^ *+' conftest.er1 >conftest.err
20845
cat conftest.err >&5
20846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847
(exit $ac_status); } &&
20848
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850
(eval $ac_try) 2>&5
20852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853
(exit $ac_status); }; } &&
20854
{ ac_try='test -s conftest$ac_exeext'
20855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856
(eval $ac_try) 2>&5
20858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859
(exit $ac_status); }; }; then
20860
ac_cv_lib_dl_dlopen=yes
20862
echo "$as_me: failed program was:" >&5
20863
sed 's/^/| /' conftest.$ac_ext >&5
20865
ac_cv_lib_dl_dlopen=no
20867
rm -f conftest.err conftest.$ac_objext \
20868
conftest$ac_exeext conftest.$ac_ext
20869
LIBS=$ac_check_lib_save_LIBS
20871
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20872
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20873
if test $ac_cv_lib_dl_dlopen = yes; then
20874
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20877
lt_cv_dlopen="dyld"
20879
lt_cv_dlopen_self=yes
20886
echo "$as_me:$LINENO: checking for shl_load" >&5
20887
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20888
if test "${ac_cv_func_shl_load+set}" = set; then
20889
echo $ECHO_N "(cached) $ECHO_C" >&6
20891
cat >conftest.$ac_ext <<_ACEOF
20894
cat confdefs.h >>conftest.$ac_ext
20895
cat >>conftest.$ac_ext <<_ACEOF
20896
/* end confdefs.h. */
20897
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20898
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20899
#define shl_load innocuous_shl_load
20901
/* System header to define __stub macros and hopefully few prototypes,
20902
which can conflict with char shl_load (); below.
20903
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20904
<limits.h> exists even on freestanding compilers. */
20907
# include <limits.h>
20909
# include <assert.h>
20914
/* Override any gcc2 internal prototype to avoid an error. */
20919
/* We use char because int might match the return type of a gcc2
20920
builtin and then its argument prototype would still apply. */
20922
/* The GNU C library defines this for functions which it implements
20923
to always fail with ENOSYS. Some functions are actually named
20924
something starting with __ and the normal name is an alias. */
20925
#if defined (__stub_shl_load) || defined (__stub___shl_load)
20928
char (*f) () = shl_load;
20937
return f != shl_load;
20942
rm -f conftest.$ac_objext conftest$ac_exeext
20943
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20944
(eval $ac_link) 2>conftest.er1
20946
grep -v '^ *+' conftest.er1 >conftest.err
20948
cat conftest.err >&5
20949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950
(exit $ac_status); } &&
20951
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953
(eval $ac_try) 2>&5
20955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956
(exit $ac_status); }; } &&
20957
{ ac_try='test -s conftest$ac_exeext'
20958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959
(eval $ac_try) 2>&5
20961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962
(exit $ac_status); }; }; then
20963
ac_cv_func_shl_load=yes
20965
echo "$as_me: failed program was:" >&5
20966
sed 's/^/| /' conftest.$ac_ext >&5
20968
ac_cv_func_shl_load=no
20970
rm -f conftest.err conftest.$ac_objext \
20971
conftest$ac_exeext conftest.$ac_ext
20973
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20974
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20975
if test $ac_cv_func_shl_load = yes; then
20976
lt_cv_dlopen="shl_load"
20978
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20979
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20980
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20981
echo $ECHO_N "(cached) $ECHO_C" >&6
20983
ac_check_lib_save_LIBS=$LIBS
20985
cat >conftest.$ac_ext <<_ACEOF
20988
cat confdefs.h >>conftest.$ac_ext
20989
cat >>conftest.$ac_ext <<_ACEOF
20990
/* end confdefs.h. */
20992
/* Override any gcc2 internal prototype to avoid an error. */
20996
/* We use char because int might match the return type of a gcc2
20997
builtin and then its argument prototype would still apply. */
21007
rm -f conftest.$ac_objext conftest$ac_exeext
21008
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21009
(eval $ac_link) 2>conftest.er1
21011
grep -v '^ *+' conftest.er1 >conftest.err
21013
cat conftest.err >&5
21014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015
(exit $ac_status); } &&
21016
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018
(eval $ac_try) 2>&5
21020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021
(exit $ac_status); }; } &&
21022
{ ac_try='test -s conftest$ac_exeext'
21023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024
(eval $ac_try) 2>&5
21026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027
(exit $ac_status); }; }; then
21028
ac_cv_lib_dld_shl_load=yes
21030
echo "$as_me: failed program was:" >&5
21031
sed 's/^/| /' conftest.$ac_ext >&5
21033
ac_cv_lib_dld_shl_load=no
21035
rm -f conftest.err conftest.$ac_objext \
21036
conftest$ac_exeext conftest.$ac_ext
21037
LIBS=$ac_check_lib_save_LIBS
21039
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21040
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21041
if test $ac_cv_lib_dld_shl_load = yes; then
21042
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21044
echo "$as_me:$LINENO: checking for dlopen" >&5
21045
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21046
if test "${ac_cv_func_dlopen+set}" = set; then
21047
echo $ECHO_N "(cached) $ECHO_C" >&6
21049
cat >conftest.$ac_ext <<_ACEOF
21052
cat confdefs.h >>conftest.$ac_ext
21053
cat >>conftest.$ac_ext <<_ACEOF
21054
/* end confdefs.h. */
21055
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21056
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21057
#define dlopen innocuous_dlopen
21059
/* System header to define __stub macros and hopefully few prototypes,
21060
which can conflict with char dlopen (); below.
21061
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21062
<limits.h> exists even on freestanding compilers. */
21065
# include <limits.h>
21067
# include <assert.h>
21072
/* Override any gcc2 internal prototype to avoid an error. */
21077
/* We use char because int might match the return type of a gcc2
21078
builtin and then its argument prototype would still apply. */
21080
/* The GNU C library defines this for functions which it implements
21081
to always fail with ENOSYS. Some functions are actually named
21082
something starting with __ and the normal name is an alias. */
21083
#if defined (__stub_dlopen) || defined (__stub___dlopen)
21086
char (*f) () = dlopen;
21095
return f != dlopen;
21100
rm -f conftest.$ac_objext conftest$ac_exeext
21101
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21102
(eval $ac_link) 2>conftest.er1
21104
grep -v '^ *+' conftest.er1 >conftest.err
21106
cat conftest.err >&5
21107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108
(exit $ac_status); } &&
21109
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111
(eval $ac_try) 2>&5
21113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114
(exit $ac_status); }; } &&
21115
{ ac_try='test -s conftest$ac_exeext'
21116
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117
(eval $ac_try) 2>&5
21119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120
(exit $ac_status); }; }; then
21121
ac_cv_func_dlopen=yes
21123
echo "$as_me: failed program was:" >&5
21124
sed 's/^/| /' conftest.$ac_ext >&5
21126
ac_cv_func_dlopen=no
21128
rm -f conftest.err conftest.$ac_objext \
21129
conftest$ac_exeext conftest.$ac_ext
21131
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21132
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21133
if test $ac_cv_func_dlopen = yes; then
21134
lt_cv_dlopen="dlopen"
21136
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21137
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21138
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21139
echo $ECHO_N "(cached) $ECHO_C" >&6
21141
ac_check_lib_save_LIBS=$LIBS
21143
cat >conftest.$ac_ext <<_ACEOF
21146
cat confdefs.h >>conftest.$ac_ext
21147
cat >>conftest.$ac_ext <<_ACEOF
21148
/* end confdefs.h. */
21150
/* Override any gcc2 internal prototype to avoid an error. */
21154
/* We use char because int might match the return type of a gcc2
21155
builtin and then its argument prototype would still apply. */
21165
rm -f conftest.$ac_objext conftest$ac_exeext
21166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21167
(eval $ac_link) 2>conftest.er1
21169
grep -v '^ *+' conftest.er1 >conftest.err
21171
cat conftest.err >&5
21172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173
(exit $ac_status); } &&
21174
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176
(eval $ac_try) 2>&5
21178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179
(exit $ac_status); }; } &&
21180
{ ac_try='test -s conftest$ac_exeext'
21181
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182
(eval $ac_try) 2>&5
21184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185
(exit $ac_status); }; }; then
21186
ac_cv_lib_dl_dlopen=yes
21188
echo "$as_me: failed program was:" >&5
21189
sed 's/^/| /' conftest.$ac_ext >&5
21191
ac_cv_lib_dl_dlopen=no
21193
rm -f conftest.err conftest.$ac_objext \
21194
conftest$ac_exeext conftest.$ac_ext
21195
LIBS=$ac_check_lib_save_LIBS
21197
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21198
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21199
if test $ac_cv_lib_dl_dlopen = yes; then
21200
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21202
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21203
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21204
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21205
echo $ECHO_N "(cached) $ECHO_C" >&6
21207
ac_check_lib_save_LIBS=$LIBS
21208
LIBS="-lsvld $LIBS"
21209
cat >conftest.$ac_ext <<_ACEOF
21212
cat confdefs.h >>conftest.$ac_ext
21213
cat >>conftest.$ac_ext <<_ACEOF
21214
/* end confdefs.h. */
21216
/* Override any gcc2 internal prototype to avoid an error. */
21220
/* We use char because int might match the return type of a gcc2
21221
builtin and then its argument prototype would still apply. */
21231
rm -f conftest.$ac_objext conftest$ac_exeext
21232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21233
(eval $ac_link) 2>conftest.er1
21235
grep -v '^ *+' conftest.er1 >conftest.err
21237
cat conftest.err >&5
21238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239
(exit $ac_status); } &&
21240
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242
(eval $ac_try) 2>&5
21244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245
(exit $ac_status); }; } &&
21246
{ ac_try='test -s conftest$ac_exeext'
21247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248
(eval $ac_try) 2>&5
21250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251
(exit $ac_status); }; }; then
21252
ac_cv_lib_svld_dlopen=yes
21254
echo "$as_me: failed program was:" >&5
21255
sed 's/^/| /' conftest.$ac_ext >&5
21257
ac_cv_lib_svld_dlopen=no
21259
rm -f conftest.err conftest.$ac_objext \
21260
conftest$ac_exeext conftest.$ac_ext
21261
LIBS=$ac_check_lib_save_LIBS
21263
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21264
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21265
if test $ac_cv_lib_svld_dlopen = yes; then
21266
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21268
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21269
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21270
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21271
echo $ECHO_N "(cached) $ECHO_C" >&6
21273
ac_check_lib_save_LIBS=$LIBS
21275
cat >conftest.$ac_ext <<_ACEOF
21278
cat confdefs.h >>conftest.$ac_ext
21279
cat >>conftest.$ac_ext <<_ACEOF
21280
/* end confdefs.h. */
21282
/* Override any gcc2 internal prototype to avoid an error. */
21286
/* We use char because int might match the return type of a gcc2
21287
builtin and then its argument prototype would still apply. */
21297
rm -f conftest.$ac_objext conftest$ac_exeext
21298
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299
(eval $ac_link) 2>conftest.er1
21301
grep -v '^ *+' conftest.er1 >conftest.err
21303
cat conftest.err >&5
21304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305
(exit $ac_status); } &&
21306
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21307
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308
(eval $ac_try) 2>&5
21310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311
(exit $ac_status); }; } &&
21312
{ ac_try='test -s conftest$ac_exeext'
21313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314
(eval $ac_try) 2>&5
21316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317
(exit $ac_status); }; }; then
21318
ac_cv_lib_dld_dld_link=yes
21320
echo "$as_me: failed program was:" >&5
21321
sed 's/^/| /' conftest.$ac_ext >&5
21323
ac_cv_lib_dld_dld_link=no
21325
rm -f conftest.err conftest.$ac_objext \
21326
conftest$ac_exeext conftest.$ac_ext
21327
LIBS=$ac_check_lib_save_LIBS
21329
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21330
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21331
if test $ac_cv_lib_dld_dld_link = yes; then
21332
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21353
if test "x$lt_cv_dlopen" != xno; then
21359
case $lt_cv_dlopen in
21361
save_CPPFLAGS="$CPPFLAGS"
21362
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21364
save_LDFLAGS="$LDFLAGS"
21365
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21368
LIBS="$lt_cv_dlopen_libs $LIBS"
21370
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21371
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21372
if test "${lt_cv_dlopen_self+set}" = set; then
21373
echo $ECHO_N "(cached) $ECHO_C" >&6
21375
if test "$cross_compiling" = yes; then :
21376
lt_cv_dlopen_self=cross
21378
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21379
lt_status=$lt_dlunknown
21380
cat > conftest.$ac_ext <<EOF
21381
#line 21381 "configure"
21382
#include "confdefs.h"
21391
# define LT_DLGLOBAL RTLD_GLOBAL
21394
# define LT_DLGLOBAL DL_GLOBAL
21396
# define LT_DLGLOBAL 0
21400
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21401
find out it does not work in some platform. */
21402
#ifndef LT_DLLAZY_OR_NOW
21404
# define LT_DLLAZY_OR_NOW RTLD_LAZY
21407
# define LT_DLLAZY_OR_NOW DL_LAZY
21410
# define LT_DLLAZY_OR_NOW RTLD_NOW
21413
# define LT_DLLAZY_OR_NOW DL_NOW
21415
# define LT_DLLAZY_OR_NOW 0
21423
extern "C" void exit (int);
21426
void fnord() { int i=42;}
21429
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21430
int status = $lt_dlunknown;
21434
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21435
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21436
/* dlclose (self); */
21442
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21443
(eval $ac_link) 2>&5
21445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21447
(./conftest; exit; ) 2>/dev/null
21449
case x$lt_status in
21450
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21451
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21452
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21455
# compilation failed
21456
lt_cv_dlopen_self=no
21463
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21464
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21466
if test "x$lt_cv_dlopen_self" = xyes; then
21467
LDFLAGS="$LDFLAGS $link_static_flag"
21468
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21469
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21470
if test "${lt_cv_dlopen_self_static+set}" = set; then
21471
echo $ECHO_N "(cached) $ECHO_C" >&6
21473
if test "$cross_compiling" = yes; then :
21474
lt_cv_dlopen_self_static=cross
21476
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21477
lt_status=$lt_dlunknown
21478
cat > conftest.$ac_ext <<EOF
21479
#line 21479 "configure"
21480
#include "confdefs.h"
21489
# define LT_DLGLOBAL RTLD_GLOBAL
21492
# define LT_DLGLOBAL DL_GLOBAL
21494
# define LT_DLGLOBAL 0
21498
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21499
find out it does not work in some platform. */
21500
#ifndef LT_DLLAZY_OR_NOW
21502
# define LT_DLLAZY_OR_NOW RTLD_LAZY
21505
# define LT_DLLAZY_OR_NOW DL_LAZY
21508
# define LT_DLLAZY_OR_NOW RTLD_NOW
21511
# define LT_DLLAZY_OR_NOW DL_NOW
21513
# define LT_DLLAZY_OR_NOW 0
21521
extern "C" void exit (int);
21524
void fnord() { int i=42;}
21527
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21528
int status = $lt_dlunknown;
21532
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21533
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21534
/* dlclose (self); */
21540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21541
(eval $ac_link) 2>&5
21543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21545
(./conftest; exit; ) 2>/dev/null
21547
case x$lt_status in
21548
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21549
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21550
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21553
# compilation failed
21554
lt_cv_dlopen_self_static=no
21561
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21562
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21565
CPPFLAGS="$save_CPPFLAGS"
21566
LDFLAGS="$save_LDFLAGS"
21571
case $lt_cv_dlopen_self in
21572
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21573
*) enable_dlopen_self=unknown ;;
21576
case $lt_cv_dlopen_self_static in
21577
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21578
*) enable_dlopen_self_static=unknown ;;
21583
# The else clause should only fire when bootstrapping the
21584
# libtool distribution, otherwise you forgot to ship ltmain.sh
21585
# with your package, and you will get complaints that there are
21586
# no rules to generate ltmain.sh.
21587
if test -f "$ltmain"; then
21588
# See if we are running on zsh, and set the options which allow our commands through
21589
# without removal of \ escapes.
21590
if test -n "${ZSH_VERSION+set}" ; then
21591
setopt NO_GLOB_SUBST
21593
# Now quote all the things that may contain metacharacters while being
21594
# careful not to overquote the AC_SUBSTed values. We take copies of the
21595
# variables and quote the copies for generation of the libtool script.
21596
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21598
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21599
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21600
deplibs_check_method reload_flag reload_cmds need_locks \
21601
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21602
lt_cv_sys_global_symbol_to_c_name_address \
21603
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21604
old_postinstall_cmds old_postuninstall_cmds \
21608
lt_prog_compiler_wl_GCJ \
21609
lt_prog_compiler_pic_GCJ \
21610
lt_prog_compiler_static_GCJ \
21611
lt_prog_compiler_no_builtin_flag_GCJ \
21612
export_dynamic_flag_spec_GCJ \
21613
thread_safe_flag_spec_GCJ \
21614
whole_archive_flag_spec_GCJ \
21615
enable_shared_with_static_runtimes_GCJ \
21616
old_archive_cmds_GCJ \
21617
old_archive_from_new_cmds_GCJ \
21618
predep_objects_GCJ \
21619
postdep_objects_GCJ \
21622
compiler_lib_search_path_GCJ \
21624
archive_expsym_cmds_GCJ \
21625
postinstall_cmds_GCJ \
21626
postuninstall_cmds_GCJ \
21627
old_archive_from_expsyms_cmds_GCJ \
21628
allow_undefined_flag_GCJ \
21629
no_undefined_flag_GCJ \
21630
export_symbols_cmds_GCJ \
21631
hardcode_libdir_flag_spec_GCJ \
21632
hardcode_libdir_flag_spec_ld_GCJ \
21633
hardcode_libdir_separator_GCJ \
21634
hardcode_automatic_GCJ \
21636
module_expsym_cmds_GCJ \
21637
lt_cv_prog_compiler_c_o_GCJ \
21638
exclude_expsyms_GCJ \
21639
include_expsyms_GCJ; do
21642
old_archive_cmds_GCJ | \
21643
old_archive_from_new_cmds_GCJ | \
21644
archive_cmds_GCJ | \
21645
archive_expsym_cmds_GCJ | \
21646
module_cmds_GCJ | \
21647
module_expsym_cmds_GCJ | \
21648
old_archive_from_expsyms_cmds_GCJ | \
21649
export_symbols_cmds_GCJ | \
21650
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21651
postinstall_cmds | postuninstall_cmds | \
21652
old_postinstall_cmds | old_postuninstall_cmds | \
21653
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21654
# Double-quote double-evaled strings.
21655
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21658
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21664
*'\$0 --fallback-echo"')
21665
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21671
cat <<__EOF__ >> "$cfgfile"
21672
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21674
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21676
# Shell to use when invoking shell scripts.
21679
# Whether or not to build shared libraries.
21680
build_libtool_libs=$enable_shared
21682
# Whether or not to build static libraries.
21683
build_old_libs=$enable_static
21685
# Whether or not to add -lc for building shared libraries.
21686
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21688
# Whether or not to disallow shared libs when runtime libs are static
21689
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21691
# Whether or not to optimize for fast installation.
21692
fast_install=$enable_fast_install
21695
host_alias=$host_alias
21698
# An echo program that does not interpret backslashes.
21703
AR_FLAGS=$lt_AR_FLAGS
21708
# A language-specific compiler.
21709
CC=$lt_compiler_GCJ
21711
# Is the compiler the GNU C compiler?
21717
# The linker used to build libraries.
21720
# Whether we need hard or soft links.
21723
# A BSD-compatible nm program.
21726
# A symbol stripping program
21729
# Used to examine libraries when file_magic_cmd begins "file"
21730
MAGIC_CMD=$MAGIC_CMD
21732
# Used on cygwin: DLL creation program.
21735
# Used on cygwin: object dumper.
21738
# Used on cygwin: assembler.
21741
# The name of the directory that contains temporary libtool files.
21744
# How to create reloadable object files.
21745
reload_flag=$lt_reload_flag
21746
reload_cmds=$lt_reload_cmds
21748
# How to pass a linker flag through the compiler.
21749
wl=$lt_lt_prog_compiler_wl_GCJ
21751
# Object file suffix (normally "o").
21752
objext="$ac_objext"
21754
# Old archive suffix (normally "a").
21757
# Shared library suffix (normally ".so").
21758
shrext_cmds='$shrext_cmds'
21760
# Executable file suffix (normally "").
21763
# Additional compiler flags for building library objects.
21764
pic_flag=$lt_lt_prog_compiler_pic_GCJ
21767
# What is the maximum length of a command?
21768
max_cmd_len=$lt_cv_sys_max_cmd_len
21770
# Does compiler simultaneously support -c and -o options?
21771
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21773
# Must we lock files when doing compilation ?
21774
need_locks=$lt_need_locks
21776
# Do we need the lib prefix for modules?
21777
need_lib_prefix=$need_lib_prefix
21779
# Do we need a version for libraries?
21780
need_version=$need_version
21782
# Whether dlopen is supported.
21783
dlopen_support=$enable_dlopen
21785
# Whether dlopen of programs is supported.
21786
dlopen_self=$enable_dlopen_self
21788
# Whether dlopen of statically linked programs is supported.
21789
dlopen_self_static=$enable_dlopen_self_static
21791
# Compiler flag to prevent dynamic linking.
21792
link_static_flag=$lt_lt_prog_compiler_static_GCJ
21794
# Compiler flag to turn off builtin functions.
21795
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21797
# Compiler flag to allow reflexive dlopens.
21798
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21800
# Compiler flag to generate shared objects directly from archives.
21801
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21803
# Compiler flag to generate thread-safe objects.
21804
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21806
# Library versioning type.
21807
version_type=$version_type
21809
# Format of library name prefix.
21810
libname_spec=$lt_libname_spec
21812
# List of archive names. First name is the real one, the rest are links.
21813
# The last name is the one that the linker finds with -lNAME.
21814
library_names_spec=$lt_library_names_spec
21816
# The coded name of the library, if different from the real name.
21817
soname_spec=$lt_soname_spec
21819
# Commands used to build and install an old-style archive.
21821
old_archive_cmds=$lt_old_archive_cmds_GCJ
21822
old_postinstall_cmds=$lt_old_postinstall_cmds
21823
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21825
# Create an old-style archive from a shared archive.
21826
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21828
# Create a temporary old-style archive to link instead of a shared archive.
21829
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21831
# Commands used to build and install a shared archive.
21832
archive_cmds=$lt_archive_cmds_GCJ
21833
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21834
postinstall_cmds=$lt_postinstall_cmds
21835
postuninstall_cmds=$lt_postuninstall_cmds
21837
# Commands used to build a loadable module (assumed same as above if empty)
21838
module_cmds=$lt_module_cmds_GCJ
21839
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21841
# Commands to strip libraries.
21842
old_striplib=$lt_old_striplib
21843
striplib=$lt_striplib
21845
# Dependencies to place before the objects being linked to create a
21847
predep_objects=$lt_predep_objects_GCJ
21849
# Dependencies to place after the objects being linked to create a
21851
postdep_objects=$lt_postdep_objects_GCJ
21853
# Dependencies to place before the objects being linked to create a
21855
predeps=$lt_predeps_GCJ
21857
# Dependencies to place after the objects being linked to create a
21859
postdeps=$lt_postdeps_GCJ
21861
# The library search path used internally by the compiler when linking
21862
# a shared library.
21863
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21865
# Method to check whether dependent libraries are shared objects.
21866
deplibs_check_method=$lt_deplibs_check_method
21868
# Command to use when deplibs_check_method == file_magic.
21869
file_magic_cmd=$lt_file_magic_cmd
21871
# Flag that allows shared libraries with undefined symbols to be built.
21872
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21874
# Flag that forces no undefined symbols.
21875
no_undefined_flag=$lt_no_undefined_flag_GCJ
21877
# Commands used to finish a libtool library installation in a directory.
21878
finish_cmds=$lt_finish_cmds
21880
# Same as above, but a single script fragment to be evaled but not shown.
21881
finish_eval=$lt_finish_eval
21883
# Take the output of nm and produce a listing of raw symbols and C names.
21884
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21886
# Transform the output of nm in a proper C declaration
21887
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21889
# Transform the output of nm in a C name address pair
21890
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21892
# This is the shared library runtime path variable.
21893
runpath_var=$runpath_var
21895
# This is the shared library path variable.
21896
shlibpath_var=$shlibpath_var
21898
# Is shlibpath searched before the hard-coded library search path?
21899
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21901
# How to hardcode a shared library path into an executable.
21902
hardcode_action=$hardcode_action_GCJ
21904
# Whether we should hardcode library paths into libraries.
21905
hardcode_into_libs=$hardcode_into_libs
21907
# Flag to hardcode \$libdir into a binary during linking.
21908
# This must work even if \$libdir does not exist.
21909
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21911
# If ld is used when linking, flag to hardcode \$libdir into
21912
# a binary during linking. This must work even if \$libdir does
21914
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21916
# Whether we need a single -rpath flag with a separated argument.
21917
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21919
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21920
# resulting binary.
21921
hardcode_direct=$hardcode_direct_GCJ
21923
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21924
# resulting binary.
21925
hardcode_minus_L=$hardcode_minus_L_GCJ
21927
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21928
# the resulting binary.
21929
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21931
# Set to yes if building a shared library automatically hardcodes DIR into the library
21932
# and all subsequent libraries and executables linked against it.
21933
hardcode_automatic=$hardcode_automatic_GCJ
21935
# Variables whose values should be saved in libtool wrapper scripts and
21936
# restored at relink time.
21937
variables_saved_for_relink="$variables_saved_for_relink"
21939
# Whether libtool must link a program against all its dependency libraries.
21940
link_all_deplibs=$link_all_deplibs_GCJ
21942
# Compile-time system search path for libraries
21943
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21945
# Run-time system search path for libraries
21946
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21948
# Fix the shell variable \$srcfile for the compiler.
21949
fix_srcfile_path="$fix_srcfile_path_GCJ"
21951
# Set to yes if exported symbols are required.
21952
always_export_symbols=$always_export_symbols_GCJ
21954
# The commands to list exported symbols.
21955
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21957
# The commands to extract the exported symbol list from a shared archive.
21958
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21960
# Symbols that should not be listed in the preloaded symbols.
21961
exclude_expsyms=$lt_exclude_expsyms_GCJ
21963
# Symbols that must always be exported.
21964
include_expsyms=$lt_include_expsyms_GCJ
21966
# ### END LIBTOOL TAG CONFIG: $tagname
21972
# If there is no Makefile yet, we rely on a make rule to execute
21973
# `config.status --recheck' to rerun these tests and create the
21974
# libtool script then.
21975
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21976
if test -f "$ltmain_in"; then
21977
test -f Makefile && make "$ltmain"
21983
ac_cpp='$CPP $CPPFLAGS'
21984
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21999
# Source file extension for RC test sources.
22002
# Object file extension for compiled RC test sources.
22006
# Code to be used in simple compile tests
22007
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22009
# Code to be used in simple link tests
22010
lt_simple_link_test_code="$lt_simple_compile_test_code"
22012
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22014
# If no C compiler was specified, use CC.
22017
# Allow CC to be a program name with arguments.
22021
# Allow CC to be a program name with arguments.
22026
lt_cv_prog_compiler_c_o_RC=yes
22028
# The else clause should only fire when bootstrapping the
22029
# libtool distribution, otherwise you forgot to ship ltmain.sh
22030
# with your package, and you will get complaints that there are
22031
# no rules to generate ltmain.sh.
22032
if test -f "$ltmain"; then
22033
# See if we are running on zsh, and set the options which allow our commands through
22034
# without removal of \ escapes.
22035
if test -n "${ZSH_VERSION+set}" ; then
22036
setopt NO_GLOB_SUBST
22038
# Now quote all the things that may contain metacharacters while being
22039
# careful not to overquote the AC_SUBSTed values. We take copies of the
22040
# variables and quote the copies for generation of the libtool script.
22041
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
22043
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22044
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22045
deplibs_check_method reload_flag reload_cmds need_locks \
22046
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22047
lt_cv_sys_global_symbol_to_c_name_address \
22048
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22049
old_postinstall_cmds old_postuninstall_cmds \
22053
lt_prog_compiler_wl_RC \
22054
lt_prog_compiler_pic_RC \
22055
lt_prog_compiler_static_RC \
22056
lt_prog_compiler_no_builtin_flag_RC \
22057
export_dynamic_flag_spec_RC \
22058
thread_safe_flag_spec_RC \
22059
whole_archive_flag_spec_RC \
22060
enable_shared_with_static_runtimes_RC \
22061
old_archive_cmds_RC \
22062
old_archive_from_new_cmds_RC \
22063
predep_objects_RC \
22064
postdep_objects_RC \
22067
compiler_lib_search_path_RC \
22069
archive_expsym_cmds_RC \
22070
postinstall_cmds_RC \
22071
postuninstall_cmds_RC \
22072
old_archive_from_expsyms_cmds_RC \
22073
allow_undefined_flag_RC \
22074
no_undefined_flag_RC \
22075
export_symbols_cmds_RC \
22076
hardcode_libdir_flag_spec_RC \
22077
hardcode_libdir_flag_spec_ld_RC \
22078
hardcode_libdir_separator_RC \
22079
hardcode_automatic_RC \
22081
module_expsym_cmds_RC \
22082
lt_cv_prog_compiler_c_o_RC \
22083
exclude_expsyms_RC \
22084
include_expsyms_RC; do
22087
old_archive_cmds_RC | \
22088
old_archive_from_new_cmds_RC | \
22089
archive_cmds_RC | \
22090
archive_expsym_cmds_RC | \
22092
module_expsym_cmds_RC | \
22093
old_archive_from_expsyms_cmds_RC | \
22094
export_symbols_cmds_RC | \
22095
extract_expsyms_cmds | reload_cmds | finish_cmds | \
22096
postinstall_cmds | postuninstall_cmds | \
22097
old_postinstall_cmds | old_postuninstall_cmds | \
22098
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22099
# Double-quote double-evaled strings.
22100
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22103
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22109
*'\$0 --fallback-echo"')
22110
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22116
cat <<__EOF__ >> "$cfgfile"
22117
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22119
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22121
# Shell to use when invoking shell scripts.
22124
# Whether or not to build shared libraries.
22125
build_libtool_libs=$enable_shared
22127
# Whether or not to build static libraries.
22128
build_old_libs=$enable_static
22130
# Whether or not to add -lc for building shared libraries.
22131
build_libtool_need_lc=$archive_cmds_need_lc_RC
22133
# Whether or not to disallow shared libs when runtime libs are static
22134
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22136
# Whether or not to optimize for fast installation.
22137
fast_install=$enable_fast_install
22140
host_alias=$host_alias
22143
# An echo program that does not interpret backslashes.
22148
AR_FLAGS=$lt_AR_FLAGS
22153
# A language-specific compiler.
22156
# Is the compiler the GNU C compiler?
22162
# The linker used to build libraries.
22165
# Whether we need hard or soft links.
22168
# A BSD-compatible nm program.
22171
# A symbol stripping program
22174
# Used to examine libraries when file_magic_cmd begins "file"
22175
MAGIC_CMD=$MAGIC_CMD
22177
# Used on cygwin: DLL creation program.
22180
# Used on cygwin: object dumper.
22183
# Used on cygwin: assembler.
22186
# The name of the directory that contains temporary libtool files.
22189
# How to create reloadable object files.
22190
reload_flag=$lt_reload_flag
22191
reload_cmds=$lt_reload_cmds
22193
# How to pass a linker flag through the compiler.
22194
wl=$lt_lt_prog_compiler_wl_RC
22196
# Object file suffix (normally "o").
22197
objext="$ac_objext"
22199
# Old archive suffix (normally "a").
22202
# Shared library suffix (normally ".so").
22203
shrext_cmds='$shrext_cmds'
22205
# Executable file suffix (normally "").
22208
# Additional compiler flags for building library objects.
22209
pic_flag=$lt_lt_prog_compiler_pic_RC
22212
# What is the maximum length of a command?
22213
max_cmd_len=$lt_cv_sys_max_cmd_len
22215
# Does compiler simultaneously support -c and -o options?
22216
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22218
# Must we lock files when doing compilation ?
22219
need_locks=$lt_need_locks
22221
# Do we need the lib prefix for modules?
22222
need_lib_prefix=$need_lib_prefix
22224
# Do we need a version for libraries?
22225
need_version=$need_version
22227
# Whether dlopen is supported.
22228
dlopen_support=$enable_dlopen
22230
# Whether dlopen of programs is supported.
22231
dlopen_self=$enable_dlopen_self
22233
# Whether dlopen of statically linked programs is supported.
22234
dlopen_self_static=$enable_dlopen_self_static
22236
# Compiler flag to prevent dynamic linking.
22237
link_static_flag=$lt_lt_prog_compiler_static_RC
22239
# Compiler flag to turn off builtin functions.
22240
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22242
# Compiler flag to allow reflexive dlopens.
22243
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22245
# Compiler flag to generate shared objects directly from archives.
22246
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22248
# Compiler flag to generate thread-safe objects.
22249
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22251
# Library versioning type.
22252
version_type=$version_type
22254
# Format of library name prefix.
22255
libname_spec=$lt_libname_spec
22257
# List of archive names. First name is the real one, the rest are links.
22258
# The last name is the one that the linker finds with -lNAME.
22259
library_names_spec=$lt_library_names_spec
22261
# The coded name of the library, if different from the real name.
22262
soname_spec=$lt_soname_spec
22264
# Commands used to build and install an old-style archive.
22266
old_archive_cmds=$lt_old_archive_cmds_RC
22267
old_postinstall_cmds=$lt_old_postinstall_cmds
22268
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22270
# Create an old-style archive from a shared archive.
22271
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22273
# Create a temporary old-style archive to link instead of a shared archive.
22274
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22276
# Commands used to build and install a shared archive.
22277
archive_cmds=$lt_archive_cmds_RC
22278
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22279
postinstall_cmds=$lt_postinstall_cmds
22280
postuninstall_cmds=$lt_postuninstall_cmds
22282
# Commands used to build a loadable module (assumed same as above if empty)
22283
module_cmds=$lt_module_cmds_RC
22284
module_expsym_cmds=$lt_module_expsym_cmds_RC
22286
# Commands to strip libraries.
22287
old_striplib=$lt_old_striplib
22288
striplib=$lt_striplib
22290
# Dependencies to place before the objects being linked to create a
22292
predep_objects=$lt_predep_objects_RC
22294
# Dependencies to place after the objects being linked to create a
22296
postdep_objects=$lt_postdep_objects_RC
22298
# Dependencies to place before the objects being linked to create a
22300
predeps=$lt_predeps_RC
22302
# Dependencies to place after the objects being linked to create a
22304
postdeps=$lt_postdeps_RC
22306
# The library search path used internally by the compiler when linking
22307
# a shared library.
22308
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22310
# Method to check whether dependent libraries are shared objects.
22311
deplibs_check_method=$lt_deplibs_check_method
22313
# Command to use when deplibs_check_method == file_magic.
22314
file_magic_cmd=$lt_file_magic_cmd
22316
# Flag that allows shared libraries with undefined symbols to be built.
22317
allow_undefined_flag=$lt_allow_undefined_flag_RC
22319
# Flag that forces no undefined symbols.
22320
no_undefined_flag=$lt_no_undefined_flag_RC
22322
# Commands used to finish a libtool library installation in a directory.
22323
finish_cmds=$lt_finish_cmds
22325
# Same as above, but a single script fragment to be evaled but not shown.
22326
finish_eval=$lt_finish_eval
22328
# Take the output of nm and produce a listing of raw symbols and C names.
22329
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22331
# Transform the output of nm in a proper C declaration
22332
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22334
# Transform the output of nm in a C name address pair
22335
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22337
# This is the shared library runtime path variable.
22338
runpath_var=$runpath_var
22340
# This is the shared library path variable.
22341
shlibpath_var=$shlibpath_var
22343
# Is shlibpath searched before the hard-coded library search path?
22344
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22346
# How to hardcode a shared library path into an executable.
22347
hardcode_action=$hardcode_action_RC
22349
# Whether we should hardcode library paths into libraries.
22350
hardcode_into_libs=$hardcode_into_libs
22352
# Flag to hardcode \$libdir into a binary during linking.
22353
# This must work even if \$libdir does not exist.
22354
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22356
# If ld is used when linking, flag to hardcode \$libdir into
22357
# a binary during linking. This must work even if \$libdir does
22359
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22361
# Whether we need a single -rpath flag with a separated argument.
22362
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22364
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22365
# resulting binary.
22366
hardcode_direct=$hardcode_direct_RC
22368
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22369
# resulting binary.
22370
hardcode_minus_L=$hardcode_minus_L_RC
22372
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22373
# the resulting binary.
22374
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22376
# Set to yes if building a shared library automatically hardcodes DIR into the library
22377
# and all subsequent libraries and executables linked against it.
22378
hardcode_automatic=$hardcode_automatic_RC
22380
# Variables whose values should be saved in libtool wrapper scripts and
22381
# restored at relink time.
22382
variables_saved_for_relink="$variables_saved_for_relink"
22384
# Whether libtool must link a program against all its dependency libraries.
22385
link_all_deplibs=$link_all_deplibs_RC
22387
# Compile-time system search path for libraries
22388
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22390
# Run-time system search path for libraries
22391
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22393
# Fix the shell variable \$srcfile for the compiler.
22394
fix_srcfile_path="$fix_srcfile_path_RC"
22396
# Set to yes if exported symbols are required.
22397
always_export_symbols=$always_export_symbols_RC
22399
# The commands to list exported symbols.
22400
export_symbols_cmds=$lt_export_symbols_cmds_RC
22402
# The commands to extract the exported symbol list from a shared archive.
22403
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22405
# Symbols that should not be listed in the preloaded symbols.
22406
exclude_expsyms=$lt_exclude_expsyms_RC
22408
# Symbols that must always be exported.
22409
include_expsyms=$lt_include_expsyms_RC
22411
# ### END LIBTOOL TAG CONFIG: $tagname
22417
# If there is no Makefile yet, we rely on a make rule to execute
22418
# `config.status --recheck' to rerun these tests and create the
22419
# libtool script then.
22420
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22421
if test -f "$ltmain_in"; then
22422
test -f Makefile && make "$ltmain"
22428
ac_cpp='$CPP $CPPFLAGS'
22429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22438
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22439
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22440
{ (exit 1); exit 1; }; }
22444
# Append the new tag name to the list of available tags.
22445
if test -n "$tagname" ; then
22446
available_tags="$available_tags $tagname"
22452
# Now substitute the updated list of available tags.
22453
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22454
mv "${ofile}T" "$ofile"
22458
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22459
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22460
{ (exit 1); exit 1; }; }
22466
# This can be used to rebuild libtool when needed
22467
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22469
# Always use our own libtool.
22470
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22472
# Prevent multiple expansion
22493
# Find a good install program. We prefer a C program (faster),
22494
# so one script is as good as another. But avoid the broken or
22495
# incompatible versions:
22496
# SysV /etc/install, /usr/sbin/install
22497
# SunOS /usr/etc/install
22498
# IRIX /sbin/install
22500
# AmigaOS /C/install, which installs bootblocks on floppy discs
22501
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22502
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
22503
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22504
# OS/2's system install, which has a completely different semantic
22505
# ./install, which can be erroneously created by make from ./install.sh.
22506
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
22507
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
22508
if test -z "$INSTALL"; then
22509
if test "${ac_cv_path_install+set}" = set; then
22510
echo $ECHO_N "(cached) $ECHO_C" >&6
22512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22513
for as_dir in $PATH
22516
test -z "$as_dir" && as_dir=.
22517
# Account for people who put trailing slashes in PATH elements.
22519
./ | .// | /cC/* | \
22520
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22521
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
22524
# OSF1 and SCO ODT 3.0 have their own names for install.
22525
# Don't use installbsd from OSF since it installs stuff as root
22527
for ac_prog in ginstall scoinst install; do
22528
for ac_exec_ext in '' $ac_executable_extensions; do
22529
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
22530
if test $ac_prog = install &&
22531
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22532
# AIX install. It has an incompatible calling convention.
22534
elif test $ac_prog = install &&
22535
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22536
# program-specific install script used by HP pwplus--don't use.
22539
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22551
if test "${ac_cv_path_install+set}" = set; then
22552
INSTALL=$ac_cv_path_install
22554
# As a last resort, use the slow shell script. We don't cache a
22555
# path for INSTALL within a source directory, because that will
22556
# break other packages using the cache if that directory is
22557
# removed, or if the path is relative.
22558
INSTALL=$ac_install_sh
22561
echo "$as_me:$LINENO: result: $INSTALL" >&5
22562
echo "${ECHO_T}$INSTALL" >&6
22564
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22565
# It thinks the first close brace ends the variable substitution.
22566
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22568
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
22570
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22573
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22574
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22575
if test "${ac_cv_c_bigendian+set}" = set; then
22576
echo $ECHO_N "(cached) $ECHO_C" >&6
22578
# See if sys/param.h defines the BYTE_ORDER macro.
22579
cat >conftest.$ac_ext <<_ACEOF
22582
cat confdefs.h >>conftest.$ac_ext
22583
cat >>conftest.$ac_ext <<_ACEOF
22584
/* end confdefs.h. */
22585
#include <sys/types.h>
22586
#include <sys/param.h>
22591
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22592
bogus endian macros
22599
rm -f conftest.$ac_objext
22600
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22601
(eval $ac_compile) 2>conftest.er1
22603
grep -v '^ *+' conftest.er1 >conftest.err
22605
cat conftest.err >&5
22606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607
(exit $ac_status); } &&
22608
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610
(eval $ac_try) 2>&5
22612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613
(exit $ac_status); }; } &&
22614
{ ac_try='test -s conftest.$ac_objext'
22615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616
(eval $ac_try) 2>&5
22618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619
(exit $ac_status); }; }; then
22620
# It does; now see whether it defined to BIG_ENDIAN or not.
22621
cat >conftest.$ac_ext <<_ACEOF
22624
cat confdefs.h >>conftest.$ac_ext
22625
cat >>conftest.$ac_ext <<_ACEOF
22626
/* end confdefs.h. */
22627
#include <sys/types.h>
22628
#include <sys/param.h>
22633
#if BYTE_ORDER != BIG_ENDIAN
22641
rm -f conftest.$ac_objext
22642
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22643
(eval $ac_compile) 2>conftest.er1
22645
grep -v '^ *+' conftest.er1 >conftest.err
22647
cat conftest.err >&5
22648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649
(exit $ac_status); } &&
22650
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22652
(eval $ac_try) 2>&5
22654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655
(exit $ac_status); }; } &&
22656
{ ac_try='test -s conftest.$ac_objext'
22657
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658
(eval $ac_try) 2>&5
22660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661
(exit $ac_status); }; }; then
22662
ac_cv_c_bigendian=yes
22664
echo "$as_me: failed program was:" >&5
22665
sed 's/^/| /' conftest.$ac_ext >&5
22667
ac_cv_c_bigendian=no
22669
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22671
echo "$as_me: failed program was:" >&5
22672
sed 's/^/| /' conftest.$ac_ext >&5
22674
# It does not; compile a test program.
22675
if test "$cross_compiling" = yes; then
22676
# try to guess the endianness by grepping values into an object file
22677
ac_cv_c_bigendian=unknown
22678
cat >conftest.$ac_ext <<_ACEOF
22681
cat confdefs.h >>conftest.$ac_ext
22682
cat >>conftest.$ac_ext <<_ACEOF
22683
/* end confdefs.h. */
22684
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22685
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22686
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22687
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22688
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22689
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22693
_ascii (); _ebcdic ();
22698
rm -f conftest.$ac_objext
22699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700
(eval $ac_compile) 2>conftest.er1
22702
grep -v '^ *+' conftest.er1 >conftest.err
22704
cat conftest.err >&5
22705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706
(exit $ac_status); } &&
22707
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22708
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709
(eval $ac_try) 2>&5
22711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712
(exit $ac_status); }; } &&
22713
{ ac_try='test -s conftest.$ac_objext'
22714
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715
(eval $ac_try) 2>&5
22717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718
(exit $ac_status); }; }; then
22719
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22720
ac_cv_c_bigendian=yes
22722
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22723
if test "$ac_cv_c_bigendian" = unknown; then
22724
ac_cv_c_bigendian=no
22726
# finding both strings is unlikely to happen, but who knows?
22727
ac_cv_c_bigendian=unknown
22731
echo "$as_me: failed program was:" >&5
22732
sed 's/^/| /' conftest.$ac_ext >&5
22735
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22737
cat >conftest.$ac_ext <<_ACEOF
22740
cat confdefs.h >>conftest.$ac_ext
22741
cat >>conftest.$ac_ext <<_ACEOF
22742
/* end confdefs.h. */
22746
/* Are we little or big endian? From Harbison&Steele. */
22750
char c[sizeof (long)];
22753
exit (u.c[sizeof (long) - 1] == 1);
22756
rm -f conftest$ac_exeext
22757
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758
(eval $ac_link) 2>&5
22760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22763
(eval $ac_try) 2>&5
22765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766
(exit $ac_status); }; }; then
22767
ac_cv_c_bigendian=no
22769
echo "$as_me: program exited with status $ac_status" >&5
22770
echo "$as_me: failed program was:" >&5
22771
sed 's/^/| /' conftest.$ac_ext >&5
22773
( exit $ac_status )
22774
ac_cv_c_bigendian=yes
22776
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22779
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22781
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22782
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22783
case $ac_cv_c_bigendian in
22786
cat >>confdefs.h <<\_ACEOF
22787
#define IS_BIG_ENDIAN
22792
cat >>confdefs.h <<\_ACEOF
22793
#define IS_LITTLE_ENDIAN
22797
{ { echo "$as_me:$LINENO: error: Can't tell endianess of platform" >&5
22798
echo "$as_me: error: Can't tell endianess of platform" >&2;}
22799
{ (exit 1); exit 1; }; } ;;
22803
echo "$as_me:$LINENO: checking for socklen_t" >&5
22804
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22805
cat >conftest.$ac_ext <<_ACEOF
22808
cat confdefs.h >>conftest.$ac_ext
22809
cat >>conftest.$ac_ext <<_ACEOF
22810
/* end confdefs.h. */
22811
#include <sys/socket.h>
22822
rm -f conftest.$ac_objext
22823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22824
(eval $ac_compile) 2>conftest.er1
22826
grep -v '^ *+' conftest.er1 >conftest.err
22828
cat conftest.err >&5
22829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830
(exit $ac_status); } &&
22831
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22833
(eval $ac_try) 2>&5
22835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836
(exit $ac_status); }; } &&
22837
{ ac_try='test -s conftest.$ac_objext'
22838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839
(eval $ac_try) 2>&5
22841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842
(exit $ac_status); }; }; then
22843
echo "$as_me:$LINENO: result: yes" >&5
22844
echo "${ECHO_T}yes" >&6
22846
echo "$as_me: failed program was:" >&5
22847
sed 's/^/| /' conftest.$ac_ext >&5
22850
cat >conftest.$ac_ext <<_ACEOF
22853
cat confdefs.h >>conftest.$ac_ext
22854
cat >>conftest.$ac_ext <<_ACEOF
22855
/* end confdefs.h. */
22856
#include <sys/socket.h>
22857
int accept (int, struct sockaddr *, size_t *);
22867
rm -f conftest.$ac_objext
22868
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22869
(eval $ac_compile) 2>conftest.er1
22871
grep -v '^ *+' conftest.er1 >conftest.err
22873
cat conftest.err >&5
22874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875
(exit $ac_status); } &&
22876
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878
(eval $ac_try) 2>&5
22880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881
(exit $ac_status); }; } &&
22882
{ ac_try='test -s conftest.$ac_objext'
22883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884
(eval $ac_try) 2>&5
22886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887
(exit $ac_status); }; }; then
22889
echo "$as_me:$LINENO: result: ::socklen_t" >&5
22890
echo "${ECHO_T}::socklen_t" >&6
22892
cat >>confdefs.h <<\_ACEOF
22893
#define TYPE_OF_SOCKLEN_T ::socklen_t
22897
echo "$as_me: failed program was:" >&5
22898
sed 's/^/| /' conftest.$ac_ext >&5
22901
echo "$as_me:$LINENO: result: int" >&5
22902
echo "${ECHO_T}int" >&6
22904
cat >>confdefs.h <<\_ACEOF
22905
#define TYPE_OF_SOCKLEN_T int
22909
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22917
echo "$as_me:$LINENO: checking for long" >&5
22918
echo $ECHO_N "checking for long... $ECHO_C" >&6
22919
if test "${ac_cv_type_long+set}" = set; then
22920
echo $ECHO_N "(cached) $ECHO_C" >&6
22922
cat >conftest.$ac_ext <<_ACEOF
22925
cat confdefs.h >>conftest.$ac_ext
22926
cat >>conftest.$ac_ext <<_ACEOF
22927
/* end confdefs.h. */
22928
$ac_includes_default
22940
rm -f conftest.$ac_objext
22941
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22942
(eval $ac_compile) 2>conftest.er1
22944
grep -v '^ *+' conftest.er1 >conftest.err
22946
cat conftest.err >&5
22947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948
(exit $ac_status); } &&
22949
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951
(eval $ac_try) 2>&5
22953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954
(exit $ac_status); }; } &&
22955
{ ac_try='test -s conftest.$ac_objext'
22956
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957
(eval $ac_try) 2>&5
22959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960
(exit $ac_status); }; }; then
22961
ac_cv_type_long=yes
22963
echo "$as_me: failed program was:" >&5
22964
sed 's/^/| /' conftest.$ac_ext >&5
22968
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22970
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22971
echo "${ECHO_T}$ac_cv_type_long" >&6
22973
echo "$as_me:$LINENO: checking size of long" >&5
22974
echo $ECHO_N "checking size of long... $ECHO_C" >&6
22975
if test "${ac_cv_sizeof_long+set}" = set; then
22976
echo $ECHO_N "(cached) $ECHO_C" >&6
22978
if test "$ac_cv_type_long" = yes; then
22979
# The cast to unsigned long works around a bug in the HP C Compiler
22980
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22981
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22982
# This bug is HP SR number 8606223364.
22983
if test "$cross_compiling" = yes; then
22984
# Depending upon the size, compute the lo and hi bounds.
22985
cat >conftest.$ac_ext <<_ACEOF
22988
cat confdefs.h >>conftest.$ac_ext
22989
cat >>conftest.$ac_ext <<_ACEOF
22990
/* end confdefs.h. */
22991
$ac_includes_default
22995
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
23002
rm -f conftest.$ac_objext
23003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23004
(eval $ac_compile) 2>conftest.er1
23006
grep -v '^ *+' conftest.er1 >conftest.err
23008
cat conftest.err >&5
23009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010
(exit $ac_status); } &&
23011
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23012
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013
(eval $ac_try) 2>&5
23015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016
(exit $ac_status); }; } &&
23017
{ ac_try='test -s conftest.$ac_objext'
23018
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019
(eval $ac_try) 2>&5
23021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022
(exit $ac_status); }; }; then
23025
cat >conftest.$ac_ext <<_ACEOF
23028
cat confdefs.h >>conftest.$ac_ext
23029
cat >>conftest.$ac_ext <<_ACEOF
23030
/* end confdefs.h. */
23031
$ac_includes_default
23035
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
23042
rm -f conftest.$ac_objext
23043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23044
(eval $ac_compile) 2>conftest.er1
23046
grep -v '^ *+' conftest.er1 >conftest.err
23048
cat conftest.err >&5
23049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050
(exit $ac_status); } &&
23051
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23052
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053
(eval $ac_try) 2>&5
23055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056
(exit $ac_status); }; } &&
23057
{ ac_try='test -s conftest.$ac_objext'
23058
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059
(eval $ac_try) 2>&5
23061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062
(exit $ac_status); }; }; then
23063
ac_hi=$ac_mid; break
23065
echo "$as_me: failed program was:" >&5
23066
sed 's/^/| /' conftest.$ac_ext >&5
23068
ac_lo=`expr $ac_mid + 1`
23069
if test $ac_lo -le $ac_mid; then
23073
ac_mid=`expr 2 '*' $ac_mid + 1`
23075
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23078
echo "$as_me: failed program was:" >&5
23079
sed 's/^/| /' conftest.$ac_ext >&5
23081
cat >conftest.$ac_ext <<_ACEOF
23084
cat confdefs.h >>conftest.$ac_ext
23085
cat >>conftest.$ac_ext <<_ACEOF
23086
/* end confdefs.h. */
23087
$ac_includes_default
23091
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
23098
rm -f conftest.$ac_objext
23099
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100
(eval $ac_compile) 2>conftest.er1
23102
grep -v '^ *+' conftest.er1 >conftest.err
23104
cat conftest.err >&5
23105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106
(exit $ac_status); } &&
23107
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109
(eval $ac_try) 2>&5
23111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112
(exit $ac_status); }; } &&
23113
{ ac_try='test -s conftest.$ac_objext'
23114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115
(eval $ac_try) 2>&5
23117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118
(exit $ac_status); }; }; then
23121
cat >conftest.$ac_ext <<_ACEOF
23124
cat confdefs.h >>conftest.$ac_ext
23125
cat >>conftest.$ac_ext <<_ACEOF
23126
/* end confdefs.h. */
23127
$ac_includes_default
23131
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
23138
rm -f conftest.$ac_objext
23139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23140
(eval $ac_compile) 2>conftest.er1
23142
grep -v '^ *+' conftest.er1 >conftest.err
23144
cat conftest.err >&5
23145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146
(exit $ac_status); } &&
23147
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149
(eval $ac_try) 2>&5
23151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152
(exit $ac_status); }; } &&
23153
{ ac_try='test -s conftest.$ac_objext'
23154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155
(eval $ac_try) 2>&5
23157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158
(exit $ac_status); }; }; then
23159
ac_lo=$ac_mid; break
23161
echo "$as_me: failed program was:" >&5
23162
sed 's/^/| /' conftest.$ac_ext >&5
23164
ac_hi=`expr '(' $ac_mid ')' - 1`
23165
if test $ac_mid -le $ac_hi; then
23169
ac_mid=`expr 2 '*' $ac_mid`
23171
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23174
echo "$as_me: failed program was:" >&5
23175
sed 's/^/| /' conftest.$ac_ext >&5
23179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23181
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23182
# Binary search between lo and hi bounds.
23183
while test "x$ac_lo" != "x$ac_hi"; do
23184
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23185
cat >conftest.$ac_ext <<_ACEOF
23188
cat confdefs.h >>conftest.$ac_ext
23189
cat >>conftest.$ac_ext <<_ACEOF
23190
/* end confdefs.h. */
23191
$ac_includes_default
23195
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
23202
rm -f conftest.$ac_objext
23203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23204
(eval $ac_compile) 2>conftest.er1
23206
grep -v '^ *+' conftest.er1 >conftest.err
23208
cat conftest.err >&5
23209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210
(exit $ac_status); } &&
23211
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23212
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213
(eval $ac_try) 2>&5
23215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216
(exit $ac_status); }; } &&
23217
{ ac_try='test -s conftest.$ac_objext'
23218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219
(eval $ac_try) 2>&5
23221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222
(exit $ac_status); }; }; then
23225
echo "$as_me: failed program was:" >&5
23226
sed 's/^/| /' conftest.$ac_ext >&5
23228
ac_lo=`expr '(' $ac_mid ')' + 1`
23230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23233
?*) ac_cv_sizeof_long=$ac_lo;;
23234
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
23235
See \`config.log' for more details." >&5
23236
echo "$as_me: error: cannot compute sizeof (long), 77
23237
See \`config.log' for more details." >&2;}
23238
{ (exit 1); exit 1; }; } ;;
23241
if test "$cross_compiling" = yes; then
23242
{ { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23243
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23244
{ (exit 1); exit 1; }; }
23246
cat >conftest.$ac_ext <<_ACEOF
23249
cat confdefs.h >>conftest.$ac_ext
23250
cat >>conftest.$ac_ext <<_ACEOF
23251
/* end confdefs.h. */
23252
$ac_includes_default
23253
long longval () { return (long) (sizeof (long)); }
23254
unsigned long ulongval () { return (long) (sizeof (long)); }
23256
#include <stdlib.h>
23261
FILE *f = fopen ("conftest.val", "w");
23264
if (((long) (sizeof (long))) < 0)
23266
long i = longval ();
23267
if (i != ((long) (sizeof (long))))
23269
fprintf (f, "%ld\n", i);
23273
unsigned long i = ulongval ();
23274
if (i != ((long) (sizeof (long))))
23276
fprintf (f, "%lu\n", i);
23278
exit (ferror (f) || fclose (f) != 0);
23284
rm -f conftest$ac_exeext
23285
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23286
(eval $ac_link) 2>&5
23288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291
(eval $ac_try) 2>&5
23293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294
(exit $ac_status); }; }; then
23295
ac_cv_sizeof_long=`cat conftest.val`
23297
echo "$as_me: program exited with status $ac_status" >&5
23298
echo "$as_me: failed program was:" >&5
23299
sed 's/^/| /' conftest.$ac_ext >&5
23301
( exit $ac_status )
23302
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
23303
See \`config.log' for more details." >&5
23304
echo "$as_me: error: cannot compute sizeof (long), 77
23305
See \`config.log' for more details." >&2;}
23306
{ (exit 1); exit 1; }; }
23308
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23313
ac_cv_sizeof_long=0
23316
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23317
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
23318
cat >>confdefs.h <<_ACEOF
23319
#define SIZEOF_LONG $ac_cv_sizeof_long
23327
ac_config_files="$ac_config_files GNUmakefile html/Makefile"
23329
cat >confcache <<\_ACEOF
23330
# This file is a shell script that caches the results of configure
23331
# tests run on this system so they can be shared between configure
23332
# scripts and configure runs, see configure's option --config-cache.
23333
# It is not useful on other systems. If it contains results you don't
23334
# want to keep, you may remove or edit it.
23336
# config.status only pays attention to the cache file if you give it
23337
# the --recheck option to rerun configure.
23339
# `ac_cv_env_foo' variables (set or unset) will be overridden when
23340
# loading this file, other *unset* `ac_cv_foo' will be assigned the
23341
# following values.
23345
# The following way of writing the cache mishandles newlines in values,
23346
# but we know of no workaround that is simple, portable, and efficient.
23347
# So, don't put newlines in cache variables' values.
23348
# Ultrix sh set writes to stderr and can't be redirected directly,
23349
# and sets the high bit in the cache file unless we assign to the vars.
23352
case `(ac_space=' '; set | grep ac_space) 2>&1` in
23354
# `set' does not quote correctly, so add quotes (double-quote
23355
# substitution turns \\\\ into \\, and sed turns \\ into \).
23358
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23361
# `set' quotes correctly as required by POSIX, so do not add quotes.
23363
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23370
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23372
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23374
if diff $cache_file confcache >/dev/null 2>&1; then :; else
23375
if test -w $cache_file; then
23376
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23377
cat confcache >$cache_file
23379
echo "not updating unwritable cache $cache_file"
23384
test "x$prefix" = xNONE && prefix=$ac_default_prefix
23385
# Let make expand exec_prefix.
23386
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23388
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23389
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23390
# trailing colons and then remove the whole line if VPATH becomes empty
23391
# (actually we leave an empty line to preserve line numbers).
23392
if test "x$srcdir" = x.; then
23393
ac_vpsub='/^[ ]*VPATH[ ]*=/{
23394
s/:*\$(srcdir):*/:/;
23395
s/:*\${srcdir}:*/:/;
23397
s/^\([^=]*=[ ]*\):*/\1/;
23403
DEFS=-DHAVE_CONFIG_H
23407
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23408
# 1. Remove the extension, and $U if already installed.
23409
ac_i=`echo "$ac_i" |
23410
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23412
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23413
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23415
LIBOBJS=$ac_libobjs
23417
LTLIBOBJS=$ac_ltlibobjs
23420
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23421
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23422
Usually this means the macro was only invoked conditionally." >&5
23423
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23424
Usually this means the macro was only invoked conditionally." >&2;}
23425
{ (exit 1); exit 1; }; }
23427
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23428
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23429
Usually this means the macro was only invoked conditionally." >&5
23430
echo "$as_me: error: conditional \"AMDEP\" was never defined.
23431
Usually this means the macro was only invoked conditionally." >&2;}
23432
{ (exit 1); exit 1; }; }
23434
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23435
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23436
Usually this means the macro was only invoked conditionally." >&5
23437
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23438
Usually this means the macro was only invoked conditionally." >&2;}
23439
{ (exit 1); exit 1; }; }
23441
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23442
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23443
Usually this means the macro was only invoked conditionally." >&5
23444
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23445
Usually this means the macro was only invoked conditionally." >&2;}
23446
{ (exit 1); exit 1; }; }
23449
: ${CONFIG_STATUS=./config.status}
23450
ac_clean_files_save=$ac_clean_files
23451
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23452
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23453
echo "$as_me: creating $CONFIG_STATUS" >&6;}
23454
cat >$CONFIG_STATUS <<_ACEOF
23456
# Generated by $as_me.
23457
# Run this file to recreate the current configuration.
23458
# Compiler output produced by configure, useful for debugging
23459
# configure, is in config.log if it exists.
23462
ac_cs_recheck=false
23464
SHELL=\${CONFIG_SHELL-$SHELL}
23467
cat >>$CONFIG_STATUS <<\_ACEOF
23468
## --------------------- ##
23469
## M4sh Initialization. ##
23470
## --------------------- ##
23472
# Be Bourne compatible
23473
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23476
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23477
# is contrary to our usage. Disable this feature.
23478
alias -g '${1+"$@"}'='"$@"'
23479
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23482
DUALCASE=1; export DUALCASE # for MKS sh
23484
# Support unset when possible.
23485
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23492
# Work around bugs in pre-3.0 UWIN ksh.
23493
$as_unset ENV MAIL MAILPATH
23500
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23501
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23502
LC_TELEPHONE LC_TIME
23504
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23505
eval $as_var=C; export $as_var
23511
# Required to use basename.
23512
if expr a : '\(a\)' >/dev/null 2>&1; then
23518
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23519
as_basename=basename
23525
# Name of the executable.
23526
as_me=`$as_basename "$0" ||
23527
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23528
X"$0" : 'X\(//\)$' \| \
23529
X"$0" : 'X\(/\)$' \| \
23530
. : '\(.\)' 2>/dev/null ||
23532
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23533
/^X\/\(\/\/\)$/{ s//\1/; q; }
23534
/^X\/\(\/\).*/{ s//\1/; q; }
23538
# PATH needs CR, and LINENO needs CR and PATH.
23539
# Avoid depending upon Character Ranges.
23540
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23541
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23542
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23543
as_cr_digits='0123456789'
23544
as_cr_alnum=$as_cr_Letters$as_cr_digits
23546
# The user is always right.
23547
if test "${PATH_SEPARATOR+set}" != set; then
23548
echo "#! /bin/sh" >conf$$.sh
23549
echo "exit 0" >>conf$$.sh
23551
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23560
as_lineno_1=$LINENO
23561
as_lineno_2=$LINENO
23562
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23563
test "x$as_lineno_1" != "x$as_lineno_2" &&
23564
test "x$as_lineno_3" = "x$as_lineno_2" || {
23565
# Find who we are. Look in the path if we contain no path at all
23568
*[\\/]* ) as_myself=$0 ;;
23569
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23570
for as_dir in $PATH
23573
test -z "$as_dir" && as_dir=.
23574
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23579
# We did not find ourselves, most probably we were run as `sh COMMAND'
23580
# in which case we are not to be found in the path.
23581
if test "x$as_myself" = x; then
23584
if test ! -f "$as_myself"; then
23585
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23586
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23587
{ (exit 1); exit 1; }; }
23589
case $CONFIG_SHELL in
23591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23592
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23595
test -z "$as_dir" && as_dir=.
23596
for as_base in sh bash ksh sh5; do
23599
if ("$as_dir/$as_base" -c '
23600
as_lineno_1=$LINENO
23601
as_lineno_2=$LINENO
23602
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23603
test "x$as_lineno_1" != "x$as_lineno_2" &&
23604
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23605
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23606
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23607
CONFIG_SHELL=$as_dir/$as_base
23608
export CONFIG_SHELL
23609
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23617
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23618
# uniformly replaced by the line number. The first 'sed' inserts a
23619
# line-number line before each line; the second 'sed' does the real
23620
# work. The second script uses 'N' to pair each line-number line
23621
# with the numbered line, and appends trailing '-' during
23622
# substitution so that $LINENO is not a special case at line end.
23623
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23624
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23625
sed '=' <$as_myself |
23630
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23633
s,^['$as_cr_digits']*\n,,
23634
' >$as_me.lineno &&
23635
chmod +x $as_me.lineno ||
23636
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23637
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23638
{ (exit 1); exit 1; }; }
23640
# Don't try to exec as it changes $[0], causing all sort of problems
23641
# (the dirname of $[0] is not the place where we might find the
23642
# original and so on. Autoconf is especially sensible to this).
23644
# Exit status is that of the last command.
23649
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23650
*c*,-n*) ECHO_N= ECHO_C='
23652
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23653
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23656
if expr a : '\(a\)' >/dev/null 2>&1; then
23662
rm -f conf$$ conf$$.exe conf$$.file
23664
if ln -s conf$$.file conf$$ 2>/dev/null; then
23665
# We could just check for DJGPP; but this test a) works b) is more generic
23666
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23667
if test -f conf$$.exe; then
23668
# Don't use ln at all; we don't have any links
23673
elif ln conf$$.file conf$$ 2>/dev/null; then
23678
rm -f conf$$ conf$$.exe conf$$.file
23680
if mkdir -p . 2>/dev/null; then
23683
test -d ./-p && rmdir ./-p
23687
as_executable_p="test -f"
23689
# Sed expression to map a string onto a valid CPP name.
23690
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23692
# Sed expression to map a string onto a valid variable name.
23693
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23697
# We need space, tab and new line, in precisely that order.
23707
# Open the log real soon, to keep \$[0] and so on meaningful, and to
23708
# report actual input values of CONFIG_FILES etc. instead of their
23709
# values after options handling. Logging --version etc. is OK.
23713
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23714
## Running $as_me. ##
23719
This file was extended by crypto++ $as_me 5.2, which was
23720
generated by GNU Autoconf 2.59. Invocation command line was
23722
CONFIG_FILES = $CONFIG_FILES
23723
CONFIG_HEADERS = $CONFIG_HEADERS
23724
CONFIG_LINKS = $CONFIG_LINKS
23725
CONFIG_COMMANDS = $CONFIG_COMMANDS
23729
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23733
# Files that config.status was made for.
23734
if test -n "$ac_config_files"; then
23735
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23738
if test -n "$ac_config_headers"; then
23739
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23742
if test -n "$ac_config_links"; then
23743
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23746
if test -n "$ac_config_commands"; then
23747
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23750
cat >>$CONFIG_STATUS <<\_ACEOF
23753
\`$as_me' instantiates files from templates according to the
23754
current configuration.
23756
Usage: $0 [OPTIONS] [FILE]...
23758
-h, --help print this help, then exit
23759
-V, --version print version number, then exit
23760
-q, --quiet do not print progress messages
23761
-d, --debug don't remove temporary files
23762
--recheck update $as_me by reconfiguring in the same conditions
23763
--file=FILE[:TEMPLATE]
23764
instantiate the configuration file FILE
23765
--header=FILE[:TEMPLATE]
23766
instantiate the configuration header FILE
23768
Configuration files:
23771
Configuration headers:
23774
Configuration commands:
23777
Report bugs to <bug-autoconf@gnu.org>."
23780
cat >>$CONFIG_STATUS <<_ACEOF
23782
crypto++ config.status 5.2
23783
configured by $0, generated by GNU Autoconf 2.59,
23784
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23786
Copyright (C) 2003 Free Software Foundation, Inc.
23787
This config.status script is free software; the Free Software Foundation
23788
gives unlimited permission to copy, distribute and modify it."
23793
cat >>$CONFIG_STATUS <<\_ACEOF
23794
# If no file are specified by the user, then we need to provide default
23795
# value. By we need to know if files were specified by the user.
23801
ac_option=`expr "x$1" : 'x\([^=]*\)='`
23802
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23810
*) # This is not an option, so the user has probably given explicit
23813
ac_need_defaults=false;;
23817
# Handling of the options.
23819
cat >>$CONFIG_STATUS <<\_ACEOF
23820
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23822
--version | --vers* | -V )
23823
echo "$ac_cs_version"; exit 0 ;;
23825
# Conflict between --help and --header
23826
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
23827
Try \`$0 --help' for more information." >&5
23828
echo "$as_me: error: ambiguous option: $1
23829
Try \`$0 --help' for more information." >&2;}
23830
{ (exit 1); exit 1; }; };;
23831
--help | --hel | -h )
23832
echo "$ac_cs_usage"; exit 0 ;;
23833
--debug | --d* | -d )
23835
--file | --fil | --fi | --f )
23837
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23838
ac_need_defaults=false;;
23839
--header | --heade | --head | --hea )
23841
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23842
ac_need_defaults=false;;
23843
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23844
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23847
# This is an error.
23848
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23849
Try \`$0 --help' for more information." >&5
23850
echo "$as_me: error: unrecognized option: $1
23851
Try \`$0 --help' for more information." >&2;}
23852
{ (exit 1); exit 1; }; } ;;
23854
*) ac_config_targets="$ac_config_targets $1" ;;
23860
ac_configure_extra_args=
23862
if $ac_cs_silent; then
23864
ac_configure_extra_args="$ac_configure_extra_args --silent"
23868
cat >>$CONFIG_STATUS <<_ACEOF
23869
if \$ac_cs_recheck; then
23870
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23871
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23876
cat >>$CONFIG_STATUS <<_ACEOF
23878
# INIT-COMMANDS section.
23881
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23887
cat >>$CONFIG_STATUS <<\_ACEOF
23888
for ac_config_target in $ac_config_targets
23890
case "$ac_config_target" in
23891
# Handling of arguments.
23892
"GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23893
"html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
23894
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23895
"cryptopp_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS cryptopp_config.h" ;;
23896
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23897
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23898
{ (exit 1); exit 1; }; };;
23902
# If the user did not use the arguments to specify the items to instantiate,
23903
# then the envvar interface is used. Set only those that are not.
23904
# We use the long form for the default assignment because of an extremely
23905
# bizarre bug on SunOS 4.1.3.
23906
if $ac_need_defaults; then
23907
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23908
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23909
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23912
# Have a temporary directory for convenience. Make it in the build tree
23913
# simply because there is no reason to put it here, and in addition,
23914
# creating and moving files from /tmp can sometimes cause problems.
23915
# Create a temporary directory, and hook for its removal unless debugging.
23918
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23919
trap '{ (exit 1); exit 1; }' 1 2 13 15
23922
# Create a (secure) tmp directory for tmp files.
23925
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23926
test -n "$tmp" && test -d "$tmp"
23929
tmp=./confstat$$-$RANDOM
23930
(umask 077 && mkdir $tmp)
23933
echo "$me: cannot create a temporary directory in ." >&2
23934
{ (exit 1); exit 1; }
23939
cat >>$CONFIG_STATUS <<_ACEOF
23942
# CONFIG_FILES section.
23945
# No need to generate the scripts if there are no CONFIG_FILES.
23946
# This happens for instance when ./config.status config.h
23947
if test -n "\$CONFIG_FILES"; then
23948
# Protect against being on the right side of a sed subst in config.status.
23949
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23950
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23951
s,@SHELL@,$SHELL,;t t
23952
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23953
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23954
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23955
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23956
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23957
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23958
s,@exec_prefix@,$exec_prefix,;t t
23959
s,@prefix@,$prefix,;t t
23960
s,@program_transform_name@,$program_transform_name,;t t
23961
s,@bindir@,$bindir,;t t
23962
s,@sbindir@,$sbindir,;t t
23963
s,@libexecdir@,$libexecdir,;t t
23964
s,@datadir@,$datadir,;t t
23965
s,@sysconfdir@,$sysconfdir,;t t
23966
s,@sharedstatedir@,$sharedstatedir,;t t
23967
s,@localstatedir@,$localstatedir,;t t
23968
s,@libdir@,$libdir,;t t
23969
s,@includedir@,$includedir,;t t
23970
s,@oldincludedir@,$oldincludedir,;t t
23971
s,@infodir@,$infodir,;t t
23972
s,@mandir@,$mandir,;t t
23973
s,@build_alias@,$build_alias,;t t
23974
s,@host_alias@,$host_alias,;t t
23975
s,@target_alias@,$target_alias,;t t
23976
s,@DEFS@,$DEFS,;t t
23977
s,@ECHO_C@,$ECHO_C,;t t
23978
s,@ECHO_N@,$ECHO_N,;t t
23979
s,@ECHO_T@,$ECHO_T,;t t
23980
s,@LIBS@,$LIBS,;t t
23981
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23982
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23983
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23984
s,@CYGPATH_W@,$CYGPATH_W,;t t
23985
s,@PACKAGE@,$PACKAGE,;t t
23986
s,@VERSION@,$VERSION,;t t
23987
s,@ACLOCAL@,$ACLOCAL,;t t
23988
s,@AUTOCONF@,$AUTOCONF,;t t
23989
s,@AUTOMAKE@,$AUTOMAKE,;t t
23990
s,@AUTOHEADER@,$AUTOHEADER,;t t
23991
s,@MAKEINFO@,$MAKEINFO,;t t
23992
s,@AMTAR@,$AMTAR,;t t
23993
s,@install_sh@,$install_sh,;t t
23994
s,@STRIP@,$STRIP,;t t
23995
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23996
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23998
s,@SET_MAKE@,$SET_MAKE,;t t
23999
s,@am__leading_dot@,$am__leading_dot,;t t
24000
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24001
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24002
s,@MAINT@,$MAINT,;t t
24004
s,@CFLAGS@,$CFLAGS,;t t
24005
s,@LDFLAGS@,$LDFLAGS,;t t
24006
s,@CPPFLAGS@,$CPPFLAGS,;t t
24007
s,@ac_ct_CC@,$ac_ct_CC,;t t
24008
s,@EXEEXT@,$EXEEXT,;t t
24009
s,@OBJEXT@,$OBJEXT,;t t
24010
s,@DEPDIR@,$DEPDIR,;t t
24011
s,@am__include@,$am__include,;t t
24012
s,@am__quote@,$am__quote,;t t
24013
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24014
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24015
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24016
s,@CCDEPMODE@,$CCDEPMODE,;t t
24017
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24018
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24020
s,@EGREP@,$EGREP,;t t
24021
s,@LIBOBJS@,$LIBOBJS,;t t
24022
s,@RANLIB@,$RANLIB,;t t
24023
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24025
s,@CXXFLAGS@,$CXXFLAGS,;t t
24026
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24027
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24028
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24029
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24030
s,@build@,$build,;t t
24031
s,@build_cpu@,$build_cpu,;t t
24032
s,@build_vendor@,$build_vendor,;t t
24033
s,@build_os@,$build_os,;t t
24034
s,@host@,$host,;t t
24035
s,@host_cpu@,$host_cpu,;t t
24036
s,@host_vendor@,$host_vendor,;t t
24037
s,@host_os@,$host_os,;t t
24038
s,@LN_S@,$LN_S,;t t
24039
s,@ECHO@,$ECHO,;t t
24041
s,@ac_ct_AR@,$ac_ct_AR,;t t
24042
s,@CXXCPP@,$CXXCPP,;t t
24044
s,@FFLAGS@,$FFLAGS,;t t
24045
s,@ac_ct_F77@,$ac_ct_F77,;t t
24046
s,@LIBTOOL@,$LIBTOOL,;t t
24047
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24052
cat >>$CONFIG_STATUS <<\_ACEOF
24053
# Split the substitutions into bite-sized pieces for seds with
24054
# small command number limits, like on Digital OSF/1 and HP-UX.
24055
ac_max_sed_lines=48
24056
ac_sed_frag=1 # Number of current file.
24057
ac_beg=1 # First line for current file.
24058
ac_end=$ac_max_sed_lines # Line after last line for current file.
24061
while $ac_more_lines; do
24062
if test $ac_beg -gt 1; then
24063
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24065
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24067
if test ! -s $tmp/subs.frag; then
24068
ac_more_lines=false
24070
# The purpose of the label and of the branching condition is to
24071
# speed up the sed processing (if there are no `@' at all, there
24072
# is no need to browse any of the substitutions).
24073
# These are the two extra sed commands mentioned above.
24075
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24076
if test -z "$ac_sed_cmds"; then
24077
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24079
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24081
ac_sed_frag=`expr $ac_sed_frag + 1`
24083
ac_end=`expr $ac_end + $ac_max_sed_lines`
24086
if test -z "$ac_sed_cmds"; then
24089
fi # test -n "$CONFIG_FILES"
24092
cat >>$CONFIG_STATUS <<\_ACEOF
24093
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24094
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24096
- | *:- | *:-:* ) # input from stdin
24098
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24099
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24100
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24101
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24102
* ) ac_file_in=$ac_file.in ;;
24105
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24106
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24107
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108
X"$ac_file" : 'X\(//\)[^/]' \| \
24109
X"$ac_file" : 'X\(//\)$' \| \
24110
X"$ac_file" : 'X\(/\)' \| \
24111
. : '\(.\)' 2>/dev/null ||
24113
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24114
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24115
/^X\(\/\/\)$/{ s//\1/; q; }
24116
/^X\(\/\).*/{ s//\1/; q; }
24118
{ if $as_mkdir_p; then
24123
while test ! -d "$as_dir"; do
24124
as_dirs="$as_dir $as_dirs"
24125
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24126
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24127
X"$as_dir" : 'X\(//\)[^/]' \| \
24128
X"$as_dir" : 'X\(//\)$' \| \
24129
X"$as_dir" : 'X\(/\)' \| \
24130
. : '\(.\)' 2>/dev/null ||
24132
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24133
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24134
/^X\(\/\/\)$/{ s//\1/; q; }
24135
/^X\(\/\).*/{ s//\1/; q; }
24138
test ! -n "$as_dirs" || mkdir $as_dirs
24139
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24140
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24141
{ (exit 1); exit 1; }; }; }
24145
if test "$ac_dir" != .; then
24146
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24147
# A "../" for each directory in $ac_dir_suffix.
24148
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24150
ac_dir_suffix= ac_top_builddir=
24154
.) # No --srcdir option. We are building in place.
24156
if test -z "$ac_top_builddir"; then
24159
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24161
[\\/]* | ?:[\\/]* ) # Absolute path.
24162
ac_srcdir=$srcdir$ac_dir_suffix;
24163
ac_top_srcdir=$srcdir ;;
24164
*) # Relative path.
24165
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24166
ac_top_srcdir=$ac_top_builddir$srcdir ;;
24169
# Do not use `cd foo && pwd` to compute absolute paths, because
24170
# the directories may not exist.
24172
.) ac_abs_builddir="$ac_dir";;
24175
.) ac_abs_builddir=`pwd`;;
24176
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24177
*) ac_abs_builddir=`pwd`/"$ac_dir";;
24180
case $ac_abs_builddir in
24181
.) ac_abs_top_builddir=${ac_top_builddir}.;;
24183
case ${ac_top_builddir}. in
24184
.) ac_abs_top_builddir=$ac_abs_builddir;;
24185
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24186
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24189
case $ac_abs_builddir in
24190
.) ac_abs_srcdir=$ac_srcdir;;
24193
.) ac_abs_srcdir=$ac_abs_builddir;;
24194
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24195
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24198
case $ac_abs_builddir in
24199
.) ac_abs_top_srcdir=$ac_top_srcdir;;
24201
case $ac_top_srcdir in
24202
.) ac_abs_top_srcdir=$ac_abs_builddir;;
24203
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24204
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24210
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24211
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24214
# Let's still pretend it is `configure' which instantiates (i.e., don't
24215
# use $as_me), people would be surprised to read:
24216
# /* config.h. Generated by config.status. */
24217
if test x"$ac_file" = x-; then
24220
configure_input="$ac_file. "
24222
configure_input=$configure_input"Generated from `echo $ac_file_in |
24223
sed 's,.*/,,'` by configure."
24225
# First look for the input files in the build tree, otherwise in the
24227
ac_file_inputs=`IFS=:
24228
for f in $ac_file_in; do
24230
-) echo $tmp/stdin ;;
24232
# Absolute (can't be DOS-style, as IFS=:)
24233
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24234
echo "$as_me: error: cannot find input file: $f" >&2;}
24235
{ (exit 1); exit 1; }; }
24238
if test -f "$f"; then
24241
elif test -f "$srcdir/$f"; then
24246
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24247
echo "$as_me: error: cannot find input file: $f" >&2;}
24248
{ (exit 1); exit 1; }; }
24251
done` || { (exit 1); exit 1; }
24253
if test x"$ac_file" != x-; then
24254
{ echo "$as_me:$LINENO: creating $ac_file" >&5
24255
echo "$as_me: creating $ac_file" >&6;}
24259
cat >>$CONFIG_STATUS <<_ACEOF
24263
cat >>$CONFIG_STATUS <<\_ACEOF
24265
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24266
s,@configure_input@,$configure_input,;t t
24267
s,@srcdir@,$ac_srcdir,;t t
24268
s,@abs_srcdir@,$ac_abs_srcdir,;t t
24269
s,@top_srcdir@,$ac_top_srcdir,;t t
24270
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24271
s,@builddir@,$ac_builddir,;t t
24272
s,@abs_builddir@,$ac_abs_builddir,;t t
24273
s,@top_builddir@,$ac_top_builddir,;t t
24274
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24275
s,@INSTALL@,$ac_INSTALL,;t t
24276
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24278
if test x"$ac_file" != x-; then
24279
mv $tmp/out $ac_file
24287
cat >>$CONFIG_STATUS <<\_ACEOF
24290
# CONFIG_HEADER section.
24293
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24294
# NAME is the cpp macro being defined and VALUE is the value it is being given.
24296
# ac_d sets the value in "#define NAME VALUE" lines.
24297
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24298
ac_dB='[ ].*$,\1#\2'
24301
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24302
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24303
ac_uB='$,\1#\2define\3'
24307
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24308
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24310
- | *:- | *:-:* ) # input from stdin
24312
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24313
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24314
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24315
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24316
* ) ac_file_in=$ac_file.in ;;
24319
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24320
echo "$as_me: creating $ac_file" >&6;}
24322
# First look for the input files in the build tree, otherwise in the
24324
ac_file_inputs=`IFS=:
24325
for f in $ac_file_in; do
24327
-) echo $tmp/stdin ;;
24329
# Absolute (can't be DOS-style, as IFS=:)
24330
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24331
echo "$as_me: error: cannot find input file: $f" >&2;}
24332
{ (exit 1); exit 1; }; }
24333
# Do quote $f, to prevent DOS paths from being IFS'd.
24336
if test -f "$f"; then
24339
elif test -f "$srcdir/$f"; then
24344
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24345
echo "$as_me: error: cannot find input file: $f" >&2;}
24346
{ (exit 1); exit 1; }; }
24349
done` || { (exit 1); exit 1; }
24350
# Remove the trailing spaces.
24351
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24355
# Transform confdefs.h into two sed scripts, `conftest.defines' and
24356
# `conftest.undefs', that substitutes the proper values into
24357
# config.h.in to produce config.h. The first handles `#define'
24358
# templates, and the second `#undef' templates.
24359
# And first: Protect against being on the right side of a sed subst in
24360
# config.status. Protect against being in an unquoted here document
24361
# in config.status.
24362
rm -f conftest.defines conftest.undefs
24363
# Using a here document instead of a string reduces the quoting nightmare.
24364
# Putting comments in sed scripts is not portable.
24366
# `end' is used to avoid that the second main sed command (meant for
24367
# 0-ary CPP macros) applies to n-ary macro definitions.
24368
# See the Autoconf documentation for `clear'.
24369
cat >confdef2sed.sed <<\_ACEOF
24374
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24376
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24379
# If some macros were called several times there might be several times
24380
# the same #defines, which is useless. Nevertheless, we may not want to
24381
# sort them, since we want the *last* AC-DEFINE to be honored.
24382
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24383
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24384
rm -f confdef2sed.sed
24386
# This sed command replaces #undef with comments. This is necessary, for
24387
# example, in the case of _POSIX_SOURCE, which is predefined and required
24388
# on some systems where configure will not decide to define it.
24389
cat >>conftest.undefs <<\_ACEOF
24390
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24393
# Break up conftest.defines because some shells have a limit on the size
24394
# of here documents, and old seds have small limits too (100 cmds).
24395
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24396
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24397
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24398
echo ' :' >>$CONFIG_STATUS
24399
rm -f conftest.tail
24400
while grep . conftest.defines >/dev/null
24402
# Write a limited-size here document to $tmp/defines.sed.
24403
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24404
# Speed up: don't consider the non `#define' lines.
24405
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24406
# Work around the forget-to-reset-the-flag bug.
24407
echo 't clr' >>$CONFIG_STATUS
24408
echo ': clr' >>$CONFIG_STATUS
24409
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24411
sed -f $tmp/defines.sed $tmp/in >$tmp/out
24413
mv $tmp/out $tmp/in
24415
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24416
rm -f conftest.defines
24417
mv conftest.tail conftest.defines
24419
rm -f conftest.defines
24420
echo ' fi # grep' >>$CONFIG_STATUS
24421
echo >>$CONFIG_STATUS
24423
# Break up conftest.undefs because some shells have a limit on the size
24424
# of here documents, and old seds have small limits too (100 cmds).
24425
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24426
rm -f conftest.tail
24427
while grep . conftest.undefs >/dev/null
24429
# Write a limited-size here document to $tmp/undefs.sed.
24430
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24431
# Speed up: don't consider the non `#undef'
24432
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24433
# Work around the forget-to-reset-the-flag bug.
24434
echo 't clr' >>$CONFIG_STATUS
24435
echo ': clr' >>$CONFIG_STATUS
24436
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24438
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24440
mv $tmp/out $tmp/in
24442
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24443
rm -f conftest.undefs
24444
mv conftest.tail conftest.undefs
24446
rm -f conftest.undefs
24448
cat >>$CONFIG_STATUS <<\_ACEOF
24449
# Let's still pretend it is `configure' which instantiates (i.e., don't
24450
# use $as_me), people would be surprised to read:
24451
# /* config.h. Generated by config.status. */
24452
if test x"$ac_file" = x-; then
24453
echo "/* Generated by configure. */" >$tmp/config.h
24455
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24457
cat $tmp/in >>$tmp/config.h
24459
if test x"$ac_file" != x-; then
24460
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24461
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24462
echo "$as_me: $ac_file is unchanged" >&6;}
24464
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24465
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24466
X"$ac_file" : 'X\(//\)[^/]' \| \
24467
X"$ac_file" : 'X\(//\)$' \| \
24468
X"$ac_file" : 'X\(/\)' \| \
24469
. : '\(.\)' 2>/dev/null ||
24471
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24472
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24473
/^X\(\/\/\)$/{ s//\1/; q; }
24474
/^X\(\/\).*/{ s//\1/; q; }
24476
{ if $as_mkdir_p; then
24481
while test ! -d "$as_dir"; do
24482
as_dirs="$as_dir $as_dirs"
24483
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24484
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24485
X"$as_dir" : 'X\(//\)[^/]' \| \
24486
X"$as_dir" : 'X\(//\)$' \| \
24487
X"$as_dir" : 'X\(/\)' \| \
24488
. : '\(.\)' 2>/dev/null ||
24490
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24491
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24492
/^X\(\/\/\)$/{ s//\1/; q; }
24493
/^X\(\/\).*/{ s//\1/; q; }
24496
test ! -n "$as_dirs" || mkdir $as_dirs
24497
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24498
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24499
{ (exit 1); exit 1; }; }; }
24502
mv $tmp/config.h $ac_file
24506
rm -f $tmp/config.h
24508
# Compute $ac_file's index in $config_headers.
24510
for _am_header in $config_headers :; do
24511
case $_am_header in
24512
$ac_file | $ac_file:* )
24515
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
24518
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24519
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24520
X$ac_file : 'X\(//\)[^/]' \| \
24521
X$ac_file : 'X\(//\)$' \| \
24522
X$ac_file : 'X\(/\)' \| \
24523
. : '\(.\)' 2>/dev/null ||
24525
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24526
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24527
/^X\(\/\/\)$/{ s//\1/; q; }
24528
/^X\(\/\).*/{ s//\1/; q; }
24529
s/.*/./; q'`/stamp-h$_am_stamp_count
24532
cat >>$CONFIG_STATUS <<\_ACEOF
24535
# CONFIG_COMMANDS section.
24537
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24538
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24539
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24540
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24541
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24542
X"$ac_dest" : 'X\(//\)[^/]' \| \
24543
X"$ac_dest" : 'X\(//\)$' \| \
24544
X"$ac_dest" : 'X\(/\)' \| \
24545
. : '\(.\)' 2>/dev/null ||
24547
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24548
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24549
/^X\(\/\/\)$/{ s//\1/; q; }
24550
/^X\(\/\).*/{ s//\1/; q; }
24552
{ if $as_mkdir_p; then
24557
while test ! -d "$as_dir"; do
24558
as_dirs="$as_dir $as_dirs"
24559
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24560
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24561
X"$as_dir" : 'X\(//\)[^/]' \| \
24562
X"$as_dir" : 'X\(//\)$' \| \
24563
X"$as_dir" : 'X\(/\)' \| \
24564
. : '\(.\)' 2>/dev/null ||
24566
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24567
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24568
/^X\(\/\/\)$/{ s//\1/; q; }
24569
/^X\(\/\).*/{ s//\1/; q; }
24572
test ! -n "$as_dirs" || mkdir $as_dirs
24573
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24574
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24575
{ (exit 1); exit 1; }; }; }
24579
if test "$ac_dir" != .; then
24580
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24581
# A "../" for each directory in $ac_dir_suffix.
24582
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24584
ac_dir_suffix= ac_top_builddir=
24588
.) # No --srcdir option. We are building in place.
24590
if test -z "$ac_top_builddir"; then
24593
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24595
[\\/]* | ?:[\\/]* ) # Absolute path.
24596
ac_srcdir=$srcdir$ac_dir_suffix;
24597
ac_top_srcdir=$srcdir ;;
24598
*) # Relative path.
24599
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24600
ac_top_srcdir=$ac_top_builddir$srcdir ;;
24603
# Do not use `cd foo && pwd` to compute absolute paths, because
24604
# the directories may not exist.
24606
.) ac_abs_builddir="$ac_dir";;
24609
.) ac_abs_builddir=`pwd`;;
24610
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24611
*) ac_abs_builddir=`pwd`/"$ac_dir";;
24614
case $ac_abs_builddir in
24615
.) ac_abs_top_builddir=${ac_top_builddir}.;;
24617
case ${ac_top_builddir}. in
24618
.) ac_abs_top_builddir=$ac_abs_builddir;;
24619
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24620
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24623
case $ac_abs_builddir in
24624
.) ac_abs_srcdir=$ac_srcdir;;
24627
.) ac_abs_srcdir=$ac_abs_builddir;;
24628
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24629
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24632
case $ac_abs_builddir in
24633
.) ac_abs_top_srcdir=$ac_top_srcdir;;
24635
case $ac_top_srcdir in
24636
.) ac_abs_top_srcdir=$ac_abs_builddir;;
24637
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24638
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24643
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24644
echo "$as_me: executing $ac_dest commands" >&6;}
24646
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24647
# Strip MF so we end up with the name of the file.
24648
mf=`echo "$mf" | sed -e 's/:.*$//'`
24649
# Check whether this is an Automake generated Makefile or not.
24650
# We used to match only the files named `Makefile.in', but
24651
# some people rename them; so instead we look at the file content.
24652
# Grep'ing the first line is not enough: some people post-process
24653
# each Makefile.in and add a new line on top of each file to say so.
24654
# So let's grep whole file.
24655
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24656
dirpart=`(dirname "$mf") 2>/dev/null ||
24657
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24658
X"$mf" : 'X\(//\)[^/]' \| \
24659
X"$mf" : 'X\(//\)$' \| \
24660
X"$mf" : 'X\(/\)' \| \
24661
. : '\(.\)' 2>/dev/null ||
24663
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24664
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24665
/^X\(\/\/\)$/{ s//\1/; q; }
24666
/^X\(\/\).*/{ s//\1/; q; }
24671
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24672
# Extract the definition of DEP_FILES from the Makefile without
24674
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24675
test -z "$DEPDIR" && continue
24676
# When using ansi2knr, U may be empty or an underscore; expand it
24677
U=`sed -n -e '/^U = / s///p' < "$mf"`
24678
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24679
# We invoke sed twice because it is the simplest approach to
24680
# changing $(DEPDIR) to its actual value in the expansion.
24681
for file in `sed -n -e '
24682
/^DEP_FILES = .*\\\\$/ {
24691
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24692
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24693
# Make sure the directory exists.
24694
test -f "$dirpart/$file" && continue
24695
fdir=`(dirname "$file") 2>/dev/null ||
24696
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24697
X"$file" : 'X\(//\)[^/]' \| \
24698
X"$file" : 'X\(//\)$' \| \
24699
X"$file" : 'X\(/\)' \| \
24700
. : '\(.\)' 2>/dev/null ||
24702
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24703
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24704
/^X\(\/\/\)$/{ s//\1/; q; }
24705
/^X\(\/\).*/{ s//\1/; q; }
24707
{ if $as_mkdir_p; then
24708
mkdir -p $dirpart/$fdir
24710
as_dir=$dirpart/$fdir
24712
while test ! -d "$as_dir"; do
24713
as_dirs="$as_dir $as_dirs"
24714
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24715
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24716
X"$as_dir" : 'X\(//\)[^/]' \| \
24717
X"$as_dir" : 'X\(//\)$' \| \
24718
X"$as_dir" : 'X\(/\)' \| \
24719
. : '\(.\)' 2>/dev/null ||
24721
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24722
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24723
/^X\(\/\/\)$/{ s//\1/; q; }
24724
/^X\(\/\).*/{ s//\1/; q; }
24727
test ! -n "$as_dirs" || mkdir $as_dirs
24728
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24729
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24730
{ (exit 1); exit 1; }; }; }
24732
# echo "creating $dirpart/$file"
24733
echo '# dummy' > "$dirpart/$file"
24741
cat >>$CONFIG_STATUS <<\_ACEOF
24743
{ (exit 0); exit 0; }
24745
chmod +x $CONFIG_STATUS
24746
ac_clean_files=$ac_clean_files_save
24749
# configure is writing to config.log, and then calls config.status.
24750
# config.status does its own redirection, appending to config.log.
24751
# Unfortunately, on DOS this fails, as config.log is still kept open
24752
# by configure, so config.status won't be able to write to it; its
24753
# output is simply discarded. So we exec the FD to /dev/null,
24754
# effectively closing config.log, so it can be properly (re)opened and
24755
# appended to by config.status. When coming back to configure, we
24756
# need to make the FD available again.
24757
if test "$no_create" != yes; then
24759
ac_config_status_args=
24760
test "$silent" = yes &&
24761
ac_config_status_args="$ac_config_status_args --quiet"
24763
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24765
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
24766
# would make configure fail if this is the last instruction.
24767
$ac_cs_success || { (exit 1); exit 1; }