2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for libffi 2.1.
5
# Report bugs to <http://gcc.gnu.org/bugs.html>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# Check that we are running under the correct shell.
248
SHELL=${CONFIG_SHELL-/bin/sh}
252
# Remove one level of quotation (which was required for Make).
253
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258
if test "X$1" = X--no-reexec; then
259
# Discard the --no-reexec flag, and continue.
261
elif test "X$1" = X--fallback-echo; then
262
# Avoid inline document here, it may be left over
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
# Yippee, $echo works!
268
# Restart under the correct shell.
269
exec $SHELL "$0" --no-reexec ${1+"$@"}
272
if test "X$1" = X--fallback-echo; then
273
# used as fallback echo
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285
if test -z "$ECHO"; then
286
if test "X${echo_test_string+set}" != Xset; then
287
# find a string as large as possible, as long as the shell can cope with it
288
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291
echo_test_string=`eval $cmd` &&
292
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
test "X$echo_testing_string" = "X$echo_test_string"; then
304
# The Solaris, AIX, and Digital Unix default echo programs unquote
305
# backslashes. This makes it impossible to quote backslashes using
306
# echo "$something" | sed 's/\\/\\\\/g'
308
# So, first we look for a working echo in the user's PATH.
310
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
for dir in $PATH /usr/ucb; do
313
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
test "X$echo_testing_string" = "X$echo_test_string"; then
323
if test "X$echo" = Xecho; then
324
# We didn't find a better echo, so look for alternatives.
325
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
test "X$echo_testing_string" = "X$echo_test_string"; then
328
# This shell has a builtin print -r that does the trick.
330
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
test "X$CONFIG_SHELL" != X/bin/ksh; then
332
# If we have ksh, try running configure again with it.
333
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
export ORIGINAL_CONFIG_SHELL
335
CONFIG_SHELL=/bin/ksh
337
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
test "X$echo_testing_string" = "X$echo_test_string"; then
346
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
test "X$echo_testing_string" = 'X\t' &&
348
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
test "X$echo_testing_string" = "X$echo_test_string"; then
350
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352
SHELL="$CONFIG_SHELL"
354
echo="$CONFIG_SHELL $0 --fallback-echo"
355
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
echo="$CONFIG_SHELL $0 --fallback-echo"
361
# maybe with a smaller string...
364
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372
if test "$prev" != 'sed 50q "$0"'; then
373
echo_test_string=`eval $prev`
374
export echo_test_string
375
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377
# Oops. We lost completely, so just stick with echo.
386
# Copy echo and quote the copy suitably for passing to libtool from
387
# the Makefile, instead of quoting the original, which is used later.
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396
tagnames=${tagnames+${tagnames},}CXX
398
tagnames=${tagnames+${tagnames},}F77
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
# so uname gets run too.
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
ac_default_prefix=/usr/local
411
ac_config_libobj_dir=.
416
SHELL=${CONFIG_SHELL-/bin/sh}
418
# Maximum number of lines to put in a shell here document.
419
# This variable seems obsolete. It should probably be removed, and
420
# only ac_max_sed_lines should be used.
421
: ${ac_max_here_lines=38}
423
# Identity of this package.
424
PACKAGE_NAME='libffi'
425
PACKAGE_TARNAME='libffi'
426
PACKAGE_VERSION='2.1'
427
PACKAGE_STRING='libffi 2.1'
428
PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
430
# Factoring default headers for most tests.
431
ac_includes_default="\
434
# include <sys/types.h>
437
# include <sys/stat.h>
448
# if !STDC_HEADERS && HAVE_MEMORY_H
454
# include <strings.h>
457
# include <inttypes.h>
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CCAS CCASFLAGS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE X86_DARWIN_TRUE X86_DARWIN_FALSE X86_FREEBSD_TRUE X86_FREEBSD_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M32R_TRUE M32R_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE POWERPC_FREEBSD_TRUE POWERPC_FREEBSD_FALSE ARM_TRUE ARM_FALSE LIBFFI_CRIS_TRUE LIBFFI_CRIS_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_TRUE PA_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR LIBOBJS LTLIBOBJS'
470
# Initialize some variables set by options.
472
ac_init_version=false
473
# The variables have the same names as the options, with
474
# dashes changed to underlines.
482
program_transform_name=s,x,x,
490
# Installation directory options.
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
# and all the variables that are supposed to be based on exec_prefix
493
# by default will actually change.
494
# Use braces instead of parens because sh, perl, etc. also accept them.
495
bindir='${exec_prefix}/bin'
496
sbindir='${exec_prefix}/sbin'
497
libexecdir='${exec_prefix}/libexec'
498
datadir='${prefix}/share'
499
sysconfdir='${prefix}/etc'
500
sharedstatedir='${prefix}/com'
501
localstatedir='${prefix}/var'
502
libdir='${exec_prefix}/lib'
503
includedir='${prefix}/include'
504
oldincludedir='/usr/include'
505
infodir='${prefix}/info'
506
mandir='${prefix}/man'
511
# If the previous option needs an argument, assign it.
512
if test -n "$ac_prev"; then
513
eval "$ac_prev=\$ac_option"
518
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
# Accept the important Cygnus configure options, so we can diagnose typos.
524
-bindir | --bindir | --bindi | --bind | --bin | --bi)
526
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529
-build | --build | --buil | --bui | --bu)
530
ac_prev=build_alias ;;
531
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
build_alias=$ac_optarg ;;
534
-cache-file | --cache-file | --cache-fil | --cache-fi \
535
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
ac_prev=cache_file ;;
537
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
cache_file=$ac_optarg ;;
542
cache_file=config.cache ;;
544
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
datadir=$ac_optarg ;;
550
-disable-* | --disable-*)
551
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
{ (exit 1); exit 1; }; }
556
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
eval "enable_$ac_feature=no" ;;
559
-enable-* | --enable-*)
560
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
# Reject names that are not valid shell variable names.
562
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
{ (exit 1); exit 1; }; }
565
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570
eval "enable_$ac_feature='$ac_optarg'" ;;
572
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
| --exec | --exe | --ex)
575
ac_prev=exec_prefix ;;
576
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
| --exec=* | --exe=* | --ex=*)
579
exec_prefix=$ac_optarg ;;
581
-gas | --gas | --ga | --g)
582
# Obsolete; use --with-gas.
585
-help | --help | --hel | --he | -h)
587
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
ac_init_help=recursive ;;
589
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
ac_init_help=short ;;
592
-host | --host | --hos | --ho)
593
ac_prev=host_alias ;;
594
-host=* | --host=* | --hos=* | --ho=*)
595
host_alias=$ac_optarg ;;
597
-includedir | --includedir | --includedi | --included | --include \
598
| --includ | --inclu | --incl | --inc)
599
ac_prev=includedir ;;
600
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
| --includ=* | --inclu=* | --incl=* | --inc=*)
602
includedir=$ac_optarg ;;
604
-infodir | --infodir | --infodi | --infod | --info | --inf)
606
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
infodir=$ac_optarg ;;
609
-libdir | --libdir | --libdi | --libd)
611
-libdir=* | --libdir=* | --libdi=* | --libd=*)
614
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
| --libexe | --libex | --libe)
616
ac_prev=libexecdir ;;
617
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
| --libexe=* | --libex=* | --libe=*)
619
libexecdir=$ac_optarg ;;
621
-localstatedir | --localstatedir | --localstatedi | --localstated \
622
| --localstate | --localstat | --localsta | --localst \
623
| --locals | --local | --loca | --loc | --lo)
624
ac_prev=localstatedir ;;
625
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
localstatedir=$ac_optarg ;;
630
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636
# Obsolete; use --without-fp.
639
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
| --no-cr | --no-c | -n)
643
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
| --oldin | --oldi | --old | --ol | --o)
650
ac_prev=oldincludedir ;;
651
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
oldincludedir=$ac_optarg ;;
656
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661
-program-prefix | --program-prefix | --program-prefi | --program-pref \
662
| --program-pre | --program-pr | --program-p)
663
ac_prev=program_prefix ;;
664
-program-prefix=* | --program-prefix=* | --program-prefi=* \
665
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
program_prefix=$ac_optarg ;;
668
-program-suffix | --program-suffix | --program-suffi | --program-suff \
669
| --program-suf | --program-su | --program-s)
670
ac_prev=program_suffix ;;
671
-program-suffix=* | --program-suffix=* | --program-suffi=* \
672
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
program_suffix=$ac_optarg ;;
675
-program-transform-name | --program-transform-name \
676
| --program-transform-nam | --program-transform-na \
677
| --program-transform-n | --program-transform- \
678
| --program-transform | --program-transfor \
679
| --program-transfo | --program-transf \
680
| --program-trans | --program-tran \
681
| --progr-tra | --program-tr | --program-t)
682
ac_prev=program_transform_name ;;
683
-program-transform-name=* | --program-transform-name=* \
684
| --program-transform-nam=* | --program-transform-na=* \
685
| --program-transform-n=* | --program-transform-=* \
686
| --program-transform=* | --program-transfor=* \
687
| --program-transfo=* | --program-transf=* \
688
| --program-trans=* | --program-tran=* \
689
| --progr-tra=* | --program-tr=* | --program-t=*)
690
program_transform_name=$ac_optarg ;;
692
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
| -silent | --silent | --silen | --sile | --sil)
696
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700
sbindir=$ac_optarg ;;
702
-sharedstatedir | --sharedstatedir | --sharedstatedi \
703
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
| --sharedst | --shareds | --shared | --share | --shar \
706
ac_prev=sharedstatedir ;;
707
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711
sharedstatedir=$ac_optarg ;;
713
-site | --site | --sit)
715
-site=* | --site=* | --sit=*)
718
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
| --syscon | --sysco | --sysc | --sys | --sy)
725
ac_prev=sysconfdir ;;
726
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
sysconfdir=$ac_optarg ;;
730
-target | --target | --targe | --targ | --tar | --ta | --t)
731
ac_prev=target_alias ;;
732
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
target_alias=$ac_optarg ;;
735
-v | -verbose | --verbose | --verbos | --verbo | --verb)
738
-version | --version | --versio | --versi | --vers | -V)
742
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
# Reject names that are not valid shell variable names.
744
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
{ echo "$as_me: error: invalid package name: $ac_package" >&2
746
{ (exit 1); exit 1; }; }
747
ac_package=`echo $ac_package| sed 's/-/_/g'`
749
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752
eval "with_$ac_package='$ac_optarg'" ;;
754
-without-* | --without-*)
755
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
# Reject names that are not valid shell variable names.
757
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
{ echo "$as_me: error: invalid package name: $ac_package" >&2
759
{ (exit 1); exit 1; }; }
760
ac_package=`echo $ac_package | sed 's/-/_/g'`
761
eval "with_$ac_package=no" ;;
764
# Obsolete; use --with-x.
767
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
| --x-incl | --x-inc | --x-in | --x-i)
769
ac_prev=x_includes ;;
770
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
x_includes=$ac_optarg ;;
774
-x-libraries | --x-libraries | --x-librarie | --x-librari \
775
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
ac_prev=x_libraries ;;
777
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
x_libraries=$ac_optarg ;;
781
-*) { echo "$as_me: error: unrecognized option: $ac_option
782
Try \`$0 --help' for more information." >&2
783
{ (exit 1); exit 1; }; }
787
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
# Reject names that are not valid shell variable names.
789
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
{ (exit 1); exit 1; }; }
792
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
eval "$ac_envvar='$ac_optarg'"
797
# FIXME: should be removed in autoconf 3.0.
798
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807
if test -n "$ac_prev"; then
808
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
{ echo "$as_me: error: missing argument to $ac_option" >&2
810
{ (exit 1); exit 1; }; }
813
# Be sure to have absolute paths.
814
for ac_var in exec_prefix prefix
816
eval ac_val=$`echo $ac_var`
818
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
{ (exit 1); exit 1; }; };;
824
# Be sure to have absolute paths.
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
localstatedir libdir includedir oldincludedir infodir mandir
828
eval ac_val=$`echo $ac_var`
830
[\\/$]* | ?:[\\/]* ) ;;
831
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
{ (exit 1); exit 1; }; };;
836
# There might be people who depend on the old broken behavior: `$host'
837
# used to hold the argument of --host etc.
838
# FIXME: To remove some day.
843
# FIXME: To remove some day.
844
if test "x$host_alias" != x; then
845
if test "x$build_alias" = x; then
846
cross_compiling=maybe
847
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
If a cross compiler is detected then cross compile mode will be used." >&2
849
elif test "x$build_alias" != "x$host_alias"; then
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
test "$silent" = yes && exec 6>/dev/null
860
# Find the source files, if location was not specified.
861
if test -z "$srcdir"; then
862
ac_srcdir_defaulted=yes
863
# Try the directory containing this script, then its parent.
864
ac_confdir=`(dirname "$0") 2>/dev/null ||
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
X"$0" : 'X\(//\)[^/]' \| \
867
X"$0" : 'X\(//\)$' \| \
868
X"$0" : 'X\(/\)' \| \
869
. : '\(.\)' 2>/dev/null ||
871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
/^X\(\/\/\)$/{ s//\1/; q; }
874
/^X\(\/\).*/{ s//\1/; q; }
877
if test ! -r $srcdir/$ac_unique_file; then
881
ac_srcdir_defaulted=no
883
if test ! -r $srcdir/$ac_unique_file; then
884
if test "$ac_srcdir_defaulted" = yes; then
885
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
{ (exit 1); exit 1; }; }
888
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
{ (exit 1); exit 1; }; }
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
{ (exit 1); exit 1; }; }
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
ac_env_build_alias_set=${build_alias+set}
897
ac_env_build_alias_value=$build_alias
898
ac_cv_env_build_alias_set=${build_alias+set}
899
ac_cv_env_build_alias_value=$build_alias
900
ac_env_host_alias_set=${host_alias+set}
901
ac_env_host_alias_value=$host_alias
902
ac_cv_env_host_alias_set=${host_alias+set}
903
ac_cv_env_host_alias_value=$host_alias
904
ac_env_target_alias_set=${target_alias+set}
905
ac_env_target_alias_value=$target_alias
906
ac_cv_env_target_alias_set=${target_alias+set}
907
ac_cv_env_target_alias_value=$target_alias
908
ac_env_CC_set=${CC+set}
910
ac_cv_env_CC_set=${CC+set}
911
ac_cv_env_CC_value=$CC
912
ac_env_CFLAGS_set=${CFLAGS+set}
913
ac_env_CFLAGS_value=$CFLAGS
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
ac_cv_env_CFLAGS_value=$CFLAGS
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_env_LDFLAGS_value=$LDFLAGS
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_env_CPPFLAGS_value=$CPPFLAGS
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
ac_env_CCAS_set=${CCAS+set}
925
ac_env_CCAS_value=$CCAS
926
ac_cv_env_CCAS_set=${CCAS+set}
927
ac_cv_env_CCAS_value=$CCAS
928
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
929
ac_env_CCASFLAGS_value=$CCASFLAGS
930
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
931
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
932
ac_env_CPP_set=${CPP+set}
933
ac_env_CPP_value=$CPP
934
ac_cv_env_CPP_set=${CPP+set}
935
ac_cv_env_CPP_value=$CPP
936
ac_env_CXX_set=${CXX+set}
937
ac_env_CXX_value=$CXX
938
ac_cv_env_CXX_set=${CXX+set}
939
ac_cv_env_CXX_value=$CXX
940
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
941
ac_env_CXXFLAGS_value=$CXXFLAGS
942
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
943
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
944
ac_env_CXXCPP_set=${CXXCPP+set}
945
ac_env_CXXCPP_value=$CXXCPP
946
ac_cv_env_CXXCPP_set=${CXXCPP+set}
947
ac_cv_env_CXXCPP_value=$CXXCPP
948
ac_env_F77_set=${F77+set}
949
ac_env_F77_value=$F77
950
ac_cv_env_F77_set=${F77+set}
951
ac_cv_env_F77_value=$F77
952
ac_env_FFLAGS_set=${FFLAGS+set}
953
ac_env_FFLAGS_value=$FFLAGS
954
ac_cv_env_FFLAGS_set=${FFLAGS+set}
955
ac_cv_env_FFLAGS_value=$FFLAGS
958
# Report the --help message.
960
if test "$ac_init_help" = "long"; then
961
# Omit some internal or obsolete options to make the list less imposing.
962
# This message is too long to be a string in the A/UX 3.1 sh.
964
\`configure' configures libffi 2.1 to adapt to many kinds of systems.
966
Usage: $0 [OPTION]... [VAR=VALUE]...
968
To assign environment variables (e.g., CC, CFLAGS...), specify them as
969
VAR=VALUE. See below for descriptions of some of the useful variables.
971
Defaults for the options are specified in brackets.
974
-h, --help display this help and exit
975
--help=short display options specific to this package
976
--help=recursive display the short help of all the included packages
977
-V, --version display version information and exit
978
-q, --quiet, --silent do not print \`checking...' messages
979
--cache-file=FILE cache test results in FILE [disabled]
980
-C, --config-cache alias for \`--cache-file=config.cache'
981
-n, --no-create do not create output files
982
--srcdir=DIR find the sources in DIR [configure dir or \`..']
987
Installation directories:
988
--prefix=PREFIX install architecture-independent files in PREFIX
990
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
993
By default, \`make install' will install all the files in
994
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
995
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
996
for instance \`--prefix=\$HOME'.
998
For better control, use the options below.
1000
Fine tuning of the installation directories:
1001
--bindir=DIR user executables [EPREFIX/bin]
1002
--sbindir=DIR system admin executables [EPREFIX/sbin]
1003
--libexecdir=DIR program executables [EPREFIX/libexec]
1004
--datadir=DIR read-only architecture-independent data [PREFIX/share]
1005
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1006
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1007
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1008
--libdir=DIR object code libraries [EPREFIX/lib]
1009
--includedir=DIR C header files [PREFIX/include]
1010
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1011
--infodir=DIR info documentation [PREFIX/info]
1012
--mandir=DIR man documentation [PREFIX/man]
1018
--program-prefix=PREFIX prepend PREFIX to installed program names
1019
--program-suffix=SUFFIX append SUFFIX to installed program names
1020
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1023
--build=BUILD configure for building on BUILD [guessed]
1024
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1025
--target=TARGET configure for building compilers for TARGET [HOST]
1029
if test -n "$ac_init_help"; then
1030
case $ac_init_help in
1031
short | recursive ) echo "Configuration of libffi 2.1:";;
1036
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1037
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1038
--disable-dependency-tracking speeds up one-time build
1039
--enable-dependency-tracking do not reject slow dependency extractors
1040
--enable-shared[=PKGS]
1041
build shared libraries [default=yes]
1042
--enable-static[=PKGS]
1043
build static libraries [default=yes]
1044
--enable-fast-install[=PKGS]
1045
optimize for fast installation [default=yes]
1046
--disable-libtool-lock avoid locking (might break parallel builds)
1047
--enable-debug debugging mode
1048
--disable-structs omit code for struct support
1049
--disable-raw-api make the raw api unavailable
1050
--enable-purify-safety purify-safe mode
1053
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1054
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1055
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056
--with-pic try to use only PIC/non-PIC objects [default=use
1059
include additional configurations [automatic]
1061
Some influential environment variables:
1062
CC C compiler command
1063
CFLAGS C compiler flags
1064
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065
nonstandard directory <lib dir>
1066
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067
headers in a nonstandard directory <include dir>
1068
CCAS assembler compiler command (defaults to CC)
1069
CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1071
CXX C++ compiler command
1072
CXXFLAGS C++ compiler flags
1073
CXXCPP C++ preprocessor
1074
F77 Fortran 77 compiler command
1075
FFLAGS Fortran 77 compiler flags
1077
Use these variables to override the choices made by `configure' or to help
1078
it to find libraries and programs with nonstandard names/locations.
1080
Report bugs to <http://gcc.gnu.org/bugs.html>.
1084
if test "$ac_init_help" = "recursive"; then
1085
# If there are subdirs, report their specific --help.
1087
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088
test -d $ac_dir || continue
1091
if test "$ac_dir" != .; then
1092
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093
# A "../" for each directory in $ac_dir_suffix.
1094
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1096
ac_dir_suffix= ac_top_builddir=
1100
.) # No --srcdir option. We are building in place.
1102
if test -z "$ac_top_builddir"; then
1105
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1107
[\\/]* | ?:[\\/]* ) # Absolute path.
1108
ac_srcdir=$srcdir$ac_dir_suffix;
1109
ac_top_srcdir=$srcdir ;;
1111
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115
# Do not use `cd foo && pwd` to compute absolute paths, because
1116
# the directories may not exist.
1118
.) ac_abs_builddir="$ac_dir";;
1121
.) ac_abs_builddir=`pwd`;;
1122
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1126
case $ac_abs_builddir in
1127
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1129
case ${ac_top_builddir}. in
1130
.) ac_abs_top_builddir=$ac_abs_builddir;;
1131
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135
case $ac_abs_builddir in
1136
.) ac_abs_srcdir=$ac_srcdir;;
1139
.) ac_abs_srcdir=$ac_abs_builddir;;
1140
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144
case $ac_abs_builddir in
1145
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1147
case $ac_top_srcdir in
1148
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1149
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1155
# Check for guested configure; otherwise get Cygnus style configure.
1156
if test -f $ac_srcdir/configure.gnu; then
1158
$SHELL $ac_srcdir/configure.gnu --help=recursive
1159
elif test -f $ac_srcdir/configure; then
1161
$SHELL $ac_srcdir/configure --help=recursive
1162
elif test -f $ac_srcdir/configure.ac ||
1163
test -f $ac_srcdir/configure.in; then
1165
$ac_configure --help
1167
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173
test -n "$ac_init_help" && exit 0
1174
if $ac_init_version; then
1176
libffi configure 2.1
1177
generated by GNU Autoconf 2.59
1179
Copyright (C) 2003 Free Software Foundation, Inc.
1180
This configure script is free software; the Free Software Foundation
1181
gives unlimited permission to copy, distribute and modify it.
1187
This file contains any messages produced by compilers while
1188
running configure, to aid debugging if configure makes a mistake.
1190
It was created by libffi $as_me 2.1, which was
1191
generated by GNU Autoconf 2.59. Invocation command line was
1202
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225
test -z "$as_dir" && as_dir=.
1226
echo "PATH: $as_dir"
1241
# Keep a trace of the command line.
1242
# Strip out --no-create and --no-recursion so they do not pile up.
1243
# Strip out --silent because we don't want to record it for future runs.
1244
# Also quote any args containing shell meta-characters.
1245
# Make two passes to allow for proper duplicate-argument suppression.
1250
ac_must_keep_next=false
1256
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258
| -silent | --silent | --silen | --sile | --sil)
1260
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267
if test $ac_must_keep_next = true; then
1268
ac_must_keep_next=false # Got value, back to normal.
1271
*=* | --config-cache | -C | -disable-* | --disable-* \
1272
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274
| -with-* | --with-* | -without-* | --without-* | --x)
1275
case "$ac_configure_args0 " in
1276
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279
-* ) ac_must_keep_next=true ;;
1282
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283
# Get rid of the leading space.
1289
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
# When interrupted or exit'd, cleanup temporary files, and complete
1293
# config.log. We remove comments because anyway the quotes in there
1294
# would cause problems or look ugly.
1295
# WARNING: Be sure not to use single quotes in there, as some shells,
1296
# such as our DU 5.0 friend, will then `close' the trap.
1297
trap 'exit_status=$?
1298
# Save into config.log some information that might help in debugging.
1303
## ---------------- ##
1304
## Cache variables. ##
1305
## ---------------- ##
1308
# The following way of writing the cache mishandles newlines in values,
1311
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326
## ----------------- ##
1327
## Output variables. ##
1328
## ----------------- ##
1331
for ac_var in $ac_subst_vars
1333
eval ac_val=$`echo $ac_var`
1334
echo "$ac_var='"'"'$ac_val'"'"'"
1338
if test -n "$ac_subst_files"; then
1345
for ac_var in $ac_subst_files
1347
eval ac_val=$`echo $ac_var`
1348
echo "$ac_var='"'"'$ac_val'"'"'"
1353
if test -s confdefs.h; then
1360
sed "/^$/d" confdefs.h | sort
1363
test "$ac_signal" != 0 &&
1364
echo "$as_me: caught signal $ac_signal"
1365
echo "$as_me: exit $exit_status"
1367
rm -f core *.core &&
1368
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371
for ac_signal in 1 2 13 15; do
1372
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377
rm -rf conftest* confdefs.h
1378
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381
# Predefined preprocessor variables.
1383
cat >>confdefs.h <<_ACEOF
1384
#define PACKAGE_NAME "$PACKAGE_NAME"
1388
cat >>confdefs.h <<_ACEOF
1389
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393
cat >>confdefs.h <<_ACEOF
1394
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1398
cat >>confdefs.h <<_ACEOF
1399
#define PACKAGE_STRING "$PACKAGE_STRING"
1403
cat >>confdefs.h <<_ACEOF
1404
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408
# Let the site file select an alternate cache file if it wants to.
1409
# Prefer explicitly selected file to automatically selected ones.
1410
if test -z "$CONFIG_SITE"; then
1411
if test "x$prefix" != xNONE; then
1412
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417
for ac_site_file in $CONFIG_SITE; do
1418
if test -r "$ac_site_file"; then
1419
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420
echo "$as_me: loading site script $ac_site_file" >&6;}
1421
sed 's/^/| /' "$ac_site_file" >&5
1426
if test -r "$cache_file"; then
1427
# Some versions of bash will fail to source /dev/null (special
1428
# files actually), so we avoid doing that.
1429
if test -f "$cache_file"; then
1430
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431
echo "$as_me: loading cache $cache_file" >&6;}
1433
[\\/]* | ?:[\\/]* ) . $cache_file;;
1434
*) . ./$cache_file;;
1438
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439
echo "$as_me: creating cache $cache_file" >&6;}
1443
# Check that the precious variables saved in the cache have kept the same
1445
ac_cache_corrupted=false
1446
for ac_var in `(set) 2>&1 |
1447
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449
eval ac_new_set=\$ac_env_${ac_var}_set
1450
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451
eval ac_new_val="\$ac_env_${ac_var}_value"
1452
case $ac_old_set,$ac_new_set in
1454
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456
ac_cache_corrupted=: ;;
1458
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460
ac_cache_corrupted=: ;;
1463
if test "x$ac_old_val" != "x$ac_new_val"; then
1464
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467
echo "$as_me: former value: $ac_old_val" >&2;}
1468
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469
echo "$as_me: current value: $ac_new_val" >&2;}
1470
ac_cache_corrupted=:
1473
# Pass precious variables to config.status.
1474
if test "$ac_new_set" = set; then
1476
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478
*) ac_arg=$ac_var=$ac_new_val ;;
1480
case " $ac_configure_args " in
1481
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486
if $ac_cache_corrupted; then
1487
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491
{ (exit 1); exit 1; }; }
1495
ac_cpp='$CPP $CPPFLAGS'
1496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526
ac_config_headers="$ac_config_headers fficonfig.h"
1530
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531
if test -f $ac_dir/install-sh; then
1533
ac_install_sh="$ac_aux_dir/install-sh -c"
1535
elif test -f $ac_dir/install.sh; then
1537
ac_install_sh="$ac_aux_dir/install.sh -c"
1539
elif test -f $ac_dir/shtool; then
1541
ac_install_sh="$ac_aux_dir/shtool install -c"
1545
if test -z "$ac_aux_dir"; then
1546
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548
{ (exit 1); exit 1; }; }
1550
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554
# Make sure we can run config.sub.
1555
$ac_config_sub sun4 >/dev/null 2>&1 ||
1556
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558
{ (exit 1); exit 1; }; }
1560
echo "$as_me:$LINENO: checking build system type" >&5
1561
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562
if test "${ac_cv_build+set}" = set; then
1563
echo $ECHO_N "(cached) $ECHO_C" >&6
1565
ac_cv_build_alias=$build_alias
1566
test -z "$ac_cv_build_alias" &&
1567
ac_cv_build_alias=`$ac_config_guess`
1568
test -z "$ac_cv_build_alias" &&
1569
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571
{ (exit 1); exit 1; }; }
1572
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575
{ (exit 1); exit 1; }; }
1578
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579
echo "${ECHO_T}$ac_cv_build" >&6
1581
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
echo "$as_me:$LINENO: checking host system type" >&5
1587
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588
if test "${ac_cv_host+set}" = set; then
1589
echo $ECHO_N "(cached) $ECHO_C" >&6
1591
ac_cv_host_alias=$host_alias
1592
test -z "$ac_cv_host_alias" &&
1593
ac_cv_host_alias=$ac_cv_build_alias
1594
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597
{ (exit 1); exit 1; }; }
1600
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601
echo "${ECHO_T}$ac_cv_host" >&6
1603
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
echo "$as_me:$LINENO: checking target system type" >&5
1609
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610
if test "${ac_cv_target+set}" = set; then
1611
echo $ECHO_N "(cached) $ECHO_C" >&6
1613
ac_cv_target_alias=$target_alias
1614
test "x$ac_cv_target_alias" = "x" &&
1615
ac_cv_target_alias=$ac_cv_host_alias
1616
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619
{ (exit 1); exit 1; }; }
1622
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623
echo "${ECHO_T}$ac_cv_target" >&6
1624
target=$ac_cv_target
1625
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
# The aliases save the names the user supplied, while $host etc.
1631
# will get canonicalized.
1632
test -n "$target_alias" &&
1633
test "$program_prefix$program_suffix$program_transform_name" = \
1635
program_prefix=${target_alias}-
1637
. ${srcdir}/configure.host
1639
am__api_version="1.9"
1640
# Find a good install program. We prefer a C program (faster),
1641
# so one script is as good as another. But avoid the broken or
1642
# incompatible versions:
1643
# SysV /etc/install, /usr/sbin/install
1644
# SunOS /usr/etc/install
1645
# IRIX /sbin/install
1647
# AmigaOS /C/install, which installs bootblocks on floppy discs
1648
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1649
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1650
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1651
# OS/2's system install, which has a completely different semantic
1652
# ./install, which can be erroneously created by make from ./install.sh.
1653
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1654
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1655
if test -z "$INSTALL"; then
1656
if test "${ac_cv_path_install+set}" = set; then
1657
echo $ECHO_N "(cached) $ECHO_C" >&6
1659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663
test -z "$as_dir" && as_dir=.
1664
# Account for people who put trailing slashes in PATH elements.
1666
./ | .// | /cC/* | \
1667
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1668
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1671
# OSF1 and SCO ODT 3.0 have their own names for install.
1672
# Don't use installbsd from OSF since it installs stuff as root
1674
for ac_prog in ginstall scoinst install; do
1675
for ac_exec_ext in '' $ac_executable_extensions; do
1676
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1677
if test $ac_prog = install &&
1678
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679
# AIX install. It has an incompatible calling convention.
1681
elif test $ac_prog = install &&
1682
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1683
# program-specific install script used by HP pwplus--don't use.
1686
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1698
if test "${ac_cv_path_install+set}" = set; then
1699
INSTALL=$ac_cv_path_install
1701
# As a last resort, use the slow shell script. We don't cache a
1702
# path for INSTALL within a source directory, because that will
1703
# break other packages using the cache if that directory is
1704
# removed, or if the path is relative.
1705
INSTALL=$ac_install_sh
1708
echo "$as_me:$LINENO: result: $INSTALL" >&5
1709
echo "${ECHO_T}$INSTALL" >&6
1711
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1712
# It thinks the first close brace ends the variable substitution.
1713
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1715
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1717
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1719
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1720
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1723
echo timestamp > conftest.file
1724
# Do `set' in a subshell so we don't clobber the current shell's
1725
# arguments. Must try -L first in case configure is actually a
1726
# symlink; some systems play weird games with the mod time of symlinks
1727
# (eg FreeBSD returns the mod time of the symlink's containing
1730
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1731
if test "$*" = "X"; then
1733
set X `ls -t $srcdir/configure conftest.file`
1736
if test "$*" != "X $srcdir/configure conftest.file" \
1737
&& test "$*" != "X conftest.file $srcdir/configure"; then
1739
# If neither matched, then we have a broken ls. This can happen
1740
# if, for instance, CONFIG_SHELL is bash and it inherits a
1741
# broken ls alias from the environment. This has actually
1742
# happened. Such a system could not be considered "sane".
1743
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1744
alias in your environment" >&5
1745
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1746
alias in your environment" >&2;}
1747
{ (exit 1); exit 1; }; }
1750
test "$2" = conftest.file
1756
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1757
Check your system clock" >&5
1758
echo "$as_me: error: newly created file is older than distributed files!
1759
Check your system clock" >&2;}
1760
{ (exit 1); exit 1; }; }
1762
echo "$as_me:$LINENO: result: yes" >&5
1763
echo "${ECHO_T}yes" >&6
1764
test "$program_prefix" != NONE &&
1765
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1766
# Use a double $ so make ignores it.
1767
test "$program_suffix" != NONE &&
1768
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1769
# Double any \ or $. echo might interpret backslashes.
1770
# By default was `s,x,x', remove it if useless.
1771
cat <<\_ACEOF >conftest.sed
1772
s/[\\$]/&&/g;s/;s,x,x,$//
1774
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1777
# expand $ac_aux_dir to an absolute path
1778
am_aux_dir=`cd $ac_aux_dir && pwd`
1780
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1781
# Use eval to expand $SHELL
1782
if eval "$MISSING --run true"; then
1783
am_missing_run="$MISSING --run "
1786
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1787
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1790
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1791
# We used to keeping the `.' as first argument, in order to
1792
# allow $(mkdir_p) to be used without argument. As in
1793
# $(mkdir_p) $(somedir)
1794
# where $(somedir) is conditionally defined. However this is wrong
1796
# 1. if the package is installed by a user who cannot write `.'
1797
# make install will fail,
1798
# 2. the above comment should most certainly read
1799
# $(mkdir_p) $(DESTDIR)$(somedir)
1800
# so it does not work when $(somedir) is undefined and
1801
# $(DESTDIR) is not.
1802
# To support the latter case, we have to write
1803
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1804
# so the `.' trick is pointless.
1805
mkdir_p='mkdir -p --'
1807
# On NextStep and OpenStep, the `mkdir' command does not
1808
# recognize any option. It will interpret all options as
1809
# directories to create, and then abort because `.' already
1811
for d in ./-p ./--version;
1813
test -d $d && rmdir $d
1815
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1816
if test -f "$ac_aux_dir/mkinstalldirs"; then
1817
mkdir_p='$(mkinstalldirs)'
1819
mkdir_p='$(install_sh) -d'
1823
for ac_prog in gawk mawk nawk awk
1825
# Extract the first word of "$ac_prog", so it can be a program name with args.
1826
set dummy $ac_prog; ac_word=$2
1827
echo "$as_me:$LINENO: checking for $ac_word" >&5
1828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829
if test "${ac_cv_prog_AWK+set}" = set; then
1830
echo $ECHO_N "(cached) $ECHO_C" >&6
1832
if test -n "$AWK"; then
1833
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839
test -z "$as_dir" && as_dir=.
1840
for ac_exec_ext in '' $ac_executable_extensions; do
1841
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842
ac_cv_prog_AWK="$ac_prog"
1843
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852
if test -n "$AWK"; then
1853
echo "$as_me:$LINENO: result: $AWK" >&5
1854
echo "${ECHO_T}$AWK" >&6
1856
echo "$as_me:$LINENO: result: no" >&5
1857
echo "${ECHO_T}no" >&6
1860
test -n "$AWK" && break
1863
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1864
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1865
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1866
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1867
echo $ECHO_N "(cached) $ECHO_C" >&6
1869
cat >conftest.make <<\_ACEOF
1871
@echo 'ac_maketemp="$(MAKE)"'
1873
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1874
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1875
if test -n "$ac_maketemp"; then
1876
eval ac_cv_prog_make_${ac_make}_set=yes
1878
eval ac_cv_prog_make_${ac_make}_set=no
1882
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1883
echo "$as_me:$LINENO: result: yes" >&5
1884
echo "${ECHO_T}yes" >&6
1887
echo "$as_me:$LINENO: result: no" >&5
1888
echo "${ECHO_T}no" >&6
1889
SET_MAKE="MAKE=${MAKE-make}"
1892
rm -rf .tst 2>/dev/null
1893
mkdir .tst 2>/dev/null
1894
if test -d .tst; then
1899
rmdir .tst 2>/dev/null
1901
# test to see if srcdir already configured
1902
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1903
test -f $srcdir/config.status; then
1904
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1905
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1906
{ (exit 1); exit 1; }; }
1909
# test whether we have cygpath
1910
if test -z "$CYGPATH_W"; then
1911
if (cygpath --version) >/dev/null 2>/dev/null; then
1912
CYGPATH_W='cygpath -w'
1919
# Define the identity of the package.
1924
cat >>confdefs.h <<_ACEOF
1925
#define PACKAGE "$PACKAGE"
1929
cat >>confdefs.h <<_ACEOF
1930
#define VERSION "$VERSION"
1933
# Some tools Automake needs.
1935
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1938
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1941
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1944
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1947
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1949
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1951
# Installed binaries are usually stripped using `strip' when the user
1952
# run `make install-strip'. However `strip' might not be the right
1953
# tool to use in cross-compilation environments, therefore Automake
1954
# will honor the `STRIP' environment variable to overrule this program.
1955
if test "$cross_compiling" != no; then
1956
if test -n "$ac_tool_prefix"; then
1957
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1958
set dummy ${ac_tool_prefix}strip; ac_word=$2
1959
echo "$as_me:$LINENO: checking for $ac_word" >&5
1960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961
if test "${ac_cv_prog_STRIP+set}" = set; then
1962
echo $ECHO_N "(cached) $ECHO_C" >&6
1964
if test -n "$STRIP"; then
1965
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971
test -z "$as_dir" && as_dir=.
1972
for ac_exec_ext in '' $ac_executable_extensions; do
1973
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1975
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983
STRIP=$ac_cv_prog_STRIP
1984
if test -n "$STRIP"; then
1985
echo "$as_me:$LINENO: result: $STRIP" >&5
1986
echo "${ECHO_T}$STRIP" >&6
1988
echo "$as_me:$LINENO: result: no" >&5
1989
echo "${ECHO_T}no" >&6
1993
if test -z "$ac_cv_prog_STRIP"; then
1995
# Extract the first word of "strip", so it can be a program name with args.
1996
set dummy strip; ac_word=$2
1997
echo "$as_me:$LINENO: checking for $ac_word" >&5
1998
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2000
echo $ECHO_N "(cached) $ECHO_C" >&6
2002
if test -n "$ac_ct_STRIP"; then
2003
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009
test -z "$as_dir" && as_dir=.
2010
for ac_exec_ext in '' $ac_executable_extensions; do
2011
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012
ac_cv_prog_ac_ct_STRIP="strip"
2013
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2022
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2023
if test -n "$ac_ct_STRIP"; then
2024
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2025
echo "${ECHO_T}$ac_ct_STRIP" >&6
2027
echo "$as_me:$LINENO: result: no" >&5
2028
echo "${ECHO_T}no" >&6
2033
STRIP="$ac_cv_prog_STRIP"
2037
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2039
# We need awk for the "check" target. The system "awk" is bad on
2041
# Always define AMTAR for backward compatibility.
2043
AMTAR=${AMTAR-"${am_missing_run}tar"}
2045
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2053
ac_cpp='$CPP $CPPFLAGS'
2054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
if test -n "$ac_tool_prefix"; then
2058
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2059
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2060
echo "$as_me:$LINENO: checking for $ac_word" >&5
2061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062
if test "${ac_cv_prog_CC+set}" = set; then
2063
echo $ECHO_N "(cached) $ECHO_C" >&6
2065
if test -n "$CC"; then
2066
ac_cv_prog_CC="$CC" # Let the user override the test.
2068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072
test -z "$as_dir" && as_dir=.
2073
for ac_exec_ext in '' $ac_executable_extensions; do
2074
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2076
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085
if test -n "$CC"; then
2086
echo "$as_me:$LINENO: result: $CC" >&5
2087
echo "${ECHO_T}$CC" >&6
2089
echo "$as_me:$LINENO: result: no" >&5
2090
echo "${ECHO_T}no" >&6
2094
if test -z "$ac_cv_prog_CC"; then
2096
# Extract the first word of "gcc", so it can be a program name with args.
2097
set dummy gcc; ac_word=$2
2098
echo "$as_me:$LINENO: checking for $ac_word" >&5
2099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101
echo $ECHO_N "(cached) $ECHO_C" >&6
2103
if test -n "$ac_ct_CC"; then
2104
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110
test -z "$as_dir" && as_dir=.
2111
for ac_exec_ext in '' $ac_executable_extensions; do
2112
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113
ac_cv_prog_ac_ct_CC="gcc"
2114
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123
if test -n "$ac_ct_CC"; then
2124
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125
echo "${ECHO_T}$ac_ct_CC" >&6
2127
echo "$as_me:$LINENO: result: no" >&5
2128
echo "${ECHO_T}no" >&6
2136
if test -z "$CC"; then
2137
if test -n "$ac_tool_prefix"; then
2138
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139
set dummy ${ac_tool_prefix}cc; ac_word=$2
2140
echo "$as_me:$LINENO: checking for $ac_word" >&5
2141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142
if test "${ac_cv_prog_CC+set}" = set; then
2143
echo $ECHO_N "(cached) $ECHO_C" >&6
2145
if test -n "$CC"; then
2146
ac_cv_prog_CC="$CC" # Let the user override the test.
2148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152
test -z "$as_dir" && as_dir=.
2153
for ac_exec_ext in '' $ac_executable_extensions; do
2154
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155
ac_cv_prog_CC="${ac_tool_prefix}cc"
2156
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165
if test -n "$CC"; then
2166
echo "$as_me:$LINENO: result: $CC" >&5
2167
echo "${ECHO_T}$CC" >&6
2169
echo "$as_me:$LINENO: result: no" >&5
2170
echo "${ECHO_T}no" >&6
2174
if test -z "$ac_cv_prog_CC"; then
2176
# Extract the first word of "cc", so it can be a program name with args.
2177
set dummy cc; ac_word=$2
2178
echo "$as_me:$LINENO: checking for $ac_word" >&5
2179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181
echo $ECHO_N "(cached) $ECHO_C" >&6
2183
if test -n "$ac_ct_CC"; then
2184
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190
test -z "$as_dir" && as_dir=.
2191
for ac_exec_ext in '' $ac_executable_extensions; do
2192
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193
ac_cv_prog_ac_ct_CC="cc"
2194
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203
if test -n "$ac_ct_CC"; then
2204
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205
echo "${ECHO_T}$ac_ct_CC" >&6
2207
echo "$as_me:$LINENO: result: no" >&5
2208
echo "${ECHO_T}no" >&6
2217
if test -z "$CC"; then
2218
# Extract the first word of "cc", so it can be a program name with args.
2219
set dummy cc; ac_word=$2
2220
echo "$as_me:$LINENO: checking for $ac_word" >&5
2221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222
if test "${ac_cv_prog_CC+set}" = set; then
2223
echo $ECHO_N "(cached) $ECHO_C" >&6
2225
if test -n "$CC"; then
2226
ac_cv_prog_CC="$CC" # Let the user override the test.
2229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233
test -z "$as_dir" && as_dir=.
2234
for ac_exec_ext in '' $ac_executable_extensions; do
2235
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2237
ac_prog_rejected=yes
2241
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247
if test $ac_prog_rejected = yes; then
2248
# We found a bogon in the path, so make sure we never use it.
2249
set dummy $ac_cv_prog_CC
2251
if test $# != 0; then
2252
# We chose a different compiler from the bogus one.
2253
# However, it has the same basename, so the bogon will be chosen
2254
# first if we set CC to just the basename; use the full file name.
2256
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2262
if test -n "$CC"; then
2263
echo "$as_me:$LINENO: result: $CC" >&5
2264
echo "${ECHO_T}$CC" >&6
2266
echo "$as_me:$LINENO: result: no" >&5
2267
echo "${ECHO_T}no" >&6
2271
if test -z "$CC"; then
2272
if test -n "$ac_tool_prefix"; then
2275
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277
echo "$as_me:$LINENO: checking for $ac_word" >&5
2278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2279
if test "${ac_cv_prog_CC+set}" = set; then
2280
echo $ECHO_N "(cached) $ECHO_C" >&6
2282
if test -n "$CC"; then
2283
ac_cv_prog_CC="$CC" # Let the user override the test.
2285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289
test -z "$as_dir" && as_dir=.
2290
for ac_exec_ext in '' $ac_executable_extensions; do
2291
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2292
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302
if test -n "$CC"; then
2303
echo "$as_me:$LINENO: result: $CC" >&5
2304
echo "${ECHO_T}$CC" >&6
2306
echo "$as_me:$LINENO: result: no" >&5
2307
echo "${ECHO_T}no" >&6
2310
test -n "$CC" && break
2313
if test -z "$CC"; then
2317
# Extract the first word of "$ac_prog", so it can be a program name with args.
2318
set dummy $ac_prog; ac_word=$2
2319
echo "$as_me:$LINENO: checking for $ac_word" >&5
2320
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2322
echo $ECHO_N "(cached) $ECHO_C" >&6
2324
if test -n "$ac_ct_CC"; then
2325
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331
test -z "$as_dir" && as_dir=.
2332
for ac_exec_ext in '' $ac_executable_extensions; do
2333
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334
ac_cv_prog_ac_ct_CC="$ac_prog"
2335
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344
if test -n "$ac_ct_CC"; then
2345
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2346
echo "${ECHO_T}$ac_ct_CC" >&6
2348
echo "$as_me:$LINENO: result: no" >&5
2349
echo "${ECHO_T}no" >&6
2352
test -n "$ac_ct_CC" && break
2361
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362
See \`config.log' for more details." >&5
2363
echo "$as_me: error: no acceptable C compiler found in \$PATH
2364
See \`config.log' for more details." >&2;}
2365
{ (exit 1); exit 1; }; }
2367
# Provide some information about the compiler.
2368
echo "$as_me:$LINENO:" \
2369
"checking for C compiler version" >&5
2370
ac_compiler=`set X $ac_compile; echo $2`
2371
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372
(eval $ac_compiler --version </dev/null >&5) 2>&5
2374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375
(exit $ac_status); }
2376
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377
(eval $ac_compiler -v </dev/null >&5) 2>&5
2379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380
(exit $ac_status); }
2381
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382
(eval $ac_compiler -V </dev/null >&5) 2>&5
2384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385
(exit $ac_status); }
2387
cat >conftest.$ac_ext <<_ACEOF
2390
cat confdefs.h >>conftest.$ac_ext
2391
cat >>conftest.$ac_ext <<_ACEOF
2392
/* end confdefs.h. */
2402
ac_clean_files_save=$ac_clean_files
2403
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404
# Try to create an executable without -o first, disregard a.out.
2405
# It will help us diagnose broken compilers, and finding out an intuition
2407
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411
(eval $ac_link_default) 2>&5
2413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414
(exit $ac_status); }; then
2415
# Find the output, starting from the most likely. This scheme is
2416
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2419
# Be careful to initialize this variable, since it used to be cached.
2420
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2422
# b.out is created by i960 compilers.
2423
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2425
test -f "$ac_file" || continue
2427
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2430
# This is the source file.
2433
# We found the default executable, but exeext='' is most
2437
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438
# FIXME: I believe we export ac_cv_exeext for Libtool,
2439
# but it would be cool to find out if it's true. Does anybody
2440
# maintain Libtool? --akim.
2448
echo "$as_me: failed program was:" >&5
2449
sed 's/^/| /' conftest.$ac_ext >&5
2451
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2452
See \`config.log' for more details." >&5
2453
echo "$as_me: error: C compiler cannot create executables
2454
See \`config.log' for more details." >&2;}
2455
{ (exit 77); exit 77; }; }
2458
ac_exeext=$ac_cv_exeext
2459
echo "$as_me:$LINENO: result: $ac_file" >&5
2460
echo "${ECHO_T}$ac_file" >&6
2462
# Check the compiler produces executables we can run. If not, either
2463
# the compiler is broken, or we cross compile.
2464
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2465
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2466
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2467
# If not cross compiling, check that we can run a simple program.
2468
if test "$cross_compiling" != yes; then
2469
if { ac_try='./$ac_file'
2470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474
(exit $ac_status); }; }; then
2477
if test "$cross_compiling" = maybe; then
2480
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481
If you meant to cross compile, use \`--host'.
2482
See \`config.log' for more details." >&5
2483
echo "$as_me: error: cannot run C compiled programs.
2484
If you meant to cross compile, use \`--host'.
2485
See \`config.log' for more details." >&2;}
2486
{ (exit 1); exit 1; }; }
2490
echo "$as_me:$LINENO: result: yes" >&5
2491
echo "${ECHO_T}yes" >&6
2493
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2494
ac_clean_files=$ac_clean_files_save
2495
# Check the compiler produces executables we can run. If not, either
2496
# the compiler is broken, or we cross compile.
2497
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2499
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500
echo "${ECHO_T}$cross_compiling" >&6
2502
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505
(eval $ac_link) 2>&5
2507
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508
(exit $ac_status); }; then
2509
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2510
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2511
# work properly (i.e., refer to `conftest.exe'), while it won't with
2513
for ac_file in conftest.exe conftest conftest.*; do
2514
test -f "$ac_file" || continue
2516
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2517
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525
See \`config.log' for more details." >&5
2526
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527
See \`config.log' for more details." >&2;}
2528
{ (exit 1); exit 1; }; }
2531
rm -f conftest$ac_cv_exeext
2532
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533
echo "${ECHO_T}$ac_cv_exeext" >&6
2535
rm -f conftest.$ac_ext
2536
EXEEXT=$ac_cv_exeext
2538
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2540
if test "${ac_cv_objext+set}" = set; then
2541
echo $ECHO_N "(cached) $ECHO_C" >&6
2543
cat >conftest.$ac_ext <<_ACEOF
2546
cat confdefs.h >>conftest.$ac_ext
2547
cat >>conftest.$ac_ext <<_ACEOF
2548
/* end confdefs.h. */
2558
rm -f conftest.o conftest.obj
2559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560
(eval $ac_compile) 2>&5
2562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563
(exit $ac_status); }; then
2564
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2566
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2567
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572
echo "$as_me: failed program was:" >&5
2573
sed 's/^/| /' conftest.$ac_ext >&5
2575
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2576
See \`config.log' for more details." >&5
2577
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2578
See \`config.log' for more details." >&2;}
2579
{ (exit 1); exit 1; }; }
2582
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2585
echo "${ECHO_T}$ac_cv_objext" >&6
2586
OBJEXT=$ac_cv_objext
2588
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591
echo $ECHO_N "(cached) $ECHO_C" >&6
2593
cat >conftest.$ac_ext <<_ACEOF
2596
cat confdefs.h >>conftest.$ac_ext
2597
cat >>conftest.$ac_ext <<_ACEOF
2598
/* end confdefs.h. */
2611
rm -f conftest.$ac_objext
2612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613
(eval $ac_compile) 2>conftest.er1
2615
grep -v '^ *+' conftest.er1 >conftest.err
2617
cat conftest.err >&5
2618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
(exit $ac_status); } &&
2620
{ ac_try='test -z "$ac_c_werror_flag"
2621
|| test ! -s conftest.err'
2622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626
(exit $ac_status); }; } &&
2627
{ ac_try='test -s conftest.$ac_objext'
2628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632
(exit $ac_status); }; }; then
2635
echo "$as_me: failed program was:" >&5
2636
sed 's/^/| /' conftest.$ac_ext >&5
2640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646
GCC=`test $ac_compiler_gnu = yes && echo yes`
2647
ac_test_CFLAGS=${CFLAGS+set}
2648
ac_save_CFLAGS=$CFLAGS
2650
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652
if test "${ac_cv_prog_cc_g+set}" = set; then
2653
echo $ECHO_N "(cached) $ECHO_C" >&6
2655
cat >conftest.$ac_ext <<_ACEOF
2658
cat confdefs.h >>conftest.$ac_ext
2659
cat >>conftest.$ac_ext <<_ACEOF
2660
/* end confdefs.h. */
2670
rm -f conftest.$ac_objext
2671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672
(eval $ac_compile) 2>conftest.er1
2674
grep -v '^ *+' conftest.er1 >conftest.err
2676
cat conftest.err >&5
2677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678
(exit $ac_status); } &&
2679
{ ac_try='test -z "$ac_c_werror_flag"
2680
|| test ! -s conftest.err'
2681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685
(exit $ac_status); }; } &&
2686
{ ac_try='test -s conftest.$ac_objext'
2687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
(exit $ac_status); }; }; then
2694
echo "$as_me: failed program was:" >&5
2695
sed 's/^/| /' conftest.$ac_ext >&5
2699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703
if test "$ac_test_CFLAGS" = set; then
2704
CFLAGS=$ac_save_CFLAGS
2705
elif test $ac_cv_prog_cc_g = yes; then
2706
if test "$GCC" = yes; then
2712
if test "$GCC" = yes; then
2718
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721
echo $ECHO_N "(cached) $ECHO_C" >&6
2723
ac_cv_prog_cc_stdc=no
2725
cat >conftest.$ac_ext <<_ACEOF
2728
cat confdefs.h >>conftest.$ac_ext
2729
cat >>conftest.$ac_ext <<_ACEOF
2730
/* end confdefs.h. */
2733
#include <sys/types.h>
2734
#include <sys/stat.h>
2735
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736
struct buf { int x; };
2737
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738
static char *e (p, i)
2744
static char *f (char * (*g) (char **, int), char **p, ...)
2749
s = g (p, va_arg (v,int));
2754
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755
function prototypes and stuff, but not '\xHH' hex character constants.
2756
These don't provoke an error unfortunately, instead are silently treated
2757
as 'x'. The following induces an error, until -std1 is added to get
2758
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759
array size at least. It's necessary to write '\x00'==0 to get something
2760
that's true only with -std1. */
2761
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2763
int test (int i, double x);
2764
struct s1 {int (*f) (int a);};
2765
struct s2 {int (*f) (double a);};
2766
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2772
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2777
# Don't try gcc -ansi; that turns off useful extensions and
2778
# breaks some systems' header files.
2779
# AIX -qlanglvl=ansi
2780
# Ultrix and OSF/1 -std1
2781
# HP-UX 10.20 and later -Ae
2782
# HP-UX older versions -Aa -D_HPUX_SOURCE
2783
# SVR4 -Xc -D__EXTENSIONS__
2784
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786
CC="$ac_save_CC $ac_arg"
2787
rm -f conftest.$ac_objext
2788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789
(eval $ac_compile) 2>conftest.er1
2791
grep -v '^ *+' conftest.er1 >conftest.err
2793
cat conftest.err >&5
2794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795
(exit $ac_status); } &&
2796
{ ac_try='test -z "$ac_c_werror_flag"
2797
|| test ! -s conftest.err'
2798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802
(exit $ac_status); }; } &&
2803
{ ac_try='test -s conftest.$ac_objext'
2804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808
(exit $ac_status); }; }; then
2809
ac_cv_prog_cc_stdc=$ac_arg
2812
echo "$as_me: failed program was:" >&5
2813
sed 's/^/| /' conftest.$ac_ext >&5
2816
rm -f conftest.err conftest.$ac_objext
2818
rm -f conftest.$ac_ext conftest.$ac_objext
2823
case "x$ac_cv_prog_cc_stdc" in
2825
echo "$as_me:$LINENO: result: none needed" >&5
2826
echo "${ECHO_T}none needed" >&6 ;;
2828
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830
CC="$CC $ac_cv_prog_cc_stdc" ;;
2833
# Some people use a C++ compiler to compile C. Since we use `exit',
2834
# in C++ we need to declare it. In case someone uses the same compiler
2835
# for both compiling C and C++ we need to have the C++ compiler decide
2836
# the declaration of exit, since it's the most demanding environment.
2837
cat >conftest.$ac_ext <<_ACEOF
2842
rm -f conftest.$ac_objext
2843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844
(eval $ac_compile) 2>conftest.er1
2846
grep -v '^ *+' conftest.er1 >conftest.err
2848
cat conftest.err >&5
2849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850
(exit $ac_status); } &&
2851
{ ac_try='test -z "$ac_c_werror_flag"
2852
|| test ! -s conftest.err'
2853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857
(exit $ac_status); }; } &&
2858
{ ac_try='test -s conftest.$ac_objext'
2859
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863
(exit $ac_status); }; }; then
2864
for ac_declaration in \
2866
'extern "C" void std::exit (int) throw (); using std::exit;' \
2867
'extern "C" void std::exit (int); using std::exit;' \
2868
'extern "C" void exit (int) throw ();' \
2869
'extern "C" void exit (int);' \
2872
cat >conftest.$ac_ext <<_ACEOF
2875
cat confdefs.h >>conftest.$ac_ext
2876
cat >>conftest.$ac_ext <<_ACEOF
2877
/* end confdefs.h. */
2888
rm -f conftest.$ac_objext
2889
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890
(eval $ac_compile) 2>conftest.er1
2892
grep -v '^ *+' conftest.er1 >conftest.err
2894
cat conftest.err >&5
2895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896
(exit $ac_status); } &&
2897
{ ac_try='test -z "$ac_c_werror_flag"
2898
|| test ! -s conftest.err'
2899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903
(exit $ac_status); }; } &&
2904
{ ac_try='test -s conftest.$ac_objext'
2905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909
(exit $ac_status); }; }; then
2912
echo "$as_me: failed program was:" >&5
2913
sed 's/^/| /' conftest.$ac_ext >&5
2917
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918
cat >conftest.$ac_ext <<_ACEOF
2921
cat confdefs.h >>conftest.$ac_ext
2922
cat >>conftest.$ac_ext <<_ACEOF
2923
/* end confdefs.h. */
2933
rm -f conftest.$ac_objext
2934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935
(eval $ac_compile) 2>conftest.er1
2937
grep -v '^ *+' conftest.er1 >conftest.err
2939
cat conftest.err >&5
2940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941
(exit $ac_status); } &&
2942
{ ac_try='test -z "$ac_c_werror_flag"
2943
|| test ! -s conftest.err'
2944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948
(exit $ac_status); }; } &&
2949
{ ac_try='test -s conftest.$ac_objext'
2950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954
(exit $ac_status); }; }; then
2957
echo "$as_me: failed program was:" >&5
2958
sed 's/^/| /' conftest.$ac_ext >&5
2961
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2964
if test -n "$ac_declaration"; then
2965
echo '#ifdef __cplusplus' >>confdefs.h
2966
echo $ac_declaration >>confdefs.h
2967
echo '#endif' >>confdefs.h
2971
echo "$as_me: failed program was:" >&5
2972
sed 's/^/| /' conftest.$ac_ext >&5
2975
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977
ac_cpp='$CPP $CPPFLAGS'
2978
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
DEPDIR="${am__leading_dot}deps"
2983
ac_config_commands="$ac_config_commands depfiles"
2986
am_make=${MAKE-make}
2987
cat > confinc << 'END'
2992
# If we don't find an include directive, just comment out the code.
2993
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2994
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2998
# First try GNU make style include.
2999
echo "include confinc" > confmf
3000
# We grep out `Entering directory' and `Leaving directory'
3001
# messages which can occur if `w' ends up in MAKEFLAGS.
3002
# In particular we don't look at `^make:' because GNU make might
3003
# be invoked under some other name (usually "gmake"), in which
3004
# case it prints its new name instead of `make'.
3005
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3010
# Now try BSD make style include.
3011
if test "$am__include" = "#"; then
3012
echo '.include "confinc"' > confmf
3013
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3014
am__include=.include
3021
echo "$as_me:$LINENO: result: $_am_result" >&5
3022
echo "${ECHO_T}$_am_result" >&6
3023
rm -f confinc confmf
3025
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3026
if test "${enable_dependency_tracking+set}" = set; then
3027
enableval="$enable_dependency_tracking"
3030
if test "x$enable_dependency_tracking" != xno; then
3031
am_depcomp="$ac_aux_dir/depcomp"
3036
if test "x$enable_dependency_tracking" != xno; then
3047
depcc="$CC" am_compiler_list=
3049
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3050
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3051
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3052
echo $ECHO_N "(cached) $ECHO_C" >&6
3054
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3055
# We make a subdir and do the tests there. Otherwise we can end up
3056
# making bogus files that we don't know about and never remove. For
3057
# instance it was reported that on HP-UX the gcc test will end up
3058
# making a dummy file named `D' -- because `-MD' means `put the output
3061
# Copy depcomp to subdir because otherwise we won't find it if we're
3062
# using a relative directory.
3063
cp "$am_depcomp" conftest.dir
3065
# We will build objects and dependencies in a subdirectory because
3066
# it helps to detect inapplicable dependency modes. For instance
3067
# both Tru64's cc and ICC support -MD to output dependencies as a
3068
# side effect of compilation, but ICC will put the dependencies in
3069
# the current directory while Tru64 will put them in the object
3073
am_cv_CC_dependencies_compiler_type=none
3074
if test "$am_compiler_list" = ""; then
3075
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3077
for depmode in $am_compiler_list; do
3078
# Setup a source with many dependencies, because some compilers
3079
# like to wrap large dependency lists on column 80 (with \), and
3080
# we should not choose a depcomp mode which is confused by this.
3082
# We need to recreate these files for each test, as the compiler may
3083
# overwrite some of them when testing with obscure command lines.
3084
# This happens at least with the AIX C compiler.
3086
for i in 1 2 3 4 5 6; do
3087
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3088
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3089
# Solaris 8's {/usr,}/bin/sh.
3090
touch sub/conftst$i.h
3092
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3096
# after this tag, mechanisms are not by side-effect, so they'll
3097
# only be used when explicitly requested
3098
if test "x$enable_dependency_tracking" = xyes; then
3106
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3107
# mode. It turns out that the SunPro C++ compiler does not properly
3108
# handle `-M -o', and we need to detect this.
3109
if depmode=$depmode \
3110
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3111
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3112
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3113
>/dev/null 2>conftest.err &&
3114
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3115
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3116
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3117
# icc doesn't choke on unknown options, it will just issue warnings
3118
# or remarks (even with -Werror). So we grep stderr for any message
3119
# that says an option was ignored or not supported.
3120
# When given -MP, icc 7.0 and 7.1 complain thusly:
3121
# icc: Command line warning: ignoring option '-M'; no argument required
3122
# The diagnosis changed in icc 8.0:
3123
# icc: Command line remark: option '-MP' not supported
3124
if (grep 'ignoring option' conftest.err ||
3125
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3126
am_cv_CC_dependencies_compiler_type=$depmode
3135
am_cv_CC_dependencies_compiler_type=none
3139
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3140
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3141
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3146
test "x$enable_dependency_tracking" != xno \
3147
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3149
am__fastdepCC_FALSE='#'
3151
am__fastdepCC_TRUE='#'
3152
am__fastdepCC_FALSE=
3157
# By default we simply use the C compiler to build assembly code.
3159
test "${CCAS+set}" = set || CCAS=$CC
3160
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3164
if test "x$CC" != xcc; then
3165
echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3166
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3168
echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3169
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3171
set dummy $CC; ac_cc=`echo $2 |
3172
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3173
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3174
echo $ECHO_N "(cached) $ECHO_C" >&6
3176
cat >conftest.$ac_ext <<_ACEOF
3179
cat confdefs.h >>conftest.$ac_ext
3180
cat >>conftest.$ac_ext <<_ACEOF
3181
/* end confdefs.h. */
3191
# Make sure it works both with $CC and with simple cc.
3192
# We do the test twice because some compilers refuse to overwrite an
3193
# existing .o file with -o, though they will create one.
3194
ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3195
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199
(exit $ac_status); } &&
3200
test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204
(exit $ac_status); };
3206
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3207
if test "x$CC" != xcc; then
3208
# Test first that cc exists at all.
3209
if { ac_try='cc -c conftest.$ac_ext >&5'
3210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214
(exit $ac_status); }; }; then
3215
ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3216
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220
(exit $ac_status); } &&
3221
test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225
(exit $ac_status); };
3230
# cc exists but doesn't like -o.
3231
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3236
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3241
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3242
echo "$as_me:$LINENO: result: yes" >&5
3243
echo "${ECHO_T}yes" >&6
3245
echo "$as_me:$LINENO: result: no" >&5
3246
echo "${ECHO_T}no" >&6
3248
cat >>confdefs.h <<\_ACEOF
3249
#define NO_MINUS_C_MINUS_O 1
3254
# FIXME: we rely on the cache variable name because
3255
# there is no other way.
3257
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3258
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3259
# Losing compiler, so override with the script.
3260
# FIXME: It is wrong to rewrite CC.
3261
# But if we don't then we get into trouble of one sort or another.
3262
# A longer-term fix would be to have automake use am__CC in this case,
3263
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3264
CC="$am_aux_dir/compile $CC"
3267
# Check whether --enable-shared or --disable-shared was given.
3268
if test "${enable_shared+set}" = set; then
3269
enableval="$enable_shared"
3270
p=${PACKAGE-default}
3272
yes) enable_shared=yes ;;
3273
no) enable_shared=no ;;
3276
# Look at the argument we got. We use all the common list separators.
3277
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3278
for pkg in $enableval; do
3280
if test "X$pkg" = "X$p"; then
3291
# Check whether --enable-static or --disable-static was given.
3292
if test "${enable_static+set}" = set; then
3293
enableval="$enable_static"
3294
p=${PACKAGE-default}
3296
yes) enable_static=yes ;;
3297
no) enable_static=no ;;
3300
# Look at the argument we got. We use all the common list separators.
3301
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3302
for pkg in $enableval; do
3304
if test "X$pkg" = "X$p"; then
3315
# Check whether --enable-fast-install or --disable-fast-install was given.
3316
if test "${enable_fast_install+set}" = set; then
3317
enableval="$enable_fast_install"
3318
p=${PACKAGE-default}
3320
yes) enable_fast_install=yes ;;
3321
no) enable_fast_install=no ;;
3323
enable_fast_install=no
3324
# Look at the argument we got. We use all the common list separators.
3325
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3326
for pkg in $enableval; do
3328
if test "X$pkg" = "X$p"; then
3329
enable_fast_install=yes
3336
enable_fast_install=yes
3339
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3340
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3341
if test "${lt_cv_path_SED+set}" = set; then
3342
echo $ECHO_N "(cached) $ECHO_C" >&6
3344
# Loop through the user's path and test for sed and gsed.
3345
# Then use that list of sed's as ones to test for truncation.
3346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350
test -z "$as_dir" && as_dir=.
3351
for lt_ac_prog in sed gsed; do
3352
for ac_exec_ext in '' $ac_executable_extensions; do
3353
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3354
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3361
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3362
# along with /bin/sed that truncates output.
3363
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3364
test ! -f $lt_ac_sed && continue
3365
cat /dev/null > conftest.in
3367
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3368
# Check for GNU sed and select it if it is found.
3369
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3370
lt_cv_path_SED=$lt_ac_sed
3374
cat conftest.in conftest.in >conftest.tmp
3375
mv conftest.tmp conftest.in
3376
cp conftest.in conftest.nl
3378
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3379
cmp -s conftest.out conftest.nl || break
3380
# 10000 chars as input seems more than enough
3381
test $lt_ac_count -gt 10 && break
3382
lt_ac_count=`expr $lt_ac_count + 1`
3383
if test $lt_ac_count -gt $lt_ac_max; then
3384
lt_ac_max=$lt_ac_count
3385
lt_cv_path_SED=$lt_ac_sed
3393
echo "$as_me:$LINENO: result: $SED" >&5
3394
echo "${ECHO_T}$SED" >&6
3396
echo "$as_me:$LINENO: checking for egrep" >&5
3397
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3398
if test "${ac_cv_prog_egrep+set}" = set; then
3399
echo $ECHO_N "(cached) $ECHO_C" >&6
3401
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3402
then ac_cv_prog_egrep='grep -E'
3403
else ac_cv_prog_egrep='egrep'
3406
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3407
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3408
EGREP=$ac_cv_prog_egrep
3412
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3413
if test "${with_gnu_ld+set}" = set; then
3414
withval="$with_gnu_ld"
3415
test "$withval" = no || with_gnu_ld=yes
3420
if test "$GCC" = yes; then
3421
# Check if gcc -print-prog-name=ld gives a path.
3422
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3423
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3426
# gcc leaves a trailing carriage return which upsets mingw
3427
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3429
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3432
# Accept absolute paths.
3434
re_direlt='/[^/][^/]*/\.\./'
3435
# Canonicalize the pathname of ld
3436
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3437
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3438
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3440
test -z "$LD" && LD="$ac_prog"
3443
# If it fails, then pretend we aren't using GCC.
3447
# If it is relative, then search for the first ld in PATH.
3451
elif test "$with_gnu_ld" = yes; then
3452
echo "$as_me:$LINENO: checking for GNU ld" >&5
3453
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3455
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3456
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3458
if test "${lt_cv_path_LD+set}" = set; then
3459
echo $ECHO_N "(cached) $ECHO_C" >&6
3461
if test -z "$LD"; then
3462
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3463
for ac_dir in $PATH; do
3465
test -z "$ac_dir" && ac_dir=.
3466
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3467
lt_cv_path_LD="$ac_dir/$ac_prog"
3468
# Check to see if the program is GNU ld. I'd rather use --version,
3469
# but apparently some variants of GNU ld only accept -v.
3470
# Break only if it was the GNU/non-GNU ld that we prefer.
3471
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3472
*GNU* | *'with BFD'*)
3473
test "$with_gnu_ld" != no && break
3476
test "$with_gnu_ld" != yes && break
3483
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3488
if test -n "$LD"; then
3489
echo "$as_me:$LINENO: result: $LD" >&5
3490
echo "${ECHO_T}$LD" >&6
3492
echo "$as_me:$LINENO: result: no" >&5
3493
echo "${ECHO_T}no" >&6
3495
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3496
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3497
{ (exit 1); exit 1; }; }
3498
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3499
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3500
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3501
echo $ECHO_N "(cached) $ECHO_C" >&6
3503
# I'd rather use --version here, but apparently some GNU lds only accept -v.
3504
case `$LD -v 2>&1 </dev/null` in
3505
*GNU* | *'with BFD'*)
3506
lt_cv_prog_gnu_ld=yes
3509
lt_cv_prog_gnu_ld=no
3513
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3514
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3515
with_gnu_ld=$lt_cv_prog_gnu_ld
3518
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3519
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3520
if test "${lt_cv_ld_reload_flag+set}" = set; then
3521
echo $ECHO_N "(cached) $ECHO_C" >&6
3523
lt_cv_ld_reload_flag='-r'
3525
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3526
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3527
reload_flag=$lt_cv_ld_reload_flag
3528
case $reload_flag in
3530
*) reload_flag=" $reload_flag" ;;
3532
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3535
if test "$GCC" = yes; then
3536
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3538
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3543
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3544
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3545
if test "${lt_cv_path_NM+set}" = set; then
3546
echo $ECHO_N "(cached) $ECHO_C" >&6
3548
if test -n "$NM"; then
3549
# Let the user override the test.
3552
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3553
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3555
test -z "$ac_dir" && ac_dir=.
3556
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3557
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3558
# Check to see if the nm accepts a BSD-compat flag.
3559
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3560
# nm: unknown option "B" ignored
3561
# Tru64's nm complains that /dev/null is an invalid object file
3562
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3563
*/dev/null* | *'Invalid file or object type'*)
3564
lt_cv_path_NM="$tmp_nm -B"
3568
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3570
lt_cv_path_NM="$tmp_nm -p"
3574
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3575
continue # so that we can try to find one that supports BSD flags
3582
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3585
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3586
echo "${ECHO_T}$lt_cv_path_NM" >&6
3589
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3590
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3592
if test "$LN_S" = "ln -s"; then
3593
echo "$as_me:$LINENO: result: yes" >&5
3594
echo "${ECHO_T}yes" >&6
3596
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3597
echo "${ECHO_T}no, using $LN_S" >&6
3600
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3601
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3602
if test "${lt_cv_deplibs_check_method+set}" = set; then
3603
echo $ECHO_N "(cached) $ECHO_C" >&6
3605
lt_cv_file_magic_cmd='$MAGIC_CMD'
3606
lt_cv_file_magic_test_file=
3607
lt_cv_deplibs_check_method='unknown'
3608
# Need to set the preceding variable on all platforms that support
3609
# interlibrary dependencies.
3610
# 'none' -- dependencies not supported.
3611
# `unknown' -- same as none, but documents that we really don't know.
3612
# 'pass_all' -- all dependencies passed with no checks.
3613
# 'test_compile' -- check by making test program.
3614
# 'file_magic [[regex]]' -- check by looking for files in library path
3615
# which responds to the $file_magic_cmd with a given extended regex.
3616
# If you have `file' or equivalent on your system and you're not sure
3617
# whether `pass_all' will *always* work, you probably want this one.
3621
lt_cv_deplibs_check_method=pass_all
3625
lt_cv_deplibs_check_method=pass_all
3629
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3630
lt_cv_file_magic_cmd='/usr/bin/file -L'
3631
lt_cv_file_magic_test_file=/shlib/libc.so
3635
# func_win32_libid is a shell function defined in ltmain.sh
3636
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3637
lt_cv_file_magic_cmd='func_win32_libid'
3641
# Base MSYS/MinGW do not provide the 'file' command needed by
3642
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3643
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3644
lt_cv_file_magic_cmd='$OBJDUMP -f'
3647
darwin* | rhapsody*)
3648
lt_cv_deplibs_check_method=pass_all
3651
freebsd* | kfreebsd*-gnu | dragonfly*)
3652
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3655
# Not sure whether the presence of OpenBSD here was a mistake.
3656
# Let's accept both of them until this is cleared up.
3657
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3658
lt_cv_file_magic_cmd=/usr/bin/file
3659
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3663
lt_cv_deplibs_check_method=pass_all
3668
lt_cv_deplibs_check_method=pass_all
3671
hpux10.20* | hpux11*)
3672
lt_cv_file_magic_cmd=/usr/bin/file
3675
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3676
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3679
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]'
3680
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3683
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3684
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3689
irix5* | irix6* | nonstopux*)
3691
*-32|*"-32 ") libmagic=32-bit;;
3692
*-n32|*"-n32 ") libmagic=N32;;
3693
*-64|*"-64 ") libmagic=64-bit;;
3694
*) libmagic=never-match;;
3696
lt_cv_deplibs_check_method=pass_all
3699
# This must be Linux ELF.
3701
lt_cv_deplibs_check_method=pass_all
3705
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3706
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3708
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3713
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3714
lt_cv_file_magic_cmd=/usr/bin/file
3715
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3719
lt_cv_deplibs_check_method=unknown
3723
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3724
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3726
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3730
osf3* | osf4* | osf5*)
3731
lt_cv_deplibs_check_method=pass_all
3735
lt_cv_deplibs_check_method=pass_all
3739
lt_cv_deplibs_check_method=pass_all
3742
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3743
case $host_vendor in
3745
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]'
3746
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3749
lt_cv_deplibs_check_method=pass_all
3752
lt_cv_file_magic_cmd='/bin/file'
3753
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3756
lt_cv_file_magic_cmd='/bin/file'
3757
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3758
lt_cv_file_magic_test_file=/lib/libc.so
3761
lt_cv_deplibs_check_method=pass_all
3766
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3767
lt_cv_deplibs_check_method=pass_all
3772
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3773
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3774
file_magic_cmd=$lt_cv_file_magic_cmd
3775
deplibs_check_method=$lt_cv_deplibs_check_method
3776
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3781
# If no C compiler was specified, use CC.
3784
# Allow CC to be a program name with arguments.
3788
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3789
if test "${enable_libtool_lock+set}" = set; then
3790
enableval="$enable_libtool_lock"
3793
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3795
# Some flags need to be propagated to the compiler or linker for good
3799
# Find out which ABI we are using.
3800
echo 'int i;' > conftest.$ac_ext
3801
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802
(eval $ac_compile) 2>&5
3804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805
(exit $ac_status); }; then
3806
case `/usr/bin/file conftest.$ac_objext` in
3818
# Find out which ABI we are using.
3819
echo '#line 3819 "configure"' > conftest.$ac_ext
3820
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3821
(eval $ac_compile) 2>&5
3823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824
(exit $ac_status); }; then
3825
if test "$lt_cv_prog_gnu_ld" = yes; then
3826
case `/usr/bin/file conftest.$ac_objext` in
3828
LD="${LD-ld} -melf32bsmip"
3831
LD="${LD-ld} -melf32bmipn32"
3834
LD="${LD-ld} -melf64bmip"
3838
case `/usr/bin/file conftest.$ac_objext` in
3854
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3855
# Find out which ABI we are using.
3856
echo 'int i;' > conftest.$ac_ext
3857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858
(eval $ac_compile) 2>&5
3860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861
(exit $ac_status); }; then
3862
case `/usr/bin/file conftest.o` in
3866
LD="${LD-ld} -m elf_i386"
3868
ppc64-*linux*|powerpc64-*linux*)
3869
LD="${LD-ld} -m elf32ppclinux"
3872
LD="${LD-ld} -m elf_s390"
3875
LD="${LD-ld} -m elf32_sparc"
3882
LD="${LD-ld} -m elf_x86_64"
3884
ppc*-*linux*|powerpc*-*linux*)
3885
LD="${LD-ld} -m elf64ppc"
3888
LD="${LD-ld} -m elf64_s390"
3891
LD="${LD-ld} -m elf64_sparc"
3901
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3902
SAVE_CFLAGS="$CFLAGS"
3903
CFLAGS="$CFLAGS -belf"
3904
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3905
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3906
if test "${lt_cv_cc_needs_belf+set}" = set; then
3907
echo $ECHO_N "(cached) $ECHO_C" >&6
3910
ac_cpp='$CPP $CPPFLAGS'
3911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915
cat >conftest.$ac_ext <<_ACEOF
3918
cat confdefs.h >>conftest.$ac_ext
3919
cat >>conftest.$ac_ext <<_ACEOF
3920
/* end confdefs.h. */
3930
rm -f conftest.$ac_objext conftest$ac_exeext
3931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932
(eval $ac_link) 2>conftest.er1
3934
grep -v '^ *+' conftest.er1 >conftest.err
3936
cat conftest.err >&5
3937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938
(exit $ac_status); } &&
3939
{ ac_try='test -z "$ac_c_werror_flag"
3940
|| test ! -s conftest.err'
3941
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945
(exit $ac_status); }; } &&
3946
{ ac_try='test -s conftest$ac_exeext'
3947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951
(exit $ac_status); }; }; then
3952
lt_cv_cc_needs_belf=yes
3954
echo "$as_me: failed program was:" >&5
3955
sed 's/^/| /' conftest.$ac_ext >&5
3957
lt_cv_cc_needs_belf=no
3959
rm -f conftest.err conftest.$ac_objext \
3960
conftest$ac_exeext conftest.$ac_ext
3962
ac_cpp='$CPP $CPPFLAGS'
3963
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3969
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3970
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3971
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3972
CFLAGS="$SAVE_CFLAGS"
3978
need_locks="$enable_libtool_lock"
3982
ac_cpp='$CPP $CPPFLAGS'
3983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3987
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3988
# On Suns, sometimes $CPP names a directory.
3989
if test -n "$CPP" && test -d "$CPP"; then
3992
if test -z "$CPP"; then
3993
if test "${ac_cv_prog_CPP+set}" = set; then
3994
echo $ECHO_N "(cached) $ECHO_C" >&6
3996
# Double quotes because CPP needs to be expanded
3997
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4000
for ac_c_preproc_warn_flag in '' yes
4002
# Use a header file that comes with gcc, so configuring glibc
4003
# with a fresh cross-compiler works.
4004
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005
# <limits.h> exists even on freestanding compilers.
4006
# On the NeXT, cc -E runs the code through the compiler's parser,
4007
# not just through cpp. "Syntax error" is here to catch this case.
4008
cat >conftest.$ac_ext <<_ACEOF
4011
cat confdefs.h >>conftest.$ac_ext
4012
cat >>conftest.$ac_ext <<_ACEOF
4013
/* end confdefs.h. */
4015
# include <limits.h>
4017
# include <assert.h>
4021
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4022
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4024
grep -v '^ *+' conftest.er1 >conftest.err
4026
cat conftest.err >&5
4027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028
(exit $ac_status); } >/dev/null; then
4029
if test -s conftest.err; then
4030
ac_cpp_err=$ac_c_preproc_warn_flag
4031
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4038
if test -z "$ac_cpp_err"; then
4041
echo "$as_me: failed program was:" >&5
4042
sed 's/^/| /' conftest.$ac_ext >&5
4044
# Broken: fails on valid input.
4047
rm -f conftest.err conftest.$ac_ext
4049
# OK, works on sane cases. Now check whether non-existent headers
4050
# can be detected and how.
4051
cat >conftest.$ac_ext <<_ACEOF
4054
cat confdefs.h >>conftest.$ac_ext
4055
cat >>conftest.$ac_ext <<_ACEOF
4056
/* end confdefs.h. */
4057
#include <ac_nonexistent.h>
4059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4060
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4062
grep -v '^ *+' conftest.er1 >conftest.err
4064
cat conftest.err >&5
4065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
(exit $ac_status); } >/dev/null; then
4067
if test -s conftest.err; then
4068
ac_cpp_err=$ac_c_preproc_warn_flag
4069
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4076
if test -z "$ac_cpp_err"; then
4077
# Broken: success on invalid input.
4080
echo "$as_me: failed program was:" >&5
4081
sed 's/^/| /' conftest.$ac_ext >&5
4083
# Passes both tests.
4087
rm -f conftest.err conftest.$ac_ext
4090
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091
rm -f conftest.err conftest.$ac_ext
4092
if $ac_preproc_ok; then
4104
echo "$as_me:$LINENO: result: $CPP" >&5
4105
echo "${ECHO_T}$CPP" >&6
4107
for ac_c_preproc_warn_flag in '' yes
4109
# Use a header file that comes with gcc, so configuring glibc
4110
# with a fresh cross-compiler works.
4111
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112
# <limits.h> exists even on freestanding compilers.
4113
# On the NeXT, cc -E runs the code through the compiler's parser,
4114
# not just through cpp. "Syntax error" is here to catch this case.
4115
cat >conftest.$ac_ext <<_ACEOF
4118
cat confdefs.h >>conftest.$ac_ext
4119
cat >>conftest.$ac_ext <<_ACEOF
4120
/* end confdefs.h. */
4122
# include <limits.h>
4124
# include <assert.h>
4128
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4129
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4131
grep -v '^ *+' conftest.er1 >conftest.err
4133
cat conftest.err >&5
4134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135
(exit $ac_status); } >/dev/null; then
4136
if test -s conftest.err; then
4137
ac_cpp_err=$ac_c_preproc_warn_flag
4138
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4145
if test -z "$ac_cpp_err"; then
4148
echo "$as_me: failed program was:" >&5
4149
sed 's/^/| /' conftest.$ac_ext >&5
4151
# Broken: fails on valid input.
4154
rm -f conftest.err conftest.$ac_ext
4156
# OK, works on sane cases. Now check whether non-existent headers
4157
# can be detected and how.
4158
cat >conftest.$ac_ext <<_ACEOF
4161
cat confdefs.h >>conftest.$ac_ext
4162
cat >>conftest.$ac_ext <<_ACEOF
4163
/* end confdefs.h. */
4164
#include <ac_nonexistent.h>
4166
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4167
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4169
grep -v '^ *+' conftest.er1 >conftest.err
4171
cat conftest.err >&5
4172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173
(exit $ac_status); } >/dev/null; then
4174
if test -s conftest.err; then
4175
ac_cpp_err=$ac_c_preproc_warn_flag
4176
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4183
if test -z "$ac_cpp_err"; then
4184
# Broken: success on invalid input.
4187
echo "$as_me: failed program was:" >&5
4188
sed 's/^/| /' conftest.$ac_ext >&5
4190
# Passes both tests.
4194
rm -f conftest.err conftest.$ac_ext
4197
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4198
rm -f conftest.err conftest.$ac_ext
4199
if $ac_preproc_ok; then
4202
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4203
See \`config.log' for more details." >&5
4204
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4205
See \`config.log' for more details." >&2;}
4206
{ (exit 1); exit 1; }; }
4210
ac_cpp='$CPP $CPPFLAGS'
4211
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4217
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4218
if test "${ac_cv_header_stdc+set}" = set; then
4219
echo $ECHO_N "(cached) $ECHO_C" >&6
4221
cat >conftest.$ac_ext <<_ACEOF
4224
cat confdefs.h >>conftest.$ac_ext
4225
cat >>conftest.$ac_ext <<_ACEOF
4226
/* end confdefs.h. */
4240
rm -f conftest.$ac_objext
4241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242
(eval $ac_compile) 2>conftest.er1
4244
grep -v '^ *+' conftest.er1 >conftest.err
4246
cat conftest.err >&5
4247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248
(exit $ac_status); } &&
4249
{ ac_try='test -z "$ac_c_werror_flag"
4250
|| test ! -s conftest.err'
4251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
(exit $ac_status); }; } &&
4256
{ ac_try='test -s conftest.$ac_objext'
4257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
(exit $ac_status); }; }; then
4262
ac_cv_header_stdc=yes
4264
echo "$as_me: failed program was:" >&5
4265
sed 's/^/| /' conftest.$ac_ext >&5
4267
ac_cv_header_stdc=no
4269
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4271
if test $ac_cv_header_stdc = yes; then
4272
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4273
cat >conftest.$ac_ext <<_ACEOF
4276
cat confdefs.h >>conftest.$ac_ext
4277
cat >>conftest.$ac_ext <<_ACEOF
4278
/* end confdefs.h. */
4282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4283
$EGREP "memchr" >/dev/null 2>&1; then
4286
ac_cv_header_stdc=no
4292
if test $ac_cv_header_stdc = yes; then
4293
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4294
cat >conftest.$ac_ext <<_ACEOF
4297
cat confdefs.h >>conftest.$ac_ext
4298
cat >>conftest.$ac_ext <<_ACEOF
4299
/* end confdefs.h. */
4303
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304
$EGREP "free" >/dev/null 2>&1; then
4307
ac_cv_header_stdc=no
4313
if test $ac_cv_header_stdc = yes; then
4314
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4315
if test "$cross_compiling" = yes; then
4318
cat >conftest.$ac_ext <<_ACEOF
4321
cat confdefs.h >>conftest.$ac_ext
4322
cat >>conftest.$ac_ext <<_ACEOF
4323
/* end confdefs.h. */
4325
#if ((' ' & 0x0FF) == 0x020)
4326
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4327
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4329
# define ISLOWER(c) \
4330
(('a' <= (c) && (c) <= 'i') \
4331
|| ('j' <= (c) && (c) <= 'r') \
4332
|| ('s' <= (c) && (c) <= 'z'))
4333
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4336
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4341
for (i = 0; i < 256; i++)
4342
if (XOR (islower (i), ISLOWER (i))
4343
|| toupper (i) != TOUPPER (i))
4348
rm -f conftest$ac_exeext
4349
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4350
(eval $ac_link) 2>&5
4352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4354
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358
(exit $ac_status); }; }; then
4361
echo "$as_me: program exited with status $ac_status" >&5
4362
echo "$as_me: failed program was:" >&5
4363
sed 's/^/| /' conftest.$ac_ext >&5
4366
ac_cv_header_stdc=no
4368
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4372
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4373
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4374
if test $ac_cv_header_stdc = yes; then
4376
cat >>confdefs.h <<\_ACEOF
4377
#define STDC_HEADERS 1
4382
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4392
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4393
inttypes.h stdint.h unistd.h
4395
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4396
echo "$as_me:$LINENO: checking for $ac_header" >&5
4397
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4398
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399
echo $ECHO_N "(cached) $ECHO_C" >&6
4401
cat >conftest.$ac_ext <<_ACEOF
4404
cat confdefs.h >>conftest.$ac_ext
4405
cat >>conftest.$ac_ext <<_ACEOF
4406
/* end confdefs.h. */
4407
$ac_includes_default
4409
#include <$ac_header>
4411
rm -f conftest.$ac_objext
4412
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4413
(eval $ac_compile) 2>conftest.er1
4415
grep -v '^ *+' conftest.er1 >conftest.err
4417
cat conftest.err >&5
4418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419
(exit $ac_status); } &&
4420
{ ac_try='test -z "$ac_c_werror_flag"
4421
|| test ! -s conftest.err'
4422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
(exit $ac_status); }; } &&
4427
{ ac_try='test -s conftest.$ac_objext'
4428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432
(exit $ac_status); }; }; then
4433
eval "$as_ac_Header=yes"
4435
echo "$as_me: failed program was:" >&5
4436
sed 's/^/| /' conftest.$ac_ext >&5
4438
eval "$as_ac_Header=no"
4440
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4443
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4444
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4445
cat >>confdefs.h <<_ACEOF
4446
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4455
for ac_header in dlfcn.h
4457
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4458
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459
echo "$as_me:$LINENO: checking for $ac_header" >&5
4460
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4461
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4462
echo $ECHO_N "(cached) $ECHO_C" >&6
4464
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4465
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4467
# Is the header compilable?
4468
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4469
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4470
cat >conftest.$ac_ext <<_ACEOF
4473
cat confdefs.h >>conftest.$ac_ext
4474
cat >>conftest.$ac_ext <<_ACEOF
4475
/* end confdefs.h. */
4476
$ac_includes_default
4477
#include <$ac_header>
4479
rm -f conftest.$ac_objext
4480
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481
(eval $ac_compile) 2>conftest.er1
4483
grep -v '^ *+' conftest.er1 >conftest.err
4485
cat conftest.err >&5
4486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487
(exit $ac_status); } &&
4488
{ ac_try='test -z "$ac_c_werror_flag"
4489
|| test ! -s conftest.err'
4490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494
(exit $ac_status); }; } &&
4495
{ ac_try='test -s conftest.$ac_objext'
4496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500
(exit $ac_status); }; }; then
4501
ac_header_compiler=yes
4503
echo "$as_me: failed program was:" >&5
4504
sed 's/^/| /' conftest.$ac_ext >&5
4506
ac_header_compiler=no
4508
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4509
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4510
echo "${ECHO_T}$ac_header_compiler" >&6
4512
# Is the header present?
4513
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4514
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4515
cat >conftest.$ac_ext <<_ACEOF
4518
cat confdefs.h >>conftest.$ac_ext
4519
cat >>conftest.$ac_ext <<_ACEOF
4520
/* end confdefs.h. */
4521
#include <$ac_header>
4523
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4524
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4526
grep -v '^ *+' conftest.er1 >conftest.err
4528
cat conftest.err >&5
4529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530
(exit $ac_status); } >/dev/null; then
4531
if test -s conftest.err; then
4532
ac_cpp_err=$ac_c_preproc_warn_flag
4533
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4540
if test -z "$ac_cpp_err"; then
4541
ac_header_preproc=yes
4543
echo "$as_me: failed program was:" >&5
4544
sed 's/^/| /' conftest.$ac_ext >&5
4546
ac_header_preproc=no
4548
rm -f conftest.err conftest.$ac_ext
4549
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4550
echo "${ECHO_T}$ac_header_preproc" >&6
4552
# So? What about this header?
4553
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4555
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4556
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4557
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4558
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4559
ac_header_preproc=yes
4562
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4563
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4564
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4565
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4566
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4567
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4568
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4569
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4570
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4571
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4572
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4573
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4576
## ------------------------------------------- ##
4577
## Report this to http://gcc.gnu.org/bugs.html ##
4578
## ------------------------------------------- ##
4581
sed "s/^/$as_me: WARNING: /" >&2
4584
echo "$as_me:$LINENO: checking for $ac_header" >&5
4585
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4586
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4587
echo $ECHO_N "(cached) $ECHO_C" >&6
4589
eval "$as_ac_Header=\$ac_header_preproc"
4591
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4592
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4595
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4596
cat >>confdefs.h <<_ACEOF
4597
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605
ac_cpp='$CXXCPP $CPPFLAGS'
4606
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4609
if test -n "$ac_tool_prefix"; then
4610
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4612
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4613
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4614
echo "$as_me:$LINENO: checking for $ac_word" >&5
4615
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616
if test "${ac_cv_prog_CXX+set}" = set; then
4617
echo $ECHO_N "(cached) $ECHO_C" >&6
4619
if test -n "$CXX"; then
4620
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626
test -z "$as_dir" && as_dir=.
4627
for ac_exec_ext in '' $ac_executable_extensions; do
4628
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4630
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639
if test -n "$CXX"; then
4640
echo "$as_me:$LINENO: result: $CXX" >&5
4641
echo "${ECHO_T}$CXX" >&6
4643
echo "$as_me:$LINENO: result: no" >&5
4644
echo "${ECHO_T}no" >&6
4647
test -n "$CXX" && break
4650
if test -z "$CXX"; then
4652
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4654
# Extract the first word of "$ac_prog", so it can be a program name with args.
4655
set dummy $ac_prog; ac_word=$2
4656
echo "$as_me:$LINENO: checking for $ac_word" >&5
4657
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4659
echo $ECHO_N "(cached) $ECHO_C" >&6
4661
if test -n "$ac_ct_CXX"; then
4662
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668
test -z "$as_dir" && as_dir=.
4669
for ac_exec_ext in '' $ac_executable_extensions; do
4670
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671
ac_cv_prog_ac_ct_CXX="$ac_prog"
4672
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4681
if test -n "$ac_ct_CXX"; then
4682
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4683
echo "${ECHO_T}$ac_ct_CXX" >&6
4685
echo "$as_me:$LINENO: result: no" >&5
4686
echo "${ECHO_T}no" >&6
4689
test -n "$ac_ct_CXX" && break
4691
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4697
# Provide some information about the compiler.
4698
echo "$as_me:$LINENO:" \
4699
"checking for C++ compiler version" >&5
4700
ac_compiler=`set X $ac_compile; echo $2`
4701
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4702
(eval $ac_compiler --version </dev/null >&5) 2>&5
4704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705
(exit $ac_status); }
4706
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4707
(eval $ac_compiler -v </dev/null >&5) 2>&5
4709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710
(exit $ac_status); }
4711
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4712
(eval $ac_compiler -V </dev/null >&5) 2>&5
4714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715
(exit $ac_status); }
4717
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4718
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4719
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4720
echo $ECHO_N "(cached) $ECHO_C" >&6
4722
cat >conftest.$ac_ext <<_ACEOF
4725
cat confdefs.h >>conftest.$ac_ext
4726
cat >>conftest.$ac_ext <<_ACEOF
4727
/* end confdefs.h. */
4740
rm -f conftest.$ac_objext
4741
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742
(eval $ac_compile) 2>conftest.er1
4744
grep -v '^ *+' conftest.er1 >conftest.err
4746
cat conftest.err >&5
4747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748
(exit $ac_status); } &&
4749
{ ac_try='test -z "$ac_cxx_werror_flag"
4750
|| test ! -s conftest.err'
4751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755
(exit $ac_status); }; } &&
4756
{ ac_try='test -s conftest.$ac_objext'
4757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761
(exit $ac_status); }; }; then
4764
echo "$as_me: failed program was:" >&5
4765
sed 's/^/| /' conftest.$ac_ext >&5
4769
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4773
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4774
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4775
GXX=`test $ac_compiler_gnu = yes && echo yes`
4776
ac_test_CXXFLAGS=${CXXFLAGS+set}
4777
ac_save_CXXFLAGS=$CXXFLAGS
4779
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4780
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4781
if test "${ac_cv_prog_cxx_g+set}" = set; then
4782
echo $ECHO_N "(cached) $ECHO_C" >&6
4784
cat >conftest.$ac_ext <<_ACEOF
4787
cat confdefs.h >>conftest.$ac_ext
4788
cat >>conftest.$ac_ext <<_ACEOF
4789
/* end confdefs.h. */
4799
rm -f conftest.$ac_objext
4800
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801
(eval $ac_compile) 2>conftest.er1
4803
grep -v '^ *+' conftest.er1 >conftest.err
4805
cat conftest.err >&5
4806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807
(exit $ac_status); } &&
4808
{ ac_try='test -z "$ac_cxx_werror_flag"
4809
|| test ! -s conftest.err'
4810
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
(exit $ac_status); }; } &&
4815
{ ac_try='test -s conftest.$ac_objext'
4816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820
(exit $ac_status); }; }; then
4821
ac_cv_prog_cxx_g=yes
4823
echo "$as_me: failed program was:" >&5
4824
sed 's/^/| /' conftest.$ac_ext >&5
4828
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4831
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4832
if test "$ac_test_CXXFLAGS" = set; then
4833
CXXFLAGS=$ac_save_CXXFLAGS
4834
elif test $ac_cv_prog_cxx_g = yes; then
4835
if test "$GXX" = yes; then
4841
if test "$GXX" = yes; then
4847
for ac_declaration in \
4849
'extern "C" void std::exit (int) throw (); using std::exit;' \
4850
'extern "C" void std::exit (int); using std::exit;' \
4851
'extern "C" void exit (int) throw ();' \
4852
'extern "C" void exit (int);' \
4855
cat >conftest.$ac_ext <<_ACEOF
4858
cat confdefs.h >>conftest.$ac_ext
4859
cat >>conftest.$ac_ext <<_ACEOF
4860
/* end confdefs.h. */
4871
rm -f conftest.$ac_objext
4872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873
(eval $ac_compile) 2>conftest.er1
4875
grep -v '^ *+' conftest.er1 >conftest.err
4877
cat conftest.err >&5
4878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879
(exit $ac_status); } &&
4880
{ ac_try='test -z "$ac_cxx_werror_flag"
4881
|| test ! -s conftest.err'
4882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886
(exit $ac_status); }; } &&
4887
{ ac_try='test -s conftest.$ac_objext'
4888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892
(exit $ac_status); }; }; then
4895
echo "$as_me: failed program was:" >&5
4896
sed 's/^/| /' conftest.$ac_ext >&5
4900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4901
cat >conftest.$ac_ext <<_ACEOF
4904
cat confdefs.h >>conftest.$ac_ext
4905
cat >>conftest.$ac_ext <<_ACEOF
4906
/* end confdefs.h. */
4916
rm -f conftest.$ac_objext
4917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918
(eval $ac_compile) 2>conftest.er1
4920
grep -v '^ *+' conftest.er1 >conftest.err
4922
cat conftest.err >&5
4923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924
(exit $ac_status); } &&
4925
{ ac_try='test -z "$ac_cxx_werror_flag"
4926
|| test ! -s conftest.err'
4927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931
(exit $ac_status); }; } &&
4932
{ ac_try='test -s conftest.$ac_objext'
4933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937
(exit $ac_status); }; }; then
4940
echo "$as_me: failed program was:" >&5
4941
sed 's/^/| /' conftest.$ac_ext >&5
4944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947
if test -n "$ac_declaration"; then
4948
echo '#ifdef __cplusplus' >>confdefs.h
4949
echo $ac_declaration >>confdefs.h
4950
echo '#endif' >>confdefs.h
4954
ac_cpp='$CXXCPP $CPPFLAGS'
4955
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4959
depcc="$CXX" am_compiler_list=
4961
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4962
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4963
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4964
echo $ECHO_N "(cached) $ECHO_C" >&6
4966
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4967
# We make a subdir and do the tests there. Otherwise we can end up
4968
# making bogus files that we don't know about and never remove. For
4969
# instance it was reported that on HP-UX the gcc test will end up
4970
# making a dummy file named `D' -- because `-MD' means `put the output
4973
# Copy depcomp to subdir because otherwise we won't find it if we're
4974
# using a relative directory.
4975
cp "$am_depcomp" conftest.dir
4977
# We will build objects and dependencies in a subdirectory because
4978
# it helps to detect inapplicable dependency modes. For instance
4979
# both Tru64's cc and ICC support -MD to output dependencies as a
4980
# side effect of compilation, but ICC will put the dependencies in
4981
# the current directory while Tru64 will put them in the object
4985
am_cv_CXX_dependencies_compiler_type=none
4986
if test "$am_compiler_list" = ""; then
4987
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4989
for depmode in $am_compiler_list; do
4990
# Setup a source with many dependencies, because some compilers
4991
# like to wrap large dependency lists on column 80 (with \), and
4992
# we should not choose a depcomp mode which is confused by this.
4994
# We need to recreate these files for each test, as the compiler may
4995
# overwrite some of them when testing with obscure command lines.
4996
# This happens at least with the AIX C compiler.
4998
for i in 1 2 3 4 5 6; do
4999
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5000
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5001
# Solaris 8's {/usr,}/bin/sh.
5002
touch sub/conftst$i.h
5004
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5008
# after this tag, mechanisms are not by side-effect, so they'll
5009
# only be used when explicitly requested
5010
if test "x$enable_dependency_tracking" = xyes; then
5018
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5019
# mode. It turns out that the SunPro C++ compiler does not properly
5020
# handle `-M -o', and we need to detect this.
5021
if depmode=$depmode \
5022
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5023
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5024
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5025
>/dev/null 2>conftest.err &&
5026
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5027
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5028
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5029
# icc doesn't choke on unknown options, it will just issue warnings
5030
# or remarks (even with -Werror). So we grep stderr for any message
5031
# that says an option was ignored or not supported.
5032
# When given -MP, icc 7.0 and 7.1 complain thusly:
5033
# icc: Command line warning: ignoring option '-M'; no argument required
5034
# The diagnosis changed in icc 8.0:
5035
# icc: Command line remark: option '-MP' not supported
5036
if (grep 'ignoring option' conftest.err ||
5037
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5038
am_cv_CXX_dependencies_compiler_type=$depmode
5047
am_cv_CXX_dependencies_compiler_type=none
5051
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5052
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5053
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5058
test "x$enable_dependency_tracking" != xno \
5059
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5060
am__fastdepCXX_TRUE=
5061
am__fastdepCXX_FALSE='#'
5063
am__fastdepCXX_TRUE='#'
5064
am__fastdepCXX_FALSE=
5070
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5071
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5072
(test "X$CXX" != "Xg++"))) ; then
5074
ac_cpp='$CXXCPP $CPPFLAGS'
5075
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5078
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5079
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5080
if test -z "$CXXCPP"; then
5081
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5082
echo $ECHO_N "(cached) $ECHO_C" >&6
5084
# Double quotes because CXXCPP needs to be expanded
5085
for CXXCPP in "$CXX -E" "/lib/cpp"
5088
for ac_cxx_preproc_warn_flag in '' yes
5090
# Use a header file that comes with gcc, so configuring glibc
5091
# with a fresh cross-compiler works.
5092
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093
# <limits.h> exists even on freestanding compilers.
5094
# On the NeXT, cc -E runs the code through the compiler's parser,
5095
# not just through cpp. "Syntax error" is here to catch this case.
5096
cat >conftest.$ac_ext <<_ACEOF
5099
cat confdefs.h >>conftest.$ac_ext
5100
cat >>conftest.$ac_ext <<_ACEOF
5101
/* end confdefs.h. */
5103
# include <limits.h>
5105
# include <assert.h>
5109
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112
grep -v '^ *+' conftest.er1 >conftest.err
5114
cat conftest.err >&5
5115
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116
(exit $ac_status); } >/dev/null; then
5117
if test -s conftest.err; then
5118
ac_cpp_err=$ac_cxx_preproc_warn_flag
5119
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5126
if test -z "$ac_cpp_err"; then
5129
echo "$as_me: failed program was:" >&5
5130
sed 's/^/| /' conftest.$ac_ext >&5
5132
# Broken: fails on valid input.
5135
rm -f conftest.err conftest.$ac_ext
5137
# OK, works on sane cases. Now check whether non-existent headers
5138
# can be detected and how.
5139
cat >conftest.$ac_ext <<_ACEOF
5142
cat confdefs.h >>conftest.$ac_ext
5143
cat >>conftest.$ac_ext <<_ACEOF
5144
/* end confdefs.h. */
5145
#include <ac_nonexistent.h>
5147
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5148
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5150
grep -v '^ *+' conftest.er1 >conftest.err
5152
cat conftest.err >&5
5153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
(exit $ac_status); } >/dev/null; then
5155
if test -s conftest.err; then
5156
ac_cpp_err=$ac_cxx_preproc_warn_flag
5157
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5164
if test -z "$ac_cpp_err"; then
5165
# Broken: success on invalid input.
5168
echo "$as_me: failed program was:" >&5
5169
sed 's/^/| /' conftest.$ac_ext >&5
5171
# Passes both tests.
5175
rm -f conftest.err conftest.$ac_ext
5178
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5179
rm -f conftest.err conftest.$ac_ext
5180
if $ac_preproc_ok; then
5185
ac_cv_prog_CXXCPP=$CXXCPP
5188
CXXCPP=$ac_cv_prog_CXXCPP
5190
ac_cv_prog_CXXCPP=$CXXCPP
5192
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5193
echo "${ECHO_T}$CXXCPP" >&6
5195
for ac_cxx_preproc_warn_flag in '' yes
5197
# Use a header file that comes with gcc, so configuring glibc
5198
# with a fresh cross-compiler works.
5199
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5200
# <limits.h> exists even on freestanding compilers.
5201
# On the NeXT, cc -E runs the code through the compiler's parser,
5202
# not just through cpp. "Syntax error" is here to catch this case.
5203
cat >conftest.$ac_ext <<_ACEOF
5206
cat confdefs.h >>conftest.$ac_ext
5207
cat >>conftest.$ac_ext <<_ACEOF
5208
/* end confdefs.h. */
5210
# include <limits.h>
5212
# include <assert.h>
5216
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5219
grep -v '^ *+' conftest.er1 >conftest.err
5221
cat conftest.err >&5
5222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223
(exit $ac_status); } >/dev/null; then
5224
if test -s conftest.err; then
5225
ac_cpp_err=$ac_cxx_preproc_warn_flag
5226
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5233
if test -z "$ac_cpp_err"; then
5236
echo "$as_me: failed program was:" >&5
5237
sed 's/^/| /' conftest.$ac_ext >&5
5239
# Broken: fails on valid input.
5242
rm -f conftest.err conftest.$ac_ext
5244
# OK, works on sane cases. Now check whether non-existent headers
5245
# can be detected and how.
5246
cat >conftest.$ac_ext <<_ACEOF
5249
cat confdefs.h >>conftest.$ac_ext
5250
cat >>conftest.$ac_ext <<_ACEOF
5251
/* end confdefs.h. */
5252
#include <ac_nonexistent.h>
5254
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5255
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5257
grep -v '^ *+' conftest.er1 >conftest.err
5259
cat conftest.err >&5
5260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261
(exit $ac_status); } >/dev/null; then
5262
if test -s conftest.err; then
5263
ac_cpp_err=$ac_cxx_preproc_warn_flag
5264
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5271
if test -z "$ac_cpp_err"; then
5272
# Broken: success on invalid input.
5275
echo "$as_me: failed program was:" >&5
5276
sed 's/^/| /' conftest.$ac_ext >&5
5278
# Passes both tests.
5282
rm -f conftest.err conftest.$ac_ext
5285
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5286
rm -f conftest.err conftest.$ac_ext
5287
if $ac_preproc_ok; then
5290
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5291
See \`config.log' for more details." >&5
5292
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5293
See \`config.log' for more details." >&2;}
5294
{ (exit 1); exit 1; }; }
5298
ac_cpp='$CXXCPP $CPPFLAGS'
5299
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5307
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5308
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5310
if test -n "$ac_tool_prefix"; then
5311
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5313
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5314
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5315
echo "$as_me:$LINENO: checking for $ac_word" >&5
5316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5317
if test "${ac_cv_prog_F77+set}" = set; then
5318
echo $ECHO_N "(cached) $ECHO_C" >&6
5320
if test -n "$F77"; then
5321
ac_cv_prog_F77="$F77" # Let the user override the test.
5323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327
test -z "$as_dir" && as_dir=.
5328
for ac_exec_ext in '' $ac_executable_extensions; do
5329
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5331
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340
if test -n "$F77"; then
5341
echo "$as_me:$LINENO: result: $F77" >&5
5342
echo "${ECHO_T}$F77" >&6
5344
echo "$as_me:$LINENO: result: no" >&5
5345
echo "${ECHO_T}no" >&6
5348
test -n "$F77" && break
5351
if test -z "$F77"; then
5353
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5355
# Extract the first word of "$ac_prog", so it can be a program name with args.
5356
set dummy $ac_prog; ac_word=$2
5357
echo "$as_me:$LINENO: checking for $ac_word" >&5
5358
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5360
echo $ECHO_N "(cached) $ECHO_C" >&6
5362
if test -n "$ac_ct_F77"; then
5363
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369
test -z "$as_dir" && as_dir=.
5370
for ac_exec_ext in '' $ac_executable_extensions; do
5371
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372
ac_cv_prog_ac_ct_F77="$ac_prog"
5373
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5382
if test -n "$ac_ct_F77"; then
5383
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5384
echo "${ECHO_T}$ac_ct_F77" >&6
5386
echo "$as_me:$LINENO: result: no" >&5
5387
echo "${ECHO_T}no" >&6
5390
test -n "$ac_ct_F77" && break
5397
# Provide some information about the compiler.
5398
echo "$as_me:5398:" \
5399
"checking for Fortran 77 compiler version" >&5
5400
ac_compiler=`set X $ac_compile; echo $2`
5401
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5402
(eval $ac_compiler --version </dev/null >&5) 2>&5
5404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405
(exit $ac_status); }
5406
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5407
(eval $ac_compiler -v </dev/null >&5) 2>&5
5409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410
(exit $ac_status); }
5411
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5412
(eval $ac_compiler -V </dev/null >&5) 2>&5
5414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415
(exit $ac_status); }
5418
# If we don't use `.F' as extension, the preprocessor is not run on the
5419
# input file. (Note that this only needs to work for GNU compilers.)
5422
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5423
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5424
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5425
echo $ECHO_N "(cached) $ECHO_C" >&6
5427
cat >conftest.$ac_ext <<_ACEOF
5435
rm -f conftest.$ac_objext
5436
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437
(eval $ac_compile) 2>conftest.er1
5439
grep -v '^ *+' conftest.er1 >conftest.err
5441
cat conftest.err >&5
5442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
(exit $ac_status); } &&
5444
{ ac_try='test -z "$ac_f77_werror_flag"
5445
|| test ! -s conftest.err'
5446
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450
(exit $ac_status); }; } &&
5451
{ ac_try='test -s conftest.$ac_objext'
5452
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456
(exit $ac_status); }; }; then
5459
echo "$as_me: failed program was:" >&5
5460
sed 's/^/| /' conftest.$ac_ext >&5
5464
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5468
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5469
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5471
ac_test_FFLAGS=${FFLAGS+set}
5472
ac_save_FFLAGS=$FFLAGS
5474
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5475
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5476
if test "${ac_cv_prog_f77_g+set}" = set; then
5477
echo $ECHO_N "(cached) $ECHO_C" >&6
5480
cat >conftest.$ac_ext <<_ACEOF
5485
rm -f conftest.$ac_objext
5486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487
(eval $ac_compile) 2>conftest.er1
5489
grep -v '^ *+' conftest.er1 >conftest.err
5491
cat conftest.err >&5
5492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493
(exit $ac_status); } &&
5494
{ ac_try='test -z "$ac_f77_werror_flag"
5495
|| test ! -s conftest.err'
5496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500
(exit $ac_status); }; } &&
5501
{ ac_try='test -s conftest.$ac_objext'
5502
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506
(exit $ac_status); }; }; then
5507
ac_cv_prog_f77_g=yes
5509
echo "$as_me: failed program was:" >&5
5510
sed 's/^/| /' conftest.$ac_ext >&5
5514
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5518
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5519
if test "$ac_test_FFLAGS" = set; then
5520
FFLAGS=$ac_save_FFLAGS
5521
elif test $ac_cv_prog_f77_g = yes; then
5522
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5528
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5535
G77=`test $ac_compiler_gnu = yes && echo yes`
5537
ac_cpp='$CPP $CPPFLAGS'
5538
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5546
# find the maximum length of command line arguments
5547
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5548
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5549
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5550
echo $ECHO_N "(cached) $ECHO_C" >&6
5557
# On DJGPP, this test can blow up pretty badly due to problems in libc
5558
# (any single argument exceeding 2000 bytes causes a buffer overrun
5559
# during glob expansion). Even if it were fixed, the result of this
5560
# check would be larger than it should be.
5561
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5565
# Under GNU Hurd, this test is not required because there is
5566
# no limit to the length of command line arguments.
5567
# Libtool will interpret -1 as no limit whatsoever
5568
lt_cv_sys_max_cmd_len=-1;
5572
# On Win9x/ME, this test blows up -- it succeeds, but takes
5573
# about 5 minutes as the teststring grows exponentially.
5574
# Worse, since 9x/ME are not pre-emptively multitasking,
5575
# you end up with a "frozen" computer, even though with patience
5576
# the test eventually succeeds (with a max line length of 256k).
5577
# Instead, let's just punt: use the minimum linelength reported by
5578
# all of the supported platforms: 8192 (on NT/2K/XP).
5579
lt_cv_sys_max_cmd_len=8192;
5583
# On AmigaOS with pdksh, this test takes hours, literally.
5584
# So we just punt and use a minimum line length of 8192.
5585
lt_cv_sys_max_cmd_len=8192;
5588
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5589
# This has been around since 386BSD, at least. Likely further.
5590
if test -x /sbin/sysctl; then
5591
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5592
elif test -x /usr/sbin/sysctl; then
5593
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5595
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5597
# And add a safety zone
5598
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5599
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5602
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5603
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5604
# nice to cause kernel panics so lets avoid the loop below.
5605
# First set a reasonable default.
5606
lt_cv_sys_max_cmd_len=16384
5608
if test -x /sbin/sysconfig; then
5609
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5610
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5615
# If test is not a shell built-in, we'll probably end up computing a
5616
# maximum length that is only half of the actual maximum length, but
5618
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5619
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5620
= "XX$teststring") >/dev/null 2>&1 &&
5621
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5622
lt_cv_sys_max_cmd_len=$new_result &&
5623
test $i != 17 # 1/2 MB should be enough
5626
teststring=$teststring$teststring
5629
# Add a significant safety factor because C++ compilers can tack on massive
5630
# amounts of additional arguments before passing them to the linker.
5631
# It appears as though 1/2 is a usable value.
5632
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5638
if test -n $lt_cv_sys_max_cmd_len ; then
5639
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5640
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5642
echo "$as_me:$LINENO: result: none" >&5
5643
echo "${ECHO_T}none" >&6
5649
# Check for command to grab the raw symbol name followed by C symbol from nm.
5650
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5651
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5652
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5653
echo $ECHO_N "(cached) $ECHO_C" >&6
5656
# These are sane defaults that work on at least a few old systems.
5657
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5659
# Character class describing NM global symbol codes.
5660
symcode='[BCDEGRST]'
5662
# Regexp to match symbols that can be accessed directly from C.
5663
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5665
# Transform an extracted symbol line into a proper C declaration
5666
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5668
# Transform an extracted symbol line into symbol name and symbol address
5669
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'"
5671
# Define system-specific variables.
5676
cygwin* | mingw* | pw32*)
5677
symcode='[ABCDGISTW]'
5679
hpux*) # Its linker distinguishes data from code symbols
5680
if test "$host_cpu" = ia64; then
5681
symcode='[ABCDEGRST]'
5683
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5684
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'"
5687
if test "$host_cpu" = ia64; then
5688
symcode='[ABCDGIRSTW]'
5689
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5690
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'"
5694
symcode='[BCDEGRST]'
5697
symcode='[BCDEGQRST]'
5707
# Handle CRLF in mingw tool chain
5711
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5715
# If we're using GNU nm, then use its standard symbol codes.
5716
case `$NM -V 2>&1` in
5717
*GNU* | *'with BFD'*)
5718
symcode='[ABCDGIRSTW]' ;;
5721
# Try without a prefix undercore, then with it.
5722
for ac_symprfx in "" "_"; do
5724
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5725
symxfrm="\\1 $ac_symprfx\\2 \\2"
5727
# Write the raw and C identifiers.
5728
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5730
# Check to see that the pipe works correctly.
5734
cat > conftest.$ac_ext <<EOF
5739
void nm_test_func(){}
5743
int main(){nm_test_var='a';nm_test_func();return(0);}
5746
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747
(eval $ac_compile) 2>&5
5749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750
(exit $ac_status); }; then
5751
# Now try to grab the symbols.
5753
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5754
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757
(exit $ac_status); } && test -s "$nlist"; then
5758
# Try sorting and uniquifying the output.
5759
if sort "$nlist" | uniq > "$nlist"T; then
5760
mv -f "$nlist"T "$nlist"
5765
# Make sure that we snagged all the symbols we need.
5766
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5767
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5768
cat <<EOF > conftest.$ac_ext
5774
# Now generate the symbol file.
5775
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5777
cat <<EOF >> conftest.$ac_ext
5778
#if defined (__STDC__) && __STDC__
5779
# define lt_ptr_t void *
5781
# define lt_ptr_t char *
5785
/* The mapping between symbol names and symbols. */
5790
lt_preloaded_symbols[] =
5793
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5794
cat <<\EOF >> conftest.$ac_ext
5802
# Now try linking the two files.
5803
mv conftest.$ac_objext conftstm.$ac_objext
5804
lt_save_LIBS="$LIBS"
5805
lt_save_CFLAGS="$CFLAGS"
5806
LIBS="conftstm.$ac_objext"
5807
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809
(eval $ac_link) 2>&5
5811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5815
LIBS="$lt_save_LIBS"
5816
CFLAGS="$lt_save_CFLAGS"
5818
echo "cannot find nm_test_func in $nlist" >&5
5821
echo "cannot find nm_test_var in $nlist" >&5
5824
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5827
echo "$progname: failed program was:" >&5
5828
cat conftest.$ac_ext >&5
5830
rm -f conftest* conftst*
5832
# Do not use the global_symbol_pipe unless it works.
5833
if test "$pipe_works" = yes; then
5836
lt_cv_sys_global_symbol_pipe=
5842
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5843
lt_cv_sys_global_symbol_to_cdecl=
5845
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5846
echo "$as_me:$LINENO: result: failed" >&5
5847
echo "${ECHO_T}failed" >&6
5849
echo "$as_me:$LINENO: result: ok" >&5
5850
echo "${ECHO_T}ok" >&6
5853
echo "$as_me:$LINENO: checking for objdir" >&5
5854
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5855
if test "${lt_cv_objdir+set}" = set; then
5856
echo $ECHO_N "(cached) $ECHO_C" >&6
5858
rm -f .libs 2>/dev/null
5859
mkdir .libs 2>/dev/null
5860
if test -d .libs; then
5863
# MS-DOS does not allow filenames that begin with a dot.
5866
rmdir .libs 2>/dev/null
5868
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5869
echo "${ECHO_T}$lt_cv_objdir" >&6
5870
objdir=$lt_cv_objdir
5878
# AIX sometimes has problems with the GCC collect2 program. For some
5879
# reason, if we set the COLLECT_NAMES environment variable, the problems
5880
# vanish in a puff of smoke.
5881
if test "X${COLLECT_NAMES+set}" != Xset; then
5883
export COLLECT_NAMES
5888
# Sed substitution that helps us do robust quoting. It backslashifies
5889
# metacharacters that are still active within double-quoted strings.
5890
Xsed='sed -e 1s/^X//'
5891
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5893
# Same as above, but do not quote variable references.
5894
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5896
# Sed substitution to delay expansion of an escaped shell variable in a
5897
# double_quote_subst'ed string.
5898
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5900
# Sed substitution to avoid accidental globbing in evaled expressions
5901
no_glob_subst='s/\*/\\\*/g'
5907
default_ofile=libtool
5908
can_build_shared=yes
5910
# All known linkers require a `.a' archive for static linking (except MSVC,
5911
# which needs '.lib').
5913
ltmain="$ac_aux_dir/ltmain.sh"
5914
ofile="$default_ofile"
5915
with_gnu_ld="$lt_cv_prog_gnu_ld"
5917
if test -n "$ac_tool_prefix"; then
5918
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5919
set dummy ${ac_tool_prefix}ar; ac_word=$2
5920
echo "$as_me:$LINENO: checking for $ac_word" >&5
5921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5922
if test "${ac_cv_prog_AR+set}" = set; then
5923
echo $ECHO_N "(cached) $ECHO_C" >&6
5925
if test -n "$AR"; then
5926
ac_cv_prog_AR="$AR" # Let the user override the test.
5928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932
test -z "$as_dir" && as_dir=.
5933
for ac_exec_ext in '' $ac_executable_extensions; do
5934
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935
ac_cv_prog_AR="${ac_tool_prefix}ar"
5936
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945
if test -n "$AR"; then
5946
echo "$as_me:$LINENO: result: $AR" >&5
5947
echo "${ECHO_T}$AR" >&6
5949
echo "$as_me:$LINENO: result: no" >&5
5950
echo "${ECHO_T}no" >&6
5954
if test -z "$ac_cv_prog_AR"; then
5956
# Extract the first word of "ar", so it can be a program name with args.
5957
set dummy ar; ac_word=$2
5958
echo "$as_me:$LINENO: checking for $ac_word" >&5
5959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5960
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5961
echo $ECHO_N "(cached) $ECHO_C" >&6
5963
if test -n "$ac_ct_AR"; then
5964
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970
test -z "$as_dir" && as_dir=.
5971
for ac_exec_ext in '' $ac_executable_extensions; do
5972
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973
ac_cv_prog_ac_ct_AR="ar"
5974
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5983
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5984
if test -n "$ac_ct_AR"; then
5985
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5986
echo "${ECHO_T}$ac_ct_AR" >&6
5988
echo "$as_me:$LINENO: result: no" >&5
5989
echo "${ECHO_T}no" >&6
5997
if test -n "$ac_tool_prefix"; then
5998
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5999
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6000
echo "$as_me:$LINENO: checking for $ac_word" >&5
6001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6002
if test "${ac_cv_prog_RANLIB+set}" = set; then
6003
echo $ECHO_N "(cached) $ECHO_C" >&6
6005
if test -n "$RANLIB"; then
6006
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012
test -z "$as_dir" && as_dir=.
6013
for ac_exec_ext in '' $ac_executable_extensions; do
6014
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6016
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024
RANLIB=$ac_cv_prog_RANLIB
6025
if test -n "$RANLIB"; then
6026
echo "$as_me:$LINENO: result: $RANLIB" >&5
6027
echo "${ECHO_T}$RANLIB" >&6
6029
echo "$as_me:$LINENO: result: no" >&5
6030
echo "${ECHO_T}no" >&6
6034
if test -z "$ac_cv_prog_RANLIB"; then
6035
ac_ct_RANLIB=$RANLIB
6036
# Extract the first word of "ranlib", so it can be a program name with args.
6037
set dummy ranlib; ac_word=$2
6038
echo "$as_me:$LINENO: checking for $ac_word" >&5
6039
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6041
echo $ECHO_N "(cached) $ECHO_C" >&6
6043
if test -n "$ac_ct_RANLIB"; then
6044
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6046
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050
test -z "$as_dir" && as_dir=.
6051
for ac_exec_ext in '' $ac_executable_extensions; do
6052
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053
ac_cv_prog_ac_ct_RANLIB="ranlib"
6054
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6063
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6064
if test -n "$ac_ct_RANLIB"; then
6065
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6066
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6068
echo "$as_me:$LINENO: result: no" >&5
6069
echo "${ECHO_T}no" >&6
6072
RANLIB=$ac_ct_RANLIB
6074
RANLIB="$ac_cv_prog_RANLIB"
6077
if test -n "$ac_tool_prefix"; then
6078
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6079
set dummy ${ac_tool_prefix}strip; ac_word=$2
6080
echo "$as_me:$LINENO: checking for $ac_word" >&5
6081
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6082
if test "${ac_cv_prog_STRIP+set}" = set; then
6083
echo $ECHO_N "(cached) $ECHO_C" >&6
6085
if test -n "$STRIP"; then
6086
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092
test -z "$as_dir" && as_dir=.
6093
for ac_exec_ext in '' $ac_executable_extensions; do
6094
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6096
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104
STRIP=$ac_cv_prog_STRIP
6105
if test -n "$STRIP"; then
6106
echo "$as_me:$LINENO: result: $STRIP" >&5
6107
echo "${ECHO_T}$STRIP" >&6
6109
echo "$as_me:$LINENO: result: no" >&5
6110
echo "${ECHO_T}no" >&6
6114
if test -z "$ac_cv_prog_STRIP"; then
6116
# Extract the first word of "strip", so it can be a program name with args.
6117
set dummy strip; ac_word=$2
6118
echo "$as_me:$LINENO: checking for $ac_word" >&5
6119
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6121
echo $ECHO_N "(cached) $ECHO_C" >&6
6123
if test -n "$ac_ct_STRIP"; then
6124
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130
test -z "$as_dir" && as_dir=.
6131
for ac_exec_ext in '' $ac_executable_extensions; do
6132
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133
ac_cv_prog_ac_ct_STRIP="strip"
6134
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6143
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6144
if test -n "$ac_ct_STRIP"; then
6145
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6146
echo "${ECHO_T}$ac_ct_STRIP" >&6
6148
echo "$as_me:$LINENO: result: no" >&5
6149
echo "${ECHO_T}no" >&6
6154
STRIP="$ac_cv_prog_STRIP"
6159
old_CFLAGS="$CFLAGS"
6161
# Set sane defaults for various variables
6162
test -z "$AR" && AR=ar
6163
test -z "$AR_FLAGS" && AR_FLAGS=cru
6164
test -z "$AS" && AS=as
6165
test -z "$CC" && CC=cc
6166
test -z "$LTCC" && LTCC=$CC
6167
test -z "$DLLTOOL" && DLLTOOL=dlltool
6168
test -z "$LD" && LD=ld
6169
test -z "$LN_S" && LN_S="ln -s"
6170
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6171
test -z "$NM" && NM=nm
6172
test -z "$SED" && SED=sed
6173
test -z "$OBJDUMP" && OBJDUMP=objdump
6174
test -z "$RANLIB" && RANLIB=:
6175
test -z "$STRIP" && STRIP=:
6176
test -z "$ac_objext" && ac_objext=o
6178
# Determine commands to create old-style static archives.
6179
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6180
old_postinstall_cmds='chmod 644 $oldlib'
6181
old_postuninstall_cmds=
6183
if test -n "$RANLIB"; then
6186
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6189
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6192
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6195
for cc_temp in $compiler""; do
6197
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6198
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6203
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6206
# Only perform the check for file, if the check method requires it
6207
case $deplibs_check_method in
6209
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6210
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6211
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6212
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6213
echo $ECHO_N "(cached) $ECHO_C" >&6
6217
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6220
lt_save_MAGIC_CMD="$MAGIC_CMD"
6221
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6222
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6223
for ac_dir in $ac_dummy; do
6225
test -z "$ac_dir" && ac_dir=.
6226
if test -f $ac_dir/${ac_tool_prefix}file; then
6227
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6228
if test -n "$file_magic_test_file"; then
6229
case $deplibs_check_method in
6231
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6232
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6233
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6234
$EGREP "$file_magic_regex" > /dev/null; then
6239
*** Warning: the command libtool uses to detect shared libraries,
6240
*** $file_magic_cmd, produces output that libtool cannot recognize.
6241
*** The result is that libtool may fail to recognize shared libraries
6242
*** as such. This will affect the creation of libtool libraries that
6243
*** depend on shared libraries, but programs linked with such libtool
6244
*** libraries will work regardless of this problem. Nevertheless, you
6245
*** may want to report the problem to your system manager and/or to
6246
*** bug-libtool@gnu.org
6256
MAGIC_CMD="$lt_save_MAGIC_CMD"
6261
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6262
if test -n "$MAGIC_CMD"; then
6263
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6264
echo "${ECHO_T}$MAGIC_CMD" >&6
6266
echo "$as_me:$LINENO: result: no" >&5
6267
echo "${ECHO_T}no" >&6
6270
if test -z "$lt_cv_path_MAGIC_CMD"; then
6271
if test -n "$ac_tool_prefix"; then
6272
echo "$as_me:$LINENO: checking for file" >&5
6273
echo $ECHO_N "checking for file... $ECHO_C" >&6
6274
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6275
echo $ECHO_N "(cached) $ECHO_C" >&6
6279
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6282
lt_save_MAGIC_CMD="$MAGIC_CMD"
6283
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6284
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6285
for ac_dir in $ac_dummy; do
6287
test -z "$ac_dir" && ac_dir=.
6288
if test -f $ac_dir/file; then
6289
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6290
if test -n "$file_magic_test_file"; then
6291
case $deplibs_check_method in
6293
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6294
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6295
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6296
$EGREP "$file_magic_regex" > /dev/null; then
6301
*** Warning: the command libtool uses to detect shared libraries,
6302
*** $file_magic_cmd, produces output that libtool cannot recognize.
6303
*** The result is that libtool may fail to recognize shared libraries
6304
*** as such. This will affect the creation of libtool libraries that
6305
*** depend on shared libraries, but programs linked with such libtool
6306
*** libraries will work regardless of this problem. Nevertheless, you
6307
*** may want to report the problem to your system manager and/or to
6308
*** bug-libtool@gnu.org
6318
MAGIC_CMD="$lt_save_MAGIC_CMD"
6323
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6324
if test -n "$MAGIC_CMD"; then
6325
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6326
echo "${ECHO_T}$MAGIC_CMD" >&6
6328
echo "$as_me:$LINENO: result: no" >&5
6329
echo "${ECHO_T}no" >&6
6344
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6345
if test "${enable_libtool_lock+set}" = set; then
6346
enableval="$enable_libtool_lock"
6349
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6352
# Check whether --with-pic or --without-pic was given.
6353
if test "${with_pic+set}" = set; then
6359
test -z "$pic_mode" && pic_mode=default
6361
# Use C for the default configuration in the libtool script
6365
ac_cpp='$CPP $CPPFLAGS'
6366
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6371
# Source file extension for C test sources.
6374
# Object file extension for compiled C test sources.
6378
# Code to be used in simple compile tests
6379
lt_simple_compile_test_code="int some_variable = 0;\n"
6381
# Code to be used in simple link tests
6382
lt_simple_link_test_code='int main(){return(0);}\n'
6385
# If no C compiler was specified, use CC.
6388
# Allow CC to be a program name with arguments.
6392
# save warnings/boilerplate of simple test code
6393
ac_outfile=conftest.$ac_objext
6394
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6395
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6396
_lt_compiler_boilerplate=`cat conftest.err`
6399
ac_outfile=conftest.$ac_objext
6400
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6401
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6402
_lt_linker_boilerplate=`cat conftest.err`
6407
# Check for any special shared library compilation flags.
6410
if test "$GCC" = no; then
6413
lt_prog_cc_shlib='-belf'
6417
if test -n "$lt_prog_cc_shlib"; then
6418
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6419
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6420
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6422
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6423
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6424
lt_cv_prog_cc_can_build_shared=no
6430
# Check to make sure the static flag actually works.
6432
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6433
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6434
if test "${lt_prog_compiler_static_works+set}" = set; then
6435
echo $ECHO_N "(cached) $ECHO_C" >&6
6437
lt_prog_compiler_static_works=no
6438
save_LDFLAGS="$LDFLAGS"
6439
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6440
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6441
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6442
# The linker can only warn and ignore the option if not recognized
6443
# So say no if there are warnings
6444
if test -s conftest.err; then
6445
# Append any errors to the config.log.
6446
cat conftest.err 1>&5
6447
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6448
$SED '/^$/d' conftest.err >conftest.er2
6449
if diff conftest.exp conftest.er2 >/dev/null; then
6450
lt_prog_compiler_static_works=yes
6453
lt_prog_compiler_static_works=yes
6457
LDFLAGS="$save_LDFLAGS"
6460
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6461
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6463
if test x"$lt_prog_compiler_static_works" = xyes; then
6466
lt_prog_compiler_static=
6472
lt_prog_compiler_no_builtin_flag=
6474
if test "$GCC" = yes; then
6475
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6478
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6479
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6480
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6481
echo $ECHO_N "(cached) $ECHO_C" >&6
6483
lt_cv_prog_compiler_rtti_exceptions=no
6484
ac_outfile=conftest.$ac_objext
6485
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6486
lt_compiler_flag="-fno-rtti -fno-exceptions"
6487
# Insert the option either (1) after the last *FLAGS variable, or
6488
# (2) before a word containing "conftest.", or (3) at the end.
6489
# Note that $ac_compile itself does not contain backslashes and begins
6490
# with a dollar sign (not a hyphen), so the echo should work correctly.
6491
# The option is referenced via a variable to avoid confusing sed.
6492
lt_compile=`echo "$ac_compile" | $SED \
6493
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6494
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6495
-e 's:$: $lt_compiler_flag:'`
6496
(eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
6497
(eval "$lt_compile" 2>conftest.err)
6499
cat conftest.err >&5
6500
echo "$as_me:6500: \$? = $ac_status" >&5
6501
if (exit $ac_status) && test -s "$ac_outfile"; then
6502
# The compiler can only warn and ignore the option if not recognized
6503
# So say no if there are warnings other than the usual output.
6504
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6505
$SED '/^$/d' conftest.err >conftest.er2
6506
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6507
lt_cv_prog_compiler_rtti_exceptions=yes
6513
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6514
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6516
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6517
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6524
lt_prog_compiler_wl=
6525
lt_prog_compiler_pic=
6526
lt_prog_compiler_static=
6528
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6529
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6531
if test "$GCC" = yes; then
6532
lt_prog_compiler_wl='-Wl,'
6533
lt_prog_compiler_static='-static'
6537
# All AIX code is PIC.
6538
if test "$host_cpu" = ia64; then
6539
# AIX 5 now supports IA64 processor
6540
lt_prog_compiler_static='-Bstatic'
6545
# FIXME: we need at least 68020 code to build shared libraries, but
6546
# adding the `-m68020' flag to GCC prevents building anything better,
6548
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6551
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6552
# PIC is the default for these OSes.
6555
mingw* | pw32* | os2*)
6556
# This hack is so that the source file can tell whether it is being
6557
# built for inclusion in a dll (and should export symbols for example).
6558
lt_prog_compiler_pic='-DDLL_EXPORT'
6561
darwin* | rhapsody*)
6562
# PIC is the default on this platform
6563
# Common symbols not allowed in MH_DYLIB files
6564
lt_prog_compiler_pic='-fno-common'
6568
# Just because we use GCC doesn't mean we suddenly get shared libraries
6569
# on systems that don't support them.
6570
lt_prog_compiler_can_build_shared=no
6575
if test -d /usr/nec; then
6576
lt_prog_compiler_pic=-Kconform_pic
6581
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6588
lt_prog_compiler_pic='-fPIC'
6594
lt_prog_compiler_pic='-fPIC'
6598
# PORTME Check for flag to pass linker flags through the system compiler.
6601
lt_prog_compiler_wl='-Wl,'
6602
if test "$host_cpu" = ia64; then
6603
# AIX 5 now supports IA64 processor
6604
lt_prog_compiler_static='-Bstatic'
6606
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6610
# PIC is the default on this platform
6611
# Common symbols not allowed in MH_DYLIB files
6612
case $cc_basename in
6614
lt_prog_compiler_pic='-qnocommon'
6615
lt_prog_compiler_wl='-Wl,'
6620
mingw* | pw32* | os2*)
6621
# This hack is so that the source file can tell whether it is being
6622
# built for inclusion in a dll (and should export symbols for example).
6623
lt_prog_compiler_pic='-DDLL_EXPORT'
6626
hpux9* | hpux10* | hpux11*)
6627
lt_prog_compiler_wl='-Wl,'
6628
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6635
lt_prog_compiler_pic='+Z'
6638
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6639
lt_prog_compiler_static='${wl}-a ${wl}archive'
6642
irix5* | irix6* | nonstopux*)
6643
lt_prog_compiler_wl='-Wl,'
6644
# PIC (with -KPIC) is the default.
6645
lt_prog_compiler_static='-non_shared'
6649
lt_prog_compiler_pic='-KPIC'
6650
lt_prog_compiler_static='-Bstatic'
6654
case $cc_basename in
6656
lt_prog_compiler_wl='-Wl,'
6657
lt_prog_compiler_pic='-KPIC'
6658
lt_prog_compiler_static='-static'
6660
pgcc* | pgf77* | pgf90* | pgf95*)
6661
# Portland Group compilers (*not* the Pentium gcc compiler,
6662
# which looks to be a dead project)
6663
lt_prog_compiler_wl='-Wl,'
6664
lt_prog_compiler_pic='-fpic'
6665
lt_prog_compiler_static='-Bstatic'
6668
lt_prog_compiler_wl='-Wl,'
6669
# All Alpha code is PIC.
6670
lt_prog_compiler_static='-non_shared'
6675
osf3* | osf4* | osf5*)
6676
lt_prog_compiler_wl='-Wl,'
6677
# All OSF/1 code is PIC.
6678
lt_prog_compiler_static='-non_shared'
6682
lt_prog_compiler_pic='-Kpic'
6683
lt_prog_compiler_static='-dn'
6687
lt_prog_compiler_pic='-KPIC'
6688
lt_prog_compiler_static='-Bstatic'
6689
case $cc_basename in
6691
lt_prog_compiler_wl='-Qoption ld ';;
6693
lt_prog_compiler_wl='-Wl,';;
6698
lt_prog_compiler_wl='-Qoption ld '
6699
lt_prog_compiler_pic='-PIC'
6700
lt_prog_compiler_static='-Bstatic'
6703
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6704
lt_prog_compiler_wl='-Wl,'
6705
lt_prog_compiler_pic='-KPIC'
6706
lt_prog_compiler_static='-Bstatic'
6710
if test -d /usr/nec ;then
6711
lt_prog_compiler_pic='-Kconform_pic'
6712
lt_prog_compiler_static='-Bstatic'
6717
lt_prog_compiler_wl='-Wl,'
6718
lt_prog_compiler_can_build_shared=no
6722
lt_prog_compiler_pic='-pic'
6723
lt_prog_compiler_static='-Bstatic'
6727
lt_prog_compiler_can_build_shared=no
6732
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6733
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6736
# Check to make sure the PIC flag actually works.
6738
if test -n "$lt_prog_compiler_pic"; then
6740
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6741
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6742
if test "${lt_prog_compiler_pic_works+set}" = set; then
6743
echo $ECHO_N "(cached) $ECHO_C" >&6
6745
lt_prog_compiler_pic_works=no
6746
ac_outfile=conftest.$ac_objext
6747
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6748
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6749
# Insert the option either (1) after the last *FLAGS variable, or
6750
# (2) before a word containing "conftest.", or (3) at the end.
6751
# Note that $ac_compile itself does not contain backslashes and begins
6752
# with a dollar sign (not a hyphen), so the echo should work correctly.
6753
# The option is referenced via a variable to avoid confusing sed.
6754
lt_compile=`echo "$ac_compile" | $SED \
6755
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6756
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6757
-e 's:$: $lt_compiler_flag:'`
6758
(eval echo "\"\$as_me:6758: $lt_compile\"" >&5)
6759
(eval "$lt_compile" 2>conftest.err)
6761
cat conftest.err >&5
6762
echo "$as_me:6762: \$? = $ac_status" >&5
6763
if (exit $ac_status) && test -s "$ac_outfile"; then
6764
# The compiler can only warn and ignore the option if not recognized
6765
# So say no if there are warnings other than the usual output.
6766
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6767
$SED '/^$/d' conftest.err >conftest.er2
6768
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6769
lt_prog_compiler_pic_works=yes
6775
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6776
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6778
if test x"$lt_prog_compiler_pic_works" = xyes; then
6779
case $lt_prog_compiler_pic in
6781
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6784
lt_prog_compiler_pic=
6785
lt_prog_compiler_can_build_shared=no
6790
# For platforms which do not support PIC, -DPIC is meaningless:
6792
lt_prog_compiler_pic=
6795
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6799
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6800
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6801
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6802
echo $ECHO_N "(cached) $ECHO_C" >&6
6804
lt_cv_prog_compiler_c_o=no
6805
$rm -r conftest 2>/dev/null
6809
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6811
lt_compiler_flag="-o out/conftest2.$ac_objext"
6812
# Insert the option either (1) after the last *FLAGS variable, or
6813
# (2) before a word containing "conftest.", or (3) at the end.
6814
# Note that $ac_compile itself does not contain backslashes and begins
6815
# with a dollar sign (not a hyphen), so the echo should work correctly.
6816
lt_compile=`echo "$ac_compile" | $SED \
6817
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6818
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6819
-e 's:$: $lt_compiler_flag:'`
6820
(eval echo "\"\$as_me:6820: $lt_compile\"" >&5)
6821
(eval "$lt_compile" 2>out/conftest.err)
6823
cat out/conftest.err >&5
6824
echo "$as_me:6824: \$? = $ac_status" >&5
6825
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6827
# The compiler can only warn and ignore the option if not recognized
6828
# So say no if there are warnings
6829
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6830
$SED '/^$/d' out/conftest.err >out/conftest.er2
6831
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6832
lt_cv_prog_compiler_c_o=yes
6837
# SGI C++ compiler will create directory out/ii_files/ for
6838
# template instantiation
6839
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6840
$rm out/* && rmdir out
6846
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6847
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6850
hard_links="nottested"
6851
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6852
# do not overwrite the value of need_locks provided by the user
6853
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6854
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6857
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6859
ln conftest.a conftest.b 2>&5 || hard_links=no
6860
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6861
echo "$as_me:$LINENO: result: $hard_links" >&5
6862
echo "${ECHO_T}$hard_links" >&6
6863
if test "$hard_links" = no; then
6864
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6865
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6872
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6873
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6876
allow_undefined_flag=
6877
enable_shared_with_static_runtimes=no
6879
archive_expsym_cmds=
6880
old_archive_From_new_cmds=
6881
old_archive_from_expsyms_cmds=
6882
export_dynamic_flag_spec=
6883
whole_archive_flag_spec=
6884
thread_safe_flag_spec=
6885
hardcode_libdir_flag_spec=
6886
hardcode_libdir_flag_spec_ld=
6887
hardcode_libdir_separator=
6890
hardcode_shlibpath_var=unsupported
6891
link_all_deplibs=unknown
6892
hardcode_automatic=no
6895
always_export_symbols=no
6896
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6897
# include_expsyms should be a list of space-separated symbols to be *always*
6898
# included in the symbol list
6900
# exclude_expsyms can be an extended regexp of symbols to exclude
6901
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6902
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6903
# as well as any symbol that contains `d'.
6904
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6905
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6906
# platforms (ab)use it in PIC code, but their linkers get confused if
6907
# the symbol is explicitly referenced. Since portable code cannot
6908
# rely on this symbol name, it's probably fine to never include it in
6909
# preloaded symbol tables.
6910
extract_expsyms_cmds=
6911
# Just being paranoid about ensuring that cc_basename is set.
6912
for cc_temp in $compiler""; do
6914
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6915
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6920
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6923
cygwin* | mingw* | pw32*)
6924
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6925
# When not using gcc, we currently assume that we are using
6926
# Microsoft Visual C++.
6927
if test "$GCC" != yes; then
6937
if test "$with_gnu_ld" = yes; then
6938
# If archive_cmds runs LD, not CC, wlarc should be empty
6941
# Set some defaults for GNU ld with shared library support. These
6942
# are reset later if shared libraries are not supported. Putting them
6943
# here allows them to be overridden if necessary.
6944
runpath_var=LD_RUN_PATH
6945
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6946
export_dynamic_flag_spec='${wl}--export-dynamic'
6947
# ancient GNU ld didn't support --whole-archive et. al.
6948
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6949
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6951
whole_archive_flag_spec=
6953
supports_anon_versioning=no
6954
case `$LD -v 2>/dev/null` in
6955
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6956
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6957
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6958
*\ 2.11.*) ;; # other 2.11 versions
6959
*) supports_anon_versioning=yes ;;
6962
# See if GNU ld supports shared libraries.
6964
aix3* | aix4* | aix5*)
6965
# On AIX/PPC, the GNU linker is very broken
6966
if test "$host_cpu" != ia64; then
6970
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6971
*** to be unable to reliably create shared libraries on AIX.
6972
*** Therefore, libtool is disabling shared libraries support. If you
6973
*** really care for shared libraries, you may want to modify your PATH
6974
*** so that a non-GNU linker is found, and then restart.
6981
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)'
6982
hardcode_libdir_flag_spec='-L$libdir'
6983
hardcode_minus_L=yes
6985
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6986
# that the semantics of dynamic libraries on AmigaOS, at least up
6987
# to version 4, is to share data among multiple programs linked
6988
# with the same dynamic library. Since this doesn't match the
6989
# behavior of shared libraries on other platforms, we can't use
6995
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6996
allow_undefined_flag=unsupported
6997
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6998
# support --undefined. This deserves some investigation. FIXME
6999
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7005
cygwin* | mingw* | pw32*)
7006
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7007
# as there is no search path for DLLs.
7008
hardcode_libdir_flag_spec='-L$libdir'
7009
allow_undefined_flag=unsupported
7010
always_export_symbols=no
7011
enable_shared_with_static_runtimes=yes
7012
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7014
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7015
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7016
# If the export-symbols file already is a .def file (1st line
7017
# is EXPORTS), use it as is; otherwise, prepend...
7018
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7019
cp $export_symbols $output_objdir/$soname.def;
7021
echo EXPORTS > $output_objdir/$soname.def;
7022
cat $export_symbols >> $output_objdir/$soname.def;
7024
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7031
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7033
case $cc_basename,$host_cpu in
7034
pgcc*) # Portland Group C compiler
7035
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7036
tmp_addflag=' $pic_flag'
7038
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7039
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7040
tmp_addflag=' $pic_flag -Mnomain' ;;
7041
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7042
tmp_addflag=' -i_dynamic' ;;
7043
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7044
tmp_addflag=' -i_dynamic -nofor_main' ;;
7045
ifc* | ifort*) # Intel Fortran compiler
7046
tmp_addflag=' -nofor_main' ;;
7048
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7050
if test $supports_anon_versioning = yes; then
7051
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7052
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7053
$echo "local: *; };" >> $output_objdir/$libname.ver~
7054
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7062
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7063
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7066
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7067
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7072
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7076
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7077
*** create shared libraries on Solaris systems. Therefore, libtool
7078
*** is disabling shared libraries support. We urge you to upgrade GNU
7079
*** binutils to release 2.9.1 or newer. Another option is to modify
7080
*** your PATH or compiler configuration so that the native linker is
7081
*** used, and then restart.
7084
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7085
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7086
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7093
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7096
hardcode_shlibpath_var=no
7100
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7101
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7102
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7109
if test "$ld_shlibs" = no; then
7111
hardcode_libdir_flag_spec=
7112
export_dynamic_flag_spec=
7113
whole_archive_flag_spec=
7116
# PORTME fill in a description of your system's linker (not GNU ld)
7119
allow_undefined_flag=unsupported
7120
always_export_symbols=yes
7121
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'
7122
# Note: this linker hardcodes the directories in LIBPATH if there
7123
# are no directories specified by -L.
7124
hardcode_minus_L=yes
7125
if test "$GCC" = yes && test -z "$link_static_flag"; then
7126
# Neither direct hardcoding nor static linking is supported with a
7128
hardcode_direct=unsupported
7133
if test "$host_cpu" = ia64; then
7134
# On IA64, the linker does run time linking by default, so we don't
7135
# have to do anything special.
7136
aix_use_runtimelinking=no
7137
exp_sym_flag='-Bexport'
7140
# If we're using GNU nm, then we don't want the "-C" option.
7141
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7142
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7143
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'
7145
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'
7147
aix_use_runtimelinking=no
7149
# Test if we are trying to use run time linking or normal
7150
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7151
# need to do runtime linking.
7152
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7153
for ld_flag in $LDFLAGS; do
7154
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7155
aix_use_runtimelinking=yes
7161
exp_sym_flag='-bexport'
7162
no_entry_flag='-bnoentry'
7165
# When large executables or shared objects are built, AIX ld can
7166
# have problems creating the table of contents. If linking a library
7167
# or program results in "error TOC overflow" add -mminimal-toc to
7168
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7169
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7173
hardcode_libdir_separator=':'
7174
link_all_deplibs=yes
7176
if test "$GCC" = yes; then
7177
case $host_os in aix4.[012]|aix4.[012].*)
7178
# We only want to do this on AIX 4.2 and lower, the check
7179
# below for broken collect2 doesn't work under 4.3+
7180
collect2name=`${CC} -print-prog-name=collect2`
7181
if test -f "$collect2name" && \
7182
strings "$collect2name" | grep resolve_lib_name >/dev/null
7184
# We have reworked collect2
7187
# We have old collect2
7188
hardcode_direct=unsupported
7189
# It fails to find uninstalled libraries when the uninstalled
7190
# path is not listed in the libpath. Setting hardcode_minus_L
7191
# to unsupported forces relinking
7192
hardcode_minus_L=yes
7193
hardcode_libdir_flag_spec='-L$libdir'
7194
hardcode_libdir_separator=
7197
shared_flag='-shared'
7198
if test "$aix_use_runtimelinking" = yes; then
7199
shared_flag="$shared_flag "'${wl}-G'
7203
if test "$host_cpu" = ia64; then
7204
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7205
# chokes on -Wl,-G. The following line is correct:
7208
if test "$aix_use_runtimelinking" = yes; then
7209
shared_flag='${wl}-G'
7211
shared_flag='${wl}-bM:SRE'
7216
# It seems that -bexpall does not export symbols beginning with
7217
# underscore (_), so it is better to generate a list of symbols to export.
7218
always_export_symbols=yes
7219
if test "$aix_use_runtimelinking" = yes; then
7220
# Warning - without using the other runtime loading flags (-brtl),
7221
# -berok will link without error, but may produce a broken library.
7222
allow_undefined_flag='-berok'
7223
# Determine the default libpath from the value encoded in an empty executable.
7224
cat >conftest.$ac_ext <<_ACEOF
7227
cat confdefs.h >>conftest.$ac_ext
7228
cat >>conftest.$ac_ext <<_ACEOF
7229
/* end confdefs.h. */
7239
rm -f conftest.$ac_objext conftest$ac_exeext
7240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241
(eval $ac_link) 2>conftest.er1
7243
grep -v '^ *+' conftest.er1 >conftest.err
7245
cat conftest.err >&5
7246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247
(exit $ac_status); } &&
7248
{ ac_try='test -z "$ac_c_werror_flag"
7249
|| test ! -s conftest.err'
7250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254
(exit $ac_status); }; } &&
7255
{ ac_try='test -s conftest$ac_exeext'
7256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260
(exit $ac_status); }; }; then
7262
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7264
# Check for a 64-bit object if we didn't find anything.
7265
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; }
7268
echo "$as_me: failed program was:" >&5
7269
sed 's/^/| /' conftest.$ac_ext >&5
7272
rm -f conftest.err conftest.$ac_objext \
7273
conftest$ac_exeext conftest.$ac_ext
7274
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7276
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7277
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"
7279
if test "$host_cpu" = ia64; then
7280
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7281
allow_undefined_flag="-z nodefs"
7282
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"
7284
# Determine the default libpath from the value encoded in an empty executable.
7285
cat >conftest.$ac_ext <<_ACEOF
7288
cat confdefs.h >>conftest.$ac_ext
7289
cat >>conftest.$ac_ext <<_ACEOF
7290
/* end confdefs.h. */
7300
rm -f conftest.$ac_objext conftest$ac_exeext
7301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302
(eval $ac_link) 2>conftest.er1
7304
grep -v '^ *+' conftest.er1 >conftest.err
7306
cat conftest.err >&5
7307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308
(exit $ac_status); } &&
7309
{ ac_try='test -z "$ac_c_werror_flag"
7310
|| test ! -s conftest.err'
7311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315
(exit $ac_status); }; } &&
7316
{ ac_try='test -s conftest$ac_exeext'
7317
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321
(exit $ac_status); }; }; then
7323
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7325
# Check for a 64-bit object if we didn't find anything.
7326
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; }
7329
echo "$as_me: failed program was:" >&5
7330
sed 's/^/| /' conftest.$ac_ext >&5
7333
rm -f conftest.err conftest.$ac_objext \
7334
conftest$ac_exeext conftest.$ac_ext
7335
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7337
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7338
# Warning - without using the other run time loading flags,
7339
# -berok will link without error, but may produce a broken library.
7340
no_undefined_flag=' ${wl}-bernotok'
7341
allow_undefined_flag=' ${wl}-berok'
7342
# -bexpall does not export symbols beginning with underscore (_)
7343
always_export_symbols=yes
7344
# Exported symbols can be pulled into shared objects from archives
7345
whole_archive_flag_spec=' '
7346
archive_cmds_need_lc=yes
7347
# This is similar to how AIX traditionally builds its shared libraries.
7348
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'
7354
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)'
7355
hardcode_libdir_flag_spec='-L$libdir'
7356
hardcode_minus_L=yes
7357
# see comment about different semantics on the GNU ld section
7362
export_dynamic_flag_spec=-rdynamic
7365
cygwin* | mingw* | pw32*)
7366
# When not using gcc, we currently assume that we are using
7367
# Microsoft Visual C++.
7368
# hardcode_libdir_flag_spec is actually meaningless, as there is
7369
# no search path for DLLs.
7370
hardcode_libdir_flag_spec=' '
7371
allow_undefined_flag=unsupported
7372
# Tell ltmain to make .lib files, not .a files.
7374
# Tell ltmain to make .dll files, not .so files.
7376
# FIXME: Setting linknames here is a bad hack.
7377
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7378
# The linker will automatically build a .lib file if we build a DLL.
7379
old_archive_From_new_cmds='true'
7380
# FIXME: Should let the user specify the lib program.
7381
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7382
fix_srcfile_path='`cygpath -w "$srcfile"`'
7383
enable_shared_with_static_runtimes=yes
7386
darwin* | rhapsody*)
7388
rhapsody* | darwin1.[012])
7389
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7392
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7393
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7395
case ${MACOSX_DEPLOYMENT_TARGET} in
7397
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7400
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7406
archive_cmds_need_lc=no
7408
hardcode_automatic=yes
7409
hardcode_shlibpath_var=unsupported
7410
whole_archive_flag_spec=''
7411
link_all_deplibs=yes
7412
if test "$GCC" = yes ; then
7413
output_verbose_link_cmd='echo'
7414
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7415
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7416
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7417
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}'
7418
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}'
7420
case $cc_basename in
7422
output_verbose_link_cmd='echo'
7423
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7424
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7425
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7426
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7427
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}'
7437
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438
hardcode_libdir_flag_spec='-L$libdir'
7439
hardcode_shlibpath_var=no
7446
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7447
# support. Future versions do this automatically, but an explicit c++rt0.o
7448
# does not break anything, and helps significantly (at the cost of a little
7451
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7452
hardcode_libdir_flag_spec='-R$libdir'
7454
hardcode_shlibpath_var=no
7457
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7459
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7461
hardcode_minus_L=yes
7462
hardcode_shlibpath_var=no
7465
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7466
freebsd* | kfreebsd*-gnu | dragonfly*)
7467
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7468
hardcode_libdir_flag_spec='-R$libdir'
7470
hardcode_shlibpath_var=no
7474
if test "$GCC" = yes; then
7475
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'
7477
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'
7479
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7480
hardcode_libdir_separator=:
7483
# hardcode_minus_L: Not really in the search PATH,
7484
# but as the default location of the library.
7485
hardcode_minus_L=yes
7486
export_dynamic_flag_spec='${wl}-E'
7490
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7493
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7496
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7502
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7505
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7509
if test "$with_gnu_ld" = no; then
7512
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7513
hardcode_libdir_flag_spec_ld='+b $libdir'
7514
hardcode_libdir_separator=:
7516
hardcode_shlibpath_var=no
7519
hardcode_libdir_flag_spec='-L$libdir'
7521
hardcode_shlibpath_var=no
7523
# hardcode_minus_L: Not really in the search PATH,
7524
# but as the default location of the library.
7525
hardcode_minus_L=yes
7528
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7529
hardcode_libdir_separator=:
7531
export_dynamic_flag_spec='${wl}-E'
7533
# hardcode_minus_L: Not really in the search PATH,
7534
# but as the default location of the library.
7535
hardcode_minus_L=yes
7541
irix5* | irix6* | nonstopux*)
7542
if test "$GCC" = yes; then
7543
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'
7545
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'
7546
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7548
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7549
hardcode_libdir_separator=:
7550
link_all_deplibs=yes
7554
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7555
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7557
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7559
hardcode_libdir_flag_spec='-R$libdir'
7561
hardcode_shlibpath_var=no
7565
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7567
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7568
hardcode_libdir_separator=:
7569
hardcode_shlibpath_var=no
7574
hardcode_shlibpath_var=no
7575
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7576
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7577
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7578
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7579
export_dynamic_flag_spec='${wl}-E'
7582
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7583
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7584
hardcode_libdir_flag_spec='-R$libdir'
7587
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7588
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7595
hardcode_libdir_flag_spec='-L$libdir'
7596
hardcode_minus_L=yes
7597
allow_undefined_flag=unsupported
7598
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'
7599
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7603
if test "$GCC" = yes; then
7604
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7605
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'
7607
allow_undefined_flag=' -expect_unresolved \*'
7608
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'
7610
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7611
hardcode_libdir_separator=:
7614
osf4* | osf5*) # as osf3* with the addition of -msym flag
7615
if test "$GCC" = yes; then
7616
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7617
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'
7618
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7620
allow_undefined_flag=' -expect_unresolved \*'
7621
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'
7622
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7623
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7625
# Both c and cxx compiler support -rpath directly
7626
hardcode_libdir_flag_spec='-rpath $libdir'
7628
hardcode_libdir_separator=:
7632
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7633
hardcode_shlibpath_var=no
7634
export_dynamic_flag_spec='${wl}-Bexport'
7635
runpath_var=LD_RUN_PATH
7636
hardcode_runpath_var=yes
7640
no_undefined_flag=' -z text'
7641
if test "$GCC" = yes; then
7643
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7644
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7645
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7648
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7649
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7650
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7652
hardcode_libdir_flag_spec='-R$libdir'
7653
hardcode_shlibpath_var=no
7655
solaris2.[0-5] | solaris2.[0-5].*) ;;
7657
# The compiler driver will combine linker options so we
7658
# cannot just pass the convience library names through
7659
# without $wl, iff we do not link with $LD.
7660
# Luckily, gcc supports the same syntax we need for Sun Studio.
7661
# Supported since Solaris 2.6 (maybe 2.5.1?)
7664
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7666
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7669
link_all_deplibs=yes
7673
if test "x$host_vendor" = xsequent; then
7674
# Use $CC to link under sequent, because it throws in some extra .o
7675
# files that make .init and .fini sections work.
7676
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7678
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7680
hardcode_libdir_flag_spec='-L$libdir'
7682
hardcode_minus_L=yes
7683
hardcode_shlibpath_var=no
7687
case $host_vendor in
7689
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690
hardcode_direct=yes # is this really true???
7693
## LD is ld it makes a PLAMLIB
7694
## CC just makes a GrossModule.
7695
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7696
reload_cmds='$CC -r -o $output$reload_objs'
7700
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7701
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7704
runpath_var='LD_RUN_PATH'
7705
hardcode_shlibpath_var=no
7709
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7710
hardcode_shlibpath_var=no
7711
export_dynamic_flag_spec='-Bexport'
7715
if test -d /usr/nec; then
7716
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7717
hardcode_shlibpath_var=no
7718
runpath_var=LD_RUN_PATH
7719
hardcode_runpath_var=yes
7725
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7728
hardcode_shlibpath_var=no
7729
hardcode_runpath_var=yes
7730
runpath_var=LD_RUN_PATH
7733
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7734
no_undefined_flag='${wl}-z ${wl}text'
7735
if test "$GCC" = yes; then
7736
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7738
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740
runpath_var='LD_RUN_PATH'
7741
hardcode_shlibpath_var=no
7745
no_undefined_flag=' -z text'
7746
# $CC -shared without GNU ld will not create a library from C++
7747
# object files and a static libstdc++, better avoid it by now
7748
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7749
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7750
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7751
hardcode_libdir_flag_spec=
7752
hardcode_shlibpath_var=no
7753
runpath_var='LD_RUN_PATH'
7757
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7758
hardcode_libdir_flag_spec='-L$libdir'
7759
hardcode_shlibpath_var=no
7768
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7769
echo "${ECHO_T}$ld_shlibs" >&6
7770
test "$ld_shlibs" = no && can_build_shared=no
7772
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7773
if test "$GCC" = yes; then
7774
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7778
# Do we need to explicitly link libc?
7780
case "x$archive_cmds_need_lc" in
7782
# Assume -lc should be added
7783
archive_cmds_need_lc=yes
7785
if test "$enable_shared" = yes && test "$GCC" = yes; then
7786
case $archive_cmds in
7788
# FIXME: we may have to deal with multi-command sequences.
7791
# Test whether the compiler implicitly links with -lc since on some
7792
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7793
# to ld, don't add -lc before -lgcc.
7794
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7795
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7797
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7799
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7800
(eval $ac_compile) 2>&5
7802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803
(exit $ac_status); } 2>conftest.err; then
7806
libobjs=conftest.$ac_objext
7808
wl=$lt_prog_compiler_wl
7814
lt_save_allow_undefined_flag=$allow_undefined_flag
7815
allow_undefined_flag=
7816
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7817
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820
(exit $ac_status); }
7822
archive_cmds_need_lc=no
7824
archive_cmds_need_lc=yes
7826
allow_undefined_flag=$lt_save_allow_undefined_flag
7828
cat conftest.err 1>&5
7831
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7832
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7839
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7840
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7842
libname_spec='lib$name'
7850
shlibpath_overrides_runpath=unknown
7852
dynamic_linker="$host_os ld.so"
7853
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7854
if test "$GCC" = yes; then
7855
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7856
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7857
# if the path contains ";" then we assume it to be the separator
7858
# otherwise default to the standard path separator (i.e. ":") - it is
7859
# assumed that no part of a normal pathname contains ";" but that should
7860
# okay in the real world where ";" in dirpaths is itself problematic.
7861
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7863
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7866
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7868
need_lib_prefix=unknown
7869
hardcode_into_libs=no
7871
# when you set need_version to no, make sure it does not cause -set_version
7872
# flags to be left without arguments
7873
need_version=unknown
7878
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7879
shlibpath_var=LIBPATH
7881
# AIX 3 has no versioning support, so we append a major version to the name.
7882
soname_spec='${libname}${release}${shared_ext}$major'
7889
hardcode_into_libs=yes
7890
if test "$host_cpu" = ia64; then
7891
# AIX 5 supports IA64
7892
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7893
shlibpath_var=LD_LIBRARY_PATH
7895
# With GCC up to 2.95.x, collect2 would create an import file
7896
# for dependence libraries. The import file would start with
7897
# the line `#! .'. This would cause the generated library to
7898
# depend on `.', always an invalid library. This was fixed in
7899
# development snapshots of GCC prior to 3.0.
7901
aix4 | aix4.[01] | aix4.[01].*)
7902
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7904
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7911
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7912
# soname into executable. Probably we can add versioning support to
7913
# collect2, so additional links can be useful in future.
7914
if test "$aix_use_runtimelinking" = yes; then
7915
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7916
# instead of lib<name>.a to let people know that these are not
7917
# typical AIX shared libraries.
7918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920
# We preserve .a as extension for shared libraries through AIX4.2
7921
# and later when we are not doing run time linking.
7922
library_names_spec='${libname}${release}.a $libname.a'
7923
soname_spec='${libname}${release}${shared_ext}$major'
7925
shlibpath_var=LIBPATH
7930
library_names_spec='$libname.ixlibrary $libname.a'
7931
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7932
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'
7936
library_names_spec='${libname}${shared_ext}'
7937
dynamic_linker="$host_os ld.so"
7938
shlibpath_var=LIBRARY_PATH
7944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945
soname_spec='${libname}${release}${shared_ext}$major'
7946
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7947
shlibpath_var=LD_LIBRARY_PATH
7948
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7949
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7950
# the default ld.so.conf also contains /usr/contrib/lib and
7951
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7952
# libtool to hard-code these into programs
7955
cygwin* | mingw* | pw32*)
7956
version_type=windows
7961
case $GCC,$host_os in
7962
yes,cygwin* | yes,mingw* | yes,pw32*)
7963
library_names_spec='$libname.dll.a'
7964
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7965
postinstall_cmds='base_file=`basename \${file}`~
7966
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7967
dldir=$destdir/`dirname \$dlpath`~
7968
test -d \$dldir || mkdir -p \$dldir~
7969
$install_prog $dir/$dlname \$dldir/$dlname~
7970
chmod a+x \$dldir/$dlname'
7971
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7972
dlpath=$dir/\$dldll~
7974
shlibpath_overrides_runpath=yes
7978
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7979
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7980
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7983
# MinGW DLLs use traditional 'lib' prefix
7984
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7985
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7986
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7987
# It is most probably a Windows format PATH printed by
7988
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7989
# path with ; separators, and with drive letters. We can handle the
7990
# drive letters (cygwin fileutils understands them), so leave them,
7991
# especially as we might pass files found there to a mingw objdump,
7992
# which wouldn't understand a cygwinified path. Ahh.
7993
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7995
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7999
# pw32 DLLs use 'pw' prefix rather than 'lib'
8000
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8006
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8009
dynamic_linker='Win32 ld.exe'
8010
# FIXME: first we should search . and the directory the executable is in
8014
darwin* | rhapsody*)
8015
dynamic_linker="$host_os dyld"
8019
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8020
soname_spec='${libname}${release}${major}$shared_ext'
8021
shlibpath_overrides_runpath=yes
8022
shlibpath_var=DYLD_LIBRARY_PATH
8023
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8024
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8025
if test "$GCC" = yes; then
8026
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"`
8028
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8030
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8038
soname_spec='${libname}${release}${shared_ext}$major'
8039
shlibpath_var=LD_LIBRARY_PATH
8050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8051
soname_spec='${libname}${release}${shared_ext}$major'
8052
shlibpath_var=LD_LIBRARY_PATH
8053
shlibpath_overrides_runpath=no
8054
hardcode_into_libs=yes
8055
dynamic_linker='GNU ld.so'
8058
freebsd* | dragonfly*)
8059
# DragonFly does not have aout. When/if they implement a new
8060
# versioning mechanism, adjust this.
8061
if test -x /usr/bin/objformat; then
8062
objformat=`/usr/bin/objformat`
8065
freebsd[123]*) objformat=aout ;;
8069
version_type=freebsd-$objformat
8070
case $version_type in
8072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8077
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8081
shlibpath_var=LD_LIBRARY_PATH
8084
shlibpath_overrides_runpath=yes
8086
freebsd3.[01]* | freebsdelf3.[01]*)
8087
shlibpath_overrides_runpath=yes
8088
hardcode_into_libs=yes
8091
shlibpath_overrides_runpath=no
8092
hardcode_into_libs=yes
8101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8102
soname_spec='${libname}${release}${shared_ext}$major'
8103
shlibpath_var=LD_LIBRARY_PATH
8104
hardcode_into_libs=yes
8107
hpux9* | hpux10* | hpux11*)
8108
# Give a soname corresponding to the major version so that dld.sl refuses to
8109
# link against other versions.
8116
hardcode_into_libs=yes
8117
dynamic_linker="$host_os dld.so"
8118
shlibpath_var=LD_LIBRARY_PATH
8119
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8121
soname_spec='${libname}${release}${shared_ext}$major'
8122
if test "X$HPUX_IA64_MODE" = X32; then
8123
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8125
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8127
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8131
hardcode_into_libs=yes
8132
dynamic_linker="$host_os dld.sl"
8133
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8134
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8135
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8136
soname_spec='${libname}${release}${shared_ext}$major'
8137
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8138
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8142
dynamic_linker="$host_os dld.sl"
8143
shlibpath_var=SHLIB_PATH
8144
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8146
soname_spec='${libname}${release}${shared_ext}$major'
8149
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8150
postinstall_cmds='chmod 555 $lib'
8153
irix5* | irix6* | nonstopux*)
8155
nonstopux*) version_type=nonstopux ;;
8157
if test "$lt_cv_prog_gnu_ld" = yes; then
8165
soname_spec='${libname}${release}${shared_ext}$major'
8166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8168
irix5* | nonstopux*)
8172
case $LD in # libtool.m4 will add one of these switches to LD
8173
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8174
libsuff= shlibsuff= libmagic=32-bit;;
8175
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8176
libsuff=32 shlibsuff=N32 libmagic=N32;;
8177
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8178
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8179
*) libsuff= shlibsuff= libmagic=never-match;;
8183
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8184
shlibpath_overrides_runpath=no
8185
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8186
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8187
hardcode_into_libs=yes
8190
# No shared lib support for Linux oldld, aout, or coff.
8191
linux*oldld* | linux*aout* | linux*coff*)
8195
# This must be Linux ELF.
8200
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8201
soname_spec='${libname}${release}${shared_ext}$major'
8202
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8203
shlibpath_var=LD_LIBRARY_PATH
8204
shlibpath_overrides_runpath=no
8205
# This implies no fast_install, which is unacceptable.
8206
# Some rework will be needed to allow for fast_install
8207
# before this can be enabled.
8208
hardcode_into_libs=yes
8210
# Append ld.so.conf contents to the search path
8211
if test -f /etc/ld.so.conf; then
8212
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8213
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8216
# We used to test for /lib/ld.so.1 and disable shared libraries on
8217
# powerpc, because MkLinux only supported shared libraries with the
8218
# GNU dynamic linker. Since this was broken with cross compilers,
8219
# most powerpc-linux boxes support dynamic linking these days and
8220
# people can always --disable-shared, the test was removed, and we
8221
# assume the GNU/Linux dynamic linker is in use.
8222
dynamic_linker='GNU/Linux ld.so'
8229
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8230
soname_spec='${libname}${release}${shared_ext}$major'
8231
shlibpath_var=LD_LIBRARY_PATH
8232
shlibpath_overrides_runpath=no
8233
hardcode_into_libs=yes
8234
dynamic_linker='GNU ld.so'
8241
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8242
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8243
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8244
dynamic_linker='NetBSD (a.out) ld.so'
8246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8247
soname_spec='${libname}${release}${shared_ext}$major'
8248
dynamic_linker='NetBSD ld.elf_so'
8250
shlibpath_var=LD_LIBRARY_PATH
8251
shlibpath_overrides_runpath=yes
8252
hardcode_into_libs=yes
8257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8258
shlibpath_var=LD_LIBRARY_PATH
8259
shlibpath_overrides_runpath=yes
8266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8267
soname_spec='${libname}${release}${shared_ext}$major'
8268
shlibpath_var=LD_LIBRARY_PATH
8269
shlibpath_overrides_runpath=yes
8275
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8277
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8278
*) need_version=no ;;
8280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8281
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8282
shlibpath_var=LD_LIBRARY_PATH
8283
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8285
openbsd2.[89] | openbsd2.[89].*)
8286
shlibpath_overrides_runpath=no
8289
shlibpath_overrides_runpath=yes
8293
shlibpath_overrides_runpath=yes
8298
libname_spec='$name'
8301
library_names_spec='$libname${shared_ext} $libname.a'
8302
dynamic_linker='OS/2 ld.exe'
8303
shlibpath_var=LIBPATH
8306
osf3* | osf4* | osf5*)
8310
soname_spec='${libname}${release}${shared_ext}$major'
8311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8312
shlibpath_var=LD_LIBRARY_PATH
8313
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8314
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8319
soname_spec='${libname}${release}${shared_ext}$major'
8320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321
shlibpath_var=LD_LIBRARY_PATH
8328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8329
soname_spec='${libname}${release}${shared_ext}$major'
8330
shlibpath_var=LD_LIBRARY_PATH
8331
shlibpath_overrides_runpath=yes
8332
hardcode_into_libs=yes
8333
# ldd complains unless libraries are executable
8334
postinstall_cmds='chmod +x $lib'
8339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8340
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8341
shlibpath_var=LD_LIBRARY_PATH
8342
shlibpath_overrides_runpath=yes
8343
if test "$with_gnu_ld" = yes; then
8349
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8352
soname_spec='${libname}${release}${shared_ext}$major'
8353
shlibpath_var=LD_LIBRARY_PATH
8354
case $host_vendor in
8356
shlibpath_overrides_runpath=no
8358
export_dynamic_flag_spec='${wl}-Blargedynsym'
8359
runpath_var=LD_RUN_PATH
8367
shlibpath_overrides_runpath=no
8368
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8374
if test -d /usr/nec ;then
8376
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8377
soname_spec='$libname${shared_ext}.$major'
8378
shlibpath_var=LD_LIBRARY_PATH
8384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8385
soname_spec='${libname}${release}${shared_ext}$major'
8386
shlibpath_var=LD_LIBRARY_PATH
8393
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8394
echo "${ECHO_T}$dynamic_linker" >&6
8395
test "$dynamic_linker" = no && can_build_shared=no
8397
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8398
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8400
if test -n "$hardcode_libdir_flag_spec" || \
8401
test -n "$runpath_var" || \
8402
test "X$hardcode_automatic" = "Xyes" ; then
8404
# We can hardcode non-existant directories.
8405
if test "$hardcode_direct" != no &&
8406
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8407
# have to relink, otherwise we might link with an installed library
8408
# when we should be linking with a yet-to-be-installed one
8409
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8410
test "$hardcode_minus_L" != no; then
8411
# Linking always hardcodes the temporary library directory.
8412
hardcode_action=relink
8414
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8415
hardcode_action=immediate
8418
# We cannot hardcode anything, or else we can only hardcode existing
8420
hardcode_action=unsupported
8422
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8423
echo "${ECHO_T}$hardcode_action" >&6
8425
if test "$hardcode_action" = relink; then
8426
# Fast installation is not supported
8427
enable_fast_install=no
8428
elif test "$shlibpath_overrides_runpath" = yes ||
8429
test "$enable_shared" = no; then
8430
# Fast installation is not necessary
8431
enable_fast_install=needless
8436
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8437
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8438
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8439
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8440
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8441
echo "$as_me:$LINENO: result: yes" >&5
8442
echo "${ECHO_T}yes" >&6
8444
# FIXME - insert some real tests, host_os isn't really good enough
8447
if test -n "$STRIP" ; then
8448
striplib="$STRIP -x"
8449
echo "$as_me:$LINENO: result: yes" >&5
8450
echo "${ECHO_T}yes" >&6
8452
echo "$as_me:$LINENO: result: no" >&5
8453
echo "${ECHO_T}no" >&6
8457
echo "$as_me:$LINENO: result: no" >&5
8458
echo "${ECHO_T}no" >&6
8463
if test "x$enable_dlopen" != xyes; then
8464
enable_dlopen=unknown
8465
enable_dlopen_self=unknown
8466
enable_dlopen_self_static=unknown
8473
lt_cv_dlopen="load_add_on"
8475
lt_cv_dlopen_self=yes
8479
lt_cv_dlopen="LoadLibrary"
8484
lt_cv_dlopen="dlopen"
8489
# if libdl is installed we need to link against it
8490
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8491
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8492
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8493
echo $ECHO_N "(cached) $ECHO_C" >&6
8495
ac_check_lib_save_LIBS=$LIBS
8497
cat >conftest.$ac_ext <<_ACEOF
8500
cat confdefs.h >>conftest.$ac_ext
8501
cat >>conftest.$ac_ext <<_ACEOF
8502
/* end confdefs.h. */
8504
/* Override any gcc2 internal prototype to avoid an error. */
8508
/* We use char because int might match the return type of a gcc2
8509
builtin and then its argument prototype would still apply. */
8519
rm -f conftest.$ac_objext conftest$ac_exeext
8520
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8521
(eval $ac_link) 2>conftest.er1
8523
grep -v '^ *+' conftest.er1 >conftest.err
8525
cat conftest.err >&5
8526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527
(exit $ac_status); } &&
8528
{ ac_try='test -z "$ac_c_werror_flag"
8529
|| test ! -s conftest.err'
8530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534
(exit $ac_status); }; } &&
8535
{ ac_try='test -s conftest$ac_exeext'
8536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540
(exit $ac_status); }; }; then
8541
ac_cv_lib_dl_dlopen=yes
8543
echo "$as_me: failed program was:" >&5
8544
sed 's/^/| /' conftest.$ac_ext >&5
8546
ac_cv_lib_dl_dlopen=no
8548
rm -f conftest.err conftest.$ac_objext \
8549
conftest$ac_exeext conftest.$ac_ext
8550
LIBS=$ac_check_lib_save_LIBS
8552
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8553
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8554
if test $ac_cv_lib_dl_dlopen = yes; then
8555
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8560
lt_cv_dlopen_self=yes
8567
echo "$as_me:$LINENO: checking for shl_load" >&5
8568
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8569
if test "${ac_cv_func_shl_load+set}" = set; then
8570
echo $ECHO_N "(cached) $ECHO_C" >&6
8572
cat >conftest.$ac_ext <<_ACEOF
8575
cat confdefs.h >>conftest.$ac_ext
8576
cat >>conftest.$ac_ext <<_ACEOF
8577
/* end confdefs.h. */
8578
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8579
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8580
#define shl_load innocuous_shl_load
8582
/* System header to define __stub macros and hopefully few prototypes,
8583
which can conflict with char shl_load (); below.
8584
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8585
<limits.h> exists even on freestanding compilers. */
8588
# include <limits.h>
8590
# include <assert.h>
8595
/* Override any gcc2 internal prototype to avoid an error. */
8600
/* We use char because int might match the return type of a gcc2
8601
builtin and then its argument prototype would still apply. */
8603
/* The GNU C library defines this for functions which it implements
8604
to always fail with ENOSYS. Some functions are actually named
8605
something starting with __ and the normal name is an alias. */
8606
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8609
char (*f) () = shl_load;
8618
return f != shl_load;
8623
rm -f conftest.$ac_objext conftest$ac_exeext
8624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625
(eval $ac_link) 2>conftest.er1
8627
grep -v '^ *+' conftest.er1 >conftest.err
8629
cat conftest.err >&5
8630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631
(exit $ac_status); } &&
8632
{ ac_try='test -z "$ac_c_werror_flag"
8633
|| test ! -s conftest.err'
8634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638
(exit $ac_status); }; } &&
8639
{ ac_try='test -s conftest$ac_exeext'
8640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644
(exit $ac_status); }; }; then
8645
ac_cv_func_shl_load=yes
8647
echo "$as_me: failed program was:" >&5
8648
sed 's/^/| /' conftest.$ac_ext >&5
8650
ac_cv_func_shl_load=no
8652
rm -f conftest.err conftest.$ac_objext \
8653
conftest$ac_exeext conftest.$ac_ext
8655
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8656
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8657
if test $ac_cv_func_shl_load = yes; then
8658
lt_cv_dlopen="shl_load"
8660
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8661
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8662
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8663
echo $ECHO_N "(cached) $ECHO_C" >&6
8665
ac_check_lib_save_LIBS=$LIBS
8667
cat >conftest.$ac_ext <<_ACEOF
8670
cat confdefs.h >>conftest.$ac_ext
8671
cat >>conftest.$ac_ext <<_ACEOF
8672
/* end confdefs.h. */
8674
/* Override any gcc2 internal prototype to avoid an error. */
8678
/* We use char because int might match the return type of a gcc2
8679
builtin and then its argument prototype would still apply. */
8689
rm -f conftest.$ac_objext conftest$ac_exeext
8690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691
(eval $ac_link) 2>conftest.er1
8693
grep -v '^ *+' conftest.er1 >conftest.err
8695
cat conftest.err >&5
8696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697
(exit $ac_status); } &&
8698
{ ac_try='test -z "$ac_c_werror_flag"
8699
|| 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_exeext'
8706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710
(exit $ac_status); }; }; then
8711
ac_cv_lib_dld_shl_load=yes
8713
echo "$as_me: failed program was:" >&5
8714
sed 's/^/| /' conftest.$ac_ext >&5
8716
ac_cv_lib_dld_shl_load=no
8718
rm -f conftest.err conftest.$ac_objext \
8719
conftest$ac_exeext conftest.$ac_ext
8720
LIBS=$ac_check_lib_save_LIBS
8722
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8723
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8724
if test $ac_cv_lib_dld_shl_load = yes; then
8725
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8727
echo "$as_me:$LINENO: checking for dlopen" >&5
8728
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8729
if test "${ac_cv_func_dlopen+set}" = set; then
8730
echo $ECHO_N "(cached) $ECHO_C" >&6
8732
cat >conftest.$ac_ext <<_ACEOF
8735
cat confdefs.h >>conftest.$ac_ext
8736
cat >>conftest.$ac_ext <<_ACEOF
8737
/* end confdefs.h. */
8738
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8739
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8740
#define dlopen innocuous_dlopen
8742
/* System header to define __stub macros and hopefully few prototypes,
8743
which can conflict with char dlopen (); below.
8744
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8745
<limits.h> exists even on freestanding compilers. */
8748
# include <limits.h>
8750
# include <assert.h>
8755
/* Override any gcc2 internal prototype to avoid an error. */
8760
/* We use char because int might match the return type of a gcc2
8761
builtin and then its argument prototype would still apply. */
8763
/* The GNU C library defines this for functions which it implements
8764
to always fail with ENOSYS. Some functions are actually named
8765
something starting with __ and the normal name is an alias. */
8766
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8769
char (*f) () = dlopen;
8783
rm -f conftest.$ac_objext conftest$ac_exeext
8784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785
(eval $ac_link) 2>conftest.er1
8787
grep -v '^ *+' conftest.er1 >conftest.err
8789
cat conftest.err >&5
8790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791
(exit $ac_status); } &&
8792
{ ac_try='test -z "$ac_c_werror_flag"
8793
|| test ! -s conftest.err'
8794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798
(exit $ac_status); }; } &&
8799
{ ac_try='test -s conftest$ac_exeext'
8800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804
(exit $ac_status); }; }; then
8805
ac_cv_func_dlopen=yes
8807
echo "$as_me: failed program was:" >&5
8808
sed 's/^/| /' conftest.$ac_ext >&5
8810
ac_cv_func_dlopen=no
8812
rm -f conftest.err conftest.$ac_objext \
8813
conftest$ac_exeext conftest.$ac_ext
8815
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8816
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8817
if test $ac_cv_func_dlopen = yes; then
8818
lt_cv_dlopen="dlopen"
8820
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8821
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8822
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8823
echo $ECHO_N "(cached) $ECHO_C" >&6
8825
ac_check_lib_save_LIBS=$LIBS
8827
cat >conftest.$ac_ext <<_ACEOF
8830
cat confdefs.h >>conftest.$ac_ext
8831
cat >>conftest.$ac_ext <<_ACEOF
8832
/* end confdefs.h. */
8834
/* Override any gcc2 internal prototype to avoid an error. */
8838
/* We use char because int might match the return type of a gcc2
8839
builtin and then its argument prototype would still apply. */
8849
rm -f conftest.$ac_objext conftest$ac_exeext
8850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851
(eval $ac_link) 2>conftest.er1
8853
grep -v '^ *+' conftest.er1 >conftest.err
8855
cat conftest.err >&5
8856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857
(exit $ac_status); } &&
8858
{ ac_try='test -z "$ac_c_werror_flag"
8859
|| test ! -s conftest.err'
8860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864
(exit $ac_status); }; } &&
8865
{ ac_try='test -s conftest$ac_exeext'
8866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870
(exit $ac_status); }; }; then
8871
ac_cv_lib_dl_dlopen=yes
8873
echo "$as_me: failed program was:" >&5
8874
sed 's/^/| /' conftest.$ac_ext >&5
8876
ac_cv_lib_dl_dlopen=no
8878
rm -f conftest.err conftest.$ac_objext \
8879
conftest$ac_exeext conftest.$ac_ext
8880
LIBS=$ac_check_lib_save_LIBS
8882
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8883
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8884
if test $ac_cv_lib_dl_dlopen = yes; then
8885
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8887
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8888
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8889
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8890
echo $ECHO_N "(cached) $ECHO_C" >&6
8892
ac_check_lib_save_LIBS=$LIBS
8894
cat >conftest.$ac_ext <<_ACEOF
8897
cat confdefs.h >>conftest.$ac_ext
8898
cat >>conftest.$ac_ext <<_ACEOF
8899
/* end confdefs.h. */
8901
/* Override any gcc2 internal prototype to avoid an error. */
8905
/* We use char because int might match the return type of a gcc2
8906
builtin and then its argument prototype would still apply. */
8916
rm -f conftest.$ac_objext conftest$ac_exeext
8917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918
(eval $ac_link) 2>conftest.er1
8920
grep -v '^ *+' conftest.er1 >conftest.err
8922
cat conftest.err >&5
8923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924
(exit $ac_status); } &&
8925
{ ac_try='test -z "$ac_c_werror_flag"
8926
|| test ! -s conftest.err'
8927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931
(exit $ac_status); }; } &&
8932
{ ac_try='test -s conftest$ac_exeext'
8933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937
(exit $ac_status); }; }; then
8938
ac_cv_lib_svld_dlopen=yes
8940
echo "$as_me: failed program was:" >&5
8941
sed 's/^/| /' conftest.$ac_ext >&5
8943
ac_cv_lib_svld_dlopen=no
8945
rm -f conftest.err conftest.$ac_objext \
8946
conftest$ac_exeext conftest.$ac_ext
8947
LIBS=$ac_check_lib_save_LIBS
8949
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8950
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8951
if test $ac_cv_lib_svld_dlopen = yes; then
8952
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8954
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8955
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8956
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8957
echo $ECHO_N "(cached) $ECHO_C" >&6
8959
ac_check_lib_save_LIBS=$LIBS
8961
cat >conftest.$ac_ext <<_ACEOF
8964
cat confdefs.h >>conftest.$ac_ext
8965
cat >>conftest.$ac_ext <<_ACEOF
8966
/* end confdefs.h. */
8968
/* Override any gcc2 internal prototype to avoid an error. */
8972
/* We use char because int might match the return type of a gcc2
8973
builtin and then its argument prototype would still apply. */
8983
rm -f conftest.$ac_objext conftest$ac_exeext
8984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985
(eval $ac_link) 2>conftest.er1
8987
grep -v '^ *+' conftest.er1 >conftest.err
8989
cat conftest.err >&5
8990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991
(exit $ac_status); } &&
8992
{ ac_try='test -z "$ac_c_werror_flag"
8993
|| test ! -s conftest.err'
8994
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998
(exit $ac_status); }; } &&
8999
{ ac_try='test -s conftest$ac_exeext'
9000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004
(exit $ac_status); }; }; then
9005
ac_cv_lib_dld_dld_link=yes
9007
echo "$as_me: failed program was:" >&5
9008
sed 's/^/| /' conftest.$ac_ext >&5
9010
ac_cv_lib_dld_dld_link=no
9012
rm -f conftest.err conftest.$ac_objext \
9013
conftest$ac_exeext conftest.$ac_ext
9014
LIBS=$ac_check_lib_save_LIBS
9016
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9017
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9018
if test $ac_cv_lib_dld_dld_link = yes; then
9019
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9040
if test "x$lt_cv_dlopen" != xno; then
9046
case $lt_cv_dlopen in
9048
save_CPPFLAGS="$CPPFLAGS"
9049
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9051
save_LDFLAGS="$LDFLAGS"
9052
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9055
LIBS="$lt_cv_dlopen_libs $LIBS"
9057
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9058
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9059
if test "${lt_cv_dlopen_self+set}" = set; then
9060
echo $ECHO_N "(cached) $ECHO_C" >&6
9062
if test "$cross_compiling" = yes; then :
9063
lt_cv_dlopen_self=cross
9065
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9066
lt_status=$lt_dlunknown
9067
cat > conftest.$ac_ext <<EOF
9068
#line 9068 "configure"
9069
#include "confdefs.h"
9078
# define LT_DLGLOBAL RTLD_GLOBAL
9081
# define LT_DLGLOBAL DL_GLOBAL
9083
# define LT_DLGLOBAL 0
9087
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9088
find out it does not work in some platform. */
9089
#ifndef LT_DLLAZY_OR_NOW
9091
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9094
# define LT_DLLAZY_OR_NOW DL_LAZY
9097
# define LT_DLLAZY_OR_NOW RTLD_NOW
9100
# define LT_DLLAZY_OR_NOW DL_NOW
9102
# define LT_DLLAZY_OR_NOW 0
9110
extern "C" void exit (int);
9113
void fnord() { int i=42;}
9116
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9117
int status = $lt_dlunknown;
9121
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9122
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9123
/* dlclose (self); */
9129
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9130
(eval $ac_link) 2>&5
9132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9134
(./conftest; exit; ) >&5 2>/dev/null
9137
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9138
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9139
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9142
# compilation failed
9143
lt_cv_dlopen_self=no
9150
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9151
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9153
if test "x$lt_cv_dlopen_self" = xyes; then
9154
LDFLAGS="$LDFLAGS $link_static_flag"
9155
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9156
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9157
if test "${lt_cv_dlopen_self_static+set}" = set; then
9158
echo $ECHO_N "(cached) $ECHO_C" >&6
9160
if test "$cross_compiling" = yes; then :
9161
lt_cv_dlopen_self_static=cross
9163
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9164
lt_status=$lt_dlunknown
9165
cat > conftest.$ac_ext <<EOF
9166
#line 9166 "configure"
9167
#include "confdefs.h"
9176
# define LT_DLGLOBAL RTLD_GLOBAL
9179
# define LT_DLGLOBAL DL_GLOBAL
9181
# define LT_DLGLOBAL 0
9185
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9186
find out it does not work in some platform. */
9187
#ifndef LT_DLLAZY_OR_NOW
9189
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9192
# define LT_DLLAZY_OR_NOW DL_LAZY
9195
# define LT_DLLAZY_OR_NOW RTLD_NOW
9198
# define LT_DLLAZY_OR_NOW DL_NOW
9200
# define LT_DLLAZY_OR_NOW 0
9208
extern "C" void exit (int);
9211
void fnord() { int i=42;}
9214
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9215
int status = $lt_dlunknown;
9219
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9220
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9221
/* dlclose (self); */
9227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9228
(eval $ac_link) 2>&5
9230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9232
(./conftest; exit; ) >&5 2>/dev/null
9235
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9236
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9237
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9240
# compilation failed
9241
lt_cv_dlopen_self_static=no
9248
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9249
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9252
CPPFLAGS="$save_CPPFLAGS"
9253
LDFLAGS="$save_LDFLAGS"
9258
case $lt_cv_dlopen_self in
9259
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9260
*) enable_dlopen_self=unknown ;;
9263
case $lt_cv_dlopen_self_static in
9264
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9265
*) enable_dlopen_self_static=unknown ;;
9270
# Report which librarie types wil actually be built
9271
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9272
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9273
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9274
echo "${ECHO_T}$can_build_shared" >&6
9276
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9277
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9278
test "$can_build_shared" = "no" && enable_shared=no
9280
# On AIX, shared libraries and static libraries use the same namespace, and
9281
# are all built from PIC.
9284
test "$enable_shared" = yes && enable_static=no
9285
if test -n "$RANLIB"; then
9286
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9287
postinstall_cmds='$RANLIB $lib'
9292
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9293
test "$enable_shared" = yes && enable_static=no
9297
echo "$as_me:$LINENO: result: $enable_shared" >&5
9298
echo "${ECHO_T}$enable_shared" >&6
9300
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9301
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9302
# Make sure either enable_shared or enable_static is yes.
9303
test "$enable_shared" = yes || enable_static=yes
9304
echo "$as_me:$LINENO: result: $enable_static" >&5
9305
echo "${ECHO_T}$enable_static" >&6
9307
# The else clause should only fire when bootstrapping the
9308
# libtool distribution, otherwise you forgot to ship ltmain.sh
9309
# with your package, and you will get complaints that there are
9310
# no rules to generate ltmain.sh.
9311
if test -f "$ltmain"; then
9312
# See if we are running on zsh, and set the options which allow our commands through
9313
# without removal of \ escapes.
9314
if test -n "${ZSH_VERSION+set}" ; then
9315
setopt NO_GLOB_SUBST
9317
# Now quote all the things that may contain metacharacters while being
9318
# careful not to overquote the AC_SUBSTed values. We take copies of the
9319
# variables and quote the copies for generation of the libtool script.
9320
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9322
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9323
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9324
deplibs_check_method reload_flag reload_cmds need_locks \
9325
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9326
lt_cv_sys_global_symbol_to_c_name_address \
9327
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9328
old_postinstall_cmds old_postuninstall_cmds \
9332
lt_prog_compiler_wl \
9333
lt_prog_compiler_pic \
9334
lt_prog_compiler_static \
9335
lt_prog_compiler_no_builtin_flag \
9336
export_dynamic_flag_spec \
9337
thread_safe_flag_spec \
9338
whole_archive_flag_spec \
9339
enable_shared_with_static_runtimes \
9341
old_archive_from_new_cmds \
9346
compiler_lib_search_path \
9348
archive_expsym_cmds \
9350
postuninstall_cmds \
9351
old_archive_from_expsyms_cmds \
9352
allow_undefined_flag \
9354
export_symbols_cmds \
9355
hardcode_libdir_flag_spec \
9356
hardcode_libdir_flag_spec_ld \
9357
hardcode_libdir_separator \
9358
hardcode_automatic \
9360
module_expsym_cmds \
9361
lt_cv_prog_compiler_c_o \
9366
old_archive_cmds | \
9367
old_archive_from_new_cmds | \
9369
archive_expsym_cmds | \
9371
module_expsym_cmds | \
9372
old_archive_from_expsyms_cmds | \
9373
export_symbols_cmds | \
9374
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9375
postinstall_cmds | postuninstall_cmds | \
9376
old_postinstall_cmds | old_postuninstall_cmds | \
9377
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9378
# Double-quote double-evaled strings.
9379
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9382
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9388
*'\$0 --fallback-echo"')
9389
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9394
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9396
{ echo "$as_me:$LINENO: creating $ofile" >&5
9397
echo "$as_me: creating $ofile" >&6;}
9399
cat <<__EOF__ >> "$cfgfile"
9402
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9403
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9404
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9406
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9407
# Free Software Foundation, Inc.
9409
# This file is part of GNU Libtool:
9410
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9412
# This program is free software; you can redistribute it and/or modify
9413
# it under the terms of the GNU General Public License as published by
9414
# the Free Software Foundation; either version 2 of the License, or
9415
# (at your option) any later version.
9417
# This program is distributed in the hope that it will be useful, but
9418
# WITHOUT ANY WARRANTY; without even the implied warranty of
9419
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9420
# General Public License for more details.
9422
# You should have received a copy of the GNU General Public License
9423
# along with this program; if not, write to the Free Software
9424
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9426
# As a special exception to the GNU General Public License, if you
9427
# distribute this file as part of a program that contains a
9428
# configuration script generated by Autoconf, you may include it under
9429
# the same distribution terms that you use for the rest of that program.
9431
# A sed program that does not truncate output.
9434
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9435
Xsed="$SED -e 1s/^X//"
9437
# The HP-UX ksh and POSIX shell print the target directory to stdout
9439
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9441
# The names of the tagged configurations supported by this script.
9444
# ### BEGIN LIBTOOL CONFIG
9446
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9448
# Shell to use when invoking shell scripts.
9451
# Whether or not to build shared libraries.
9452
build_libtool_libs=$enable_shared
9454
# Whether or not to build static libraries.
9455
build_old_libs=$enable_static
9457
# Whether or not to add -lc for building shared libraries.
9458
build_libtool_need_lc=$archive_cmds_need_lc
9460
# Whether or not to disallow shared libs when runtime libs are static
9461
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9463
# Whether or not to optimize for fast installation.
9464
fast_install=$enable_fast_install
9467
host_alias=$host_alias
9472
build_alias=$build_alias
9476
# An echo program that does not interpret backslashes.
9481
AR_FLAGS=$lt_AR_FLAGS
9486
# A language-specific compiler.
9489
# Is the compiler the GNU C compiler?
9495
# The linker used to build libraries.
9498
# Whether we need hard or soft links.
9501
# A BSD-compatible nm program.
9504
# A symbol stripping program
9507
# Used to examine libraries when file_magic_cmd begins "file"
9508
MAGIC_CMD=$MAGIC_CMD
9510
# Used on cygwin: DLL creation program.
9513
# Used on cygwin: object dumper.
9516
# Used on cygwin: assembler.
9519
# The name of the directory that contains temporary libtool files.
9522
# How to create reloadable object files.
9523
reload_flag=$lt_reload_flag
9524
reload_cmds=$lt_reload_cmds
9526
# How to pass a linker flag through the compiler.
9527
wl=$lt_lt_prog_compiler_wl
9529
# Object file suffix (normally "o").
9532
# Old archive suffix (normally "a").
9535
# Shared library suffix (normally ".so").
9536
shrext_cmds='$shrext_cmds'
9538
# Executable file suffix (normally "").
9541
# Additional compiler flags for building library objects.
9542
pic_flag=$lt_lt_prog_compiler_pic
9545
# What is the maximum length of a command?
9546
max_cmd_len=$lt_cv_sys_max_cmd_len
9548
# Does compiler simultaneously support -c and -o options?
9549
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9551
# Must we lock files when doing compilation?
9552
need_locks=$lt_need_locks
9554
# Do we need the lib prefix for modules?
9555
need_lib_prefix=$need_lib_prefix
9557
# Do we need a version for libraries?
9558
need_version=$need_version
9560
# Whether dlopen is supported.
9561
dlopen_support=$enable_dlopen
9563
# Whether dlopen of programs is supported.
9564
dlopen_self=$enable_dlopen_self
9566
# Whether dlopen of statically linked programs is supported.
9567
dlopen_self_static=$enable_dlopen_self_static
9569
# Compiler flag to prevent dynamic linking.
9570
link_static_flag=$lt_lt_prog_compiler_static
9572
# Compiler flag to turn off builtin functions.
9573
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9575
# Compiler flag to allow reflexive dlopens.
9576
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9578
# Compiler flag to generate shared objects directly from archives.
9579
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9581
# Compiler flag to generate thread-safe objects.
9582
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9584
# Library versioning type.
9585
version_type=$version_type
9587
# Format of library name prefix.
9588
libname_spec=$lt_libname_spec
9590
# List of archive names. First name is the real one, the rest are links.
9591
# The last name is the one that the linker finds with -lNAME.
9592
library_names_spec=$lt_library_names_spec
9594
# The coded name of the library, if different from the real name.
9595
soname_spec=$lt_soname_spec
9597
# Commands used to build and install an old-style archive.
9599
old_archive_cmds=$lt_old_archive_cmds
9600
old_postinstall_cmds=$lt_old_postinstall_cmds
9601
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9603
# Create an old-style archive from a shared archive.
9604
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9606
# Create a temporary old-style archive to link instead of a shared archive.
9607
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9609
# Commands used to build and install a shared archive.
9610
archive_cmds=$lt_archive_cmds
9611
archive_expsym_cmds=$lt_archive_expsym_cmds
9612
postinstall_cmds=$lt_postinstall_cmds
9613
postuninstall_cmds=$lt_postuninstall_cmds
9615
# Commands used to build a loadable module (assumed same as above if empty)
9616
module_cmds=$lt_module_cmds
9617
module_expsym_cmds=$lt_module_expsym_cmds
9619
# Commands to strip libraries.
9620
old_striplib=$lt_old_striplib
9621
striplib=$lt_striplib
9623
# Dependencies to place before the objects being linked to create a
9625
predep_objects=$lt_predep_objects
9627
# Dependencies to place after the objects being linked to create a
9629
postdep_objects=$lt_postdep_objects
9631
# Dependencies to place before the objects being linked to create a
9635
# Dependencies to place after the objects being linked to create a
9637
postdeps=$lt_postdeps
9639
# The library search path used internally by the compiler when linking
9641
compiler_lib_search_path=$lt_compiler_lib_search_path
9643
# Method to check whether dependent libraries are shared objects.
9644
deplibs_check_method=$lt_deplibs_check_method
9646
# Command to use when deplibs_check_method == file_magic.
9647
file_magic_cmd=$lt_file_magic_cmd
9649
# Flag that allows shared libraries with undefined symbols to be built.
9650
allow_undefined_flag=$lt_allow_undefined_flag
9652
# Flag that forces no undefined symbols.
9653
no_undefined_flag=$lt_no_undefined_flag
9655
# Commands used to finish a libtool library installation in a directory.
9656
finish_cmds=$lt_finish_cmds
9658
# Same as above, but a single script fragment to be evaled but not shown.
9659
finish_eval=$lt_finish_eval
9661
# Take the output of nm and produce a listing of raw symbols and C names.
9662
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9664
# Transform the output of nm in a proper C declaration
9665
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9667
# Transform the output of nm in a C name address pair
9668
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9670
# This is the shared library runtime path variable.
9671
runpath_var=$runpath_var
9673
# This is the shared library path variable.
9674
shlibpath_var=$shlibpath_var
9676
# Is shlibpath searched before the hard-coded library search path?
9677
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9679
# How to hardcode a shared library path into an executable.
9680
hardcode_action=$hardcode_action
9682
# Whether we should hardcode library paths into libraries.
9683
hardcode_into_libs=$hardcode_into_libs
9685
# Flag to hardcode \$libdir into a binary during linking.
9686
# This must work even if \$libdir does not exist.
9687
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9689
# If ld is used when linking, flag to hardcode \$libdir into
9690
# a binary during linking. This must work even if \$libdir does
9692
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9694
# Whether we need a single -rpath flag with a separated argument.
9695
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9697
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9699
hardcode_direct=$hardcode_direct
9701
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9703
hardcode_minus_L=$hardcode_minus_L
9705
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9706
# the resulting binary.
9707
hardcode_shlibpath_var=$hardcode_shlibpath_var
9709
# Set to yes if building a shared library automatically hardcodes DIR into the library
9710
# and all subsequent libraries and executables linked against it.
9711
hardcode_automatic=$hardcode_automatic
9713
# Variables whose values should be saved in libtool wrapper scripts and
9714
# restored at relink time.
9715
variables_saved_for_relink="$variables_saved_for_relink"
9717
# Whether libtool must link a program against all its dependency libraries.
9718
link_all_deplibs=$link_all_deplibs
9720
# Compile-time system search path for libraries
9721
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9723
# Run-time system search path for libraries
9724
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9726
# Fix the shell variable \$srcfile for the compiler.
9727
fix_srcfile_path="$fix_srcfile_path"
9729
# Set to yes if exported symbols are required.
9730
always_export_symbols=$always_export_symbols
9732
# The commands to list exported symbols.
9733
export_symbols_cmds=$lt_export_symbols_cmds
9735
# The commands to extract the exported symbol list from a shared archive.
9736
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9738
# Symbols that should not be listed in the preloaded symbols.
9739
exclude_expsyms=$lt_exclude_expsyms
9741
# Symbols that must always be exported.
9742
include_expsyms=$lt_include_expsyms
9744
# ### END LIBTOOL CONFIG
9751
cat <<\EOF >> "$cfgfile"
9753
# AIX sometimes has problems with the GCC collect2 program. For some
9754
# reason, if we set the COLLECT_NAMES environment variable, the problems
9755
# vanish in a puff of smoke.
9756
if test "X${COLLECT_NAMES+set}" != Xset; then
9758
export COLLECT_NAMES
9764
# We use sed instead of cat because bash on DJGPP gets confused if
9765
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9766
# text mode, it properly converts lines to CR/LF. This bash problem
9767
# is reportedly fixed, but why not run on old versions too?
9768
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9770
mv -f "$cfgfile" "$ofile" || \
9771
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9775
# If there is no Makefile yet, we rely on a make rule to execute
9776
# `config.status --recheck' to rerun these tests and create the
9777
# libtool script then.
9778
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9779
if test -f "$ltmain_in"; then
9780
test -f Makefile && make "$ltmain"
9786
ac_cpp='$CPP $CPPFLAGS'
9787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9794
# Check whether --with-tags or --without-tags was given.
9795
if test "${with_tags+set}" = set; then
9796
withval="$with_tags"
9800
if test -f "$ltmain" && test -n "$tagnames"; then
9801
if test ! -f "${ofile}"; then
9802
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9803
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9806
if test -z "$LTCC"; then
9807
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9808
if test -z "$LTCC"; then
9809
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9810
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9812
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9813
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9817
# Extract list of available tagged configurations in $ofile.
9818
# Note that this assumes the entire list is on one line.
9819
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9821
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9822
for tagname in $tagnames; do
9824
# Check whether tagname contains only valid characters
9825
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9827
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9828
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9829
{ (exit 1); exit 1; }; }
9833
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9835
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9836
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9837
{ (exit 1); exit 1; }; }
9840
# Update the list of available tags.
9841
if test -n "$tagname"; then
9842
echo appending configuration tag \"$tagname\" to $ofile
9846
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9847
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9848
(test "X$CXX" != "Xg++"))) ; then
9850
ac_cpp='$CXXCPP $CPPFLAGS'
9851
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9858
archive_cmds_need_lc_CXX=no
9859
allow_undefined_flag_CXX=
9860
always_export_symbols_CXX=no
9861
archive_expsym_cmds_CXX=
9862
export_dynamic_flag_spec_CXX=
9863
hardcode_direct_CXX=no
9864
hardcode_libdir_flag_spec_CXX=
9865
hardcode_libdir_flag_spec_ld_CXX=
9866
hardcode_libdir_separator_CXX=
9867
hardcode_minus_L_CXX=no
9868
hardcode_automatic_CXX=no
9870
module_expsym_cmds_CXX=
9871
link_all_deplibs_CXX=unknown
9872
old_archive_cmds_CXX=$old_archive_cmds
9873
no_undefined_flag_CXX=
9874
whole_archive_flag_spec_CXX=
9875
enable_shared_with_static_runtimes_CXX=no
9877
# Dependencies to place before and after the object being linked:
9879
postdep_objects_CXX=
9882
compiler_lib_search_path_CXX=
9884
# Source file extension for C++ test sources.
9887
# Object file extension for compiled C++ test sources.
9891
# Code to be used in simple compile tests
9892
lt_simple_compile_test_code="int some_variable = 0;\n"
9894
# Code to be used in simple link tests
9895
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9897
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9899
# If no C compiler was specified, use CC.
9902
# Allow CC to be a program name with arguments.
9906
# save warnings/boilerplate of simple test code
9907
ac_outfile=conftest.$ac_objext
9908
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9909
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9910
_lt_compiler_boilerplate=`cat conftest.err`
9913
ac_outfile=conftest.$ac_objext
9914
printf "$lt_simple_link_test_code" >conftest.$ac_ext
9915
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9916
_lt_linker_boilerplate=`cat conftest.err`
9920
# Allow CC to be a program name with arguments.
9925
lt_save_with_gnu_ld=$with_gnu_ld
9926
lt_save_path_LD=$lt_cv_path_LD
9927
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9928
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9930
unset lt_cv_prog_gnu_ld
9932
if test -n "${lt_cv_path_LDCXX+set}"; then
9933
lt_cv_path_LD=$lt_cv_path_LDCXX
9937
test -z "${LDCXX+set}" || LD=$LDCXX
9941
for cc_temp in $compiler""; do
9943
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9944
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9949
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9952
# We don't want -fno-exception wen compiling C++ code, so set the
9953
# no_builtin_flag separately
9954
if test "$GXX" = yes; then
9955
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9957
lt_prog_compiler_no_builtin_flag_CXX=
9960
if test "$GXX" = yes; then
9961
# Set up default GNU C++ configuration
9964
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9965
if test "${with_gnu_ld+set}" = set; then
9966
withval="$with_gnu_ld"
9967
test "$withval" = no || with_gnu_ld=yes
9972
if test "$GCC" = yes; then
9973
# Check if gcc -print-prog-name=ld gives a path.
9974
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9975
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9978
# gcc leaves a trailing carriage return which upsets mingw
9979
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9981
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9984
# Accept absolute paths.
9986
re_direlt='/[^/][^/]*/\.\./'
9987
# Canonicalize the pathname of ld
9988
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9989
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9990
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9992
test -z "$LD" && LD="$ac_prog"
9995
# If it fails, then pretend we aren't using GCC.
9999
# If it is relative, then search for the first ld in PATH.
10000
with_gnu_ld=unknown
10003
elif test "$with_gnu_ld" = yes; then
10004
echo "$as_me:$LINENO: checking for GNU ld" >&5
10005
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10007
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10008
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10010
if test "${lt_cv_path_LD+set}" = set; then
10011
echo $ECHO_N "(cached) $ECHO_C" >&6
10013
if test -z "$LD"; then
10014
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10015
for ac_dir in $PATH; do
10017
test -z "$ac_dir" && ac_dir=.
10018
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10019
lt_cv_path_LD="$ac_dir/$ac_prog"
10020
# Check to see if the program is GNU ld. I'd rather use --version,
10021
# but apparently some variants of GNU ld only accept -v.
10022
# Break only if it was the GNU/non-GNU ld that we prefer.
10023
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10024
*GNU* | *'with BFD'*)
10025
test "$with_gnu_ld" != no && break
10028
test "$with_gnu_ld" != yes && break
10035
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10039
LD="$lt_cv_path_LD"
10040
if test -n "$LD"; then
10041
echo "$as_me:$LINENO: result: $LD" >&5
10042
echo "${ECHO_T}$LD" >&6
10044
echo "$as_me:$LINENO: result: no" >&5
10045
echo "${ECHO_T}no" >&6
10047
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10048
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10049
{ (exit 1); exit 1; }; }
10050
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10051
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10052
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10053
echo $ECHO_N "(cached) $ECHO_C" >&6
10055
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10056
case `$LD -v 2>&1 </dev/null` in
10057
*GNU* | *'with BFD'*)
10058
lt_cv_prog_gnu_ld=yes
10061
lt_cv_prog_gnu_ld=no
10065
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10066
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10067
with_gnu_ld=$lt_cv_prog_gnu_ld
10071
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10072
# archiving commands below assume that GNU ld is being used.
10073
if test "$with_gnu_ld" = yes; then
10074
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075
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'
10077
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10078
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10080
# If archive_cmds runs LD, not CC, wlarc should be empty
10081
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10082
# investigate it a little bit more. (MM)
10085
# ancient GNU ld didn't support --whole-archive et. al.
10086
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10087
grep 'no-whole-archive' > /dev/null; then
10088
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10090
whole_archive_flag_spec_CXX=
10096
# A generic and very simple default shared library creation
10097
# command for GNU C++ for the case where it uses the native
10098
# linker, instead of GNU ld. If possible, this setting should
10099
# overridden to take advantage of the native linker features on
10100
# the platform it is being used on.
10101
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10104
# Commands to make compiler produce verbose output that lists
10105
# what "hidden" libraries, object files and flags are used when
10106
# linking a shared library.
10107
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10115
# PORTME: fill in a description of your system's C++ link characteristics
10116
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10117
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10121
# FIXME: insert proper C++ library support
10125
if test "$host_cpu" = ia64; then
10126
# On IA64, the linker does run time linking by default, so we don't
10127
# have to do anything special.
10128
aix_use_runtimelinking=no
10129
exp_sym_flag='-Bexport'
10132
aix_use_runtimelinking=no
10134
# Test if we are trying to use run time linking or normal
10135
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10136
# need to do runtime linking.
10137
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10138
for ld_flag in $LDFLAGS; do
10141
aix_use_runtimelinking=yes
10148
exp_sym_flag='-bexport'
10149
no_entry_flag='-bnoentry'
10152
# When large executables or shared objects are built, AIX ld can
10153
# have problems creating the table of contents. If linking a library
10154
# or program results in "error TOC overflow" add -mminimal-toc to
10155
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10156
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10158
archive_cmds_CXX=''
10159
hardcode_direct_CXX=yes
10160
hardcode_libdir_separator_CXX=':'
10161
link_all_deplibs_CXX=yes
10163
if test "$GXX" = yes; then
10164
case $host_os in aix4.[012]|aix4.[012].*)
10165
# We only want to do this on AIX 4.2 and lower, the check
10166
# below for broken collect2 doesn't work under 4.3+
10167
collect2name=`${CC} -print-prog-name=collect2`
10168
if test -f "$collect2name" && \
10169
strings "$collect2name" | grep resolve_lib_name >/dev/null
10171
# We have reworked collect2
10172
hardcode_direct_CXX=yes
10174
# We have old collect2
10175
hardcode_direct_CXX=unsupported
10176
# It fails to find uninstalled libraries when the uninstalled
10177
# path is not listed in the libpath. Setting hardcode_minus_L
10178
# to unsupported forces relinking
10179
hardcode_minus_L_CXX=yes
10180
hardcode_libdir_flag_spec_CXX='-L$libdir'
10181
hardcode_libdir_separator_CXX=
10184
shared_flag='-shared'
10185
if test "$aix_use_runtimelinking" = yes; then
10186
shared_flag="$shared_flag "'${wl}-G'
10190
if test "$host_cpu" = ia64; then
10191
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10192
# chokes on -Wl,-G. The following line is correct:
10195
if test "$aix_use_runtimelinking" = yes; then
10196
shared_flag='${wl}-G'
10198
shared_flag='${wl}-bM:SRE'
10203
# It seems that -bexpall does not export symbols beginning with
10204
# underscore (_), so it is better to generate a list of symbols to export.
10205
always_export_symbols_CXX=yes
10206
if test "$aix_use_runtimelinking" = yes; then
10207
# Warning - without using the other runtime loading flags (-brtl),
10208
# -berok will link without error, but may produce a broken library.
10209
allow_undefined_flag_CXX='-berok'
10210
# Determine the default libpath from the value encoded in an empty executable.
10211
cat >conftest.$ac_ext <<_ACEOF
10214
cat confdefs.h >>conftest.$ac_ext
10215
cat >>conftest.$ac_ext <<_ACEOF
10216
/* end confdefs.h. */
10226
rm -f conftest.$ac_objext conftest$ac_exeext
10227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10228
(eval $ac_link) 2>conftest.er1
10230
grep -v '^ *+' conftest.er1 >conftest.err
10232
cat conftest.err >&5
10233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234
(exit $ac_status); } &&
10235
{ ac_try='test -z "$ac_cxx_werror_flag"
10236
|| test ! -s conftest.err'
10237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238
(eval $ac_try) 2>&5
10240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241
(exit $ac_status); }; } &&
10242
{ ac_try='test -s conftest$ac_exeext'
10243
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244
(eval $ac_try) 2>&5
10246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247
(exit $ac_status); }; }; then
10249
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10251
# Check for a 64-bit object if we didn't find anything.
10252
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; }
10255
echo "$as_me: failed program was:" >&5
10256
sed 's/^/| /' conftest.$ac_ext >&5
10259
rm -f conftest.err conftest.$ac_objext \
10260
conftest$ac_exeext conftest.$ac_ext
10261
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10263
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10265
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"
10267
if test "$host_cpu" = ia64; then
10268
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10269
allow_undefined_flag_CXX="-z nodefs"
10270
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"
10272
# Determine the default libpath from the value encoded in an empty executable.
10273
cat >conftest.$ac_ext <<_ACEOF
10276
cat confdefs.h >>conftest.$ac_ext
10277
cat >>conftest.$ac_ext <<_ACEOF
10278
/* end confdefs.h. */
10288
rm -f conftest.$ac_objext conftest$ac_exeext
10289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290
(eval $ac_link) 2>conftest.er1
10292
grep -v '^ *+' conftest.er1 >conftest.err
10294
cat conftest.err >&5
10295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296
(exit $ac_status); } &&
10297
{ ac_try='test -z "$ac_cxx_werror_flag"
10298
|| test ! -s conftest.err'
10299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300
(eval $ac_try) 2>&5
10302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303
(exit $ac_status); }; } &&
10304
{ ac_try='test -s conftest$ac_exeext'
10305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306
(eval $ac_try) 2>&5
10308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309
(exit $ac_status); }; }; then
10311
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10313
# Check for a 64-bit object if we didn't find anything.
10314
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; }
10317
echo "$as_me: failed program was:" >&5
10318
sed 's/^/| /' conftest.$ac_ext >&5
10321
rm -f conftest.err conftest.$ac_objext \
10322
conftest$ac_exeext conftest.$ac_ext
10323
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10325
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10326
# Warning - without using the other run time loading flags,
10327
# -berok will link without error, but may produce a broken library.
10328
no_undefined_flag_CXX=' ${wl}-bernotok'
10329
allow_undefined_flag_CXX=' ${wl}-berok'
10330
# -bexpall does not export symbols beginning with underscore (_)
10331
always_export_symbols_CXX=yes
10332
# Exported symbols can be pulled into shared objects from archives
10333
whole_archive_flag_spec_CXX=' '
10334
archive_cmds_need_lc_CXX=yes
10335
# This is similar to how AIX traditionally builds its shared libraries.
10336
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'
10341
case $cc_basename in
10343
# FIXME: insert proper C++ library support
10350
cygwin* | mingw* | pw32*)
10351
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10352
# as there is no search path for DLLs.
10353
hardcode_libdir_flag_spec_CXX='-L$libdir'
10354
allow_undefined_flag_CXX=unsupported
10355
always_export_symbols_CXX=no
10356
enable_shared_with_static_runtimes_CXX=yes
10358
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10359
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'
10360
# If the export-symbols file already is a .def file (1st line
10361
# is EXPORTS), use it as is; otherwise, prepend...
10362
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10363
cp $export_symbols $output_objdir/$soname.def;
10365
echo EXPORTS > $output_objdir/$soname.def;
10366
cat $export_symbols >> $output_objdir/$soname.def;
10368
$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'
10373
darwin* | rhapsody*)
10375
rhapsody* | darwin1.[012])
10376
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10379
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10380
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10382
case ${MACOSX_DEPLOYMENT_TARGET} in
10384
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10387
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10393
archive_cmds_need_lc_CXX=no
10394
hardcode_direct_CXX=no
10395
hardcode_automatic_CXX=yes
10396
hardcode_shlibpath_var_CXX=unsupported
10397
whole_archive_flag_spec_CXX=''
10398
link_all_deplibs_CXX=yes
10400
if test "$GXX" = yes ; then
10401
lt_int_apple_cc_single_mod=no
10402
output_verbose_link_cmd='echo'
10403
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10404
lt_int_apple_cc_single_mod=yes
10406
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10407
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10409
archive_cmds_CXX='$CC -r -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'
10411
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10412
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10413
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10414
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}'
10416
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10418
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}'
10420
case $cc_basename in
10422
output_verbose_link_cmd='echo'
10423
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10424
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10425
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10426
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10427
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}'
10437
case $cc_basename in
10439
# FIXME: insert proper C++ library support
10443
# Green Hills C++ Compiler
10444
# FIXME: insert proper C++ library support
10448
# FIXME: insert proper C++ library support
10454
# C++ shared libraries reported to be fairly broken before switch to ELF
10458
archive_cmds_need_lc_CXX=no
10460
freebsd* | kfreebsd*-gnu | dragonfly*)
10461
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10468
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10469
hardcode_libdir_separator_CXX=:
10470
export_dynamic_flag_spec_CXX='${wl}-E'
10471
hardcode_direct_CXX=yes
10472
hardcode_minus_L_CXX=yes # Not in the search PATH,
10473
# but as the default
10474
# location of the library.
10476
case $cc_basename in
10478
# FIXME: insert proper C++ library support
10482
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'
10483
# Commands to make compiler produce verbose output that lists
10484
# what "hidden" libraries, object files and flags are used when
10485
# linking a shared library.
10487
# There doesn't appear to be a way to prevent this compiler from
10488
# explicitly linking system object files so we need to strip them
10489
# from the output so that they don't get included in the library
10491
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'
10494
if test "$GXX" = yes; then
10495
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'
10497
# FIXME: insert proper C++ library support
10504
if test $with_gnu_ld = no; then
10507
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10508
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10509
hardcode_libdir_separator_CXX=:
10512
hardcode_libdir_flag_spec_CXX='-L$libdir'
10515
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10516
hardcode_libdir_separator_CXX=:
10517
export_dynamic_flag_spec_CXX='${wl}-E'
10523
hardcode_direct_CXX=no
10524
hardcode_shlibpath_var_CXX=no
10527
hardcode_direct_CXX=no
10528
hardcode_shlibpath_var_CXX=no
10529
hardcode_minus_L_CXX=yes # Not in the search PATH,
10530
# but as the default
10531
# location of the library.
10534
hardcode_direct_CXX=yes
10535
hardcode_minus_L_CXX=yes # Not in the search PATH,
10536
# but as the default
10537
# location of the library.
10541
case $cc_basename in
10543
# FIXME: insert proper C++ library support
10549
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10552
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10555
# Commands to make compiler produce verbose output that lists
10556
# what "hidden" libraries, object files and flags are used when
10557
# linking a shared library.
10559
# There doesn't appear to be a way to prevent this compiler from
10560
# explicitly linking system object files so we need to strip them
10561
# from the output so that they don't get included in the library
10563
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'
10566
if test "$GXX" = yes; then
10567
if test $with_gnu_ld = no; then
10570
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10573
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'
10578
# FIXME: insert proper C++ library support
10585
case $cc_basename in
10588
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 ${output_objdir}/so_locations -o $lib'
10590
# Archives containing C++ object files must be created using
10591
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10592
# necessary to make sure instantiated templates are included
10594
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10597
if test "$GXX" = yes; then
10598
if test "$with_gnu_ld" = no; then
10599
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}${output_objdir}/so_locations -o $lib'
10601
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'
10604
link_all_deplibs_CXX=yes
10607
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10608
hardcode_libdir_separator_CXX=:
10611
case $cc_basename in
10613
# Kuck and Associates, Inc. (KAI) C++ Compiler
10615
# KCC will only create a shared library if the output file
10616
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10617
# to its proper name (with version) after linking.
10618
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'
10619
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'
10620
# Commands to make compiler produce verbose output that lists
10621
# what "hidden" libraries, object files and flags are used when
10622
# linking a shared library.
10624
# There doesn't appear to be a way to prevent this compiler from
10625
# explicitly linking system object files so we need to strip them
10626
# from the output so that they don't get included in the library
10628
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'
10630
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10631
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10633
# Archives containing C++ object files must be created using
10634
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10635
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10640
# version 8.0 and above of icpc choke on multiply defined symbols
10641
# if we add $predep_objects and $postdep_objects, however 7.1 and
10642
# earlier do not add the objects themselves.
10643
case `$CC -V 2>&1` in
10645
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10646
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'
10648
*) # Version 8.0 or newer
10651
ia64*) tmp_idyn=' -i_dynamic';;
10653
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10654
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10657
archive_cmds_need_lc_CXX=no
10658
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10659
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10660
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10663
# Portland Group C++ compiler
10664
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10665
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10667
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10668
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10669
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10673
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10674
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'
10676
runpath_var=LD_RUN_PATH
10677
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10678
hardcode_libdir_separator_CXX=:
10680
# Commands to make compiler produce verbose output that lists
10681
# what "hidden" libraries, object files and flags are used when
10682
# linking a shared library.
10684
# There doesn't appear to be a way to prevent this compiler from
10685
# explicitly linking system object files so we need to strip them
10686
# from the output so that they don't get included in the library
10688
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'
10693
# FIXME: insert proper C++ library support
10697
# FIXME: insert proper C++ library support
10701
case $cc_basename in
10703
# FIXME: insert proper C++ library support
10707
# FIXME: insert proper C++ library support
10713
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10714
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10716
hardcode_libdir_flag_spec_CXX='-R$libdir'
10717
hardcode_direct_CXX=yes
10718
hardcode_shlibpath_var_CXX=no
10720
# Workaround some broken pre-1.5 toolchains
10721
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10724
# C++ shared libraries are fairly broken
10728
hardcode_direct_CXX=yes
10729
hardcode_shlibpath_var_CXX=no
10730
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10731
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10732
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10733
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10734
export_dynamic_flag_spec_CXX='${wl}-E'
10735
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10737
output_verbose_link_cmd='echo'
10740
case $cc_basename in
10742
# Kuck and Associates, Inc. (KAI) C++ Compiler
10744
# KCC will only create a shared library if the output file
10745
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10746
# to its proper name (with version) after linking.
10747
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'
10749
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10750
hardcode_libdir_separator_CXX=:
10752
# Archives containing C++ object files must be created using
10753
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10754
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10758
# Rational C++ 2.4.1
10759
# FIXME: insert proper C++ library support
10763
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10764
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 ${output_objdir}/so_locations -o $lib'
10766
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10767
hardcode_libdir_separator_CXX=:
10769
# Commands to make compiler produce verbose output that lists
10770
# what "hidden" libraries, object files and flags are used when
10771
# linking a shared library.
10773
# There doesn't appear to be a way to prevent this compiler from
10774
# explicitly linking system object files so we need to strip them
10775
# from the output so that they don't get included in the library
10777
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'
10780
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10781
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10782
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}${output_objdir}/so_locations -o $lib'
10784
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10785
hardcode_libdir_separator_CXX=:
10787
# Commands to make compiler produce verbose output that lists
10788
# what "hidden" libraries, object files and flags are used when
10789
# linking a shared library.
10790
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10793
# FIXME: insert proper C++ library support
10800
case $cc_basename in
10802
# Kuck and Associates, Inc. (KAI) C++ Compiler
10804
# KCC will only create a shared library if the output file
10805
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10806
# to its proper name (with version) after linking.
10807
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'
10809
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10810
hardcode_libdir_separator_CXX=:
10812
# Archives containing C++ object files must be created using
10813
# the KAI C++ compiler.
10814
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10817
# Rational C++ 2.4.1
10818
# FIXME: insert proper C++ library support
10822
allow_undefined_flag_CXX=' -expect_unresolved \*'
10823
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 ${output_objdir}/so_locations -o $lib'
10824
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10825
echo "-hidden">> $lib.exp~
10826
$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 ${output_objdir}/so_locations -o $lib~
10829
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10830
hardcode_libdir_separator_CXX=:
10832
# Commands to make compiler produce verbose output that lists
10833
# what "hidden" libraries, object files and flags are used when
10834
# linking a shared library.
10836
# There doesn't appear to be a way to prevent this compiler from
10837
# explicitly linking system object files so we need to strip them
10838
# from the output so that they don't get included in the library
10840
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'
10843
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10844
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10845
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}${output_objdir}/so_locations -o $lib'
10847
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10848
hardcode_libdir_separator_CXX=:
10850
# Commands to make compiler produce verbose output that lists
10851
# what "hidden" libraries, object files and flags are used when
10852
# linking a shared library.
10853
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10856
# FIXME: insert proper C++ library support
10863
# FIXME: insert proper C++ library support
10867
archive_cmds_need_lc_CXX=no
10868
case $cc_basename in
10870
# FIXME: insert proper C++ library support
10874
# FIXME: insert proper C++ library support
10880
case $cc_basename in
10883
# FIXME: insert proper C++ library support
10888
# FIXME: insert proper C++ library support
10892
# FIXME: insert proper C++ library support
10898
case $cc_basename in
10900
# Sun C++ 4.2, 5.x and Centerline C++
10901
archive_cmds_need_lc_CXX=yes
10902
no_undefined_flag_CXX=' -zdefs'
10903
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10904
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10905
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10907
hardcode_libdir_flag_spec_CXX='-R$libdir'
10908
hardcode_shlibpath_var_CXX=no
10910
solaris2.[0-5] | solaris2.[0-5].*) ;;
10912
# The C++ compiler is used as linker so we must use $wl
10913
# flag to pass the commands to the underlying system
10914
# linker. We must also pass each convience library through
10915
# to the system linker between allextract/defaultextract.
10916
# The C++ compiler will combine linker options so we
10917
# cannot just pass the convience library names through
10919
# Supported since Solaris 2.6 (maybe 2.5.1?)
10920
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10923
link_all_deplibs_CXX=yes
10925
output_verbose_link_cmd='echo'
10927
# Archives containing C++ object files must be created using
10928
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10929
# necessary to make sure instantiated templates are included
10931
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10934
# Green Hills C++ Compiler
10935
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10937
# The C++ compiler must be used to create the archive.
10938
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10941
# GNU C++ compiler with Solaris linker
10942
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10943
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10944
if $CC --version | grep -v '^2\.7' > /dev/null; then
10945
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10946
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10947
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10949
# Commands to make compiler produce verbose output that lists
10950
# what "hidden" libraries, object files and flags are used when
10951
# linking a shared library.
10952
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10954
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10956
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10957
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10958
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10960
# Commands to make compiler produce verbose output that lists
10961
# what "hidden" libraries, object files and flags are used when
10962
# linking a shared library.
10963
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10966
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10971
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10972
archive_cmds_need_lc_CXX=no
10975
case $cc_basename in
10977
# NonStop-UX NCC 3.20
10978
# FIXME: insert proper C++ library support
10982
# FIXME: insert proper C++ library support
10988
# FIXME: insert proper C++ library support
10992
# FIXME: insert proper C++ library support
10996
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10997
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10998
test "$ld_shlibs_CXX" = no && can_build_shared=no
11004
cat > conftest.$ac_ext <<EOF
11008
Foo (void) { a = 0; }
11014
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015
(eval $ac_compile) 2>&5
11017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018
(exit $ac_status); }; then
11019
# Parse the compiler output and extract the necessary
11020
# objects, libraries and library flags.
11022
# Sentinel used to keep track of whether or not we are before
11023
# the conftest object file.
11024
pre_test_object_deps_done=no
11026
# The `*' in the case matches for architectures that use `case' in
11027
# $output_verbose_cmd can trigger glob expansion during the loop
11028
# eval without this substitution.
11029
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11031
for p in `eval $output_verbose_link_cmd`; do
11035
# Some compilers place space between "-{L,R}" and the path.
11036
# Remove the space.
11037
if test $p = "-L" \
11038
|| test $p = "-R"; then
11045
if test "$pre_test_object_deps_done" = no; then
11048
# Internal compiler library paths should come after those
11049
# provided the user. The postdeps already come after the
11050
# user supplied libs so there is no need to process them.
11051
if test -z "$compiler_lib_search_path_CXX"; then
11052
compiler_lib_search_path_CXX="${prev}${p}"
11054
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11057
# The "-l" case would never come before the object being
11058
# linked, so don't bother handling this case.
11061
if test -z "$postdeps_CXX"; then
11062
postdeps_CXX="${prev}${p}"
11064
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11070
# This assumes that the test object file only shows up
11071
# once in the compiler output.
11072
if test "$p" = "conftest.$objext"; then
11073
pre_test_object_deps_done=yes
11077
if test "$pre_test_object_deps_done" = no; then
11078
if test -z "$predep_objects_CXX"; then
11079
predep_objects_CXX="$p"
11081
predep_objects_CXX="$predep_objects_CXX $p"
11084
if test -z "$postdep_objects_CXX"; then
11085
postdep_objects_CXX="$p"
11087
postdep_objects_CXX="$postdep_objects_CXX $p"
11092
*) ;; # Ignore the rest.
11100
echo "libtool.m4: error: problem compiling CXX test program"
11103
$rm -f confest.$objext
11105
# PORTME: override above test on systems where it is broken
11108
case $cc_basename in
11110
# Adding this requires a known-good setup of shared libraries for
11111
# Sun compiler versions before 5.6, else PIC objects from an old
11112
# archive will be linked into the output, leading to subtle bugs.
11113
postdeps_CXX='-lCstd -lCrun'
11119
case " $postdeps_CXX " in
11120
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11123
lt_prog_compiler_wl_CXX=
11124
lt_prog_compiler_pic_CXX=
11125
lt_prog_compiler_static_CXX=
11127
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11128
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11130
# C++ specific cases for pic, static, wl, etc.
11131
if test "$GXX" = yes; then
11132
lt_prog_compiler_wl_CXX='-Wl,'
11133
lt_prog_compiler_static_CXX='-static'
11137
# All AIX code is PIC.
11138
if test "$host_cpu" = ia64; then
11139
# AIX 5 now supports IA64 processor
11140
lt_prog_compiler_static_CXX='-Bstatic'
11144
# FIXME: we need at least 68020 code to build shared libraries, but
11145
# adding the `-m68020' flag to GCC prevents building anything better,
11147
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11149
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11150
# PIC is the default for these OSes.
11152
mingw* | os2* | pw32*)
11153
# This hack is so that the source file can tell whether it is being
11154
# built for inclusion in a dll (and should export symbols for example).
11155
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11157
darwin* | rhapsody*)
11158
# PIC is the default on this platform
11159
# Common symbols not allowed in MH_DYLIB files
11160
lt_prog_compiler_pic_CXX='-fno-common'
11163
# DJGPP does not support shared libraries at all
11164
lt_prog_compiler_pic_CXX=
11167
if test -d /usr/nec; then
11168
lt_prog_compiler_pic_CXX=-Kconform_pic
11172
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11173
# not for PA HP-UX.
11178
lt_prog_compiler_pic_CXX='-fPIC'
11183
lt_prog_compiler_pic_CXX='-fPIC'
11189
# All AIX code is PIC.
11190
if test "$host_cpu" = ia64; then
11191
# AIX 5 now supports IA64 processor
11192
lt_prog_compiler_static_CXX='-Bstatic'
11194
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11198
case $cc_basename in
11200
# Green Hills C++ Compiler
11201
# _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"
11206
# PIC is the default on this platform
11207
# Common symbols not allowed in MH_DYLIB files
11208
case $cc_basename in
11210
lt_prog_compiler_pic_CXX='-qnocommon'
11211
lt_prog_compiler_wl_CXX='-Wl,'
11216
case $cc_basename in
11218
lt_prog_compiler_pic_CXX='-KPIC'
11221
# Green Hills C++ Compiler
11222
lt_prog_compiler_pic_CXX='-pic'
11228
freebsd* | kfreebsd*-gnu | dragonfly*)
11229
# FreeBSD uses GNU C++
11231
hpux9* | hpux10* | hpux11*)
11232
case $cc_basename in
11234
lt_prog_compiler_wl_CXX='-Wl,'
11235
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11236
if test "$host_cpu" != ia64; then
11237
lt_prog_compiler_pic_CXX='+Z'
11241
lt_prog_compiler_wl_CXX='-Wl,'
11242
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11248
lt_prog_compiler_pic_CXX='+Z'
11256
irix5* | irix6* | nonstopux*)
11257
case $cc_basename in
11259
lt_prog_compiler_wl_CXX='-Wl,'
11260
lt_prog_compiler_static_CXX='-non_shared'
11261
# CC pic flag -KPIC is the default.
11268
case $cc_basename in
11271
lt_prog_compiler_wl_CXX='--backend -Wl,'
11272
lt_prog_compiler_pic_CXX='-fPIC'
11276
lt_prog_compiler_wl_CXX='-Wl,'
11277
lt_prog_compiler_pic_CXX='-KPIC'
11278
lt_prog_compiler_static_CXX='-static'
11281
# Portland Group C++ compiler.
11282
lt_prog_compiler_wl_CXX='-Wl,'
11283
lt_prog_compiler_pic_CXX='-fpic'
11284
lt_prog_compiler_static_CXX='-Bstatic'
11288
# Make sure the PIC flag is empty. It appears that all Alpha
11289
# Linux and Compaq Tru64 Unix objects are PIC.
11290
lt_prog_compiler_pic_CXX=
11291
lt_prog_compiler_static_CXX='-non_shared'
11302
case $cc_basename in
11304
lt_prog_compiler_pic_CXX='-W c,exportall'
11312
osf3* | osf4* | osf5*)
11313
case $cc_basename in
11315
lt_prog_compiler_wl_CXX='--backend -Wl,'
11318
# Rational C++ 2.4.1
11319
lt_prog_compiler_pic_CXX='-pic'
11322
# Digital/Compaq C++
11323
lt_prog_compiler_wl_CXX='-Wl,'
11324
# Make sure the PIC flag is empty. It appears that all Alpha
11325
# Linux and Compaq Tru64 Unix objects are PIC.
11326
lt_prog_compiler_pic_CXX=
11327
lt_prog_compiler_static_CXX='-non_shared'
11336
case $cc_basename in
11338
lt_prog_compiler_pic_CXX='-fPIC'
11345
case $cc_basename in
11347
# Sun C++ 4.2, 5.x and Centerline C++
11348
lt_prog_compiler_pic_CXX='-KPIC'
11349
lt_prog_compiler_static_CXX='-Bstatic'
11350
lt_prog_compiler_wl_CXX='-Qoption ld '
11353
# Green Hills C++ Compiler
11354
lt_prog_compiler_pic_CXX='-PIC'
11361
case $cc_basename in
11364
lt_prog_compiler_pic_CXX='-pic'
11365
lt_prog_compiler_static_CXX='-Bstatic'
11369
lt_prog_compiler_pic_CXX='-pic'
11376
case $cc_basename in
11378
# NonStop-UX NCC 3.20
11379
lt_prog_compiler_pic_CXX='-KPIC'
11390
lt_prog_compiler_can_build_shared_CXX=no
11395
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11396
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11399
# Check to make sure the PIC flag actually works.
11401
if test -n "$lt_prog_compiler_pic_CXX"; then
11403
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11404
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11405
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11406
echo $ECHO_N "(cached) $ECHO_C" >&6
11408
lt_prog_compiler_pic_works_CXX=no
11409
ac_outfile=conftest.$ac_objext
11410
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11411
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11412
# Insert the option either (1) after the last *FLAGS variable, or
11413
# (2) before a word containing "conftest.", or (3) at the end.
11414
# Note that $ac_compile itself does not contain backslashes and begins
11415
# with a dollar sign (not a hyphen), so the echo should work correctly.
11416
# The option is referenced via a variable to avoid confusing sed.
11417
lt_compile=`echo "$ac_compile" | $SED \
11418
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11419
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11420
-e 's:$: $lt_compiler_flag:'`
11421
(eval echo "\"\$as_me:11421: $lt_compile\"" >&5)
11422
(eval "$lt_compile" 2>conftest.err)
11424
cat conftest.err >&5
11425
echo "$as_me:11425: \$? = $ac_status" >&5
11426
if (exit $ac_status) && test -s "$ac_outfile"; then
11427
# The compiler can only warn and ignore the option if not recognized
11428
# So say no if there are warnings other than the usual output.
11429
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11430
$SED '/^$/d' conftest.err >conftest.er2
11431
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11432
lt_prog_compiler_pic_works_CXX=yes
11438
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11439
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11441
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11442
case $lt_prog_compiler_pic_CXX in
11444
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11447
lt_prog_compiler_pic_CXX=
11448
lt_prog_compiler_can_build_shared_CXX=no
11453
# For platforms which do not support PIC, -DPIC is meaningless:
11455
lt_prog_compiler_pic_CXX=
11458
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11462
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11463
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11464
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11465
echo $ECHO_N "(cached) $ECHO_C" >&6
11467
lt_cv_prog_compiler_c_o_CXX=no
11468
$rm -r conftest 2>/dev/null
11472
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11474
lt_compiler_flag="-o out/conftest2.$ac_objext"
11475
# Insert the option either (1) after the last *FLAGS variable, or
11476
# (2) before a word containing "conftest.", or (3) at the end.
11477
# Note that $ac_compile itself does not contain backslashes and begins
11478
# with a dollar sign (not a hyphen), so the echo should work correctly.
11479
lt_compile=`echo "$ac_compile" | $SED \
11480
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11481
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11482
-e 's:$: $lt_compiler_flag:'`
11483
(eval echo "\"\$as_me:11483: $lt_compile\"" >&5)
11484
(eval "$lt_compile" 2>out/conftest.err)
11486
cat out/conftest.err >&5
11487
echo "$as_me:11487: \$? = $ac_status" >&5
11488
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11490
# The compiler can only warn and ignore the option if not recognized
11491
# So say no if there are warnings
11492
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11493
$SED '/^$/d' out/conftest.err >out/conftest.er2
11494
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11495
lt_cv_prog_compiler_c_o_CXX=yes
11500
# SGI C++ compiler will create directory out/ii_files/ for
11501
# template instantiation
11502
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11503
$rm out/* && rmdir out
11509
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11510
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11513
hard_links="nottested"
11514
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11515
# do not overwrite the value of need_locks provided by the user
11516
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11517
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11520
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11522
ln conftest.a conftest.b 2>&5 || hard_links=no
11523
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11524
echo "$as_me:$LINENO: result: $hard_links" >&5
11525
echo "${ECHO_T}$hard_links" >&6
11526
if test "$hard_links" = no; then
11527
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11528
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11535
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11536
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11538
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11541
# If we're using GNU nm, then we don't want the "-C" option.
11542
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11543
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11544
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'
11546
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'
11550
export_symbols_cmds_CXX="$ltdll_cmds"
11553
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11556
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11560
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11561
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11562
test "$ld_shlibs_CXX" = no && can_build_shared=no
11564
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11565
if test "$GCC" = yes; then
11566
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11570
# Do we need to explicitly link libc?
11572
case "x$archive_cmds_need_lc_CXX" in
11574
# Assume -lc should be added
11575
archive_cmds_need_lc_CXX=yes
11577
if test "$enable_shared" = yes && test "$GCC" = yes; then
11578
case $archive_cmds_CXX in
11580
# FIXME: we may have to deal with multi-command sequences.
11583
# Test whether the compiler implicitly links with -lc since on some
11584
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11585
# to ld, don't add -lc before -lgcc.
11586
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11587
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11589
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11591
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592
(eval $ac_compile) 2>&5
11594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595
(exit $ac_status); } 2>conftest.err; then
11598
libobjs=conftest.$ac_objext
11600
wl=$lt_prog_compiler_wl_CXX
11606
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11607
allow_undefined_flag_CXX=
11608
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11609
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612
(exit $ac_status); }
11614
archive_cmds_need_lc_CXX=no
11616
archive_cmds_need_lc_CXX=yes
11618
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11620
cat conftest.err 1>&5
11623
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11624
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11631
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11632
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11633
library_names_spec=
11634
libname_spec='lib$name'
11638
postuninstall_cmds=
11642
shlibpath_overrides_runpath=unknown
11644
dynamic_linker="$host_os ld.so"
11645
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11646
if test "$GCC" = yes; then
11647
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11648
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11649
# if the path contains ";" then we assume it to be the separator
11650
# otherwise default to the standard path separator (i.e. ":") - it is
11651
# assumed that no part of a normal pathname contains ";" but that should
11652
# okay in the real world where ";" in dirpaths is itself problematic.
11653
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11655
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11658
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11660
need_lib_prefix=unknown
11661
hardcode_into_libs=no
11663
# when you set need_version to no, make sure it does not cause -set_version
11664
# flags to be left without arguments
11665
need_version=unknown
11670
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11671
shlibpath_var=LIBPATH
11673
# AIX 3 has no versioning support, so we append a major version to the name.
11674
soname_spec='${libname}${release}${shared_ext}$major'
11681
hardcode_into_libs=yes
11682
if test "$host_cpu" = ia64; then
11683
# AIX 5 supports IA64
11684
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11685
shlibpath_var=LD_LIBRARY_PATH
11687
# With GCC up to 2.95.x, collect2 would create an import file
11688
# for dependence libraries. The import file would start with
11689
# the line `#! .'. This would cause the generated library to
11690
# depend on `.', always an invalid library. This was fixed in
11691
# development snapshots of GCC prior to 3.0.
11693
aix4 | aix4.[01] | aix4.[01].*)
11694
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11696
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11699
can_build_shared=no
11703
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11704
# soname into executable. Probably we can add versioning support to
11705
# collect2, so additional links can be useful in future.
11706
if test "$aix_use_runtimelinking" = yes; then
11707
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11708
# instead of lib<name>.a to let people know that these are not
11709
# typical AIX shared libraries.
11710
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712
# We preserve .a as extension for shared libraries through AIX4.2
11713
# and later when we are not doing run time linking.
11714
library_names_spec='${libname}${release}.a $libname.a'
11715
soname_spec='${libname}${release}${shared_ext}$major'
11717
shlibpath_var=LIBPATH
11722
library_names_spec='$libname.ixlibrary $libname.a'
11723
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11724
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'
11728
library_names_spec='${libname}${shared_ext}'
11729
dynamic_linker="$host_os ld.so"
11730
shlibpath_var=LIBRARY_PATH
11736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737
soname_spec='${libname}${release}${shared_ext}$major'
11738
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11739
shlibpath_var=LD_LIBRARY_PATH
11740
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11741
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11742
# the default ld.so.conf also contains /usr/contrib/lib and
11743
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11744
# libtool to hard-code these into programs
11747
cygwin* | mingw* | pw32*)
11748
version_type=windows
11753
case $GCC,$host_os in
11754
yes,cygwin* | yes,mingw* | yes,pw32*)
11755
library_names_spec='$libname.dll.a'
11756
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11757
postinstall_cmds='base_file=`basename \${file}`~
11758
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11759
dldir=$destdir/`dirname \$dlpath`~
11760
test -d \$dldir || mkdir -p \$dldir~
11761
$install_prog $dir/$dlname \$dldir/$dlname~
11762
chmod a+x \$dldir/$dlname'
11763
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11764
dlpath=$dir/\$dldll~
11766
shlibpath_overrides_runpath=yes
11770
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11771
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11772
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11775
# MinGW DLLs use traditional 'lib' prefix
11776
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11777
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11778
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11779
# It is most probably a Windows format PATH printed by
11780
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11781
# path with ; separators, and with drive letters. We can handle the
11782
# drive letters (cygwin fileutils understands them), so leave them,
11783
# especially as we might pass files found there to a mingw objdump,
11784
# which wouldn't understand a cygwinified path. Ahh.
11785
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11787
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11791
# pw32 DLLs use 'pw' prefix rather than 'lib'
11792
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11798
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11801
dynamic_linker='Win32 ld.exe'
11802
# FIXME: first we should search . and the directory the executable is in
11806
darwin* | rhapsody*)
11807
dynamic_linker="$host_os dyld"
11808
version_type=darwin
11811
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11812
soname_spec='${libname}${release}${major}$shared_ext'
11813
shlibpath_overrides_runpath=yes
11814
shlibpath_var=DYLD_LIBRARY_PATH
11815
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11816
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11817
if test "$GCC" = yes; then
11818
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"`
11820
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11822
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11829
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11830
soname_spec='${libname}${release}${shared_ext}$major'
11831
shlibpath_var=LD_LIBRARY_PATH
11842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11843
soname_spec='${libname}${release}${shared_ext}$major'
11844
shlibpath_var=LD_LIBRARY_PATH
11845
shlibpath_overrides_runpath=no
11846
hardcode_into_libs=yes
11847
dynamic_linker='GNU ld.so'
11850
freebsd* | dragonfly*)
11851
# DragonFly does not have aout. When/if they implement a new
11852
# versioning mechanism, adjust this.
11853
if test -x /usr/bin/objformat; then
11854
objformat=`/usr/bin/objformat`
11857
freebsd[123]*) objformat=aout ;;
11858
*) objformat=elf ;;
11861
version_type=freebsd-$objformat
11862
case $version_type in
11864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11869
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11873
shlibpath_var=LD_LIBRARY_PATH
11876
shlibpath_overrides_runpath=yes
11878
freebsd3.[01]* | freebsdelf3.[01]*)
11879
shlibpath_overrides_runpath=yes
11880
hardcode_into_libs=yes
11883
shlibpath_overrides_runpath=no
11884
hardcode_into_libs=yes
11893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11894
soname_spec='${libname}${release}${shared_ext}$major'
11895
shlibpath_var=LD_LIBRARY_PATH
11896
hardcode_into_libs=yes
11899
hpux9* | hpux10* | hpux11*)
11900
# Give a soname corresponding to the major version so that dld.sl refuses to
11901
# link against other versions.
11908
hardcode_into_libs=yes
11909
dynamic_linker="$host_os dld.so"
11910
shlibpath_var=LD_LIBRARY_PATH
11911
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11913
soname_spec='${libname}${release}${shared_ext}$major'
11914
if test "X$HPUX_IA64_MODE" = X32; then
11915
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11917
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11919
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11923
hardcode_into_libs=yes
11924
dynamic_linker="$host_os dld.sl"
11925
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11926
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11928
soname_spec='${libname}${release}${shared_ext}$major'
11929
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11930
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11934
dynamic_linker="$host_os dld.sl"
11935
shlibpath_var=SHLIB_PATH
11936
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11937
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938
soname_spec='${libname}${release}${shared_ext}$major'
11941
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11942
postinstall_cmds='chmod 555 $lib'
11945
irix5* | irix6* | nonstopux*)
11947
nonstopux*) version_type=nonstopux ;;
11949
if test "$lt_cv_prog_gnu_ld" = yes; then
11957
soname_spec='${libname}${release}${shared_ext}$major'
11958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11960
irix5* | nonstopux*)
11961
libsuff= shlibsuff=
11964
case $LD in # libtool.m4 will add one of these switches to LD
11965
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11966
libsuff= shlibsuff= libmagic=32-bit;;
11967
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11968
libsuff=32 shlibsuff=N32 libmagic=N32;;
11969
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11970
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11971
*) libsuff= shlibsuff= libmagic=never-match;;
11975
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11976
shlibpath_overrides_runpath=no
11977
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11978
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11979
hardcode_into_libs=yes
11982
# No shared lib support for Linux oldld, aout, or coff.
11983
linux*oldld* | linux*aout* | linux*coff*)
11987
# This must be Linux ELF.
11992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11993
soname_spec='${libname}${release}${shared_ext}$major'
11994
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11995
shlibpath_var=LD_LIBRARY_PATH
11996
shlibpath_overrides_runpath=no
11997
# This implies no fast_install, which is unacceptable.
11998
# Some rework will be needed to allow for fast_install
11999
# before this can be enabled.
12000
hardcode_into_libs=yes
12002
# Append ld.so.conf contents to the search path
12003
if test -f /etc/ld.so.conf; then
12004
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12005
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12008
# We used to test for /lib/ld.so.1 and disable shared libraries on
12009
# powerpc, because MkLinux only supported shared libraries with the
12010
# GNU dynamic linker. Since this was broken with cross compilers,
12011
# most powerpc-linux boxes support dynamic linking these days and
12012
# people can always --disable-shared, the test was removed, and we
12013
# assume the GNU/Linux dynamic linker is in use.
12014
dynamic_linker='GNU/Linux ld.so'
12021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12022
soname_spec='${libname}${release}${shared_ext}$major'
12023
shlibpath_var=LD_LIBRARY_PATH
12024
shlibpath_overrides_runpath=no
12025
hardcode_into_libs=yes
12026
dynamic_linker='GNU ld.so'
12033
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12035
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12036
dynamic_linker='NetBSD (a.out) ld.so'
12038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12039
soname_spec='${libname}${release}${shared_ext}$major'
12040
dynamic_linker='NetBSD ld.elf_so'
12042
shlibpath_var=LD_LIBRARY_PATH
12043
shlibpath_overrides_runpath=yes
12044
hardcode_into_libs=yes
12049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050
shlibpath_var=LD_LIBRARY_PATH
12051
shlibpath_overrides_runpath=yes
12058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059
soname_spec='${libname}${release}${shared_ext}$major'
12060
shlibpath_var=LD_LIBRARY_PATH
12061
shlibpath_overrides_runpath=yes
12067
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12069
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12070
*) need_version=no ;;
12072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12073
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12074
shlibpath_var=LD_LIBRARY_PATH
12075
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12077
openbsd2.[89] | openbsd2.[89].*)
12078
shlibpath_overrides_runpath=no
12081
shlibpath_overrides_runpath=yes
12085
shlibpath_overrides_runpath=yes
12090
libname_spec='$name'
12093
library_names_spec='$libname${shared_ext} $libname.a'
12094
dynamic_linker='OS/2 ld.exe'
12095
shlibpath_var=LIBPATH
12098
osf3* | osf4* | osf5*)
12102
soname_spec='${libname}${release}${shared_ext}$major'
12103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104
shlibpath_var=LD_LIBRARY_PATH
12105
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12106
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12111
soname_spec='${libname}${release}${shared_ext}$major'
12112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12113
shlibpath_var=LD_LIBRARY_PATH
12120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12121
soname_spec='${libname}${release}${shared_ext}$major'
12122
shlibpath_var=LD_LIBRARY_PATH
12123
shlibpath_overrides_runpath=yes
12124
hardcode_into_libs=yes
12125
# ldd complains unless libraries are executable
12126
postinstall_cmds='chmod +x $lib'
12131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12132
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12133
shlibpath_var=LD_LIBRARY_PATH
12134
shlibpath_overrides_runpath=yes
12135
if test "$with_gnu_ld" = yes; then
12141
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12144
soname_spec='${libname}${release}${shared_ext}$major'
12145
shlibpath_var=LD_LIBRARY_PATH
12146
case $host_vendor in
12148
shlibpath_overrides_runpath=no
12150
export_dynamic_flag_spec='${wl}-Blargedynsym'
12151
runpath_var=LD_RUN_PATH
12159
shlibpath_overrides_runpath=no
12160
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12166
if test -d /usr/nec ;then
12168
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12169
soname_spec='$libname${shared_ext}.$major'
12170
shlibpath_var=LD_LIBRARY_PATH
12176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12177
soname_spec='${libname}${release}${shared_ext}$major'
12178
shlibpath_var=LD_LIBRARY_PATH
12185
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12186
echo "${ECHO_T}$dynamic_linker" >&6
12187
test "$dynamic_linker" = no && can_build_shared=no
12189
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12190
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12191
hardcode_action_CXX=
12192
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12193
test -n "$runpath_var_CXX" || \
12194
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12196
# We can hardcode non-existant directories.
12197
if test "$hardcode_direct_CXX" != no &&
12198
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12199
# have to relink, otherwise we might link with an installed library
12200
# when we should be linking with a yet-to-be-installed one
12201
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12202
test "$hardcode_minus_L_CXX" != no; then
12203
# Linking always hardcodes the temporary library directory.
12204
hardcode_action_CXX=relink
12206
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12207
hardcode_action_CXX=immediate
12210
# We cannot hardcode anything, or else we can only hardcode existing
12212
hardcode_action_CXX=unsupported
12214
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12215
echo "${ECHO_T}$hardcode_action_CXX" >&6
12217
if test "$hardcode_action_CXX" = relink; then
12218
# Fast installation is not supported
12219
enable_fast_install=no
12220
elif test "$shlibpath_overrides_runpath" = yes ||
12221
test "$enable_shared" = no; then
12222
# Fast installation is not necessary
12223
enable_fast_install=needless
12228
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12229
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12230
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12231
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12232
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12233
echo "$as_me:$LINENO: result: yes" >&5
12234
echo "${ECHO_T}yes" >&6
12236
# FIXME - insert some real tests, host_os isn't really good enough
12239
if test -n "$STRIP" ; then
12240
striplib="$STRIP -x"
12241
echo "$as_me:$LINENO: result: yes" >&5
12242
echo "${ECHO_T}yes" >&6
12244
echo "$as_me:$LINENO: result: no" >&5
12245
echo "${ECHO_T}no" >&6
12249
echo "$as_me:$LINENO: result: no" >&5
12250
echo "${ECHO_T}no" >&6
12255
if test "x$enable_dlopen" != xyes; then
12256
enable_dlopen=unknown
12257
enable_dlopen_self=unknown
12258
enable_dlopen_self_static=unknown
12265
lt_cv_dlopen="load_add_on"
12267
lt_cv_dlopen_self=yes
12271
lt_cv_dlopen="LoadLibrary"
12276
lt_cv_dlopen="dlopen"
12281
# if libdl is installed we need to link against it
12282
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12283
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12284
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12285
echo $ECHO_N "(cached) $ECHO_C" >&6
12287
ac_check_lib_save_LIBS=$LIBS
12289
cat >conftest.$ac_ext <<_ACEOF
12292
cat confdefs.h >>conftest.$ac_ext
12293
cat >>conftest.$ac_ext <<_ACEOF
12294
/* end confdefs.h. */
12296
/* Override any gcc2 internal prototype to avoid an error. */
12300
/* We use char because int might match the return type of a gcc2
12301
builtin and then its argument prototype would still apply. */
12311
rm -f conftest.$ac_objext conftest$ac_exeext
12312
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12313
(eval $ac_link) 2>conftest.er1
12315
grep -v '^ *+' conftest.er1 >conftest.err
12317
cat conftest.err >&5
12318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319
(exit $ac_status); } &&
12320
{ ac_try='test -z "$ac_cxx_werror_flag"
12321
|| test ! -s conftest.err'
12322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323
(eval $ac_try) 2>&5
12325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326
(exit $ac_status); }; } &&
12327
{ ac_try='test -s conftest$ac_exeext'
12328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329
(eval $ac_try) 2>&5
12331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332
(exit $ac_status); }; }; then
12333
ac_cv_lib_dl_dlopen=yes
12335
echo "$as_me: failed program was:" >&5
12336
sed 's/^/| /' conftest.$ac_ext >&5
12338
ac_cv_lib_dl_dlopen=no
12340
rm -f conftest.err conftest.$ac_objext \
12341
conftest$ac_exeext conftest.$ac_ext
12342
LIBS=$ac_check_lib_save_LIBS
12344
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12345
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12346
if test $ac_cv_lib_dl_dlopen = yes; then
12347
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12350
lt_cv_dlopen="dyld"
12352
lt_cv_dlopen_self=yes
12359
echo "$as_me:$LINENO: checking for shl_load" >&5
12360
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12361
if test "${ac_cv_func_shl_load+set}" = set; then
12362
echo $ECHO_N "(cached) $ECHO_C" >&6
12364
cat >conftest.$ac_ext <<_ACEOF
12367
cat confdefs.h >>conftest.$ac_ext
12368
cat >>conftest.$ac_ext <<_ACEOF
12369
/* end confdefs.h. */
12370
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12371
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12372
#define shl_load innocuous_shl_load
12374
/* System header to define __stub macros and hopefully few prototypes,
12375
which can conflict with char shl_load (); below.
12376
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12377
<limits.h> exists even on freestanding compilers. */
12380
# include <limits.h>
12382
# include <assert.h>
12387
/* Override any gcc2 internal prototype to avoid an error. */
12392
/* We use char because int might match the return type of a gcc2
12393
builtin and then its argument prototype would still apply. */
12395
/* The GNU C library defines this for functions which it implements
12396
to always fail with ENOSYS. Some functions are actually named
12397
something starting with __ and the normal name is an alias. */
12398
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12401
char (*f) () = shl_load;
12410
return f != shl_load;
12415
rm -f conftest.$ac_objext conftest$ac_exeext
12416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417
(eval $ac_link) 2>conftest.er1
12419
grep -v '^ *+' conftest.er1 >conftest.err
12421
cat conftest.err >&5
12422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423
(exit $ac_status); } &&
12424
{ ac_try='test -z "$ac_cxx_werror_flag"
12425
|| test ! -s conftest.err'
12426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427
(eval $ac_try) 2>&5
12429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430
(exit $ac_status); }; } &&
12431
{ ac_try='test -s conftest$ac_exeext'
12432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433
(eval $ac_try) 2>&5
12435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436
(exit $ac_status); }; }; then
12437
ac_cv_func_shl_load=yes
12439
echo "$as_me: failed program was:" >&5
12440
sed 's/^/| /' conftest.$ac_ext >&5
12442
ac_cv_func_shl_load=no
12444
rm -f conftest.err conftest.$ac_objext \
12445
conftest$ac_exeext conftest.$ac_ext
12447
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12448
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12449
if test $ac_cv_func_shl_load = yes; then
12450
lt_cv_dlopen="shl_load"
12452
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12453
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12454
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12455
echo $ECHO_N "(cached) $ECHO_C" >&6
12457
ac_check_lib_save_LIBS=$LIBS
12459
cat >conftest.$ac_ext <<_ACEOF
12462
cat confdefs.h >>conftest.$ac_ext
12463
cat >>conftest.$ac_ext <<_ACEOF
12464
/* end confdefs.h. */
12466
/* Override any gcc2 internal prototype to avoid an error. */
12470
/* We use char because int might match the return type of a gcc2
12471
builtin and then its argument prototype would still apply. */
12481
rm -f conftest.$ac_objext conftest$ac_exeext
12482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12483
(eval $ac_link) 2>conftest.er1
12485
grep -v '^ *+' conftest.er1 >conftest.err
12487
cat conftest.err >&5
12488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489
(exit $ac_status); } &&
12490
{ ac_try='test -z "$ac_cxx_werror_flag"
12491
|| test ! -s conftest.err'
12492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493
(eval $ac_try) 2>&5
12495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496
(exit $ac_status); }; } &&
12497
{ ac_try='test -s conftest$ac_exeext'
12498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499
(eval $ac_try) 2>&5
12501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502
(exit $ac_status); }; }; then
12503
ac_cv_lib_dld_shl_load=yes
12505
echo "$as_me: failed program was:" >&5
12506
sed 's/^/| /' conftest.$ac_ext >&5
12508
ac_cv_lib_dld_shl_load=no
12510
rm -f conftest.err conftest.$ac_objext \
12511
conftest$ac_exeext conftest.$ac_ext
12512
LIBS=$ac_check_lib_save_LIBS
12514
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12515
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12516
if test $ac_cv_lib_dld_shl_load = yes; then
12517
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12519
echo "$as_me:$LINENO: checking for dlopen" >&5
12520
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12521
if test "${ac_cv_func_dlopen+set}" = set; then
12522
echo $ECHO_N "(cached) $ECHO_C" >&6
12524
cat >conftest.$ac_ext <<_ACEOF
12527
cat confdefs.h >>conftest.$ac_ext
12528
cat >>conftest.$ac_ext <<_ACEOF
12529
/* end confdefs.h. */
12530
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12531
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12532
#define dlopen innocuous_dlopen
12534
/* System header to define __stub macros and hopefully few prototypes,
12535
which can conflict with char dlopen (); below.
12536
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12537
<limits.h> exists even on freestanding compilers. */
12540
# include <limits.h>
12542
# include <assert.h>
12547
/* Override any gcc2 internal prototype to avoid an error. */
12552
/* We use char because int might match the return type of a gcc2
12553
builtin and then its argument prototype would still apply. */
12555
/* The GNU C library defines this for functions which it implements
12556
to always fail with ENOSYS. Some functions are actually named
12557
something starting with __ and the normal name is an alias. */
12558
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12561
char (*f) () = dlopen;
12570
return f != dlopen;
12575
rm -f conftest.$ac_objext conftest$ac_exeext
12576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577
(eval $ac_link) 2>conftest.er1
12579
grep -v '^ *+' conftest.er1 >conftest.err
12581
cat conftest.err >&5
12582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583
(exit $ac_status); } &&
12584
{ ac_try='test -z "$ac_cxx_werror_flag"
12585
|| test ! -s conftest.err'
12586
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587
(eval $ac_try) 2>&5
12589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590
(exit $ac_status); }; } &&
12591
{ ac_try='test -s conftest$ac_exeext'
12592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593
(eval $ac_try) 2>&5
12595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596
(exit $ac_status); }; }; then
12597
ac_cv_func_dlopen=yes
12599
echo "$as_me: failed program was:" >&5
12600
sed 's/^/| /' conftest.$ac_ext >&5
12602
ac_cv_func_dlopen=no
12604
rm -f conftest.err conftest.$ac_objext \
12605
conftest$ac_exeext conftest.$ac_ext
12607
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12608
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12609
if test $ac_cv_func_dlopen = yes; then
12610
lt_cv_dlopen="dlopen"
12612
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12613
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12614
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12615
echo $ECHO_N "(cached) $ECHO_C" >&6
12617
ac_check_lib_save_LIBS=$LIBS
12619
cat >conftest.$ac_ext <<_ACEOF
12622
cat confdefs.h >>conftest.$ac_ext
12623
cat >>conftest.$ac_ext <<_ACEOF
12624
/* end confdefs.h. */
12626
/* Override any gcc2 internal prototype to avoid an error. */
12630
/* We use char because int might match the return type of a gcc2
12631
builtin and then its argument prototype would still apply. */
12641
rm -f conftest.$ac_objext conftest$ac_exeext
12642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12643
(eval $ac_link) 2>conftest.er1
12645
grep -v '^ *+' conftest.er1 >conftest.err
12647
cat conftest.err >&5
12648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649
(exit $ac_status); } &&
12650
{ ac_try='test -z "$ac_cxx_werror_flag"
12651
|| test ! -s conftest.err'
12652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653
(eval $ac_try) 2>&5
12655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656
(exit $ac_status); }; } &&
12657
{ ac_try='test -s conftest$ac_exeext'
12658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659
(eval $ac_try) 2>&5
12661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662
(exit $ac_status); }; }; then
12663
ac_cv_lib_dl_dlopen=yes
12665
echo "$as_me: failed program was:" >&5
12666
sed 's/^/| /' conftest.$ac_ext >&5
12668
ac_cv_lib_dl_dlopen=no
12670
rm -f conftest.err conftest.$ac_objext \
12671
conftest$ac_exeext conftest.$ac_ext
12672
LIBS=$ac_check_lib_save_LIBS
12674
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12675
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12676
if test $ac_cv_lib_dl_dlopen = yes; then
12677
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12679
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12680
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12681
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12682
echo $ECHO_N "(cached) $ECHO_C" >&6
12684
ac_check_lib_save_LIBS=$LIBS
12685
LIBS="-lsvld $LIBS"
12686
cat >conftest.$ac_ext <<_ACEOF
12689
cat confdefs.h >>conftest.$ac_ext
12690
cat >>conftest.$ac_ext <<_ACEOF
12691
/* end confdefs.h. */
12693
/* Override any gcc2 internal prototype to avoid an error. */
12697
/* We use char because int might match the return type of a gcc2
12698
builtin and then its argument prototype would still apply. */
12708
rm -f conftest.$ac_objext conftest$ac_exeext
12709
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12710
(eval $ac_link) 2>conftest.er1
12712
grep -v '^ *+' conftest.er1 >conftest.err
12714
cat conftest.err >&5
12715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716
(exit $ac_status); } &&
12717
{ ac_try='test -z "$ac_cxx_werror_flag"
12718
|| test ! -s conftest.err'
12719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720
(eval $ac_try) 2>&5
12722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723
(exit $ac_status); }; } &&
12724
{ ac_try='test -s conftest$ac_exeext'
12725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726
(eval $ac_try) 2>&5
12728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729
(exit $ac_status); }; }; then
12730
ac_cv_lib_svld_dlopen=yes
12732
echo "$as_me: failed program was:" >&5
12733
sed 's/^/| /' conftest.$ac_ext >&5
12735
ac_cv_lib_svld_dlopen=no
12737
rm -f conftest.err conftest.$ac_objext \
12738
conftest$ac_exeext conftest.$ac_ext
12739
LIBS=$ac_check_lib_save_LIBS
12741
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12742
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12743
if test $ac_cv_lib_svld_dlopen = yes; then
12744
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12746
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12747
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12748
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12749
echo $ECHO_N "(cached) $ECHO_C" >&6
12751
ac_check_lib_save_LIBS=$LIBS
12753
cat >conftest.$ac_ext <<_ACEOF
12756
cat confdefs.h >>conftest.$ac_ext
12757
cat >>conftest.$ac_ext <<_ACEOF
12758
/* end confdefs.h. */
12760
/* Override any gcc2 internal prototype to avoid an error. */
12764
/* We use char because int might match the return type of a gcc2
12765
builtin and then its argument prototype would still apply. */
12775
rm -f conftest.$ac_objext conftest$ac_exeext
12776
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777
(eval $ac_link) 2>conftest.er1
12779
grep -v '^ *+' conftest.er1 >conftest.err
12781
cat conftest.err >&5
12782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783
(exit $ac_status); } &&
12784
{ ac_try='test -z "$ac_cxx_werror_flag"
12785
|| test ! -s conftest.err'
12786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787
(eval $ac_try) 2>&5
12789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790
(exit $ac_status); }; } &&
12791
{ ac_try='test -s conftest$ac_exeext'
12792
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793
(eval $ac_try) 2>&5
12795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796
(exit $ac_status); }; }; then
12797
ac_cv_lib_dld_dld_link=yes
12799
echo "$as_me: failed program was:" >&5
12800
sed 's/^/| /' conftest.$ac_ext >&5
12802
ac_cv_lib_dld_dld_link=no
12804
rm -f conftest.err conftest.$ac_objext \
12805
conftest$ac_exeext conftest.$ac_ext
12806
LIBS=$ac_check_lib_save_LIBS
12808
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12809
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12810
if test $ac_cv_lib_dld_dld_link = yes; then
12811
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12832
if test "x$lt_cv_dlopen" != xno; then
12838
case $lt_cv_dlopen in
12840
save_CPPFLAGS="$CPPFLAGS"
12841
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12843
save_LDFLAGS="$LDFLAGS"
12844
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12847
LIBS="$lt_cv_dlopen_libs $LIBS"
12849
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12850
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12851
if test "${lt_cv_dlopen_self+set}" = set; then
12852
echo $ECHO_N "(cached) $ECHO_C" >&6
12854
if test "$cross_compiling" = yes; then :
12855
lt_cv_dlopen_self=cross
12857
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12858
lt_status=$lt_dlunknown
12859
cat > conftest.$ac_ext <<EOF
12860
#line 12860 "configure"
12861
#include "confdefs.h"
12870
# define LT_DLGLOBAL RTLD_GLOBAL
12873
# define LT_DLGLOBAL DL_GLOBAL
12875
# define LT_DLGLOBAL 0
12879
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12880
find out it does not work in some platform. */
12881
#ifndef LT_DLLAZY_OR_NOW
12883
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12886
# define LT_DLLAZY_OR_NOW DL_LAZY
12889
# define LT_DLLAZY_OR_NOW RTLD_NOW
12892
# define LT_DLLAZY_OR_NOW DL_NOW
12894
# define LT_DLLAZY_OR_NOW 0
12902
extern "C" void exit (int);
12905
void fnord() { int i=42;}
12908
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12909
int status = $lt_dlunknown;
12913
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12914
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12915
/* dlclose (self); */
12921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12922
(eval $ac_link) 2>&5
12924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12926
(./conftest; exit; ) >&5 2>/dev/null
12928
case x$lt_status in
12929
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12930
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12931
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12934
# compilation failed
12935
lt_cv_dlopen_self=no
12942
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12943
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12945
if test "x$lt_cv_dlopen_self" = xyes; then
12946
LDFLAGS="$LDFLAGS $link_static_flag"
12947
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12948
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12949
if test "${lt_cv_dlopen_self_static+set}" = set; then
12950
echo $ECHO_N "(cached) $ECHO_C" >&6
12952
if test "$cross_compiling" = yes; then :
12953
lt_cv_dlopen_self_static=cross
12955
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12956
lt_status=$lt_dlunknown
12957
cat > conftest.$ac_ext <<EOF
12958
#line 12958 "configure"
12959
#include "confdefs.h"
12968
# define LT_DLGLOBAL RTLD_GLOBAL
12971
# define LT_DLGLOBAL DL_GLOBAL
12973
# define LT_DLGLOBAL 0
12977
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12978
find out it does not work in some platform. */
12979
#ifndef LT_DLLAZY_OR_NOW
12981
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12984
# define LT_DLLAZY_OR_NOW DL_LAZY
12987
# define LT_DLLAZY_OR_NOW RTLD_NOW
12990
# define LT_DLLAZY_OR_NOW DL_NOW
12992
# define LT_DLLAZY_OR_NOW 0
13000
extern "C" void exit (int);
13003
void fnord() { int i=42;}
13006
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13007
int status = $lt_dlunknown;
13011
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13012
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13013
/* dlclose (self); */
13019
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13020
(eval $ac_link) 2>&5
13022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13024
(./conftest; exit; ) >&5 2>/dev/null
13026
case x$lt_status in
13027
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13028
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13029
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13032
# compilation failed
13033
lt_cv_dlopen_self_static=no
13040
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13041
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13044
CPPFLAGS="$save_CPPFLAGS"
13045
LDFLAGS="$save_LDFLAGS"
13050
case $lt_cv_dlopen_self in
13051
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13052
*) enable_dlopen_self=unknown ;;
13055
case $lt_cv_dlopen_self_static in
13056
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13057
*) enable_dlopen_self_static=unknown ;;
13062
# The else clause should only fire when bootstrapping the
13063
# libtool distribution, otherwise you forgot to ship ltmain.sh
13064
# with your package, and you will get complaints that there are
13065
# no rules to generate ltmain.sh.
13066
if test -f "$ltmain"; then
13067
# See if we are running on zsh, and set the options which allow our commands through
13068
# without removal of \ escapes.
13069
if test -n "${ZSH_VERSION+set}" ; then
13070
setopt NO_GLOB_SUBST
13072
# Now quote all the things that may contain metacharacters while being
13073
# careful not to overquote the AC_SUBSTed values. We take copies of the
13074
# variables and quote the copies for generation of the libtool script.
13075
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13077
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13078
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13079
deplibs_check_method reload_flag reload_cmds need_locks \
13080
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13081
lt_cv_sys_global_symbol_to_c_name_address \
13082
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13083
old_postinstall_cmds old_postuninstall_cmds \
13087
lt_prog_compiler_wl_CXX \
13088
lt_prog_compiler_pic_CXX \
13089
lt_prog_compiler_static_CXX \
13090
lt_prog_compiler_no_builtin_flag_CXX \
13091
export_dynamic_flag_spec_CXX \
13092
thread_safe_flag_spec_CXX \
13093
whole_archive_flag_spec_CXX \
13094
enable_shared_with_static_runtimes_CXX \
13095
old_archive_cmds_CXX \
13096
old_archive_from_new_cmds_CXX \
13097
predep_objects_CXX \
13098
postdep_objects_CXX \
13101
compiler_lib_search_path_CXX \
13103
archive_expsym_cmds_CXX \
13104
postinstall_cmds_CXX \
13105
postuninstall_cmds_CXX \
13106
old_archive_from_expsyms_cmds_CXX \
13107
allow_undefined_flag_CXX \
13108
no_undefined_flag_CXX \
13109
export_symbols_cmds_CXX \
13110
hardcode_libdir_flag_spec_CXX \
13111
hardcode_libdir_flag_spec_ld_CXX \
13112
hardcode_libdir_separator_CXX \
13113
hardcode_automatic_CXX \
13115
module_expsym_cmds_CXX \
13116
lt_cv_prog_compiler_c_o_CXX \
13117
exclude_expsyms_CXX \
13118
include_expsyms_CXX; do
13121
old_archive_cmds_CXX | \
13122
old_archive_from_new_cmds_CXX | \
13123
archive_cmds_CXX | \
13124
archive_expsym_cmds_CXX | \
13125
module_cmds_CXX | \
13126
module_expsym_cmds_CXX | \
13127
old_archive_from_expsyms_cmds_CXX | \
13128
export_symbols_cmds_CXX | \
13129
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13130
postinstall_cmds | postuninstall_cmds | \
13131
old_postinstall_cmds | old_postuninstall_cmds | \
13132
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13133
# Double-quote double-evaled strings.
13134
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13137
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13143
*'\$0 --fallback-echo"')
13144
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13150
cat <<__EOF__ >> "$cfgfile"
13151
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13153
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13155
# Shell to use when invoking shell scripts.
13158
# Whether or not to build shared libraries.
13159
build_libtool_libs=$enable_shared
13161
# Whether or not to build static libraries.
13162
build_old_libs=$enable_static
13164
# Whether or not to add -lc for building shared libraries.
13165
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13167
# Whether or not to disallow shared libs when runtime libs are static
13168
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13170
# Whether or not to optimize for fast installation.
13171
fast_install=$enable_fast_install
13174
host_alias=$host_alias
13178
# The build system.
13179
build_alias=$build_alias
13183
# An echo program that does not interpret backslashes.
13188
AR_FLAGS=$lt_AR_FLAGS
13193
# A language-specific compiler.
13194
CC=$lt_compiler_CXX
13196
# Is the compiler the GNU C compiler?
13202
# The linker used to build libraries.
13205
# Whether we need hard or soft links.
13208
# A BSD-compatible nm program.
13211
# A symbol stripping program
13214
# Used to examine libraries when file_magic_cmd begins "file"
13215
MAGIC_CMD=$MAGIC_CMD
13217
# Used on cygwin: DLL creation program.
13220
# Used on cygwin: object dumper.
13223
# Used on cygwin: assembler.
13226
# The name of the directory that contains temporary libtool files.
13229
# How to create reloadable object files.
13230
reload_flag=$lt_reload_flag
13231
reload_cmds=$lt_reload_cmds
13233
# How to pass a linker flag through the compiler.
13234
wl=$lt_lt_prog_compiler_wl_CXX
13236
# Object file suffix (normally "o").
13237
objext="$ac_objext"
13239
# Old archive suffix (normally "a").
13242
# Shared library suffix (normally ".so").
13243
shrext_cmds='$shrext_cmds'
13245
# Executable file suffix (normally "").
13248
# Additional compiler flags for building library objects.
13249
pic_flag=$lt_lt_prog_compiler_pic_CXX
13252
# What is the maximum length of a command?
13253
max_cmd_len=$lt_cv_sys_max_cmd_len
13255
# Does compiler simultaneously support -c and -o options?
13256
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13258
# Must we lock files when doing compilation?
13259
need_locks=$lt_need_locks
13261
# Do we need the lib prefix for modules?
13262
need_lib_prefix=$need_lib_prefix
13264
# Do we need a version for libraries?
13265
need_version=$need_version
13267
# Whether dlopen is supported.
13268
dlopen_support=$enable_dlopen
13270
# Whether dlopen of programs is supported.
13271
dlopen_self=$enable_dlopen_self
13273
# Whether dlopen of statically linked programs is supported.
13274
dlopen_self_static=$enable_dlopen_self_static
13276
# Compiler flag to prevent dynamic linking.
13277
link_static_flag=$lt_lt_prog_compiler_static_CXX
13279
# Compiler flag to turn off builtin functions.
13280
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13282
# Compiler flag to allow reflexive dlopens.
13283
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13285
# Compiler flag to generate shared objects directly from archives.
13286
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13288
# Compiler flag to generate thread-safe objects.
13289
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13291
# Library versioning type.
13292
version_type=$version_type
13294
# Format of library name prefix.
13295
libname_spec=$lt_libname_spec
13297
# List of archive names. First name is the real one, the rest are links.
13298
# The last name is the one that the linker finds with -lNAME.
13299
library_names_spec=$lt_library_names_spec
13301
# The coded name of the library, if different from the real name.
13302
soname_spec=$lt_soname_spec
13304
# Commands used to build and install an old-style archive.
13306
old_archive_cmds=$lt_old_archive_cmds_CXX
13307
old_postinstall_cmds=$lt_old_postinstall_cmds
13308
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13310
# Create an old-style archive from a shared archive.
13311
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13313
# Create a temporary old-style archive to link instead of a shared archive.
13314
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13316
# Commands used to build and install a shared archive.
13317
archive_cmds=$lt_archive_cmds_CXX
13318
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13319
postinstall_cmds=$lt_postinstall_cmds
13320
postuninstall_cmds=$lt_postuninstall_cmds
13322
# Commands used to build a loadable module (assumed same as above if empty)
13323
module_cmds=$lt_module_cmds_CXX
13324
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13326
# Commands to strip libraries.
13327
old_striplib=$lt_old_striplib
13328
striplib=$lt_striplib
13330
# Dependencies to place before the objects being linked to create a
13332
predep_objects=$lt_predep_objects_CXX
13334
# Dependencies to place after the objects being linked to create a
13336
postdep_objects=$lt_postdep_objects_CXX
13338
# Dependencies to place before the objects being linked to create a
13340
predeps=$lt_predeps_CXX
13342
# Dependencies to place after the objects being linked to create a
13344
postdeps=$lt_postdeps_CXX
13346
# The library search path used internally by the compiler when linking
13347
# a shared library.
13348
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13350
# Method to check whether dependent libraries are shared objects.
13351
deplibs_check_method=$lt_deplibs_check_method
13353
# Command to use when deplibs_check_method == file_magic.
13354
file_magic_cmd=$lt_file_magic_cmd
13356
# Flag that allows shared libraries with undefined symbols to be built.
13357
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13359
# Flag that forces no undefined symbols.
13360
no_undefined_flag=$lt_no_undefined_flag_CXX
13362
# Commands used to finish a libtool library installation in a directory.
13363
finish_cmds=$lt_finish_cmds
13365
# Same as above, but a single script fragment to be evaled but not shown.
13366
finish_eval=$lt_finish_eval
13368
# Take the output of nm and produce a listing of raw symbols and C names.
13369
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13371
# Transform the output of nm in a proper C declaration
13372
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13374
# Transform the output of nm in a C name address pair
13375
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13377
# This is the shared library runtime path variable.
13378
runpath_var=$runpath_var
13380
# This is the shared library path variable.
13381
shlibpath_var=$shlibpath_var
13383
# Is shlibpath searched before the hard-coded library search path?
13384
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13386
# How to hardcode a shared library path into an executable.
13387
hardcode_action=$hardcode_action_CXX
13389
# Whether we should hardcode library paths into libraries.
13390
hardcode_into_libs=$hardcode_into_libs
13392
# Flag to hardcode \$libdir into a binary during linking.
13393
# This must work even if \$libdir does not exist.
13394
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13396
# If ld is used when linking, flag to hardcode \$libdir into
13397
# a binary during linking. This must work even if \$libdir does
13399
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13401
# Whether we need a single -rpath flag with a separated argument.
13402
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13404
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13405
# resulting binary.
13406
hardcode_direct=$hardcode_direct_CXX
13408
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13409
# resulting binary.
13410
hardcode_minus_L=$hardcode_minus_L_CXX
13412
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13413
# the resulting binary.
13414
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13416
# Set to yes if building a shared library automatically hardcodes DIR into the library
13417
# and all subsequent libraries and executables linked against it.
13418
hardcode_automatic=$hardcode_automatic_CXX
13420
# Variables whose values should be saved in libtool wrapper scripts and
13421
# restored at relink time.
13422
variables_saved_for_relink="$variables_saved_for_relink"
13424
# Whether libtool must link a program against all its dependency libraries.
13425
link_all_deplibs=$link_all_deplibs_CXX
13427
# Compile-time system search path for libraries
13428
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13430
# Run-time system search path for libraries
13431
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13433
# Fix the shell variable \$srcfile for the compiler.
13434
fix_srcfile_path="$fix_srcfile_path_CXX"
13436
# Set to yes if exported symbols are required.
13437
always_export_symbols=$always_export_symbols_CXX
13439
# The commands to list exported symbols.
13440
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13442
# The commands to extract the exported symbol list from a shared archive.
13443
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13445
# Symbols that should not be listed in the preloaded symbols.
13446
exclude_expsyms=$lt_exclude_expsyms_CXX
13448
# Symbols that must always be exported.
13449
include_expsyms=$lt_include_expsyms_CXX
13451
# ### END LIBTOOL TAG CONFIG: $tagname
13457
# If there is no Makefile yet, we rely on a make rule to execute
13458
# `config.status --recheck' to rerun these tests and create the
13459
# libtool script then.
13460
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13461
if test -f "$ltmain_in"; then
13462
test -f Makefile && make "$ltmain"
13468
ac_cpp='$CPP $CPPFLAGS'
13469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13477
with_gnu_ldcxx=$with_gnu_ld
13478
with_gnu_ld=$lt_save_with_gnu_ld
13479
lt_cv_path_LDCXX=$lt_cv_path_LD
13480
lt_cv_path_LD=$lt_save_path_LD
13481
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13482
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13490
if test -n "$F77" && test "X$F77" != "Xno"; then
13493
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13494
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13495
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13498
archive_cmds_need_lc_F77=no
13499
allow_undefined_flag_F77=
13500
always_export_symbols_F77=no
13501
archive_expsym_cmds_F77=
13502
export_dynamic_flag_spec_F77=
13503
hardcode_direct_F77=no
13504
hardcode_libdir_flag_spec_F77=
13505
hardcode_libdir_flag_spec_ld_F77=
13506
hardcode_libdir_separator_F77=
13507
hardcode_minus_L_F77=no
13508
hardcode_automatic_F77=no
13510
module_expsym_cmds_F77=
13511
link_all_deplibs_F77=unknown
13512
old_archive_cmds_F77=$old_archive_cmds
13513
no_undefined_flag_F77=
13514
whole_archive_flag_spec_F77=
13515
enable_shared_with_static_runtimes_F77=no
13517
# Source file extension for f77 test sources.
13520
# Object file extension for compiled f77 test sources.
13524
# Code to be used in simple compile tests
13525
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13527
# Code to be used in simple link tests
13528
lt_simple_link_test_code=" program t\n end\n"
13530
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13532
# If no C compiler was specified, use CC.
13535
# Allow CC to be a program name with arguments.
13539
# save warnings/boilerplate of simple test code
13540
ac_outfile=conftest.$ac_objext
13541
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13542
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13543
_lt_compiler_boilerplate=`cat conftest.err`
13546
ac_outfile=conftest.$ac_objext
13547
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13548
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13549
_lt_linker_boilerplate=`cat conftest.err`
13553
# Allow CC to be a program name with arguments.
13558
for cc_temp in $compiler""; do
13560
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13561
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13566
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13569
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13570
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13571
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13572
echo "${ECHO_T}$can_build_shared" >&6
13574
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13575
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13576
test "$can_build_shared" = "no" && enable_shared=no
13578
# On AIX, shared libraries and static libraries use the same namespace, and
13579
# are all built from PIC.
13582
test "$enable_shared" = yes && enable_static=no
13583
if test -n "$RANLIB"; then
13584
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13585
postinstall_cmds='$RANLIB $lib'
13589
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13590
test "$enable_shared" = yes && enable_static=no
13594
echo "$as_me:$LINENO: result: $enable_shared" >&5
13595
echo "${ECHO_T}$enable_shared" >&6
13597
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13598
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13599
# Make sure either enable_shared or enable_static is yes.
13600
test "$enable_shared" = yes || enable_static=yes
13601
echo "$as_me:$LINENO: result: $enable_static" >&5
13602
echo "${ECHO_T}$enable_static" >&6
13604
test "$ld_shlibs_F77" = no && can_build_shared=no
13609
lt_prog_compiler_wl_F77=
13610
lt_prog_compiler_pic_F77=
13611
lt_prog_compiler_static_F77=
13613
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13614
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13616
if test "$GCC" = yes; then
13617
lt_prog_compiler_wl_F77='-Wl,'
13618
lt_prog_compiler_static_F77='-static'
13622
# All AIX code is PIC.
13623
if test "$host_cpu" = ia64; then
13624
# AIX 5 now supports IA64 processor
13625
lt_prog_compiler_static_F77='-Bstatic'
13630
# FIXME: we need at least 68020 code to build shared libraries, but
13631
# adding the `-m68020' flag to GCC prevents building anything better,
13633
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13636
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13637
# PIC is the default for these OSes.
13640
mingw* | pw32* | os2*)
13641
# This hack is so that the source file can tell whether it is being
13642
# built for inclusion in a dll (and should export symbols for example).
13643
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13646
darwin* | rhapsody*)
13647
# PIC is the default on this platform
13648
# Common symbols not allowed in MH_DYLIB files
13649
lt_prog_compiler_pic_F77='-fno-common'
13653
# Just because we use GCC doesn't mean we suddenly get shared libraries
13654
# on systems that don't support them.
13655
lt_prog_compiler_can_build_shared_F77=no
13660
if test -d /usr/nec; then
13661
lt_prog_compiler_pic_F77=-Kconform_pic
13666
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13667
# not for PA HP-UX.
13673
lt_prog_compiler_pic_F77='-fPIC'
13679
lt_prog_compiler_pic_F77='-fPIC'
13683
# PORTME Check for flag to pass linker flags through the system compiler.
13686
lt_prog_compiler_wl_F77='-Wl,'
13687
if test "$host_cpu" = ia64; then
13688
# AIX 5 now supports IA64 processor
13689
lt_prog_compiler_static_F77='-Bstatic'
13691
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13695
# PIC is the default on this platform
13696
# Common symbols not allowed in MH_DYLIB files
13697
case $cc_basename in
13699
lt_prog_compiler_pic_F77='-qnocommon'
13700
lt_prog_compiler_wl_F77='-Wl,'
13705
mingw* | pw32* | os2*)
13706
# This hack is so that the source file can tell whether it is being
13707
# built for inclusion in a dll (and should export symbols for example).
13708
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13711
hpux9* | hpux10* | hpux11*)
13712
lt_prog_compiler_wl_F77='-Wl,'
13713
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13714
# not for PA HP-UX.
13720
lt_prog_compiler_pic_F77='+Z'
13723
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13724
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13727
irix5* | irix6* | nonstopux*)
13728
lt_prog_compiler_wl_F77='-Wl,'
13729
# PIC (with -KPIC) is the default.
13730
lt_prog_compiler_static_F77='-non_shared'
13734
lt_prog_compiler_pic_F77='-KPIC'
13735
lt_prog_compiler_static_F77='-Bstatic'
13739
case $cc_basename in
13741
lt_prog_compiler_wl_F77='-Wl,'
13742
lt_prog_compiler_pic_F77='-KPIC'
13743
lt_prog_compiler_static_F77='-static'
13745
pgcc* | pgf77* | pgf90* | pgf95*)
13746
# Portland Group compilers (*not* the Pentium gcc compiler,
13747
# which looks to be a dead project)
13748
lt_prog_compiler_wl_F77='-Wl,'
13749
lt_prog_compiler_pic_F77='-fpic'
13750
lt_prog_compiler_static_F77='-Bstatic'
13753
lt_prog_compiler_wl_F77='-Wl,'
13754
# All Alpha code is PIC.
13755
lt_prog_compiler_static_F77='-non_shared'
13760
osf3* | osf4* | osf5*)
13761
lt_prog_compiler_wl_F77='-Wl,'
13762
# All OSF/1 code is PIC.
13763
lt_prog_compiler_static_F77='-non_shared'
13767
lt_prog_compiler_pic_F77='-Kpic'
13768
lt_prog_compiler_static_F77='-dn'
13772
lt_prog_compiler_pic_F77='-KPIC'
13773
lt_prog_compiler_static_F77='-Bstatic'
13774
case $cc_basename in
13775
f77* | f90* | f95*)
13776
lt_prog_compiler_wl_F77='-Qoption ld ';;
13778
lt_prog_compiler_wl_F77='-Wl,';;
13783
lt_prog_compiler_wl_F77='-Qoption ld '
13784
lt_prog_compiler_pic_F77='-PIC'
13785
lt_prog_compiler_static_F77='-Bstatic'
13788
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13789
lt_prog_compiler_wl_F77='-Wl,'
13790
lt_prog_compiler_pic_F77='-KPIC'
13791
lt_prog_compiler_static_F77='-Bstatic'
13795
if test -d /usr/nec ;then
13796
lt_prog_compiler_pic_F77='-Kconform_pic'
13797
lt_prog_compiler_static_F77='-Bstatic'
13802
lt_prog_compiler_wl_F77='-Wl,'
13803
lt_prog_compiler_can_build_shared_F77=no
13807
lt_prog_compiler_pic_F77='-pic'
13808
lt_prog_compiler_static_F77='-Bstatic'
13812
lt_prog_compiler_can_build_shared_F77=no
13817
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13818
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13821
# Check to make sure the PIC flag actually works.
13823
if test -n "$lt_prog_compiler_pic_F77"; then
13825
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13826
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13827
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13828
echo $ECHO_N "(cached) $ECHO_C" >&6
13830
lt_prog_compiler_pic_works_F77=no
13831
ac_outfile=conftest.$ac_objext
13832
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13833
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13834
# Insert the option either (1) after the last *FLAGS variable, or
13835
# (2) before a word containing "conftest.", or (3) at the end.
13836
# Note that $ac_compile itself does not contain backslashes and begins
13837
# with a dollar sign (not a hyphen), so the echo should work correctly.
13838
# The option is referenced via a variable to avoid confusing sed.
13839
lt_compile=`echo "$ac_compile" | $SED \
13840
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13841
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13842
-e 's:$: $lt_compiler_flag:'`
13843
(eval echo "\"\$as_me:13843: $lt_compile\"" >&5)
13844
(eval "$lt_compile" 2>conftest.err)
13846
cat conftest.err >&5
13847
echo "$as_me:13847: \$? = $ac_status" >&5
13848
if (exit $ac_status) && test -s "$ac_outfile"; then
13849
# The compiler can only warn and ignore the option if not recognized
13850
# So say no if there are warnings other than the usual output.
13851
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13852
$SED '/^$/d' conftest.err >conftest.er2
13853
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13854
lt_prog_compiler_pic_works_F77=yes
13860
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13861
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13863
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13864
case $lt_prog_compiler_pic_F77 in
13866
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13869
lt_prog_compiler_pic_F77=
13870
lt_prog_compiler_can_build_shared_F77=no
13875
# For platforms which do not support PIC, -DPIC is meaningless:
13877
lt_prog_compiler_pic_F77=
13880
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13884
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13885
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13886
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13887
echo $ECHO_N "(cached) $ECHO_C" >&6
13889
lt_cv_prog_compiler_c_o_F77=no
13890
$rm -r conftest 2>/dev/null
13894
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13896
lt_compiler_flag="-o out/conftest2.$ac_objext"
13897
# Insert the option either (1) after the last *FLAGS variable, or
13898
# (2) before a word containing "conftest.", or (3) at the end.
13899
# Note that $ac_compile itself does not contain backslashes and begins
13900
# with a dollar sign (not a hyphen), so the echo should work correctly.
13901
lt_compile=`echo "$ac_compile" | $SED \
13902
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13903
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13904
-e 's:$: $lt_compiler_flag:'`
13905
(eval echo "\"\$as_me:13905: $lt_compile\"" >&5)
13906
(eval "$lt_compile" 2>out/conftest.err)
13908
cat out/conftest.err >&5
13909
echo "$as_me:13909: \$? = $ac_status" >&5
13910
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13912
# The compiler can only warn and ignore the option if not recognized
13913
# So say no if there are warnings
13914
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13915
$SED '/^$/d' out/conftest.err >out/conftest.er2
13916
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13917
lt_cv_prog_compiler_c_o_F77=yes
13922
# SGI C++ compiler will create directory out/ii_files/ for
13923
# template instantiation
13924
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13925
$rm out/* && rmdir out
13931
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13932
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13935
hard_links="nottested"
13936
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13937
# do not overwrite the value of need_locks provided by the user
13938
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13939
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13942
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13944
ln conftest.a conftest.b 2>&5 || hard_links=no
13945
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13946
echo "$as_me:$LINENO: result: $hard_links" >&5
13947
echo "${ECHO_T}$hard_links" >&6
13948
if test "$hard_links" = no; then
13949
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13950
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13957
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13958
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13961
allow_undefined_flag_F77=
13962
enable_shared_with_static_runtimes_F77=no
13964
archive_expsym_cmds_F77=
13965
old_archive_From_new_cmds_F77=
13966
old_archive_from_expsyms_cmds_F77=
13967
export_dynamic_flag_spec_F77=
13968
whole_archive_flag_spec_F77=
13969
thread_safe_flag_spec_F77=
13970
hardcode_libdir_flag_spec_F77=
13971
hardcode_libdir_flag_spec_ld_F77=
13972
hardcode_libdir_separator_F77=
13973
hardcode_direct_F77=no
13974
hardcode_minus_L_F77=no
13975
hardcode_shlibpath_var_F77=unsupported
13976
link_all_deplibs_F77=unknown
13977
hardcode_automatic_F77=no
13979
module_expsym_cmds_F77=
13980
always_export_symbols_F77=no
13981
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13982
# include_expsyms should be a list of space-separated symbols to be *always*
13983
# included in the symbol list
13984
include_expsyms_F77=
13985
# exclude_expsyms can be an extended regexp of symbols to exclude
13986
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13987
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13988
# as well as any symbol that contains `d'.
13989
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13990
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13991
# platforms (ab)use it in PIC code, but their linkers get confused if
13992
# the symbol is explicitly referenced. Since portable code cannot
13993
# rely on this symbol name, it's probably fine to never include it in
13994
# preloaded symbol tables.
13995
extract_expsyms_cmds=
13996
# Just being paranoid about ensuring that cc_basename is set.
13997
for cc_temp in $compiler""; do
13999
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14000
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14005
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14008
cygwin* | mingw* | pw32*)
14009
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14010
# When not using gcc, we currently assume that we are using
14011
# Microsoft Visual C++.
14012
if test "$GCC" != yes; then
14022
if test "$with_gnu_ld" = yes; then
14023
# If archive_cmds runs LD, not CC, wlarc should be empty
14026
# Set some defaults for GNU ld with shared library support. These
14027
# are reset later if shared libraries are not supported. Putting them
14028
# here allows them to be overridden if necessary.
14029
runpath_var=LD_RUN_PATH
14030
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14031
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14032
# ancient GNU ld didn't support --whole-archive et. al.
14033
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14034
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14036
whole_archive_flag_spec_F77=
14038
supports_anon_versioning=no
14039
case `$LD -v 2>/dev/null` in
14040
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14041
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14042
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14043
*\ 2.11.*) ;; # other 2.11 versions
14044
*) supports_anon_versioning=yes ;;
14047
# See if GNU ld supports shared libraries.
14049
aix3* | aix4* | aix5*)
14050
# On AIX/PPC, the GNU linker is very broken
14051
if test "$host_cpu" != ia64; then
14055
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14056
*** to be unable to reliably create shared libraries on AIX.
14057
*** Therefore, libtool is disabling shared libraries support. If you
14058
*** really care for shared libraries, you may want to modify your PATH
14059
*** so that a non-GNU linker is found, and then restart.
14066
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)'
14067
hardcode_libdir_flag_spec_F77='-L$libdir'
14068
hardcode_minus_L_F77=yes
14070
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14071
# that the semantics of dynamic libraries on AmigaOS, at least up
14072
# to version 4, is to share data among multiple programs linked
14073
# with the same dynamic library. Since this doesn't match the
14074
# behavior of shared libraries on other platforms, we can't use
14080
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14081
allow_undefined_flag_F77=unsupported
14082
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14083
# support --undefined. This deserves some investigation. FIXME
14084
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14090
cygwin* | mingw* | pw32*)
14091
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14092
# as there is no search path for DLLs.
14093
hardcode_libdir_flag_spec_F77='-L$libdir'
14094
allow_undefined_flag_F77=unsupported
14095
always_export_symbols_F77=no
14096
enable_shared_with_static_runtimes_F77=yes
14097
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14099
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14100
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14101
# If the export-symbols file already is a .def file (1st line
14102
# is EXPORTS), use it as is; otherwise, prepend...
14103
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14104
cp $export_symbols $output_objdir/$soname.def;
14106
echo EXPORTS > $output_objdir/$soname.def;
14107
cat $export_symbols >> $output_objdir/$soname.def;
14109
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14116
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14118
case $cc_basename,$host_cpu in
14119
pgcc*) # Portland Group C compiler
14120
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14121
tmp_addflag=' $pic_flag'
14123
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14124
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14125
tmp_addflag=' $pic_flag -Mnomain' ;;
14126
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14127
tmp_addflag=' -i_dynamic' ;;
14128
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14129
tmp_addflag=' -i_dynamic -nofor_main' ;;
14130
ifc* | ifort*) # Intel Fortran compiler
14131
tmp_addflag=' -nofor_main' ;;
14133
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14135
if test $supports_anon_versioning = yes; then
14136
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14137
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14138
$echo "local: *; };" >> $output_objdir/$libname.ver~
14139
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14147
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14151
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14152
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14157
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14161
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14162
*** create shared libraries on Solaris systems. Therefore, libtool
14163
*** is disabling shared libraries support. We urge you to upgrade GNU
14164
*** binutils to release 2.9.1 or newer. Another option is to modify
14165
*** your PATH or compiler configuration so that the native linker is
14166
*** used, and then restart.
14169
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14170
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14171
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14178
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14180
hardcode_direct_F77=yes
14181
hardcode_shlibpath_var_F77=no
14185
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14186
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14187
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14194
if test "$ld_shlibs_F77" = no; then
14196
hardcode_libdir_flag_spec_F77=
14197
export_dynamic_flag_spec_F77=
14198
whole_archive_flag_spec_F77=
14201
# PORTME fill in a description of your system's linker (not GNU ld)
14204
allow_undefined_flag_F77=unsupported
14205
always_export_symbols_F77=yes
14206
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'
14207
# Note: this linker hardcodes the directories in LIBPATH if there
14208
# are no directories specified by -L.
14209
hardcode_minus_L_F77=yes
14210
if test "$GCC" = yes && test -z "$link_static_flag"; then
14211
# Neither direct hardcoding nor static linking is supported with a
14213
hardcode_direct_F77=unsupported
14218
if test "$host_cpu" = ia64; then
14219
# On IA64, the linker does run time linking by default, so we don't
14220
# have to do anything special.
14221
aix_use_runtimelinking=no
14222
exp_sym_flag='-Bexport'
14225
# If we're using GNU nm, then we don't want the "-C" option.
14226
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14227
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14228
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'
14230
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'
14232
aix_use_runtimelinking=no
14234
# Test if we are trying to use run time linking or normal
14235
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14236
# need to do runtime linking.
14237
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14238
for ld_flag in $LDFLAGS; do
14239
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14240
aix_use_runtimelinking=yes
14246
exp_sym_flag='-bexport'
14247
no_entry_flag='-bnoentry'
14250
# When large executables or shared objects are built, AIX ld can
14251
# have problems creating the table of contents. If linking a library
14252
# or program results in "error TOC overflow" add -mminimal-toc to
14253
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14254
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14256
archive_cmds_F77=''
14257
hardcode_direct_F77=yes
14258
hardcode_libdir_separator_F77=':'
14259
link_all_deplibs_F77=yes
14261
if test "$GCC" = yes; then
14262
case $host_os in aix4.[012]|aix4.[012].*)
14263
# We only want to do this on AIX 4.2 and lower, the check
14264
# below for broken collect2 doesn't work under 4.3+
14265
collect2name=`${CC} -print-prog-name=collect2`
14266
if test -f "$collect2name" && \
14267
strings "$collect2name" | grep resolve_lib_name >/dev/null
14269
# We have reworked collect2
14270
hardcode_direct_F77=yes
14272
# We have old collect2
14273
hardcode_direct_F77=unsupported
14274
# It fails to find uninstalled libraries when the uninstalled
14275
# path is not listed in the libpath. Setting hardcode_minus_L
14276
# to unsupported forces relinking
14277
hardcode_minus_L_F77=yes
14278
hardcode_libdir_flag_spec_F77='-L$libdir'
14279
hardcode_libdir_separator_F77=
14282
shared_flag='-shared'
14283
if test "$aix_use_runtimelinking" = yes; then
14284
shared_flag="$shared_flag "'${wl}-G'
14288
if test "$host_cpu" = ia64; then
14289
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14290
# chokes on -Wl,-G. The following line is correct:
14293
if test "$aix_use_runtimelinking" = yes; then
14294
shared_flag='${wl}-G'
14296
shared_flag='${wl}-bM:SRE'
14301
# It seems that -bexpall does not export symbols beginning with
14302
# underscore (_), so it is better to generate a list of symbols to export.
14303
always_export_symbols_F77=yes
14304
if test "$aix_use_runtimelinking" = yes; then
14305
# Warning - without using the other runtime loading flags (-brtl),
14306
# -berok will link without error, but may produce a broken library.
14307
allow_undefined_flag_F77='-berok'
14308
# Determine the default libpath from the value encoded in an empty executable.
14309
cat >conftest.$ac_ext <<_ACEOF
14314
rm -f conftest.$ac_objext conftest$ac_exeext
14315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14316
(eval $ac_link) 2>conftest.er1
14318
grep -v '^ *+' conftest.er1 >conftest.err
14320
cat conftest.err >&5
14321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322
(exit $ac_status); } &&
14323
{ ac_try='test -z "$ac_f77_werror_flag"
14324
|| test ! -s conftest.err'
14325
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326
(eval $ac_try) 2>&5
14328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329
(exit $ac_status); }; } &&
14330
{ ac_try='test -s conftest$ac_exeext'
14331
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332
(eval $ac_try) 2>&5
14334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335
(exit $ac_status); }; }; then
14337
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14339
# Check for a 64-bit object if we didn't find anything.
14340
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; }
14343
echo "$as_me: failed program was:" >&5
14344
sed 's/^/| /' conftest.$ac_ext >&5
14347
rm -f conftest.err conftest.$ac_objext \
14348
conftest$ac_exeext conftest.$ac_ext
14349
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14351
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14352
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"
14354
if test "$host_cpu" = ia64; then
14355
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14356
allow_undefined_flag_F77="-z nodefs"
14357
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"
14359
# Determine the default libpath from the value encoded in an empty executable.
14360
cat >conftest.$ac_ext <<_ACEOF
14365
rm -f conftest.$ac_objext conftest$ac_exeext
14366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14367
(eval $ac_link) 2>conftest.er1
14369
grep -v '^ *+' conftest.er1 >conftest.err
14371
cat conftest.err >&5
14372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373
(exit $ac_status); } &&
14374
{ ac_try='test -z "$ac_f77_werror_flag"
14375
|| test ! -s conftest.err'
14376
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377
(eval $ac_try) 2>&5
14379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380
(exit $ac_status); }; } &&
14381
{ ac_try='test -s conftest$ac_exeext'
14382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383
(eval $ac_try) 2>&5
14385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386
(exit $ac_status); }; }; then
14388
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14390
# Check for a 64-bit object if we didn't find anything.
14391
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; }
14394
echo "$as_me: failed program was:" >&5
14395
sed 's/^/| /' conftest.$ac_ext >&5
14398
rm -f conftest.err conftest.$ac_objext \
14399
conftest$ac_exeext conftest.$ac_ext
14400
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14402
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14403
# Warning - without using the other run time loading flags,
14404
# -berok will link without error, but may produce a broken library.
14405
no_undefined_flag_F77=' ${wl}-bernotok'
14406
allow_undefined_flag_F77=' ${wl}-berok'
14407
# -bexpall does not export symbols beginning with underscore (_)
14408
always_export_symbols_F77=yes
14409
# Exported symbols can be pulled into shared objects from archives
14410
whole_archive_flag_spec_F77=' '
14411
archive_cmds_need_lc_F77=yes
14412
# This is similar to how AIX traditionally builds its shared libraries.
14413
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'
14419
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)'
14420
hardcode_libdir_flag_spec_F77='-L$libdir'
14421
hardcode_minus_L_F77=yes
14422
# see comment about different semantics on the GNU ld section
14427
export_dynamic_flag_spec_F77=-rdynamic
14430
cygwin* | mingw* | pw32*)
14431
# When not using gcc, we currently assume that we are using
14432
# Microsoft Visual C++.
14433
# hardcode_libdir_flag_spec is actually meaningless, as there is
14434
# no search path for DLLs.
14435
hardcode_libdir_flag_spec_F77=' '
14436
allow_undefined_flag_F77=unsupported
14437
# Tell ltmain to make .lib files, not .a files.
14439
# Tell ltmain to make .dll files, not .so files.
14441
# FIXME: Setting linknames here is a bad hack.
14442
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14443
# The linker will automatically build a .lib file if we build a DLL.
14444
old_archive_From_new_cmds_F77='true'
14445
# FIXME: Should let the user specify the lib program.
14446
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14447
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14448
enable_shared_with_static_runtimes_F77=yes
14451
darwin* | rhapsody*)
14453
rhapsody* | darwin1.[012])
14454
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14457
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14458
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14460
case ${MACOSX_DEPLOYMENT_TARGET} in
14462
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14465
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14471
archive_cmds_need_lc_F77=no
14472
hardcode_direct_F77=no
14473
hardcode_automatic_F77=yes
14474
hardcode_shlibpath_var_F77=unsupported
14475
whole_archive_flag_spec_F77=''
14476
link_all_deplibs_F77=yes
14477
if test "$GCC" = yes ; then
14478
output_verbose_link_cmd='echo'
14479
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14480
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14481
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14482
archive_expsym_cmds_F77='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}'
14483
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}'
14485
case $cc_basename in
14487
output_verbose_link_cmd='echo'
14488
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14489
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14490
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14491
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14492
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}'
14502
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503
hardcode_libdir_flag_spec_F77='-L$libdir'
14504
hardcode_shlibpath_var_F77=no
14511
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14512
# support. Future versions do this automatically, but an explicit c++rt0.o
14513
# does not break anything, and helps significantly (at the cost of a little
14516
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14517
hardcode_libdir_flag_spec_F77='-R$libdir'
14518
hardcode_direct_F77=yes
14519
hardcode_shlibpath_var_F77=no
14522
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14524
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14525
hardcode_direct_F77=yes
14526
hardcode_minus_L_F77=yes
14527
hardcode_shlibpath_var_F77=no
14530
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14531
freebsd* | kfreebsd*-gnu | dragonfly*)
14532
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14533
hardcode_libdir_flag_spec_F77='-R$libdir'
14534
hardcode_direct_F77=yes
14535
hardcode_shlibpath_var_F77=no
14539
if test "$GCC" = yes; then
14540
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'
14542
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'
14544
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14545
hardcode_libdir_separator_F77=:
14546
hardcode_direct_F77=yes
14548
# hardcode_minus_L: Not really in the search PATH,
14549
# but as the default location of the library.
14550
hardcode_minus_L_F77=yes
14551
export_dynamic_flag_spec_F77='${wl}-E'
14555
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14558
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14561
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14567
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14570
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14574
if test "$with_gnu_ld" = no; then
14577
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14578
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14579
hardcode_libdir_separator_F77=:
14580
hardcode_direct_F77=no
14581
hardcode_shlibpath_var_F77=no
14584
hardcode_libdir_flag_spec_F77='-L$libdir'
14585
hardcode_direct_F77=no
14586
hardcode_shlibpath_var_F77=no
14588
# hardcode_minus_L: Not really in the search PATH,
14589
# but as the default location of the library.
14590
hardcode_minus_L_F77=yes
14593
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14594
hardcode_libdir_separator_F77=:
14595
hardcode_direct_F77=yes
14596
export_dynamic_flag_spec_F77='${wl}-E'
14598
# hardcode_minus_L: Not really in the search PATH,
14599
# but as the default location of the library.
14600
hardcode_minus_L_F77=yes
14606
irix5* | irix6* | nonstopux*)
14607
if test "$GCC" = yes; then
14608
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'
14610
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'
14611
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14613
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14614
hardcode_libdir_separator_F77=:
14615
link_all_deplibs_F77=yes
14619
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14620
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14622
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14624
hardcode_libdir_flag_spec_F77='-R$libdir'
14625
hardcode_direct_F77=yes
14626
hardcode_shlibpath_var_F77=no
14630
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14631
hardcode_direct_F77=yes
14632
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14633
hardcode_libdir_separator_F77=:
14634
hardcode_shlibpath_var_F77=no
14638
hardcode_direct_F77=yes
14639
hardcode_shlibpath_var_F77=no
14640
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14641
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14642
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14643
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14644
export_dynamic_flag_spec_F77='${wl}-E'
14647
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14648
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14649
hardcode_libdir_flag_spec_F77='-R$libdir'
14652
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14653
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14660
hardcode_libdir_flag_spec_F77='-L$libdir'
14661
hardcode_minus_L_F77=yes
14662
allow_undefined_flag_F77=unsupported
14663
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'
14664
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14668
if test "$GCC" = yes; then
14669
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14670
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'
14672
allow_undefined_flag_F77=' -expect_unresolved \*'
14673
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'
14675
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14676
hardcode_libdir_separator_F77=:
14679
osf4* | osf5*) # as osf3* with the addition of -msym flag
14680
if test "$GCC" = yes; then
14681
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14682
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'
14683
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14685
allow_undefined_flag_F77=' -expect_unresolved \*'
14686
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'
14687
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~
14688
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14690
# Both c and cxx compiler support -rpath directly
14691
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14693
hardcode_libdir_separator_F77=:
14697
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14698
hardcode_shlibpath_var_F77=no
14699
export_dynamic_flag_spec_F77='${wl}-Bexport'
14700
runpath_var=LD_RUN_PATH
14701
hardcode_runpath_var=yes
14705
no_undefined_flag_F77=' -z text'
14706
if test "$GCC" = yes; then
14708
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14709
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14710
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14713
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14714
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14715
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14717
hardcode_libdir_flag_spec_F77='-R$libdir'
14718
hardcode_shlibpath_var_F77=no
14720
solaris2.[0-5] | solaris2.[0-5].*) ;;
14722
# The compiler driver will combine linker options so we
14723
# cannot just pass the convience library names through
14724
# without $wl, iff we do not link with $LD.
14725
# Luckily, gcc supports the same syntax we need for Sun Studio.
14726
# Supported since Solaris 2.6 (maybe 2.5.1?)
14729
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14731
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14734
link_all_deplibs_F77=yes
14738
if test "x$host_vendor" = xsequent; then
14739
# Use $CC to link under sequent, because it throws in some extra .o
14740
# files that make .init and .fini sections work.
14741
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14743
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14745
hardcode_libdir_flag_spec_F77='-L$libdir'
14746
hardcode_direct_F77=yes
14747
hardcode_minus_L_F77=yes
14748
hardcode_shlibpath_var_F77=no
14752
case $host_vendor in
14754
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14755
hardcode_direct_F77=yes # is this really true???
14758
## LD is ld it makes a PLAMLIB
14759
## CC just makes a GrossModule.
14760
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14761
reload_cmds_F77='$CC -r -o $output$reload_objs'
14762
hardcode_direct_F77=no
14765
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14766
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14769
runpath_var='LD_RUN_PATH'
14770
hardcode_shlibpath_var_F77=no
14774
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14775
hardcode_shlibpath_var_F77=no
14776
export_dynamic_flag_spec_F77='-Bexport'
14780
if test -d /usr/nec; then
14781
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14782
hardcode_shlibpath_var_F77=no
14783
runpath_var=LD_RUN_PATH
14784
hardcode_runpath_var=yes
14790
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14791
hardcode_direct_F77=yes
14792
hardcode_minus_L_F77=no
14793
hardcode_shlibpath_var_F77=no
14794
hardcode_runpath_var=yes
14795
runpath_var=LD_RUN_PATH
14798
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14799
no_undefined_flag_F77='${wl}-z ${wl}text'
14800
if test "$GCC" = yes; then
14801
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14803
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14805
runpath_var='LD_RUN_PATH'
14806
hardcode_shlibpath_var_F77=no
14810
no_undefined_flag_F77=' -z text'
14811
# $CC -shared without GNU ld will not create a library from C++
14812
# object files and a static libstdc++, better avoid it by now
14813
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14814
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14815
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14816
hardcode_libdir_flag_spec_F77=
14817
hardcode_shlibpath_var_F77=no
14818
runpath_var='LD_RUN_PATH'
14822
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14823
hardcode_libdir_flag_spec_F77='-L$libdir'
14824
hardcode_shlibpath_var_F77=no
14833
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14834
echo "${ECHO_T}$ld_shlibs_F77" >&6
14835
test "$ld_shlibs_F77" = no && can_build_shared=no
14837
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14838
if test "$GCC" = yes; then
14839
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14843
# Do we need to explicitly link libc?
14845
case "x$archive_cmds_need_lc_F77" in
14847
# Assume -lc should be added
14848
archive_cmds_need_lc_F77=yes
14850
if test "$enable_shared" = yes && test "$GCC" = yes; then
14851
case $archive_cmds_F77 in
14853
# FIXME: we may have to deal with multi-command sequences.
14856
# Test whether the compiler implicitly links with -lc since on some
14857
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14858
# to ld, don't add -lc before -lgcc.
14859
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14860
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14862
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14865
(eval $ac_compile) 2>&5
14867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868
(exit $ac_status); } 2>conftest.err; then
14871
libobjs=conftest.$ac_objext
14873
wl=$lt_prog_compiler_wl_F77
14879
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14880
allow_undefined_flag_F77=
14881
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14882
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885
(exit $ac_status); }
14887
archive_cmds_need_lc_F77=no
14889
archive_cmds_need_lc_F77=yes
14891
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14893
cat conftest.err 1>&5
14896
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14897
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14904
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14905
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14906
library_names_spec=
14907
libname_spec='lib$name'
14911
postuninstall_cmds=
14915
shlibpath_overrides_runpath=unknown
14917
dynamic_linker="$host_os ld.so"
14918
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14919
if test "$GCC" = yes; then
14920
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14921
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14922
# if the path contains ";" then we assume it to be the separator
14923
# otherwise default to the standard path separator (i.e. ":") - it is
14924
# assumed that no part of a normal pathname contains ";" but that should
14925
# okay in the real world where ";" in dirpaths is itself problematic.
14926
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14928
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14931
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14933
need_lib_prefix=unknown
14934
hardcode_into_libs=no
14936
# when you set need_version to no, make sure it does not cause -set_version
14937
# flags to be left without arguments
14938
need_version=unknown
14943
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14944
shlibpath_var=LIBPATH
14946
# AIX 3 has no versioning support, so we append a major version to the name.
14947
soname_spec='${libname}${release}${shared_ext}$major'
14954
hardcode_into_libs=yes
14955
if test "$host_cpu" = ia64; then
14956
# AIX 5 supports IA64
14957
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14958
shlibpath_var=LD_LIBRARY_PATH
14960
# With GCC up to 2.95.x, collect2 would create an import file
14961
# for dependence libraries. The import file would start with
14962
# the line `#! .'. This would cause the generated library to
14963
# depend on `.', always an invalid library. This was fixed in
14964
# development snapshots of GCC prior to 3.0.
14966
aix4 | aix4.[01] | aix4.[01].*)
14967
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14969
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14972
can_build_shared=no
14976
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14977
# soname into executable. Probably we can add versioning support to
14978
# collect2, so additional links can be useful in future.
14979
if test "$aix_use_runtimelinking" = yes; then
14980
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14981
# instead of lib<name>.a to let people know that these are not
14982
# typical AIX shared libraries.
14983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985
# We preserve .a as extension for shared libraries through AIX4.2
14986
# and later when we are not doing run time linking.
14987
library_names_spec='${libname}${release}.a $libname.a'
14988
soname_spec='${libname}${release}${shared_ext}$major'
14990
shlibpath_var=LIBPATH
14995
library_names_spec='$libname.ixlibrary $libname.a'
14996
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14997
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'
15001
library_names_spec='${libname}${shared_ext}'
15002
dynamic_linker="$host_os ld.so"
15003
shlibpath_var=LIBRARY_PATH
15009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010
soname_spec='${libname}${release}${shared_ext}$major'
15011
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15012
shlibpath_var=LD_LIBRARY_PATH
15013
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15014
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15015
# the default ld.so.conf also contains /usr/contrib/lib and
15016
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15017
# libtool to hard-code these into programs
15020
cygwin* | mingw* | pw32*)
15021
version_type=windows
15026
case $GCC,$host_os in
15027
yes,cygwin* | yes,mingw* | yes,pw32*)
15028
library_names_spec='$libname.dll.a'
15029
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15030
postinstall_cmds='base_file=`basename \${file}`~
15031
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15032
dldir=$destdir/`dirname \$dlpath`~
15033
test -d \$dldir || mkdir -p \$dldir~
15034
$install_prog $dir/$dlname \$dldir/$dlname~
15035
chmod a+x \$dldir/$dlname'
15036
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15037
dlpath=$dir/\$dldll~
15039
shlibpath_overrides_runpath=yes
15043
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15044
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15045
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15048
# MinGW DLLs use traditional 'lib' prefix
15049
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15050
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15051
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15052
# It is most probably a Windows format PATH printed by
15053
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15054
# path with ; separators, and with drive letters. We can handle the
15055
# drive letters (cygwin fileutils understands them), so leave them,
15056
# especially as we might pass files found there to a mingw objdump,
15057
# which wouldn't understand a cygwinified path. Ahh.
15058
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15060
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15064
# pw32 DLLs use 'pw' prefix rather than 'lib'
15065
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15071
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15074
dynamic_linker='Win32 ld.exe'
15075
# FIXME: first we should search . and the directory the executable is in
15079
darwin* | rhapsody*)
15080
dynamic_linker="$host_os dyld"
15081
version_type=darwin
15084
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15085
soname_spec='${libname}${release}${major}$shared_ext'
15086
shlibpath_overrides_runpath=yes
15087
shlibpath_var=DYLD_LIBRARY_PATH
15088
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15089
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15090
if test "$GCC" = yes; then
15091
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"`
15093
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15095
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15103
soname_spec='${libname}${release}${shared_ext}$major'
15104
shlibpath_var=LD_LIBRARY_PATH
15115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15116
soname_spec='${libname}${release}${shared_ext}$major'
15117
shlibpath_var=LD_LIBRARY_PATH
15118
shlibpath_overrides_runpath=no
15119
hardcode_into_libs=yes
15120
dynamic_linker='GNU ld.so'
15123
freebsd* | dragonfly*)
15124
# DragonFly does not have aout. When/if they implement a new
15125
# versioning mechanism, adjust this.
15126
if test -x /usr/bin/objformat; then
15127
objformat=`/usr/bin/objformat`
15130
freebsd[123]*) objformat=aout ;;
15131
*) objformat=elf ;;
15134
version_type=freebsd-$objformat
15135
case $version_type in
15137
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15142
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15146
shlibpath_var=LD_LIBRARY_PATH
15149
shlibpath_overrides_runpath=yes
15151
freebsd3.[01]* | freebsdelf3.[01]*)
15152
shlibpath_overrides_runpath=yes
15153
hardcode_into_libs=yes
15156
shlibpath_overrides_runpath=no
15157
hardcode_into_libs=yes
15166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15167
soname_spec='${libname}${release}${shared_ext}$major'
15168
shlibpath_var=LD_LIBRARY_PATH
15169
hardcode_into_libs=yes
15172
hpux9* | hpux10* | hpux11*)
15173
# Give a soname corresponding to the major version so that dld.sl refuses to
15174
# link against other versions.
15181
hardcode_into_libs=yes
15182
dynamic_linker="$host_os dld.so"
15183
shlibpath_var=LD_LIBRARY_PATH
15184
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186
soname_spec='${libname}${release}${shared_ext}$major'
15187
if test "X$HPUX_IA64_MODE" = X32; then
15188
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15190
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15192
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15196
hardcode_into_libs=yes
15197
dynamic_linker="$host_os dld.sl"
15198
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15199
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15200
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15201
soname_spec='${libname}${release}${shared_ext}$major'
15202
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15203
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15207
dynamic_linker="$host_os dld.sl"
15208
shlibpath_var=SHLIB_PATH
15209
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211
soname_spec='${libname}${release}${shared_ext}$major'
15214
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15215
postinstall_cmds='chmod 555 $lib'
15218
irix5* | irix6* | nonstopux*)
15220
nonstopux*) version_type=nonstopux ;;
15222
if test "$lt_cv_prog_gnu_ld" = yes; then
15230
soname_spec='${libname}${release}${shared_ext}$major'
15231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15233
irix5* | nonstopux*)
15234
libsuff= shlibsuff=
15237
case $LD in # libtool.m4 will add one of these switches to LD
15238
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15239
libsuff= shlibsuff= libmagic=32-bit;;
15240
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15241
libsuff=32 shlibsuff=N32 libmagic=N32;;
15242
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15243
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15244
*) libsuff= shlibsuff= libmagic=never-match;;
15248
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15249
shlibpath_overrides_runpath=no
15250
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15251
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15252
hardcode_into_libs=yes
15255
# No shared lib support for Linux oldld, aout, or coff.
15256
linux*oldld* | linux*aout* | linux*coff*)
15260
# This must be Linux ELF.
15265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266
soname_spec='${libname}${release}${shared_ext}$major'
15267
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15268
shlibpath_var=LD_LIBRARY_PATH
15269
shlibpath_overrides_runpath=no
15270
# This implies no fast_install, which is unacceptable.
15271
# Some rework will be needed to allow for fast_install
15272
# before this can be enabled.
15273
hardcode_into_libs=yes
15275
# Append ld.so.conf contents to the search path
15276
if test -f /etc/ld.so.conf; then
15277
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15278
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15281
# We used to test for /lib/ld.so.1 and disable shared libraries on
15282
# powerpc, because MkLinux only supported shared libraries with the
15283
# GNU dynamic linker. Since this was broken with cross compilers,
15284
# most powerpc-linux boxes support dynamic linking these days and
15285
# people can always --disable-shared, the test was removed, and we
15286
# assume the GNU/Linux dynamic linker is in use.
15287
dynamic_linker='GNU/Linux ld.so'
15294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15295
soname_spec='${libname}${release}${shared_ext}$major'
15296
shlibpath_var=LD_LIBRARY_PATH
15297
shlibpath_overrides_runpath=no
15298
hardcode_into_libs=yes
15299
dynamic_linker='GNU ld.so'
15306
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15308
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15309
dynamic_linker='NetBSD (a.out) ld.so'
15311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15312
soname_spec='${libname}${release}${shared_ext}$major'
15313
dynamic_linker='NetBSD ld.elf_so'
15315
shlibpath_var=LD_LIBRARY_PATH
15316
shlibpath_overrides_runpath=yes
15317
hardcode_into_libs=yes
15322
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323
shlibpath_var=LD_LIBRARY_PATH
15324
shlibpath_overrides_runpath=yes
15331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15332
soname_spec='${libname}${release}${shared_ext}$major'
15333
shlibpath_var=LD_LIBRARY_PATH
15334
shlibpath_overrides_runpath=yes
15340
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15342
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15343
*) need_version=no ;;
15345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15346
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15347
shlibpath_var=LD_LIBRARY_PATH
15348
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15350
openbsd2.[89] | openbsd2.[89].*)
15351
shlibpath_overrides_runpath=no
15354
shlibpath_overrides_runpath=yes
15358
shlibpath_overrides_runpath=yes
15363
libname_spec='$name'
15366
library_names_spec='$libname${shared_ext} $libname.a'
15367
dynamic_linker='OS/2 ld.exe'
15368
shlibpath_var=LIBPATH
15371
osf3* | osf4* | osf5*)
15375
soname_spec='${libname}${release}${shared_ext}$major'
15376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377
shlibpath_var=LD_LIBRARY_PATH
15378
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15379
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15384
soname_spec='${libname}${release}${shared_ext}$major'
15385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386
shlibpath_var=LD_LIBRARY_PATH
15393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394
soname_spec='${libname}${release}${shared_ext}$major'
15395
shlibpath_var=LD_LIBRARY_PATH
15396
shlibpath_overrides_runpath=yes
15397
hardcode_into_libs=yes
15398
# ldd complains unless libraries are executable
15399
postinstall_cmds='chmod +x $lib'
15404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15405
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15406
shlibpath_var=LD_LIBRARY_PATH
15407
shlibpath_overrides_runpath=yes
15408
if test "$with_gnu_ld" = yes; then
15414
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15417
soname_spec='${libname}${release}${shared_ext}$major'
15418
shlibpath_var=LD_LIBRARY_PATH
15419
case $host_vendor in
15421
shlibpath_overrides_runpath=no
15423
export_dynamic_flag_spec='${wl}-Blargedynsym'
15424
runpath_var=LD_RUN_PATH
15432
shlibpath_overrides_runpath=no
15433
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15439
if test -d /usr/nec ;then
15441
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15442
soname_spec='$libname${shared_ext}.$major'
15443
shlibpath_var=LD_LIBRARY_PATH
15449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450
soname_spec='${libname}${release}${shared_ext}$major'
15451
shlibpath_var=LD_LIBRARY_PATH
15458
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15459
echo "${ECHO_T}$dynamic_linker" >&6
15460
test "$dynamic_linker" = no && can_build_shared=no
15462
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15463
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15464
hardcode_action_F77=
15465
if test -n "$hardcode_libdir_flag_spec_F77" || \
15466
test -n "$runpath_var_F77" || \
15467
test "X$hardcode_automatic_F77" = "Xyes" ; then
15469
# We can hardcode non-existant directories.
15470
if test "$hardcode_direct_F77" != no &&
15471
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15472
# have to relink, otherwise we might link with an installed library
15473
# when we should be linking with a yet-to-be-installed one
15474
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15475
test "$hardcode_minus_L_F77" != no; then
15476
# Linking always hardcodes the temporary library directory.
15477
hardcode_action_F77=relink
15479
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15480
hardcode_action_F77=immediate
15483
# We cannot hardcode anything, or else we can only hardcode existing
15485
hardcode_action_F77=unsupported
15487
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15488
echo "${ECHO_T}$hardcode_action_F77" >&6
15490
if test "$hardcode_action_F77" = relink; then
15491
# Fast installation is not supported
15492
enable_fast_install=no
15493
elif test "$shlibpath_overrides_runpath" = yes ||
15494
test "$enable_shared" = no; then
15495
# Fast installation is not necessary
15496
enable_fast_install=needless
15501
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15502
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15503
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15504
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15505
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15506
echo "$as_me:$LINENO: result: yes" >&5
15507
echo "${ECHO_T}yes" >&6
15509
# FIXME - insert some real tests, host_os isn't really good enough
15512
if test -n "$STRIP" ; then
15513
striplib="$STRIP -x"
15514
echo "$as_me:$LINENO: result: yes" >&5
15515
echo "${ECHO_T}yes" >&6
15517
echo "$as_me:$LINENO: result: no" >&5
15518
echo "${ECHO_T}no" >&6
15522
echo "$as_me:$LINENO: result: no" >&5
15523
echo "${ECHO_T}no" >&6
15530
# The else clause should only fire when bootstrapping the
15531
# libtool distribution, otherwise you forgot to ship ltmain.sh
15532
# with your package, and you will get complaints that there are
15533
# no rules to generate ltmain.sh.
15534
if test -f "$ltmain"; then
15535
# See if we are running on zsh, and set the options which allow our commands through
15536
# without removal of \ escapes.
15537
if test -n "${ZSH_VERSION+set}" ; then
15538
setopt NO_GLOB_SUBST
15540
# Now quote all the things that may contain metacharacters while being
15541
# careful not to overquote the AC_SUBSTed values. We take copies of the
15542
# variables and quote the copies for generation of the libtool script.
15543
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15545
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15546
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15547
deplibs_check_method reload_flag reload_cmds need_locks \
15548
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15549
lt_cv_sys_global_symbol_to_c_name_address \
15550
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15551
old_postinstall_cmds old_postuninstall_cmds \
15555
lt_prog_compiler_wl_F77 \
15556
lt_prog_compiler_pic_F77 \
15557
lt_prog_compiler_static_F77 \
15558
lt_prog_compiler_no_builtin_flag_F77 \
15559
export_dynamic_flag_spec_F77 \
15560
thread_safe_flag_spec_F77 \
15561
whole_archive_flag_spec_F77 \
15562
enable_shared_with_static_runtimes_F77 \
15563
old_archive_cmds_F77 \
15564
old_archive_from_new_cmds_F77 \
15565
predep_objects_F77 \
15566
postdep_objects_F77 \
15569
compiler_lib_search_path_F77 \
15571
archive_expsym_cmds_F77 \
15572
postinstall_cmds_F77 \
15573
postuninstall_cmds_F77 \
15574
old_archive_from_expsyms_cmds_F77 \
15575
allow_undefined_flag_F77 \
15576
no_undefined_flag_F77 \
15577
export_symbols_cmds_F77 \
15578
hardcode_libdir_flag_spec_F77 \
15579
hardcode_libdir_flag_spec_ld_F77 \
15580
hardcode_libdir_separator_F77 \
15581
hardcode_automatic_F77 \
15583
module_expsym_cmds_F77 \
15584
lt_cv_prog_compiler_c_o_F77 \
15585
exclude_expsyms_F77 \
15586
include_expsyms_F77; do
15589
old_archive_cmds_F77 | \
15590
old_archive_from_new_cmds_F77 | \
15591
archive_cmds_F77 | \
15592
archive_expsym_cmds_F77 | \
15593
module_cmds_F77 | \
15594
module_expsym_cmds_F77 | \
15595
old_archive_from_expsyms_cmds_F77 | \
15596
export_symbols_cmds_F77 | \
15597
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15598
postinstall_cmds | postuninstall_cmds | \
15599
old_postinstall_cmds | old_postuninstall_cmds | \
15600
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15601
# Double-quote double-evaled strings.
15602
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15605
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15611
*'\$0 --fallback-echo"')
15612
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15618
cat <<__EOF__ >> "$cfgfile"
15619
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15621
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15623
# Shell to use when invoking shell scripts.
15626
# Whether or not to build shared libraries.
15627
build_libtool_libs=$enable_shared
15629
# Whether or not to build static libraries.
15630
build_old_libs=$enable_static
15632
# Whether or not to add -lc for building shared libraries.
15633
build_libtool_need_lc=$archive_cmds_need_lc_F77
15635
# Whether or not to disallow shared libs when runtime libs are static
15636
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15638
# Whether or not to optimize for fast installation.
15639
fast_install=$enable_fast_install
15642
host_alias=$host_alias
15646
# The build system.
15647
build_alias=$build_alias
15651
# An echo program that does not interpret backslashes.
15656
AR_FLAGS=$lt_AR_FLAGS
15661
# A language-specific compiler.
15662
CC=$lt_compiler_F77
15664
# Is the compiler the GNU C compiler?
15670
# The linker used to build libraries.
15673
# Whether we need hard or soft links.
15676
# A BSD-compatible nm program.
15679
# A symbol stripping program
15682
# Used to examine libraries when file_magic_cmd begins "file"
15683
MAGIC_CMD=$MAGIC_CMD
15685
# Used on cygwin: DLL creation program.
15688
# Used on cygwin: object dumper.
15691
# Used on cygwin: assembler.
15694
# The name of the directory that contains temporary libtool files.
15697
# How to create reloadable object files.
15698
reload_flag=$lt_reload_flag
15699
reload_cmds=$lt_reload_cmds
15701
# How to pass a linker flag through the compiler.
15702
wl=$lt_lt_prog_compiler_wl_F77
15704
# Object file suffix (normally "o").
15705
objext="$ac_objext"
15707
# Old archive suffix (normally "a").
15710
# Shared library suffix (normally ".so").
15711
shrext_cmds='$shrext_cmds'
15713
# Executable file suffix (normally "").
15716
# Additional compiler flags for building library objects.
15717
pic_flag=$lt_lt_prog_compiler_pic_F77
15720
# What is the maximum length of a command?
15721
max_cmd_len=$lt_cv_sys_max_cmd_len
15723
# Does compiler simultaneously support -c and -o options?
15724
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15726
# Must we lock files when doing compilation?
15727
need_locks=$lt_need_locks
15729
# Do we need the lib prefix for modules?
15730
need_lib_prefix=$need_lib_prefix
15732
# Do we need a version for libraries?
15733
need_version=$need_version
15735
# Whether dlopen is supported.
15736
dlopen_support=$enable_dlopen
15738
# Whether dlopen of programs is supported.
15739
dlopen_self=$enable_dlopen_self
15741
# Whether dlopen of statically linked programs is supported.
15742
dlopen_self_static=$enable_dlopen_self_static
15744
# Compiler flag to prevent dynamic linking.
15745
link_static_flag=$lt_lt_prog_compiler_static_F77
15747
# Compiler flag to turn off builtin functions.
15748
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15750
# Compiler flag to allow reflexive dlopens.
15751
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15753
# Compiler flag to generate shared objects directly from archives.
15754
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15756
# Compiler flag to generate thread-safe objects.
15757
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15759
# Library versioning type.
15760
version_type=$version_type
15762
# Format of library name prefix.
15763
libname_spec=$lt_libname_spec
15765
# List of archive names. First name is the real one, the rest are links.
15766
# The last name is the one that the linker finds with -lNAME.
15767
library_names_spec=$lt_library_names_spec
15769
# The coded name of the library, if different from the real name.
15770
soname_spec=$lt_soname_spec
15772
# Commands used to build and install an old-style archive.
15774
old_archive_cmds=$lt_old_archive_cmds_F77
15775
old_postinstall_cmds=$lt_old_postinstall_cmds
15776
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15778
# Create an old-style archive from a shared archive.
15779
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15781
# Create a temporary old-style archive to link instead of a shared archive.
15782
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15784
# Commands used to build and install a shared archive.
15785
archive_cmds=$lt_archive_cmds_F77
15786
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15787
postinstall_cmds=$lt_postinstall_cmds
15788
postuninstall_cmds=$lt_postuninstall_cmds
15790
# Commands used to build a loadable module (assumed same as above if empty)
15791
module_cmds=$lt_module_cmds_F77
15792
module_expsym_cmds=$lt_module_expsym_cmds_F77
15794
# Commands to strip libraries.
15795
old_striplib=$lt_old_striplib
15796
striplib=$lt_striplib
15798
# Dependencies to place before the objects being linked to create a
15800
predep_objects=$lt_predep_objects_F77
15802
# Dependencies to place after the objects being linked to create a
15804
postdep_objects=$lt_postdep_objects_F77
15806
# Dependencies to place before the objects being linked to create a
15808
predeps=$lt_predeps_F77
15810
# Dependencies to place after the objects being linked to create a
15812
postdeps=$lt_postdeps_F77
15814
# The library search path used internally by the compiler when linking
15815
# a shared library.
15816
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15818
# Method to check whether dependent libraries are shared objects.
15819
deplibs_check_method=$lt_deplibs_check_method
15821
# Command to use when deplibs_check_method == file_magic.
15822
file_magic_cmd=$lt_file_magic_cmd
15824
# Flag that allows shared libraries with undefined symbols to be built.
15825
allow_undefined_flag=$lt_allow_undefined_flag_F77
15827
# Flag that forces no undefined symbols.
15828
no_undefined_flag=$lt_no_undefined_flag_F77
15830
# Commands used to finish a libtool library installation in a directory.
15831
finish_cmds=$lt_finish_cmds
15833
# Same as above, but a single script fragment to be evaled but not shown.
15834
finish_eval=$lt_finish_eval
15836
# Take the output of nm and produce a listing of raw symbols and C names.
15837
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15839
# Transform the output of nm in a proper C declaration
15840
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15842
# Transform the output of nm in a C name address pair
15843
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15845
# This is the shared library runtime path variable.
15846
runpath_var=$runpath_var
15848
# This is the shared library path variable.
15849
shlibpath_var=$shlibpath_var
15851
# Is shlibpath searched before the hard-coded library search path?
15852
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15854
# How to hardcode a shared library path into an executable.
15855
hardcode_action=$hardcode_action_F77
15857
# Whether we should hardcode library paths into libraries.
15858
hardcode_into_libs=$hardcode_into_libs
15860
# Flag to hardcode \$libdir into a binary during linking.
15861
# This must work even if \$libdir does not exist.
15862
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15864
# If ld is used when linking, flag to hardcode \$libdir into
15865
# a binary during linking. This must work even if \$libdir does
15867
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15869
# Whether we need a single -rpath flag with a separated argument.
15870
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15872
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15873
# resulting binary.
15874
hardcode_direct=$hardcode_direct_F77
15876
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15877
# resulting binary.
15878
hardcode_minus_L=$hardcode_minus_L_F77
15880
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15881
# the resulting binary.
15882
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15884
# Set to yes if building a shared library automatically hardcodes DIR into the library
15885
# and all subsequent libraries and executables linked against it.
15886
hardcode_automatic=$hardcode_automatic_F77
15888
# Variables whose values should be saved in libtool wrapper scripts and
15889
# restored at relink time.
15890
variables_saved_for_relink="$variables_saved_for_relink"
15892
# Whether libtool must link a program against all its dependency libraries.
15893
link_all_deplibs=$link_all_deplibs_F77
15895
# Compile-time system search path for libraries
15896
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15898
# Run-time system search path for libraries
15899
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15901
# Fix the shell variable \$srcfile for the compiler.
15902
fix_srcfile_path="$fix_srcfile_path_F77"
15904
# Set to yes if exported symbols are required.
15905
always_export_symbols=$always_export_symbols_F77
15907
# The commands to list exported symbols.
15908
export_symbols_cmds=$lt_export_symbols_cmds_F77
15910
# The commands to extract the exported symbol list from a shared archive.
15911
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15913
# Symbols that should not be listed in the preloaded symbols.
15914
exclude_expsyms=$lt_exclude_expsyms_F77
15916
# Symbols that must always be exported.
15917
include_expsyms=$lt_include_expsyms_F77
15919
# ### END LIBTOOL TAG CONFIG: $tagname
15925
# If there is no Makefile yet, we rely on a make rule to execute
15926
# `config.status --recheck' to rerun these tests and create the
15927
# libtool script then.
15928
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15929
if test -f "$ltmain_in"; then
15930
test -f Makefile && make "$ltmain"
15936
ac_cpp='$CPP $CPPFLAGS'
15937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15949
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15953
# Source file extension for Java test sources.
15956
# Object file extension for compiled Java test sources.
15960
# Code to be used in simple compile tests
15961
lt_simple_compile_test_code="class foo {}\n"
15963
# Code to be used in simple link tests
15964
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15966
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15968
# If no C compiler was specified, use CC.
15971
# Allow CC to be a program name with arguments.
15975
# save warnings/boilerplate of simple test code
15976
ac_outfile=conftest.$ac_objext
15977
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15978
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15979
_lt_compiler_boilerplate=`cat conftest.err`
15982
ac_outfile=conftest.$ac_objext
15983
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15984
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15985
_lt_linker_boilerplate=`cat conftest.err`
15989
# Allow CC to be a program name with arguments.
15994
for cc_temp in $compiler""; do
15996
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15997
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16002
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16005
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16006
archive_cmds_need_lc_GCJ=no
16008
old_archive_cmds_GCJ=$old_archive_cmds
16011
lt_prog_compiler_no_builtin_flag_GCJ=
16013
if test "$GCC" = yes; then
16014
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16017
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16018
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16019
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16020
echo $ECHO_N "(cached) $ECHO_C" >&6
16022
lt_cv_prog_compiler_rtti_exceptions=no
16023
ac_outfile=conftest.$ac_objext
16024
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16025
lt_compiler_flag="-fno-rtti -fno-exceptions"
16026
# Insert the option either (1) after the last *FLAGS variable, or
16027
# (2) before a word containing "conftest.", or (3) at the end.
16028
# Note that $ac_compile itself does not contain backslashes and begins
16029
# with a dollar sign (not a hyphen), so the echo should work correctly.
16030
# The option is referenced via a variable to avoid confusing sed.
16031
lt_compile=`echo "$ac_compile" | $SED \
16032
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16033
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16034
-e 's:$: $lt_compiler_flag:'`
16035
(eval echo "\"\$as_me:16035: $lt_compile\"" >&5)
16036
(eval "$lt_compile" 2>conftest.err)
16038
cat conftest.err >&5
16039
echo "$as_me:16039: \$? = $ac_status" >&5
16040
if (exit $ac_status) && test -s "$ac_outfile"; then
16041
# The compiler can only warn and ignore the option if not recognized
16042
# So say no if there are warnings other than the usual output.
16043
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16044
$SED '/^$/d' conftest.err >conftest.er2
16045
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16046
lt_cv_prog_compiler_rtti_exceptions=yes
16052
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16053
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16055
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16056
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16063
lt_prog_compiler_wl_GCJ=
16064
lt_prog_compiler_pic_GCJ=
16065
lt_prog_compiler_static_GCJ=
16067
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16068
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16070
if test "$GCC" = yes; then
16071
lt_prog_compiler_wl_GCJ='-Wl,'
16072
lt_prog_compiler_static_GCJ='-static'
16076
# All AIX code is PIC.
16077
if test "$host_cpu" = ia64; then
16078
# AIX 5 now supports IA64 processor
16079
lt_prog_compiler_static_GCJ='-Bstatic'
16084
# FIXME: we need at least 68020 code to build shared libraries, but
16085
# adding the `-m68020' flag to GCC prevents building anything better,
16087
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16090
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16091
# PIC is the default for these OSes.
16094
mingw* | pw32* | os2*)
16095
# This hack is so that the source file can tell whether it is being
16096
# built for inclusion in a dll (and should export symbols for example).
16097
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16100
darwin* | rhapsody*)
16101
# PIC is the default on this platform
16102
# Common symbols not allowed in MH_DYLIB files
16103
lt_prog_compiler_pic_GCJ='-fno-common'
16107
# Just because we use GCC doesn't mean we suddenly get shared libraries
16108
# on systems that don't support them.
16109
lt_prog_compiler_can_build_shared_GCJ=no
16114
if test -d /usr/nec; then
16115
lt_prog_compiler_pic_GCJ=-Kconform_pic
16120
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16121
# not for PA HP-UX.
16127
lt_prog_compiler_pic_GCJ='-fPIC'
16133
lt_prog_compiler_pic_GCJ='-fPIC'
16137
# PORTME Check for flag to pass linker flags through the system compiler.
16140
lt_prog_compiler_wl_GCJ='-Wl,'
16141
if test "$host_cpu" = ia64; then
16142
# AIX 5 now supports IA64 processor
16143
lt_prog_compiler_static_GCJ='-Bstatic'
16145
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16149
# PIC is the default on this platform
16150
# Common symbols not allowed in MH_DYLIB files
16151
case $cc_basename in
16153
lt_prog_compiler_pic_GCJ='-qnocommon'
16154
lt_prog_compiler_wl_GCJ='-Wl,'
16159
mingw* | pw32* | os2*)
16160
# This hack is so that the source file can tell whether it is being
16161
# built for inclusion in a dll (and should export symbols for example).
16162
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16165
hpux9* | hpux10* | hpux11*)
16166
lt_prog_compiler_wl_GCJ='-Wl,'
16167
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16168
# not for PA HP-UX.
16174
lt_prog_compiler_pic_GCJ='+Z'
16177
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16178
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16181
irix5* | irix6* | nonstopux*)
16182
lt_prog_compiler_wl_GCJ='-Wl,'
16183
# PIC (with -KPIC) is the default.
16184
lt_prog_compiler_static_GCJ='-non_shared'
16188
lt_prog_compiler_pic_GCJ='-KPIC'
16189
lt_prog_compiler_static_GCJ='-Bstatic'
16193
case $cc_basename in
16195
lt_prog_compiler_wl_GCJ='-Wl,'
16196
lt_prog_compiler_pic_GCJ='-KPIC'
16197
lt_prog_compiler_static_GCJ='-static'
16199
pgcc* | pgf77* | pgf90* | pgf95*)
16200
# Portland Group compilers (*not* the Pentium gcc compiler,
16201
# which looks to be a dead project)
16202
lt_prog_compiler_wl_GCJ='-Wl,'
16203
lt_prog_compiler_pic_GCJ='-fpic'
16204
lt_prog_compiler_static_GCJ='-Bstatic'
16207
lt_prog_compiler_wl_GCJ='-Wl,'
16208
# All Alpha code is PIC.
16209
lt_prog_compiler_static_GCJ='-non_shared'
16214
osf3* | osf4* | osf5*)
16215
lt_prog_compiler_wl_GCJ='-Wl,'
16216
# All OSF/1 code is PIC.
16217
lt_prog_compiler_static_GCJ='-non_shared'
16221
lt_prog_compiler_pic_GCJ='-Kpic'
16222
lt_prog_compiler_static_GCJ='-dn'
16226
lt_prog_compiler_pic_GCJ='-KPIC'
16227
lt_prog_compiler_static_GCJ='-Bstatic'
16228
case $cc_basename in
16229
f77* | f90* | f95*)
16230
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16232
lt_prog_compiler_wl_GCJ='-Wl,';;
16237
lt_prog_compiler_wl_GCJ='-Qoption ld '
16238
lt_prog_compiler_pic_GCJ='-PIC'
16239
lt_prog_compiler_static_GCJ='-Bstatic'
16242
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16243
lt_prog_compiler_wl_GCJ='-Wl,'
16244
lt_prog_compiler_pic_GCJ='-KPIC'
16245
lt_prog_compiler_static_GCJ='-Bstatic'
16249
if test -d /usr/nec ;then
16250
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16251
lt_prog_compiler_static_GCJ='-Bstatic'
16256
lt_prog_compiler_wl_GCJ='-Wl,'
16257
lt_prog_compiler_can_build_shared_GCJ=no
16261
lt_prog_compiler_pic_GCJ='-pic'
16262
lt_prog_compiler_static_GCJ='-Bstatic'
16266
lt_prog_compiler_can_build_shared_GCJ=no
16271
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16272
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16275
# Check to make sure the PIC flag actually works.
16277
if test -n "$lt_prog_compiler_pic_GCJ"; then
16279
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16280
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16281
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16282
echo $ECHO_N "(cached) $ECHO_C" >&6
16284
lt_prog_compiler_pic_works_GCJ=no
16285
ac_outfile=conftest.$ac_objext
16286
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16287
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16288
# Insert the option either (1) after the last *FLAGS variable, or
16289
# (2) before a word containing "conftest.", or (3) at the end.
16290
# Note that $ac_compile itself does not contain backslashes and begins
16291
# with a dollar sign (not a hyphen), so the echo should work correctly.
16292
# The option is referenced via a variable to avoid confusing sed.
16293
lt_compile=`echo "$ac_compile" | $SED \
16294
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16295
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16296
-e 's:$: $lt_compiler_flag:'`
16297
(eval echo "\"\$as_me:16297: $lt_compile\"" >&5)
16298
(eval "$lt_compile" 2>conftest.err)
16300
cat conftest.err >&5
16301
echo "$as_me:16301: \$? = $ac_status" >&5
16302
if (exit $ac_status) && test -s "$ac_outfile"; then
16303
# The compiler can only warn and ignore the option if not recognized
16304
# So say no if there are warnings other than the usual output.
16305
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16306
$SED '/^$/d' conftest.err >conftest.er2
16307
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16308
lt_prog_compiler_pic_works_GCJ=yes
16314
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16315
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16317
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16318
case $lt_prog_compiler_pic_GCJ in
16320
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16323
lt_prog_compiler_pic_GCJ=
16324
lt_prog_compiler_can_build_shared_GCJ=no
16329
# For platforms which do not support PIC, -DPIC is meaningless:
16331
lt_prog_compiler_pic_GCJ=
16334
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16338
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16339
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16340
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16341
echo $ECHO_N "(cached) $ECHO_C" >&6
16343
lt_cv_prog_compiler_c_o_GCJ=no
16344
$rm -r conftest 2>/dev/null
16348
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16350
lt_compiler_flag="-o out/conftest2.$ac_objext"
16351
# Insert the option either (1) after the last *FLAGS variable, or
16352
# (2) before a word containing "conftest.", or (3) at the end.
16353
# Note that $ac_compile itself does not contain backslashes and begins
16354
# with a dollar sign (not a hyphen), so the echo should work correctly.
16355
lt_compile=`echo "$ac_compile" | $SED \
16356
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16357
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16358
-e 's:$: $lt_compiler_flag:'`
16359
(eval echo "\"\$as_me:16359: $lt_compile\"" >&5)
16360
(eval "$lt_compile" 2>out/conftest.err)
16362
cat out/conftest.err >&5
16363
echo "$as_me:16363: \$? = $ac_status" >&5
16364
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16366
# The compiler can only warn and ignore the option if not recognized
16367
# So say no if there are warnings
16368
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16369
$SED '/^$/d' out/conftest.err >out/conftest.er2
16370
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16371
lt_cv_prog_compiler_c_o_GCJ=yes
16376
# SGI C++ compiler will create directory out/ii_files/ for
16377
# template instantiation
16378
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16379
$rm out/* && rmdir out
16385
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16386
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16389
hard_links="nottested"
16390
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16391
# do not overwrite the value of need_locks provided by the user
16392
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16393
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16396
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16398
ln conftest.a conftest.b 2>&5 || hard_links=no
16399
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16400
echo "$as_me:$LINENO: result: $hard_links" >&5
16401
echo "${ECHO_T}$hard_links" >&6
16402
if test "$hard_links" = no; then
16403
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16404
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16411
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16412
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16415
allow_undefined_flag_GCJ=
16416
enable_shared_with_static_runtimes_GCJ=no
16418
archive_expsym_cmds_GCJ=
16419
old_archive_From_new_cmds_GCJ=
16420
old_archive_from_expsyms_cmds_GCJ=
16421
export_dynamic_flag_spec_GCJ=
16422
whole_archive_flag_spec_GCJ=
16423
thread_safe_flag_spec_GCJ=
16424
hardcode_libdir_flag_spec_GCJ=
16425
hardcode_libdir_flag_spec_ld_GCJ=
16426
hardcode_libdir_separator_GCJ=
16427
hardcode_direct_GCJ=no
16428
hardcode_minus_L_GCJ=no
16429
hardcode_shlibpath_var_GCJ=unsupported
16430
link_all_deplibs_GCJ=unknown
16431
hardcode_automatic_GCJ=no
16433
module_expsym_cmds_GCJ=
16434
always_export_symbols_GCJ=no
16435
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16436
# include_expsyms should be a list of space-separated symbols to be *always*
16437
# included in the symbol list
16438
include_expsyms_GCJ=
16439
# exclude_expsyms can be an extended regexp of symbols to exclude
16440
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16441
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16442
# as well as any symbol that contains `d'.
16443
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16444
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16445
# platforms (ab)use it in PIC code, but their linkers get confused if
16446
# the symbol is explicitly referenced. Since portable code cannot
16447
# rely on this symbol name, it's probably fine to never include it in
16448
# preloaded symbol tables.
16449
extract_expsyms_cmds=
16450
# Just being paranoid about ensuring that cc_basename is set.
16451
for cc_temp in $compiler""; do
16453
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16454
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16459
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16462
cygwin* | mingw* | pw32*)
16463
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16464
# When not using gcc, we currently assume that we are using
16465
# Microsoft Visual C++.
16466
if test "$GCC" != yes; then
16476
if test "$with_gnu_ld" = yes; then
16477
# If archive_cmds runs LD, not CC, wlarc should be empty
16480
# Set some defaults for GNU ld with shared library support. These
16481
# are reset later if shared libraries are not supported. Putting them
16482
# here allows them to be overridden if necessary.
16483
runpath_var=LD_RUN_PATH
16484
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16485
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16486
# ancient GNU ld didn't support --whole-archive et. al.
16487
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16488
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16490
whole_archive_flag_spec_GCJ=
16492
supports_anon_versioning=no
16493
case `$LD -v 2>/dev/null` in
16494
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16495
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16496
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16497
*\ 2.11.*) ;; # other 2.11 versions
16498
*) supports_anon_versioning=yes ;;
16501
# See if GNU ld supports shared libraries.
16503
aix3* | aix4* | aix5*)
16504
# On AIX/PPC, the GNU linker is very broken
16505
if test "$host_cpu" != ia64; then
16509
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16510
*** to be unable to reliably create shared libraries on AIX.
16511
*** Therefore, libtool is disabling shared libraries support. If you
16512
*** really care for shared libraries, you may want to modify your PATH
16513
*** so that a non-GNU linker is found, and then restart.
16520
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)'
16521
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16522
hardcode_minus_L_GCJ=yes
16524
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16525
# that the semantics of dynamic libraries on AmigaOS, at least up
16526
# to version 4, is to share data among multiple programs linked
16527
# with the same dynamic library. Since this doesn't match the
16528
# behavior of shared libraries on other platforms, we can't use
16534
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16535
allow_undefined_flag_GCJ=unsupported
16536
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16537
# support --undefined. This deserves some investigation. FIXME
16538
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16544
cygwin* | mingw* | pw32*)
16545
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16546
# as there is no search path for DLLs.
16547
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548
allow_undefined_flag_GCJ=unsupported
16549
always_export_symbols_GCJ=no
16550
enable_shared_with_static_runtimes_GCJ=yes
16551
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16553
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16554
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16555
# If the export-symbols file already is a .def file (1st line
16556
# is EXPORTS), use it as is; otherwise, prepend...
16557
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16558
cp $export_symbols $output_objdir/$soname.def;
16560
echo EXPORTS > $output_objdir/$soname.def;
16561
cat $export_symbols >> $output_objdir/$soname.def;
16563
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16570
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16572
case $cc_basename,$host_cpu in
16573
pgcc*) # Portland Group C compiler
16574
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16575
tmp_addflag=' $pic_flag'
16577
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16578
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16579
tmp_addflag=' $pic_flag -Mnomain' ;;
16580
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16581
tmp_addflag=' -i_dynamic' ;;
16582
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16583
tmp_addflag=' -i_dynamic -nofor_main' ;;
16584
ifc* | ifort*) # Intel Fortran compiler
16585
tmp_addflag=' -nofor_main' ;;
16587
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16589
if test $supports_anon_versioning = yes; then
16590
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16591
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16592
$echo "local: *; };" >> $output_objdir/$libname.ver~
16593
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16601
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16602
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16605
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16606
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16611
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16615
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16616
*** create shared libraries on Solaris systems. Therefore, libtool
16617
*** is disabling shared libraries support. We urge you to upgrade GNU
16618
*** binutils to release 2.9.1 or newer. Another option is to modify
16619
*** your PATH or compiler configuration so that the native linker is
16620
*** used, and then restart.
16623
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16624
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16625
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16632
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16634
hardcode_direct_GCJ=yes
16635
hardcode_shlibpath_var_GCJ=no
16639
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16640
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16641
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16648
if test "$ld_shlibs_GCJ" = no; then
16650
hardcode_libdir_flag_spec_GCJ=
16651
export_dynamic_flag_spec_GCJ=
16652
whole_archive_flag_spec_GCJ=
16655
# PORTME fill in a description of your system's linker (not GNU ld)
16658
allow_undefined_flag_GCJ=unsupported
16659
always_export_symbols_GCJ=yes
16660
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'
16661
# Note: this linker hardcodes the directories in LIBPATH if there
16662
# are no directories specified by -L.
16663
hardcode_minus_L_GCJ=yes
16664
if test "$GCC" = yes && test -z "$link_static_flag"; then
16665
# Neither direct hardcoding nor static linking is supported with a
16667
hardcode_direct_GCJ=unsupported
16672
if test "$host_cpu" = ia64; then
16673
# On IA64, the linker does run time linking by default, so we don't
16674
# have to do anything special.
16675
aix_use_runtimelinking=no
16676
exp_sym_flag='-Bexport'
16679
# If we're using GNU nm, then we don't want the "-C" option.
16680
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16681
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16682
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'
16684
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'
16686
aix_use_runtimelinking=no
16688
# Test if we are trying to use run time linking or normal
16689
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16690
# need to do runtime linking.
16691
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16692
for ld_flag in $LDFLAGS; do
16693
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16694
aix_use_runtimelinking=yes
16700
exp_sym_flag='-bexport'
16701
no_entry_flag='-bnoentry'
16704
# When large executables or shared objects are built, AIX ld can
16705
# have problems creating the table of contents. If linking a library
16706
# or program results in "error TOC overflow" add -mminimal-toc to
16707
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16708
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16710
archive_cmds_GCJ=''
16711
hardcode_direct_GCJ=yes
16712
hardcode_libdir_separator_GCJ=':'
16713
link_all_deplibs_GCJ=yes
16715
if test "$GCC" = yes; then
16716
case $host_os in aix4.[012]|aix4.[012].*)
16717
# We only want to do this on AIX 4.2 and lower, the check
16718
# below for broken collect2 doesn't work under 4.3+
16719
collect2name=`${CC} -print-prog-name=collect2`
16720
if test -f "$collect2name" && \
16721
strings "$collect2name" | grep resolve_lib_name >/dev/null
16723
# We have reworked collect2
16724
hardcode_direct_GCJ=yes
16726
# We have old collect2
16727
hardcode_direct_GCJ=unsupported
16728
# It fails to find uninstalled libraries when the uninstalled
16729
# path is not listed in the libpath. Setting hardcode_minus_L
16730
# to unsupported forces relinking
16731
hardcode_minus_L_GCJ=yes
16732
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16733
hardcode_libdir_separator_GCJ=
16736
shared_flag='-shared'
16737
if test "$aix_use_runtimelinking" = yes; then
16738
shared_flag="$shared_flag "'${wl}-G'
16742
if test "$host_cpu" = ia64; then
16743
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16744
# chokes on -Wl,-G. The following line is correct:
16747
if test "$aix_use_runtimelinking" = yes; then
16748
shared_flag='${wl}-G'
16750
shared_flag='${wl}-bM:SRE'
16755
# It seems that -bexpall does not export symbols beginning with
16756
# underscore (_), so it is better to generate a list of symbols to export.
16757
always_export_symbols_GCJ=yes
16758
if test "$aix_use_runtimelinking" = yes; then
16759
# Warning - without using the other runtime loading flags (-brtl),
16760
# -berok will link without error, but may produce a broken library.
16761
allow_undefined_flag_GCJ='-berok'
16762
# Determine the default libpath from the value encoded in an empty executable.
16763
cat >conftest.$ac_ext <<_ACEOF
16766
cat confdefs.h >>conftest.$ac_ext
16767
cat >>conftest.$ac_ext <<_ACEOF
16768
/* end confdefs.h. */
16778
rm -f conftest.$ac_objext conftest$ac_exeext
16779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16780
(eval $ac_link) 2>conftest.er1
16782
grep -v '^ *+' conftest.er1 >conftest.err
16784
cat conftest.err >&5
16785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786
(exit $ac_status); } &&
16787
{ ac_try='test -z "$ac_c_werror_flag"
16788
|| test ! -s conftest.err'
16789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790
(eval $ac_try) 2>&5
16792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793
(exit $ac_status); }; } &&
16794
{ ac_try='test -s conftest$ac_exeext'
16795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796
(eval $ac_try) 2>&5
16798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799
(exit $ac_status); }; }; then
16801
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16803
# Check for a 64-bit object if we didn't find anything.
16804
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; }
16807
echo "$as_me: failed program was:" >&5
16808
sed 's/^/| /' conftest.$ac_ext >&5
16811
rm -f conftest.err conftest.$ac_objext \
16812
conftest$ac_exeext conftest.$ac_ext
16813
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16815
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16816
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"
16818
if test "$host_cpu" = ia64; then
16819
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16820
allow_undefined_flag_GCJ="-z nodefs"
16821
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"
16823
# Determine the default libpath from the value encoded in an empty executable.
16824
cat >conftest.$ac_ext <<_ACEOF
16827
cat confdefs.h >>conftest.$ac_ext
16828
cat >>conftest.$ac_ext <<_ACEOF
16829
/* end confdefs.h. */
16839
rm -f conftest.$ac_objext conftest$ac_exeext
16840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16841
(eval $ac_link) 2>conftest.er1
16843
grep -v '^ *+' conftest.er1 >conftest.err
16845
cat conftest.err >&5
16846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847
(exit $ac_status); } &&
16848
{ ac_try='test -z "$ac_c_werror_flag"
16849
|| test ! -s conftest.err'
16850
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851
(eval $ac_try) 2>&5
16853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854
(exit $ac_status); }; } &&
16855
{ ac_try='test -s conftest$ac_exeext'
16856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857
(eval $ac_try) 2>&5
16859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860
(exit $ac_status); }; }; then
16862
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16864
# Check for a 64-bit object if we didn't find anything.
16865
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; }
16868
echo "$as_me: failed program was:" >&5
16869
sed 's/^/| /' conftest.$ac_ext >&5
16872
rm -f conftest.err conftest.$ac_objext \
16873
conftest$ac_exeext conftest.$ac_ext
16874
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16876
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16877
# Warning - without using the other run time loading flags,
16878
# -berok will link without error, but may produce a broken library.
16879
no_undefined_flag_GCJ=' ${wl}-bernotok'
16880
allow_undefined_flag_GCJ=' ${wl}-berok'
16881
# -bexpall does not export symbols beginning with underscore (_)
16882
always_export_symbols_GCJ=yes
16883
# Exported symbols can be pulled into shared objects from archives
16884
whole_archive_flag_spec_GCJ=' '
16885
archive_cmds_need_lc_GCJ=yes
16886
# This is similar to how AIX traditionally builds its shared libraries.
16887
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'
16893
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)'
16894
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16895
hardcode_minus_L_GCJ=yes
16896
# see comment about different semantics on the GNU ld section
16901
export_dynamic_flag_spec_GCJ=-rdynamic
16904
cygwin* | mingw* | pw32*)
16905
# When not using gcc, we currently assume that we are using
16906
# Microsoft Visual C++.
16907
# hardcode_libdir_flag_spec is actually meaningless, as there is
16908
# no search path for DLLs.
16909
hardcode_libdir_flag_spec_GCJ=' '
16910
allow_undefined_flag_GCJ=unsupported
16911
# Tell ltmain to make .lib files, not .a files.
16913
# Tell ltmain to make .dll files, not .so files.
16915
# FIXME: Setting linknames here is a bad hack.
16916
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16917
# The linker will automatically build a .lib file if we build a DLL.
16918
old_archive_From_new_cmds_GCJ='true'
16919
# FIXME: Should let the user specify the lib program.
16920
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16921
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16922
enable_shared_with_static_runtimes_GCJ=yes
16925
darwin* | rhapsody*)
16927
rhapsody* | darwin1.[012])
16928
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16931
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16932
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16934
case ${MACOSX_DEPLOYMENT_TARGET} in
16936
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16939
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16945
archive_cmds_need_lc_GCJ=no
16946
hardcode_direct_GCJ=no
16947
hardcode_automatic_GCJ=yes
16948
hardcode_shlibpath_var_GCJ=unsupported
16949
whole_archive_flag_spec_GCJ=''
16950
link_all_deplibs_GCJ=yes
16951
if test "$GCC" = yes ; then
16952
output_verbose_link_cmd='echo'
16953
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16954
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16955
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16956
archive_expsym_cmds_GCJ='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}'
16957
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}'
16959
case $cc_basename in
16961
output_verbose_link_cmd='echo'
16962
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16963
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16964
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16965
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16966
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}'
16976
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16977
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16978
hardcode_shlibpath_var_GCJ=no
16985
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16986
# support. Future versions do this automatically, but an explicit c++rt0.o
16987
# does not break anything, and helps significantly (at the cost of a little
16990
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16991
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16992
hardcode_direct_GCJ=yes
16993
hardcode_shlibpath_var_GCJ=no
16996
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16998
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16999
hardcode_direct_GCJ=yes
17000
hardcode_minus_L_GCJ=yes
17001
hardcode_shlibpath_var_GCJ=no
17004
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17005
freebsd* | kfreebsd*-gnu | dragonfly*)
17006
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17007
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17008
hardcode_direct_GCJ=yes
17009
hardcode_shlibpath_var_GCJ=no
17013
if test "$GCC" = yes; then
17014
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'
17016
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'
17018
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17019
hardcode_libdir_separator_GCJ=:
17020
hardcode_direct_GCJ=yes
17022
# hardcode_minus_L: Not really in the search PATH,
17023
# but as the default location of the library.
17024
hardcode_minus_L_GCJ=yes
17025
export_dynamic_flag_spec_GCJ='${wl}-E'
17029
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17032
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17035
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17041
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17044
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17048
if test "$with_gnu_ld" = no; then
17051
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17052
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17053
hardcode_libdir_separator_GCJ=:
17054
hardcode_direct_GCJ=no
17055
hardcode_shlibpath_var_GCJ=no
17058
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17059
hardcode_direct_GCJ=no
17060
hardcode_shlibpath_var_GCJ=no
17062
# hardcode_minus_L: Not really in the search PATH,
17063
# but as the default location of the library.
17064
hardcode_minus_L_GCJ=yes
17067
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17068
hardcode_libdir_separator_GCJ=:
17069
hardcode_direct_GCJ=yes
17070
export_dynamic_flag_spec_GCJ='${wl}-E'
17072
# hardcode_minus_L: Not really in the search PATH,
17073
# but as the default location of the library.
17074
hardcode_minus_L_GCJ=yes
17080
irix5* | irix6* | nonstopux*)
17081
if test "$GCC" = yes; then
17082
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'
17084
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'
17085
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17087
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17088
hardcode_libdir_separator_GCJ=:
17089
link_all_deplibs_GCJ=yes
17093
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17094
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17096
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17098
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17099
hardcode_direct_GCJ=yes
17100
hardcode_shlibpath_var_GCJ=no
17104
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17105
hardcode_direct_GCJ=yes
17106
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17107
hardcode_libdir_separator_GCJ=:
17108
hardcode_shlibpath_var_GCJ=no
17112
hardcode_direct_GCJ=yes
17113
hardcode_shlibpath_var_GCJ=no
17114
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17115
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17116
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17117
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17118
export_dynamic_flag_spec_GCJ='${wl}-E'
17121
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17122
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17123
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17126
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17127
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17134
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17135
hardcode_minus_L_GCJ=yes
17136
allow_undefined_flag_GCJ=unsupported
17137
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'
17138
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17142
if test "$GCC" = yes; then
17143
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17144
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'
17146
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17147
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'
17149
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17150
hardcode_libdir_separator_GCJ=:
17153
osf4* | osf5*) # as osf3* with the addition of -msym flag
17154
if test "$GCC" = yes; then
17155
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17156
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'
17157
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17159
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17160
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'
17161
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~
17162
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17164
# Both c and cxx compiler support -rpath directly
17165
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17167
hardcode_libdir_separator_GCJ=:
17171
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17172
hardcode_shlibpath_var_GCJ=no
17173
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17174
runpath_var=LD_RUN_PATH
17175
hardcode_runpath_var=yes
17179
no_undefined_flag_GCJ=' -z text'
17180
if test "$GCC" = yes; then
17182
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17183
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17184
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17187
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17188
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17189
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17191
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17192
hardcode_shlibpath_var_GCJ=no
17194
solaris2.[0-5] | solaris2.[0-5].*) ;;
17196
# The compiler driver will combine linker options so we
17197
# cannot just pass the convience library names through
17198
# without $wl, iff we do not link with $LD.
17199
# Luckily, gcc supports the same syntax we need for Sun Studio.
17200
# Supported since Solaris 2.6 (maybe 2.5.1?)
17203
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17205
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17208
link_all_deplibs_GCJ=yes
17212
if test "x$host_vendor" = xsequent; then
17213
# Use $CC to link under sequent, because it throws in some extra .o
17214
# files that make .init and .fini sections work.
17215
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17217
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17219
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220
hardcode_direct_GCJ=yes
17221
hardcode_minus_L_GCJ=yes
17222
hardcode_shlibpath_var_GCJ=no
17226
case $host_vendor in
17228
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17229
hardcode_direct_GCJ=yes # is this really true???
17232
## LD is ld it makes a PLAMLIB
17233
## CC just makes a GrossModule.
17234
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17235
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17236
hardcode_direct_GCJ=no
17239
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17240
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17243
runpath_var='LD_RUN_PATH'
17244
hardcode_shlibpath_var_GCJ=no
17248
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17249
hardcode_shlibpath_var_GCJ=no
17250
export_dynamic_flag_spec_GCJ='-Bexport'
17254
if test -d /usr/nec; then
17255
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17256
hardcode_shlibpath_var_GCJ=no
17257
runpath_var=LD_RUN_PATH
17258
hardcode_runpath_var=yes
17264
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17265
hardcode_direct_GCJ=yes
17266
hardcode_minus_L_GCJ=no
17267
hardcode_shlibpath_var_GCJ=no
17268
hardcode_runpath_var=yes
17269
runpath_var=LD_RUN_PATH
17272
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17273
no_undefined_flag_GCJ='${wl}-z ${wl}text'
17274
if test "$GCC" = yes; then
17275
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17277
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17279
runpath_var='LD_RUN_PATH'
17280
hardcode_shlibpath_var_GCJ=no
17284
no_undefined_flag_GCJ=' -z text'
17285
# $CC -shared without GNU ld will not create a library from C++
17286
# object files and a static libstdc++, better avoid it by now
17287
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17288
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17289
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17290
hardcode_libdir_flag_spec_GCJ=
17291
hardcode_shlibpath_var_GCJ=no
17292
runpath_var='LD_RUN_PATH'
17296
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17297
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17298
hardcode_shlibpath_var_GCJ=no
17307
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17308
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17309
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17311
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17312
if test "$GCC" = yes; then
17313
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17317
# Do we need to explicitly link libc?
17319
case "x$archive_cmds_need_lc_GCJ" in
17321
# Assume -lc should be added
17322
archive_cmds_need_lc_GCJ=yes
17324
if test "$enable_shared" = yes && test "$GCC" = yes; then
17325
case $archive_cmds_GCJ in
17327
# FIXME: we may have to deal with multi-command sequences.
17330
# Test whether the compiler implicitly links with -lc since on some
17331
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17332
# to ld, don't add -lc before -lgcc.
17333
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17334
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17336
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17338
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17339
(eval $ac_compile) 2>&5
17341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342
(exit $ac_status); } 2>conftest.err; then
17345
libobjs=conftest.$ac_objext
17347
wl=$lt_prog_compiler_wl_GCJ
17353
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17354
allow_undefined_flag_GCJ=
17355
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17356
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359
(exit $ac_status); }
17361
archive_cmds_need_lc_GCJ=no
17363
archive_cmds_need_lc_GCJ=yes
17365
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17367
cat conftest.err 1>&5
17370
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17371
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17378
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17379
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17380
library_names_spec=
17381
libname_spec='lib$name'
17385
postuninstall_cmds=
17389
shlibpath_overrides_runpath=unknown
17391
dynamic_linker="$host_os ld.so"
17392
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17393
if test "$GCC" = yes; then
17394
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17395
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17396
# if the path contains ";" then we assume it to be the separator
17397
# otherwise default to the standard path separator (i.e. ":") - it is
17398
# assumed that no part of a normal pathname contains ";" but that should
17399
# okay in the real world where ";" in dirpaths is itself problematic.
17400
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17402
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17405
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17407
need_lib_prefix=unknown
17408
hardcode_into_libs=no
17410
# when you set need_version to no, make sure it does not cause -set_version
17411
# flags to be left without arguments
17412
need_version=unknown
17417
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17418
shlibpath_var=LIBPATH
17420
# AIX 3 has no versioning support, so we append a major version to the name.
17421
soname_spec='${libname}${release}${shared_ext}$major'
17428
hardcode_into_libs=yes
17429
if test "$host_cpu" = ia64; then
17430
# AIX 5 supports IA64
17431
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17432
shlibpath_var=LD_LIBRARY_PATH
17434
# With GCC up to 2.95.x, collect2 would create an import file
17435
# for dependence libraries. The import file would start with
17436
# the line `#! .'. This would cause the generated library to
17437
# depend on `.', always an invalid library. This was fixed in
17438
# development snapshots of GCC prior to 3.0.
17440
aix4 | aix4.[01] | aix4.[01].*)
17441
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17443
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17446
can_build_shared=no
17450
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17451
# soname into executable. Probably we can add versioning support to
17452
# collect2, so additional links can be useful in future.
17453
if test "$aix_use_runtimelinking" = yes; then
17454
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17455
# instead of lib<name>.a to let people know that these are not
17456
# typical AIX shared libraries.
17457
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459
# We preserve .a as extension for shared libraries through AIX4.2
17460
# and later when we are not doing run time linking.
17461
library_names_spec='${libname}${release}.a $libname.a'
17462
soname_spec='${libname}${release}${shared_ext}$major'
17464
shlibpath_var=LIBPATH
17469
library_names_spec='$libname.ixlibrary $libname.a'
17470
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17471
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'
17475
library_names_spec='${libname}${shared_ext}'
17476
dynamic_linker="$host_os ld.so"
17477
shlibpath_var=LIBRARY_PATH
17483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484
soname_spec='${libname}${release}${shared_ext}$major'
17485
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17486
shlibpath_var=LD_LIBRARY_PATH
17487
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17488
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17489
# the default ld.so.conf also contains /usr/contrib/lib and
17490
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17491
# libtool to hard-code these into programs
17494
cygwin* | mingw* | pw32*)
17495
version_type=windows
17500
case $GCC,$host_os in
17501
yes,cygwin* | yes,mingw* | yes,pw32*)
17502
library_names_spec='$libname.dll.a'
17503
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17504
postinstall_cmds='base_file=`basename \${file}`~
17505
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17506
dldir=$destdir/`dirname \$dlpath`~
17507
test -d \$dldir || mkdir -p \$dldir~
17508
$install_prog $dir/$dlname \$dldir/$dlname~
17509
chmod a+x \$dldir/$dlname'
17510
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17511
dlpath=$dir/\$dldll~
17513
shlibpath_overrides_runpath=yes
17517
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17518
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17519
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17522
# MinGW DLLs use traditional 'lib' prefix
17523
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17524
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17525
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17526
# It is most probably a Windows format PATH printed by
17527
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17528
# path with ; separators, and with drive letters. We can handle the
17529
# drive letters (cygwin fileutils understands them), so leave them,
17530
# especially as we might pass files found there to a mingw objdump,
17531
# which wouldn't understand a cygwinified path. Ahh.
17532
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17534
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17538
# pw32 DLLs use 'pw' prefix rather than 'lib'
17539
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17545
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17548
dynamic_linker='Win32 ld.exe'
17549
# FIXME: first we should search . and the directory the executable is in
17553
darwin* | rhapsody*)
17554
dynamic_linker="$host_os dyld"
17555
version_type=darwin
17558
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17559
soname_spec='${libname}${release}${major}$shared_ext'
17560
shlibpath_overrides_runpath=yes
17561
shlibpath_var=DYLD_LIBRARY_PATH
17562
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17563
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17564
if test "$GCC" = yes; then
17565
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"`
17567
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17569
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17577
soname_spec='${libname}${release}${shared_ext}$major'
17578
shlibpath_var=LD_LIBRARY_PATH
17589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17590
soname_spec='${libname}${release}${shared_ext}$major'
17591
shlibpath_var=LD_LIBRARY_PATH
17592
shlibpath_overrides_runpath=no
17593
hardcode_into_libs=yes
17594
dynamic_linker='GNU ld.so'
17597
freebsd* | dragonfly*)
17598
# DragonFly does not have aout. When/if they implement a new
17599
# versioning mechanism, adjust this.
17600
if test -x /usr/bin/objformat; then
17601
objformat=`/usr/bin/objformat`
17604
freebsd[123]*) objformat=aout ;;
17605
*) objformat=elf ;;
17608
version_type=freebsd-$objformat
17609
case $version_type in
17611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17616
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17620
shlibpath_var=LD_LIBRARY_PATH
17623
shlibpath_overrides_runpath=yes
17625
freebsd3.[01]* | freebsdelf3.[01]*)
17626
shlibpath_overrides_runpath=yes
17627
hardcode_into_libs=yes
17630
shlibpath_overrides_runpath=no
17631
hardcode_into_libs=yes
17640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17641
soname_spec='${libname}${release}${shared_ext}$major'
17642
shlibpath_var=LD_LIBRARY_PATH
17643
hardcode_into_libs=yes
17646
hpux9* | hpux10* | hpux11*)
17647
# Give a soname corresponding to the major version so that dld.sl refuses to
17648
# link against other versions.
17655
hardcode_into_libs=yes
17656
dynamic_linker="$host_os dld.so"
17657
shlibpath_var=LD_LIBRARY_PATH
17658
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17660
soname_spec='${libname}${release}${shared_ext}$major'
17661
if test "X$HPUX_IA64_MODE" = X32; then
17662
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17664
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17666
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17670
hardcode_into_libs=yes
17671
dynamic_linker="$host_os dld.sl"
17672
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17673
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675
soname_spec='${libname}${release}${shared_ext}$major'
17676
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17677
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17681
dynamic_linker="$host_os dld.sl"
17682
shlibpath_var=SHLIB_PATH
17683
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17685
soname_spec='${libname}${release}${shared_ext}$major'
17688
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17689
postinstall_cmds='chmod 555 $lib'
17692
irix5* | irix6* | nonstopux*)
17694
nonstopux*) version_type=nonstopux ;;
17696
if test "$lt_cv_prog_gnu_ld" = yes; then
17704
soname_spec='${libname}${release}${shared_ext}$major'
17705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17707
irix5* | nonstopux*)
17708
libsuff= shlibsuff=
17711
case $LD in # libtool.m4 will add one of these switches to LD
17712
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17713
libsuff= shlibsuff= libmagic=32-bit;;
17714
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17715
libsuff=32 shlibsuff=N32 libmagic=N32;;
17716
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17717
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17718
*) libsuff= shlibsuff= libmagic=never-match;;
17722
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17723
shlibpath_overrides_runpath=no
17724
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17725
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17726
hardcode_into_libs=yes
17729
# No shared lib support for Linux oldld, aout, or coff.
17730
linux*oldld* | linux*aout* | linux*coff*)
17734
# This must be Linux ELF.
17739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740
soname_spec='${libname}${release}${shared_ext}$major'
17741
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17742
shlibpath_var=LD_LIBRARY_PATH
17743
shlibpath_overrides_runpath=no
17744
# This implies no fast_install, which is unacceptable.
17745
# Some rework will be needed to allow for fast_install
17746
# before this can be enabled.
17747
hardcode_into_libs=yes
17749
# Append ld.so.conf contents to the search path
17750
if test -f /etc/ld.so.conf; then
17751
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17752
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17755
# We used to test for /lib/ld.so.1 and disable shared libraries on
17756
# powerpc, because MkLinux only supported shared libraries with the
17757
# GNU dynamic linker. Since this was broken with cross compilers,
17758
# most powerpc-linux boxes support dynamic linking these days and
17759
# people can always --disable-shared, the test was removed, and we
17760
# assume the GNU/Linux dynamic linker is in use.
17761
dynamic_linker='GNU/Linux ld.so'
17768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17769
soname_spec='${libname}${release}${shared_ext}$major'
17770
shlibpath_var=LD_LIBRARY_PATH
17771
shlibpath_overrides_runpath=no
17772
hardcode_into_libs=yes
17773
dynamic_linker='GNU ld.so'
17780
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17782
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17783
dynamic_linker='NetBSD (a.out) ld.so'
17785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17786
soname_spec='${libname}${release}${shared_ext}$major'
17787
dynamic_linker='NetBSD ld.elf_so'
17789
shlibpath_var=LD_LIBRARY_PATH
17790
shlibpath_overrides_runpath=yes
17791
hardcode_into_libs=yes
17796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17797
shlibpath_var=LD_LIBRARY_PATH
17798
shlibpath_overrides_runpath=yes
17805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17806
soname_spec='${libname}${release}${shared_ext}$major'
17807
shlibpath_var=LD_LIBRARY_PATH
17808
shlibpath_overrides_runpath=yes
17814
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17816
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17817
*) need_version=no ;;
17819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17820
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17821
shlibpath_var=LD_LIBRARY_PATH
17822
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17824
openbsd2.[89] | openbsd2.[89].*)
17825
shlibpath_overrides_runpath=no
17828
shlibpath_overrides_runpath=yes
17832
shlibpath_overrides_runpath=yes
17837
libname_spec='$name'
17840
library_names_spec='$libname${shared_ext} $libname.a'
17841
dynamic_linker='OS/2 ld.exe'
17842
shlibpath_var=LIBPATH
17845
osf3* | osf4* | osf5*)
17849
soname_spec='${libname}${release}${shared_ext}$major'
17850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851
shlibpath_var=LD_LIBRARY_PATH
17852
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17853
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17858
soname_spec='${libname}${release}${shared_ext}$major'
17859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860
shlibpath_var=LD_LIBRARY_PATH
17867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868
soname_spec='${libname}${release}${shared_ext}$major'
17869
shlibpath_var=LD_LIBRARY_PATH
17870
shlibpath_overrides_runpath=yes
17871
hardcode_into_libs=yes
17872
# ldd complains unless libraries are executable
17873
postinstall_cmds='chmod +x $lib'
17878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17879
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17880
shlibpath_var=LD_LIBRARY_PATH
17881
shlibpath_overrides_runpath=yes
17882
if test "$with_gnu_ld" = yes; then
17888
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17890
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891
soname_spec='${libname}${release}${shared_ext}$major'
17892
shlibpath_var=LD_LIBRARY_PATH
17893
case $host_vendor in
17895
shlibpath_overrides_runpath=no
17897
export_dynamic_flag_spec='${wl}-Blargedynsym'
17898
runpath_var=LD_RUN_PATH
17906
shlibpath_overrides_runpath=no
17907
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17913
if test -d /usr/nec ;then
17915
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17916
soname_spec='$libname${shared_ext}.$major'
17917
shlibpath_var=LD_LIBRARY_PATH
17923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17924
soname_spec='${libname}${release}${shared_ext}$major'
17925
shlibpath_var=LD_LIBRARY_PATH
17932
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17933
echo "${ECHO_T}$dynamic_linker" >&6
17934
test "$dynamic_linker" = no && can_build_shared=no
17936
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17937
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17938
hardcode_action_GCJ=
17939
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17940
test -n "$runpath_var_GCJ" || \
17941
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17943
# We can hardcode non-existant directories.
17944
if test "$hardcode_direct_GCJ" != no &&
17945
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17946
# have to relink, otherwise we might link with an installed library
17947
# when we should be linking with a yet-to-be-installed one
17948
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17949
test "$hardcode_minus_L_GCJ" != no; then
17950
# Linking always hardcodes the temporary library directory.
17951
hardcode_action_GCJ=relink
17953
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17954
hardcode_action_GCJ=immediate
17957
# We cannot hardcode anything, or else we can only hardcode existing
17959
hardcode_action_GCJ=unsupported
17961
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17962
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17964
if test "$hardcode_action_GCJ" = relink; then
17965
# Fast installation is not supported
17966
enable_fast_install=no
17967
elif test "$shlibpath_overrides_runpath" = yes ||
17968
test "$enable_shared" = no; then
17969
# Fast installation is not necessary
17970
enable_fast_install=needless
17975
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17976
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17977
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17978
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17979
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17980
echo "$as_me:$LINENO: result: yes" >&5
17981
echo "${ECHO_T}yes" >&6
17983
# FIXME - insert some real tests, host_os isn't really good enough
17986
if test -n "$STRIP" ; then
17987
striplib="$STRIP -x"
17988
echo "$as_me:$LINENO: result: yes" >&5
17989
echo "${ECHO_T}yes" >&6
17991
echo "$as_me:$LINENO: result: no" >&5
17992
echo "${ECHO_T}no" >&6
17996
echo "$as_me:$LINENO: result: no" >&5
17997
echo "${ECHO_T}no" >&6
18002
if test "x$enable_dlopen" != xyes; then
18003
enable_dlopen=unknown
18004
enable_dlopen_self=unknown
18005
enable_dlopen_self_static=unknown
18012
lt_cv_dlopen="load_add_on"
18014
lt_cv_dlopen_self=yes
18018
lt_cv_dlopen="LoadLibrary"
18023
lt_cv_dlopen="dlopen"
18028
# if libdl is installed we need to link against it
18029
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18030
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18031
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18032
echo $ECHO_N "(cached) $ECHO_C" >&6
18034
ac_check_lib_save_LIBS=$LIBS
18036
cat >conftest.$ac_ext <<_ACEOF
18039
cat confdefs.h >>conftest.$ac_ext
18040
cat >>conftest.$ac_ext <<_ACEOF
18041
/* end confdefs.h. */
18043
/* Override any gcc2 internal prototype to avoid an error. */
18047
/* We use char because int might match the return type of a gcc2
18048
builtin and then its argument prototype would still apply. */
18058
rm -f conftest.$ac_objext conftest$ac_exeext
18059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18060
(eval $ac_link) 2>conftest.er1
18062
grep -v '^ *+' conftest.er1 >conftest.err
18064
cat conftest.err >&5
18065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066
(exit $ac_status); } &&
18067
{ ac_try='test -z "$ac_c_werror_flag"
18068
|| test ! -s conftest.err'
18069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070
(eval $ac_try) 2>&5
18072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073
(exit $ac_status); }; } &&
18074
{ ac_try='test -s conftest$ac_exeext'
18075
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076
(eval $ac_try) 2>&5
18078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079
(exit $ac_status); }; }; then
18080
ac_cv_lib_dl_dlopen=yes
18082
echo "$as_me: failed program was:" >&5
18083
sed 's/^/| /' conftest.$ac_ext >&5
18085
ac_cv_lib_dl_dlopen=no
18087
rm -f conftest.err conftest.$ac_objext \
18088
conftest$ac_exeext conftest.$ac_ext
18089
LIBS=$ac_check_lib_save_LIBS
18091
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18092
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18093
if test $ac_cv_lib_dl_dlopen = yes; then
18094
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18097
lt_cv_dlopen="dyld"
18099
lt_cv_dlopen_self=yes
18106
echo "$as_me:$LINENO: checking for shl_load" >&5
18107
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18108
if test "${ac_cv_func_shl_load+set}" = set; then
18109
echo $ECHO_N "(cached) $ECHO_C" >&6
18111
cat >conftest.$ac_ext <<_ACEOF
18114
cat confdefs.h >>conftest.$ac_ext
18115
cat >>conftest.$ac_ext <<_ACEOF
18116
/* end confdefs.h. */
18117
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18118
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18119
#define shl_load innocuous_shl_load
18121
/* System header to define __stub macros and hopefully few prototypes,
18122
which can conflict with char shl_load (); below.
18123
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18124
<limits.h> exists even on freestanding compilers. */
18127
# include <limits.h>
18129
# include <assert.h>
18134
/* Override any gcc2 internal prototype to avoid an error. */
18139
/* We use char because int might match the return type of a gcc2
18140
builtin and then its argument prototype would still apply. */
18142
/* The GNU C library defines this for functions which it implements
18143
to always fail with ENOSYS. Some functions are actually named
18144
something starting with __ and the normal name is an alias. */
18145
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18148
char (*f) () = shl_load;
18157
return f != shl_load;
18162
rm -f conftest.$ac_objext conftest$ac_exeext
18163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18164
(eval $ac_link) 2>conftest.er1
18166
grep -v '^ *+' conftest.er1 >conftest.err
18168
cat conftest.err >&5
18169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170
(exit $ac_status); } &&
18171
{ ac_try='test -z "$ac_c_werror_flag"
18172
|| test ! -s conftest.err'
18173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174
(eval $ac_try) 2>&5
18176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177
(exit $ac_status); }; } &&
18178
{ ac_try='test -s conftest$ac_exeext'
18179
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180
(eval $ac_try) 2>&5
18182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183
(exit $ac_status); }; }; then
18184
ac_cv_func_shl_load=yes
18186
echo "$as_me: failed program was:" >&5
18187
sed 's/^/| /' conftest.$ac_ext >&5
18189
ac_cv_func_shl_load=no
18191
rm -f conftest.err conftest.$ac_objext \
18192
conftest$ac_exeext conftest.$ac_ext
18194
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18195
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18196
if test $ac_cv_func_shl_load = yes; then
18197
lt_cv_dlopen="shl_load"
18199
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18200
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18201
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18202
echo $ECHO_N "(cached) $ECHO_C" >&6
18204
ac_check_lib_save_LIBS=$LIBS
18206
cat >conftest.$ac_ext <<_ACEOF
18209
cat confdefs.h >>conftest.$ac_ext
18210
cat >>conftest.$ac_ext <<_ACEOF
18211
/* end confdefs.h. */
18213
/* Override any gcc2 internal prototype to avoid an error. */
18217
/* We use char because int might match the return type of a gcc2
18218
builtin and then its argument prototype would still apply. */
18228
rm -f conftest.$ac_objext conftest$ac_exeext
18229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18230
(eval $ac_link) 2>conftest.er1
18232
grep -v '^ *+' conftest.er1 >conftest.err
18234
cat conftest.err >&5
18235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236
(exit $ac_status); } &&
18237
{ ac_try='test -z "$ac_c_werror_flag"
18238
|| test ! -s conftest.err'
18239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240
(eval $ac_try) 2>&5
18242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243
(exit $ac_status); }; } &&
18244
{ ac_try='test -s conftest$ac_exeext'
18245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246
(eval $ac_try) 2>&5
18248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249
(exit $ac_status); }; }; then
18250
ac_cv_lib_dld_shl_load=yes
18252
echo "$as_me: failed program was:" >&5
18253
sed 's/^/| /' conftest.$ac_ext >&5
18255
ac_cv_lib_dld_shl_load=no
18257
rm -f conftest.err conftest.$ac_objext \
18258
conftest$ac_exeext conftest.$ac_ext
18259
LIBS=$ac_check_lib_save_LIBS
18261
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18262
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18263
if test $ac_cv_lib_dld_shl_load = yes; then
18264
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18266
echo "$as_me:$LINENO: checking for dlopen" >&5
18267
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18268
if test "${ac_cv_func_dlopen+set}" = set; then
18269
echo $ECHO_N "(cached) $ECHO_C" >&6
18271
cat >conftest.$ac_ext <<_ACEOF
18274
cat confdefs.h >>conftest.$ac_ext
18275
cat >>conftest.$ac_ext <<_ACEOF
18276
/* end confdefs.h. */
18277
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18278
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18279
#define dlopen innocuous_dlopen
18281
/* System header to define __stub macros and hopefully few prototypes,
18282
which can conflict with char dlopen (); below.
18283
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18284
<limits.h> exists even on freestanding compilers. */
18287
# include <limits.h>
18289
# include <assert.h>
18294
/* Override any gcc2 internal prototype to avoid an error. */
18299
/* We use char because int might match the return type of a gcc2
18300
builtin and then its argument prototype would still apply. */
18302
/* The GNU C library defines this for functions which it implements
18303
to always fail with ENOSYS. Some functions are actually named
18304
something starting with __ and the normal name is an alias. */
18305
#if defined (__stub_dlopen) || defined (__stub___dlopen)
18308
char (*f) () = dlopen;
18317
return f != dlopen;
18322
rm -f conftest.$ac_objext conftest$ac_exeext
18323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18324
(eval $ac_link) 2>conftest.er1
18326
grep -v '^ *+' conftest.er1 >conftest.err
18328
cat conftest.err >&5
18329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330
(exit $ac_status); } &&
18331
{ ac_try='test -z "$ac_c_werror_flag"
18332
|| test ! -s conftest.err'
18333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334
(eval $ac_try) 2>&5
18336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337
(exit $ac_status); }; } &&
18338
{ ac_try='test -s conftest$ac_exeext'
18339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340
(eval $ac_try) 2>&5
18342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343
(exit $ac_status); }; }; then
18344
ac_cv_func_dlopen=yes
18346
echo "$as_me: failed program was:" >&5
18347
sed 's/^/| /' conftest.$ac_ext >&5
18349
ac_cv_func_dlopen=no
18351
rm -f conftest.err conftest.$ac_objext \
18352
conftest$ac_exeext conftest.$ac_ext
18354
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18355
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18356
if test $ac_cv_func_dlopen = yes; then
18357
lt_cv_dlopen="dlopen"
18359
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18360
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18361
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18362
echo $ECHO_N "(cached) $ECHO_C" >&6
18364
ac_check_lib_save_LIBS=$LIBS
18366
cat >conftest.$ac_ext <<_ACEOF
18369
cat confdefs.h >>conftest.$ac_ext
18370
cat >>conftest.$ac_ext <<_ACEOF
18371
/* end confdefs.h. */
18373
/* Override any gcc2 internal prototype to avoid an error. */
18377
/* We use char because int might match the return type of a gcc2
18378
builtin and then its argument prototype would still apply. */
18388
rm -f conftest.$ac_objext conftest$ac_exeext
18389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18390
(eval $ac_link) 2>conftest.er1
18392
grep -v '^ *+' conftest.er1 >conftest.err
18394
cat conftest.err >&5
18395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396
(exit $ac_status); } &&
18397
{ ac_try='test -z "$ac_c_werror_flag"
18398
|| test ! -s conftest.err'
18399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400
(eval $ac_try) 2>&5
18402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403
(exit $ac_status); }; } &&
18404
{ ac_try='test -s conftest$ac_exeext'
18405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406
(eval $ac_try) 2>&5
18408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409
(exit $ac_status); }; }; then
18410
ac_cv_lib_dl_dlopen=yes
18412
echo "$as_me: failed program was:" >&5
18413
sed 's/^/| /' conftest.$ac_ext >&5
18415
ac_cv_lib_dl_dlopen=no
18417
rm -f conftest.err conftest.$ac_objext \
18418
conftest$ac_exeext conftest.$ac_ext
18419
LIBS=$ac_check_lib_save_LIBS
18421
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18422
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18423
if test $ac_cv_lib_dl_dlopen = yes; then
18424
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18426
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18427
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18428
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18429
echo $ECHO_N "(cached) $ECHO_C" >&6
18431
ac_check_lib_save_LIBS=$LIBS
18432
LIBS="-lsvld $LIBS"
18433
cat >conftest.$ac_ext <<_ACEOF
18436
cat confdefs.h >>conftest.$ac_ext
18437
cat >>conftest.$ac_ext <<_ACEOF
18438
/* end confdefs.h. */
18440
/* Override any gcc2 internal prototype to avoid an error. */
18444
/* We use char because int might match the return type of a gcc2
18445
builtin and then its argument prototype would still apply. */
18455
rm -f conftest.$ac_objext conftest$ac_exeext
18456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18457
(eval $ac_link) 2>conftest.er1
18459
grep -v '^ *+' conftest.er1 >conftest.err
18461
cat conftest.err >&5
18462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463
(exit $ac_status); } &&
18464
{ ac_try='test -z "$ac_c_werror_flag"
18465
|| test ! -s conftest.err'
18466
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467
(eval $ac_try) 2>&5
18469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470
(exit $ac_status); }; } &&
18471
{ ac_try='test -s conftest$ac_exeext'
18472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473
(eval $ac_try) 2>&5
18475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476
(exit $ac_status); }; }; then
18477
ac_cv_lib_svld_dlopen=yes
18479
echo "$as_me: failed program was:" >&5
18480
sed 's/^/| /' conftest.$ac_ext >&5
18482
ac_cv_lib_svld_dlopen=no
18484
rm -f conftest.err conftest.$ac_objext \
18485
conftest$ac_exeext conftest.$ac_ext
18486
LIBS=$ac_check_lib_save_LIBS
18488
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18489
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18490
if test $ac_cv_lib_svld_dlopen = yes; then
18491
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18493
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18494
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18495
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18496
echo $ECHO_N "(cached) $ECHO_C" >&6
18498
ac_check_lib_save_LIBS=$LIBS
18500
cat >conftest.$ac_ext <<_ACEOF
18503
cat confdefs.h >>conftest.$ac_ext
18504
cat >>conftest.$ac_ext <<_ACEOF
18505
/* end confdefs.h. */
18507
/* Override any gcc2 internal prototype to avoid an error. */
18511
/* We use char because int might match the return type of a gcc2
18512
builtin and then its argument prototype would still apply. */
18522
rm -f conftest.$ac_objext conftest$ac_exeext
18523
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18524
(eval $ac_link) 2>conftest.er1
18526
grep -v '^ *+' conftest.er1 >conftest.err
18528
cat conftest.err >&5
18529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530
(exit $ac_status); } &&
18531
{ ac_try='test -z "$ac_c_werror_flag"
18532
|| test ! -s conftest.err'
18533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534
(eval $ac_try) 2>&5
18536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537
(exit $ac_status); }; } &&
18538
{ ac_try='test -s conftest$ac_exeext'
18539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540
(eval $ac_try) 2>&5
18542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543
(exit $ac_status); }; }; then
18544
ac_cv_lib_dld_dld_link=yes
18546
echo "$as_me: failed program was:" >&5
18547
sed 's/^/| /' conftest.$ac_ext >&5
18549
ac_cv_lib_dld_dld_link=no
18551
rm -f conftest.err conftest.$ac_objext \
18552
conftest$ac_exeext conftest.$ac_ext
18553
LIBS=$ac_check_lib_save_LIBS
18555
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18556
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18557
if test $ac_cv_lib_dld_dld_link = yes; then
18558
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18579
if test "x$lt_cv_dlopen" != xno; then
18585
case $lt_cv_dlopen in
18587
save_CPPFLAGS="$CPPFLAGS"
18588
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18590
save_LDFLAGS="$LDFLAGS"
18591
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18594
LIBS="$lt_cv_dlopen_libs $LIBS"
18596
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18597
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18598
if test "${lt_cv_dlopen_self+set}" = set; then
18599
echo $ECHO_N "(cached) $ECHO_C" >&6
18601
if test "$cross_compiling" = yes; then :
18602
lt_cv_dlopen_self=cross
18604
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18605
lt_status=$lt_dlunknown
18606
cat > conftest.$ac_ext <<EOF
18607
#line 18607 "configure"
18608
#include "confdefs.h"
18617
# define LT_DLGLOBAL RTLD_GLOBAL
18620
# define LT_DLGLOBAL DL_GLOBAL
18622
# define LT_DLGLOBAL 0
18626
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18627
find out it does not work in some platform. */
18628
#ifndef LT_DLLAZY_OR_NOW
18630
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18633
# define LT_DLLAZY_OR_NOW DL_LAZY
18636
# define LT_DLLAZY_OR_NOW RTLD_NOW
18639
# define LT_DLLAZY_OR_NOW DL_NOW
18641
# define LT_DLLAZY_OR_NOW 0
18649
extern "C" void exit (int);
18652
void fnord() { int i=42;}
18655
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18656
int status = $lt_dlunknown;
18660
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18661
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18662
/* dlclose (self); */
18668
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18669
(eval $ac_link) 2>&5
18671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18673
(./conftest; exit; ) >&5 2>/dev/null
18675
case x$lt_status in
18676
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18677
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18678
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18681
# compilation failed
18682
lt_cv_dlopen_self=no
18689
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18690
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18692
if test "x$lt_cv_dlopen_self" = xyes; then
18693
LDFLAGS="$LDFLAGS $link_static_flag"
18694
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18695
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18696
if test "${lt_cv_dlopen_self_static+set}" = set; then
18697
echo $ECHO_N "(cached) $ECHO_C" >&6
18699
if test "$cross_compiling" = yes; then :
18700
lt_cv_dlopen_self_static=cross
18702
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18703
lt_status=$lt_dlunknown
18704
cat > conftest.$ac_ext <<EOF
18705
#line 18705 "configure"
18706
#include "confdefs.h"
18715
# define LT_DLGLOBAL RTLD_GLOBAL
18718
# define LT_DLGLOBAL DL_GLOBAL
18720
# define LT_DLGLOBAL 0
18724
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18725
find out it does not work in some platform. */
18726
#ifndef LT_DLLAZY_OR_NOW
18728
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18731
# define LT_DLLAZY_OR_NOW DL_LAZY
18734
# define LT_DLLAZY_OR_NOW RTLD_NOW
18737
# define LT_DLLAZY_OR_NOW DL_NOW
18739
# define LT_DLLAZY_OR_NOW 0
18747
extern "C" void exit (int);
18750
void fnord() { int i=42;}
18753
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18754
int status = $lt_dlunknown;
18758
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18759
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18760
/* dlclose (self); */
18766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18767
(eval $ac_link) 2>&5
18769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18771
(./conftest; exit; ) >&5 2>/dev/null
18773
case x$lt_status in
18774
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18775
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18776
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18779
# compilation failed
18780
lt_cv_dlopen_self_static=no
18787
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18788
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18791
CPPFLAGS="$save_CPPFLAGS"
18792
LDFLAGS="$save_LDFLAGS"
18797
case $lt_cv_dlopen_self in
18798
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18799
*) enable_dlopen_self=unknown ;;
18802
case $lt_cv_dlopen_self_static in
18803
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18804
*) enable_dlopen_self_static=unknown ;;
18809
# The else clause should only fire when bootstrapping the
18810
# libtool distribution, otherwise you forgot to ship ltmain.sh
18811
# with your package, and you will get complaints that there are
18812
# no rules to generate ltmain.sh.
18813
if test -f "$ltmain"; then
18814
# See if we are running on zsh, and set the options which allow our commands through
18815
# without removal of \ escapes.
18816
if test -n "${ZSH_VERSION+set}" ; then
18817
setopt NO_GLOB_SUBST
18819
# Now quote all the things that may contain metacharacters while being
18820
# careful not to overquote the AC_SUBSTed values. We take copies of the
18821
# variables and quote the copies for generation of the libtool script.
18822
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18824
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18825
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18826
deplibs_check_method reload_flag reload_cmds need_locks \
18827
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18828
lt_cv_sys_global_symbol_to_c_name_address \
18829
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18830
old_postinstall_cmds old_postuninstall_cmds \
18834
lt_prog_compiler_wl_GCJ \
18835
lt_prog_compiler_pic_GCJ \
18836
lt_prog_compiler_static_GCJ \
18837
lt_prog_compiler_no_builtin_flag_GCJ \
18838
export_dynamic_flag_spec_GCJ \
18839
thread_safe_flag_spec_GCJ \
18840
whole_archive_flag_spec_GCJ \
18841
enable_shared_with_static_runtimes_GCJ \
18842
old_archive_cmds_GCJ \
18843
old_archive_from_new_cmds_GCJ \
18844
predep_objects_GCJ \
18845
postdep_objects_GCJ \
18848
compiler_lib_search_path_GCJ \
18850
archive_expsym_cmds_GCJ \
18851
postinstall_cmds_GCJ \
18852
postuninstall_cmds_GCJ \
18853
old_archive_from_expsyms_cmds_GCJ \
18854
allow_undefined_flag_GCJ \
18855
no_undefined_flag_GCJ \
18856
export_symbols_cmds_GCJ \
18857
hardcode_libdir_flag_spec_GCJ \
18858
hardcode_libdir_flag_spec_ld_GCJ \
18859
hardcode_libdir_separator_GCJ \
18860
hardcode_automatic_GCJ \
18862
module_expsym_cmds_GCJ \
18863
lt_cv_prog_compiler_c_o_GCJ \
18864
exclude_expsyms_GCJ \
18865
include_expsyms_GCJ; do
18868
old_archive_cmds_GCJ | \
18869
old_archive_from_new_cmds_GCJ | \
18870
archive_cmds_GCJ | \
18871
archive_expsym_cmds_GCJ | \
18872
module_cmds_GCJ | \
18873
module_expsym_cmds_GCJ | \
18874
old_archive_from_expsyms_cmds_GCJ | \
18875
export_symbols_cmds_GCJ | \
18876
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18877
postinstall_cmds | postuninstall_cmds | \
18878
old_postinstall_cmds | old_postuninstall_cmds | \
18879
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18880
# Double-quote double-evaled strings.
18881
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18884
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18890
*'\$0 --fallback-echo"')
18891
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18897
cat <<__EOF__ >> "$cfgfile"
18898
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18900
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18902
# Shell to use when invoking shell scripts.
18905
# Whether or not to build shared libraries.
18906
build_libtool_libs=$enable_shared
18908
# Whether or not to build static libraries.
18909
build_old_libs=$enable_static
18911
# Whether or not to add -lc for building shared libraries.
18912
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18914
# Whether or not to disallow shared libs when runtime libs are static
18915
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18917
# Whether or not to optimize for fast installation.
18918
fast_install=$enable_fast_install
18921
host_alias=$host_alias
18925
# The build system.
18926
build_alias=$build_alias
18930
# An echo program that does not interpret backslashes.
18935
AR_FLAGS=$lt_AR_FLAGS
18940
# A language-specific compiler.
18941
CC=$lt_compiler_GCJ
18943
# Is the compiler the GNU C compiler?
18949
# The linker used to build libraries.
18952
# Whether we need hard or soft links.
18955
# A BSD-compatible nm program.
18958
# A symbol stripping program
18961
# Used to examine libraries when file_magic_cmd begins "file"
18962
MAGIC_CMD=$MAGIC_CMD
18964
# Used on cygwin: DLL creation program.
18967
# Used on cygwin: object dumper.
18970
# Used on cygwin: assembler.
18973
# The name of the directory that contains temporary libtool files.
18976
# How to create reloadable object files.
18977
reload_flag=$lt_reload_flag
18978
reload_cmds=$lt_reload_cmds
18980
# How to pass a linker flag through the compiler.
18981
wl=$lt_lt_prog_compiler_wl_GCJ
18983
# Object file suffix (normally "o").
18984
objext="$ac_objext"
18986
# Old archive suffix (normally "a").
18989
# Shared library suffix (normally ".so").
18990
shrext_cmds='$shrext_cmds'
18992
# Executable file suffix (normally "").
18995
# Additional compiler flags for building library objects.
18996
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18999
# What is the maximum length of a command?
19000
max_cmd_len=$lt_cv_sys_max_cmd_len
19002
# Does compiler simultaneously support -c and -o options?
19003
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19005
# Must we lock files when doing compilation?
19006
need_locks=$lt_need_locks
19008
# Do we need the lib prefix for modules?
19009
need_lib_prefix=$need_lib_prefix
19011
# Do we need a version for libraries?
19012
need_version=$need_version
19014
# Whether dlopen is supported.
19015
dlopen_support=$enable_dlopen
19017
# Whether dlopen of programs is supported.
19018
dlopen_self=$enable_dlopen_self
19020
# Whether dlopen of statically linked programs is supported.
19021
dlopen_self_static=$enable_dlopen_self_static
19023
# Compiler flag to prevent dynamic linking.
19024
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19026
# Compiler flag to turn off builtin functions.
19027
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19029
# Compiler flag to allow reflexive dlopens.
19030
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19032
# Compiler flag to generate shared objects directly from archives.
19033
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19035
# Compiler flag to generate thread-safe objects.
19036
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19038
# Library versioning type.
19039
version_type=$version_type
19041
# Format of library name prefix.
19042
libname_spec=$lt_libname_spec
19044
# List of archive names. First name is the real one, the rest are links.
19045
# The last name is the one that the linker finds with -lNAME.
19046
library_names_spec=$lt_library_names_spec
19048
# The coded name of the library, if different from the real name.
19049
soname_spec=$lt_soname_spec
19051
# Commands used to build and install an old-style archive.
19053
old_archive_cmds=$lt_old_archive_cmds_GCJ
19054
old_postinstall_cmds=$lt_old_postinstall_cmds
19055
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19057
# Create an old-style archive from a shared archive.
19058
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19060
# Create a temporary old-style archive to link instead of a shared archive.
19061
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19063
# Commands used to build and install a shared archive.
19064
archive_cmds=$lt_archive_cmds_GCJ
19065
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19066
postinstall_cmds=$lt_postinstall_cmds
19067
postuninstall_cmds=$lt_postuninstall_cmds
19069
# Commands used to build a loadable module (assumed same as above if empty)
19070
module_cmds=$lt_module_cmds_GCJ
19071
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19073
# Commands to strip libraries.
19074
old_striplib=$lt_old_striplib
19075
striplib=$lt_striplib
19077
# Dependencies to place before the objects being linked to create a
19079
predep_objects=$lt_predep_objects_GCJ
19081
# Dependencies to place after the objects being linked to create a
19083
postdep_objects=$lt_postdep_objects_GCJ
19085
# Dependencies to place before the objects being linked to create a
19087
predeps=$lt_predeps_GCJ
19089
# Dependencies to place after the objects being linked to create a
19091
postdeps=$lt_postdeps_GCJ
19093
# The library search path used internally by the compiler when linking
19094
# a shared library.
19095
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19097
# Method to check whether dependent libraries are shared objects.
19098
deplibs_check_method=$lt_deplibs_check_method
19100
# Command to use when deplibs_check_method == file_magic.
19101
file_magic_cmd=$lt_file_magic_cmd
19103
# Flag that allows shared libraries with undefined symbols to be built.
19104
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19106
# Flag that forces no undefined symbols.
19107
no_undefined_flag=$lt_no_undefined_flag_GCJ
19109
# Commands used to finish a libtool library installation in a directory.
19110
finish_cmds=$lt_finish_cmds
19112
# Same as above, but a single script fragment to be evaled but not shown.
19113
finish_eval=$lt_finish_eval
19115
# Take the output of nm and produce a listing of raw symbols and C names.
19116
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19118
# Transform the output of nm in a proper C declaration
19119
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19121
# Transform the output of nm in a C name address pair
19122
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19124
# This is the shared library runtime path variable.
19125
runpath_var=$runpath_var
19127
# This is the shared library path variable.
19128
shlibpath_var=$shlibpath_var
19130
# Is shlibpath searched before the hard-coded library search path?
19131
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19133
# How to hardcode a shared library path into an executable.
19134
hardcode_action=$hardcode_action_GCJ
19136
# Whether we should hardcode library paths into libraries.
19137
hardcode_into_libs=$hardcode_into_libs
19139
# Flag to hardcode \$libdir into a binary during linking.
19140
# This must work even if \$libdir does not exist.
19141
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19143
# If ld is used when linking, flag to hardcode \$libdir into
19144
# a binary during linking. This must work even if \$libdir does
19146
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19148
# Whether we need a single -rpath flag with a separated argument.
19149
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19151
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19152
# resulting binary.
19153
hardcode_direct=$hardcode_direct_GCJ
19155
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19156
# resulting binary.
19157
hardcode_minus_L=$hardcode_minus_L_GCJ
19159
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19160
# the resulting binary.
19161
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19163
# Set to yes if building a shared library automatically hardcodes DIR into the library
19164
# and all subsequent libraries and executables linked against it.
19165
hardcode_automatic=$hardcode_automatic_GCJ
19167
# Variables whose values should be saved in libtool wrapper scripts and
19168
# restored at relink time.
19169
variables_saved_for_relink="$variables_saved_for_relink"
19171
# Whether libtool must link a program against all its dependency libraries.
19172
link_all_deplibs=$link_all_deplibs_GCJ
19174
# Compile-time system search path for libraries
19175
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19177
# Run-time system search path for libraries
19178
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19180
# Fix the shell variable \$srcfile for the compiler.
19181
fix_srcfile_path="$fix_srcfile_path_GCJ"
19183
# Set to yes if exported symbols are required.
19184
always_export_symbols=$always_export_symbols_GCJ
19186
# The commands to list exported symbols.
19187
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19189
# The commands to extract the exported symbol list from a shared archive.
19190
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19192
# Symbols that should not be listed in the preloaded symbols.
19193
exclude_expsyms=$lt_exclude_expsyms_GCJ
19195
# Symbols that must always be exported.
19196
include_expsyms=$lt_include_expsyms_GCJ
19198
# ### END LIBTOOL TAG CONFIG: $tagname
19204
# If there is no Makefile yet, we rely on a make rule to execute
19205
# `config.status --recheck' to rerun these tests and create the
19206
# libtool script then.
19207
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19208
if test -f "$ltmain_in"; then
19209
test -f Makefile && make "$ltmain"
19215
ac_cpp='$CPP $CPPFLAGS'
19216
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19217
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19218
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231
# Source file extension for RC test sources.
19234
# Object file extension for compiled RC test sources.
19238
# Code to be used in simple compile tests
19239
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19241
# Code to be used in simple link tests
19242
lt_simple_link_test_code="$lt_simple_compile_test_code"
19244
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19246
# If no C compiler was specified, use CC.
19249
# Allow CC to be a program name with arguments.
19253
# save warnings/boilerplate of simple test code
19254
ac_outfile=conftest.$ac_objext
19255
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19256
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19257
_lt_compiler_boilerplate=`cat conftest.err`
19260
ac_outfile=conftest.$ac_objext
19261
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19262
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19263
_lt_linker_boilerplate=`cat conftest.err`
19267
# Allow CC to be a program name with arguments.
19272
for cc_temp in $compiler""; do
19274
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19275
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19280
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19282
lt_cv_prog_compiler_c_o_RC=yes
19284
# The else clause should only fire when bootstrapping the
19285
# libtool distribution, otherwise you forgot to ship ltmain.sh
19286
# with your package, and you will get complaints that there are
19287
# no rules to generate ltmain.sh.
19288
if test -f "$ltmain"; then
19289
# See if we are running on zsh, and set the options which allow our commands through
19290
# without removal of \ escapes.
19291
if test -n "${ZSH_VERSION+set}" ; then
19292
setopt NO_GLOB_SUBST
19294
# Now quote all the things that may contain metacharacters while being
19295
# careful not to overquote the AC_SUBSTed values. We take copies of the
19296
# variables and quote the copies for generation of the libtool script.
19297
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19299
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19300
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19301
deplibs_check_method reload_flag reload_cmds need_locks \
19302
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19303
lt_cv_sys_global_symbol_to_c_name_address \
19304
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19305
old_postinstall_cmds old_postuninstall_cmds \
19309
lt_prog_compiler_wl_RC \
19310
lt_prog_compiler_pic_RC \
19311
lt_prog_compiler_static_RC \
19312
lt_prog_compiler_no_builtin_flag_RC \
19313
export_dynamic_flag_spec_RC \
19314
thread_safe_flag_spec_RC \
19315
whole_archive_flag_spec_RC \
19316
enable_shared_with_static_runtimes_RC \
19317
old_archive_cmds_RC \
19318
old_archive_from_new_cmds_RC \
19319
predep_objects_RC \
19320
postdep_objects_RC \
19323
compiler_lib_search_path_RC \
19325
archive_expsym_cmds_RC \
19326
postinstall_cmds_RC \
19327
postuninstall_cmds_RC \
19328
old_archive_from_expsyms_cmds_RC \
19329
allow_undefined_flag_RC \
19330
no_undefined_flag_RC \
19331
export_symbols_cmds_RC \
19332
hardcode_libdir_flag_spec_RC \
19333
hardcode_libdir_flag_spec_ld_RC \
19334
hardcode_libdir_separator_RC \
19335
hardcode_automatic_RC \
19337
module_expsym_cmds_RC \
19338
lt_cv_prog_compiler_c_o_RC \
19339
exclude_expsyms_RC \
19340
include_expsyms_RC; do
19343
old_archive_cmds_RC | \
19344
old_archive_from_new_cmds_RC | \
19345
archive_cmds_RC | \
19346
archive_expsym_cmds_RC | \
19348
module_expsym_cmds_RC | \
19349
old_archive_from_expsyms_cmds_RC | \
19350
export_symbols_cmds_RC | \
19351
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19352
postinstall_cmds | postuninstall_cmds | \
19353
old_postinstall_cmds | old_postuninstall_cmds | \
19354
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19355
# Double-quote double-evaled strings.
19356
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19359
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19365
*'\$0 --fallback-echo"')
19366
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19372
cat <<__EOF__ >> "$cfgfile"
19373
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19375
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19377
# Shell to use when invoking shell scripts.
19380
# Whether or not to build shared libraries.
19381
build_libtool_libs=$enable_shared
19383
# Whether or not to build static libraries.
19384
build_old_libs=$enable_static
19386
# Whether or not to add -lc for building shared libraries.
19387
build_libtool_need_lc=$archive_cmds_need_lc_RC
19389
# Whether or not to disallow shared libs when runtime libs are static
19390
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19392
# Whether or not to optimize for fast installation.
19393
fast_install=$enable_fast_install
19396
host_alias=$host_alias
19400
# The build system.
19401
build_alias=$build_alias
19405
# An echo program that does not interpret backslashes.
19410
AR_FLAGS=$lt_AR_FLAGS
19415
# A language-specific compiler.
19418
# Is the compiler the GNU C compiler?
19424
# The linker used to build libraries.
19427
# Whether we need hard or soft links.
19430
# A BSD-compatible nm program.
19433
# A symbol stripping program
19436
# Used to examine libraries when file_magic_cmd begins "file"
19437
MAGIC_CMD=$MAGIC_CMD
19439
# Used on cygwin: DLL creation program.
19442
# Used on cygwin: object dumper.
19445
# Used on cygwin: assembler.
19448
# The name of the directory that contains temporary libtool files.
19451
# How to create reloadable object files.
19452
reload_flag=$lt_reload_flag
19453
reload_cmds=$lt_reload_cmds
19455
# How to pass a linker flag through the compiler.
19456
wl=$lt_lt_prog_compiler_wl_RC
19458
# Object file suffix (normally "o").
19459
objext="$ac_objext"
19461
# Old archive suffix (normally "a").
19464
# Shared library suffix (normally ".so").
19465
shrext_cmds='$shrext_cmds'
19467
# Executable file suffix (normally "").
19470
# Additional compiler flags for building library objects.
19471
pic_flag=$lt_lt_prog_compiler_pic_RC
19474
# What is the maximum length of a command?
19475
max_cmd_len=$lt_cv_sys_max_cmd_len
19477
# Does compiler simultaneously support -c and -o options?
19478
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19480
# Must we lock files when doing compilation?
19481
need_locks=$lt_need_locks
19483
# Do we need the lib prefix for modules?
19484
need_lib_prefix=$need_lib_prefix
19486
# Do we need a version for libraries?
19487
need_version=$need_version
19489
# Whether dlopen is supported.
19490
dlopen_support=$enable_dlopen
19492
# Whether dlopen of programs is supported.
19493
dlopen_self=$enable_dlopen_self
19495
# Whether dlopen of statically linked programs is supported.
19496
dlopen_self_static=$enable_dlopen_self_static
19498
# Compiler flag to prevent dynamic linking.
19499
link_static_flag=$lt_lt_prog_compiler_static_RC
19501
# Compiler flag to turn off builtin functions.
19502
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19504
# Compiler flag to allow reflexive dlopens.
19505
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19507
# Compiler flag to generate shared objects directly from archives.
19508
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19510
# Compiler flag to generate thread-safe objects.
19511
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19513
# Library versioning type.
19514
version_type=$version_type
19516
# Format of library name prefix.
19517
libname_spec=$lt_libname_spec
19519
# List of archive names. First name is the real one, the rest are links.
19520
# The last name is the one that the linker finds with -lNAME.
19521
library_names_spec=$lt_library_names_spec
19523
# The coded name of the library, if different from the real name.
19524
soname_spec=$lt_soname_spec
19526
# Commands used to build and install an old-style archive.
19528
old_archive_cmds=$lt_old_archive_cmds_RC
19529
old_postinstall_cmds=$lt_old_postinstall_cmds
19530
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19532
# Create an old-style archive from a shared archive.
19533
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19535
# Create a temporary old-style archive to link instead of a shared archive.
19536
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19538
# Commands used to build and install a shared archive.
19539
archive_cmds=$lt_archive_cmds_RC
19540
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19541
postinstall_cmds=$lt_postinstall_cmds
19542
postuninstall_cmds=$lt_postuninstall_cmds
19544
# Commands used to build a loadable module (assumed same as above if empty)
19545
module_cmds=$lt_module_cmds_RC
19546
module_expsym_cmds=$lt_module_expsym_cmds_RC
19548
# Commands to strip libraries.
19549
old_striplib=$lt_old_striplib
19550
striplib=$lt_striplib
19552
# Dependencies to place before the objects being linked to create a
19554
predep_objects=$lt_predep_objects_RC
19556
# Dependencies to place after the objects being linked to create a
19558
postdep_objects=$lt_postdep_objects_RC
19560
# Dependencies to place before the objects being linked to create a
19562
predeps=$lt_predeps_RC
19564
# Dependencies to place after the objects being linked to create a
19566
postdeps=$lt_postdeps_RC
19568
# The library search path used internally by the compiler when linking
19569
# a shared library.
19570
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19572
# Method to check whether dependent libraries are shared objects.
19573
deplibs_check_method=$lt_deplibs_check_method
19575
# Command to use when deplibs_check_method == file_magic.
19576
file_magic_cmd=$lt_file_magic_cmd
19578
# Flag that allows shared libraries with undefined symbols to be built.
19579
allow_undefined_flag=$lt_allow_undefined_flag_RC
19581
# Flag that forces no undefined symbols.
19582
no_undefined_flag=$lt_no_undefined_flag_RC
19584
# Commands used to finish a libtool library installation in a directory.
19585
finish_cmds=$lt_finish_cmds
19587
# Same as above, but a single script fragment to be evaled but not shown.
19588
finish_eval=$lt_finish_eval
19590
# Take the output of nm and produce a listing of raw symbols and C names.
19591
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19593
# Transform the output of nm in a proper C declaration
19594
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19596
# Transform the output of nm in a C name address pair
19597
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19599
# This is the shared library runtime path variable.
19600
runpath_var=$runpath_var
19602
# This is the shared library path variable.
19603
shlibpath_var=$shlibpath_var
19605
# Is shlibpath searched before the hard-coded library search path?
19606
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19608
# How to hardcode a shared library path into an executable.
19609
hardcode_action=$hardcode_action_RC
19611
# Whether we should hardcode library paths into libraries.
19612
hardcode_into_libs=$hardcode_into_libs
19614
# Flag to hardcode \$libdir into a binary during linking.
19615
# This must work even if \$libdir does not exist.
19616
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19618
# If ld is used when linking, flag to hardcode \$libdir into
19619
# a binary during linking. This must work even if \$libdir does
19621
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19623
# Whether we need a single -rpath flag with a separated argument.
19624
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19626
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19627
# resulting binary.
19628
hardcode_direct=$hardcode_direct_RC
19630
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19631
# resulting binary.
19632
hardcode_minus_L=$hardcode_minus_L_RC
19634
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19635
# the resulting binary.
19636
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19638
# Set to yes if building a shared library automatically hardcodes DIR into the library
19639
# and all subsequent libraries and executables linked against it.
19640
hardcode_automatic=$hardcode_automatic_RC
19642
# Variables whose values should be saved in libtool wrapper scripts and
19643
# restored at relink time.
19644
variables_saved_for_relink="$variables_saved_for_relink"
19646
# Whether libtool must link a program against all its dependency libraries.
19647
link_all_deplibs=$link_all_deplibs_RC
19649
# Compile-time system search path for libraries
19650
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19652
# Run-time system search path for libraries
19653
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19655
# Fix the shell variable \$srcfile for the compiler.
19656
fix_srcfile_path="$fix_srcfile_path_RC"
19658
# Set to yes if exported symbols are required.
19659
always_export_symbols=$always_export_symbols_RC
19661
# The commands to list exported symbols.
19662
export_symbols_cmds=$lt_export_symbols_cmds_RC
19664
# The commands to extract the exported symbol list from a shared archive.
19665
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19667
# Symbols that should not be listed in the preloaded symbols.
19668
exclude_expsyms=$lt_exclude_expsyms_RC
19670
# Symbols that must always be exported.
19671
include_expsyms=$lt_include_expsyms_RC
19673
# ### END LIBTOOL TAG CONFIG: $tagname
19679
# If there is no Makefile yet, we rely on a make rule to execute
19680
# `config.status --recheck' to rerun these tests and create the
19681
# libtool script then.
19682
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19683
if test -f "$ltmain_in"; then
19684
test -f Makefile && make "$ltmain"
19690
ac_cpp='$CPP $CPPFLAGS'
19691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19700
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19701
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19702
{ (exit 1); exit 1; }; }
19706
# Append the new tag name to the list of available tags.
19707
if test -n "$tagname" ; then
19708
available_tags="$available_tags $tagname"
19714
# Now substitute the updated list of available tags.
19715
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19716
mv "${ofile}T" "$ofile"
19720
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19721
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19722
{ (exit 1); exit 1; }; }
19728
# This can be used to rebuild libtool when needed
19729
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19731
# Always use our own libtool.
19732
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19734
# Prevent multiple expansion
19758
for ac_header in sys/mman.h
19760
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19761
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19762
echo "$as_me:$LINENO: checking for $ac_header" >&5
19763
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19764
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19765
echo $ECHO_N "(cached) $ECHO_C" >&6
19767
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19768
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19770
# Is the header compilable?
19771
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19772
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19773
cat >conftest.$ac_ext <<_ACEOF
19776
cat confdefs.h >>conftest.$ac_ext
19777
cat >>conftest.$ac_ext <<_ACEOF
19778
/* end confdefs.h. */
19779
$ac_includes_default
19780
#include <$ac_header>
19782
rm -f conftest.$ac_objext
19783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19784
(eval $ac_compile) 2>conftest.er1
19786
grep -v '^ *+' conftest.er1 >conftest.err
19788
cat conftest.err >&5
19789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790
(exit $ac_status); } &&
19791
{ ac_try='test -z "$ac_c_werror_flag"
19792
|| test ! -s conftest.err'
19793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794
(eval $ac_try) 2>&5
19796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797
(exit $ac_status); }; } &&
19798
{ ac_try='test -s conftest.$ac_objext'
19799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800
(eval $ac_try) 2>&5
19802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803
(exit $ac_status); }; }; then
19804
ac_header_compiler=yes
19806
echo "$as_me: failed program was:" >&5
19807
sed 's/^/| /' conftest.$ac_ext >&5
19809
ac_header_compiler=no
19811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19812
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19813
echo "${ECHO_T}$ac_header_compiler" >&6
19815
# Is the header present?
19816
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19817
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19818
cat >conftest.$ac_ext <<_ACEOF
19821
cat confdefs.h >>conftest.$ac_ext
19822
cat >>conftest.$ac_ext <<_ACEOF
19823
/* end confdefs.h. */
19824
#include <$ac_header>
19826
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19827
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19829
grep -v '^ *+' conftest.er1 >conftest.err
19831
cat conftest.err >&5
19832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833
(exit $ac_status); } >/dev/null; then
19834
if test -s conftest.err; then
19835
ac_cpp_err=$ac_c_preproc_warn_flag
19836
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19843
if test -z "$ac_cpp_err"; then
19844
ac_header_preproc=yes
19846
echo "$as_me: failed program was:" >&5
19847
sed 's/^/| /' conftest.$ac_ext >&5
19849
ac_header_preproc=no
19851
rm -f conftest.err conftest.$ac_ext
19852
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19853
echo "${ECHO_T}$ac_header_preproc" >&6
19855
# So? What about this header?
19856
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19858
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19859
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19860
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19861
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19862
ac_header_preproc=yes
19865
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19866
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19867
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19868
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19869
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19870
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19871
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19872
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19873
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19874
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19875
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19876
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19879
## ------------------------------------------- ##
19880
## Report this to http://gcc.gnu.org/bugs.html ##
19881
## ------------------------------------------- ##
19884
sed "s/^/$as_me: WARNING: /" >&2
19887
echo "$as_me:$LINENO: checking for $ac_header" >&5
19888
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19889
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19890
echo $ECHO_N "(cached) $ECHO_C" >&6
19892
eval "$as_ac_Header=\$ac_header_preproc"
19894
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19895
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19898
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19899
cat >>confdefs.h <<_ACEOF
19900
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19908
for ac_func in mmap
19910
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19911
echo "$as_me:$LINENO: checking for $ac_func" >&5
19912
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19913
if eval "test \"\${$as_ac_var+set}\" = set"; then
19914
echo $ECHO_N "(cached) $ECHO_C" >&6
19916
cat >conftest.$ac_ext <<_ACEOF
19919
cat confdefs.h >>conftest.$ac_ext
19920
cat >>conftest.$ac_ext <<_ACEOF
19921
/* end confdefs.h. */
19922
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19923
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19924
#define $ac_func innocuous_$ac_func
19926
/* System header to define __stub macros and hopefully few prototypes,
19927
which can conflict with char $ac_func (); below.
19928
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19929
<limits.h> exists even on freestanding compilers. */
19932
# include <limits.h>
19934
# include <assert.h>
19939
/* Override any gcc2 internal prototype to avoid an error. */
19944
/* We use char because int might match the return type of a gcc2
19945
builtin and then its argument prototype would still apply. */
19947
/* The GNU C library defines this for functions which it implements
19948
to always fail with ENOSYS. Some functions are actually named
19949
something starting with __ and the normal name is an alias. */
19950
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19953
char (*f) () = $ac_func;
19962
return f != $ac_func;
19967
rm -f conftest.$ac_objext conftest$ac_exeext
19968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19969
(eval $ac_link) 2>conftest.er1
19971
grep -v '^ *+' conftest.er1 >conftest.err
19973
cat conftest.err >&5
19974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975
(exit $ac_status); } &&
19976
{ ac_try='test -z "$ac_c_werror_flag"
19977
|| test ! -s conftest.err'
19978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979
(eval $ac_try) 2>&5
19981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982
(exit $ac_status); }; } &&
19983
{ ac_try='test -s conftest$ac_exeext'
19984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985
(eval $ac_try) 2>&5
19987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988
(exit $ac_status); }; }; then
19989
eval "$as_ac_var=yes"
19991
echo "$as_me: failed program was:" >&5
19992
sed 's/^/| /' conftest.$ac_ext >&5
19994
eval "$as_ac_var=no"
19996
rm -f conftest.err conftest.$ac_objext \
19997
conftest$ac_exeext conftest.$ac_ext
19999
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20000
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20001
if test `eval echo '${'$as_ac_var'}'` = yes; then
20002
cat >>confdefs.h <<_ACEOF
20003
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20010
if test "${ac_cv_header_sys_mman_h+set}" = set; then
20011
echo "$as_me:$LINENO: checking for sys/mman.h" >&5
20012
echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
20013
if test "${ac_cv_header_sys_mman_h+set}" = set; then
20014
echo $ECHO_N "(cached) $ECHO_C" >&6
20016
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
20017
echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
20019
# Is the header compilable?
20020
echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
20021
echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
20022
cat >conftest.$ac_ext <<_ACEOF
20025
cat confdefs.h >>conftest.$ac_ext
20026
cat >>conftest.$ac_ext <<_ACEOF
20027
/* end confdefs.h. */
20028
$ac_includes_default
20029
#include <sys/mman.h>
20031
rm -f conftest.$ac_objext
20032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20033
(eval $ac_compile) 2>conftest.er1
20035
grep -v '^ *+' conftest.er1 >conftest.err
20037
cat conftest.err >&5
20038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039
(exit $ac_status); } &&
20040
{ ac_try='test -z "$ac_c_werror_flag"
20041
|| test ! -s conftest.err'
20042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043
(eval $ac_try) 2>&5
20045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046
(exit $ac_status); }; } &&
20047
{ ac_try='test -s conftest.$ac_objext'
20048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049
(eval $ac_try) 2>&5
20051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052
(exit $ac_status); }; }; then
20053
ac_header_compiler=yes
20055
echo "$as_me: failed program was:" >&5
20056
sed 's/^/| /' conftest.$ac_ext >&5
20058
ac_header_compiler=no
20060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20061
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20062
echo "${ECHO_T}$ac_header_compiler" >&6
20064
# Is the header present?
20065
echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
20066
echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
20067
cat >conftest.$ac_ext <<_ACEOF
20070
cat confdefs.h >>conftest.$ac_ext
20071
cat >>conftest.$ac_ext <<_ACEOF
20072
/* end confdefs.h. */
20073
#include <sys/mman.h>
20075
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20076
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20078
grep -v '^ *+' conftest.er1 >conftest.err
20080
cat conftest.err >&5
20081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082
(exit $ac_status); } >/dev/null; then
20083
if test -s conftest.err; then
20084
ac_cpp_err=$ac_c_preproc_warn_flag
20085
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20092
if test -z "$ac_cpp_err"; then
20093
ac_header_preproc=yes
20095
echo "$as_me: failed program was:" >&5
20096
sed 's/^/| /' conftest.$ac_ext >&5
20098
ac_header_preproc=no
20100
rm -f conftest.err conftest.$ac_ext
20101
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20102
echo "${ECHO_T}$ac_header_preproc" >&6
20104
# So? What about this header?
20105
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20107
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
20108
echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20109
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
20110
echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
20111
ac_header_preproc=yes
20114
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
20115
echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
20116
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
20117
echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
20118
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
20119
echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
20120
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
20121
echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
20122
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
20123
echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
20124
{ echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
20125
echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
20128
## ------------------------------------------- ##
20129
## Report this to http://gcc.gnu.org/bugs.html ##
20130
## ------------------------------------------- ##
20133
sed "s/^/$as_me: WARNING: /" >&2
20136
echo "$as_me:$LINENO: checking for sys/mman.h" >&5
20137
echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
20138
if test "${ac_cv_header_sys_mman_h+set}" = set; then
20139
echo $ECHO_N "(cached) $ECHO_C" >&6
20141
ac_cv_header_sys_mman_h=$ac_header_preproc
20143
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
20144
echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
20147
if test $ac_cv_header_sys_mman_h = yes; then
20148
libffi_header_sys_mman_h=yes
20150
libffi_header_sys_mman_h=no
20154
echo "$as_me:$LINENO: checking for mmap" >&5
20155
echo $ECHO_N "checking for mmap... $ECHO_C" >&6
20156
if test "${ac_cv_func_mmap+set}" = set; then
20157
echo $ECHO_N "(cached) $ECHO_C" >&6
20159
cat >conftest.$ac_ext <<_ACEOF
20162
cat confdefs.h >>conftest.$ac_ext
20163
cat >>conftest.$ac_ext <<_ACEOF
20164
/* end confdefs.h. */
20165
/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
20166
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20167
#define mmap innocuous_mmap
20169
/* System header to define __stub macros and hopefully few prototypes,
20170
which can conflict with char mmap (); below.
20171
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20172
<limits.h> exists even on freestanding compilers. */
20175
# include <limits.h>
20177
# include <assert.h>
20182
/* Override any gcc2 internal prototype to avoid an error. */
20187
/* We use char because int might match the return type of a gcc2
20188
builtin and then its argument prototype would still apply. */
20190
/* The GNU C library defines this for functions which it implements
20191
to always fail with ENOSYS. Some functions are actually named
20192
something starting with __ and the normal name is an alias. */
20193
#if defined (__stub_mmap) || defined (__stub___mmap)
20196
char (*f) () = mmap;
20210
rm -f conftest.$ac_objext conftest$ac_exeext
20211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20212
(eval $ac_link) 2>conftest.er1
20214
grep -v '^ *+' conftest.er1 >conftest.err
20216
cat conftest.err >&5
20217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218
(exit $ac_status); } &&
20219
{ ac_try='test -z "$ac_c_werror_flag"
20220
|| test ! -s conftest.err'
20221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222
(eval $ac_try) 2>&5
20224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225
(exit $ac_status); }; } &&
20226
{ ac_try='test -s conftest$ac_exeext'
20227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228
(eval $ac_try) 2>&5
20230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231
(exit $ac_status); }; }; then
20232
ac_cv_func_mmap=yes
20234
echo "$as_me: failed program was:" >&5
20235
sed 's/^/| /' conftest.$ac_ext >&5
20239
rm -f conftest.err conftest.$ac_objext \
20240
conftest$ac_exeext conftest.$ac_ext
20242
echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
20243
echo "${ECHO_T}$ac_cv_func_mmap" >&6
20244
if test $ac_cv_func_mmap = yes; then
20245
libffi_func_mmap=yes
20247
libffi_func_mmap=no
20250
if test "$libffi_header_sys_mman_h" != yes \
20251
|| test "$libffi_func_mmap" != yes; then
20252
ac_cv_func_mmap_file=no
20253
ac_cv_func_mmap_dev_zero=no
20254
ac_cv_func_mmap_anon=no
20256
echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
20257
echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
20258
if test "${ac_cv_func_mmap_file+set}" = set; then
20259
echo $ECHO_N "(cached) $ECHO_C" >&6
20261
# Add a system to this blacklist if
20262
# mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
20263
# memory area containing the same data that you'd get if you applied
20264
# read() to the same fd. The only system known to have a problem here
20265
# is VMS, where text files have record structure.
20268
ac_cv_func_mmap_file=no ;;
20270
ac_cv_func_mmap_file=yes;;
20273
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20274
echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
20275
echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
20276
echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
20277
if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
20278
echo $ECHO_N "(cached) $ECHO_C" >&6
20280
# Add a system to this blacklist if it has mmap() but /dev/zero
20281
# does not exist, or if mmapping /dev/zero does not give anonymous
20282
# zeroed pages with both the following properties:
20283
# 1. If you map N consecutive pages in with one call, and then
20284
# unmap any subset of those pages, the pages that were not
20285
# explicitly unmapped remain accessible.
20286
# 2. If you map two adjacent blocks of memory and then unmap them
20287
# both at once, they must both go away.
20288
# Systems known to be in this category are Windows (all variants),
20291
vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
20292
ac_cv_func_mmap_dev_zero=no ;;
20294
ac_cv_func_mmap_dev_zero=yes;;
20297
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
20298
echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
20300
# Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
20301
echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
20302
echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
20303
if test "${ac_cv_decl_map_anon+set}" = set; then
20304
echo $ECHO_N "(cached) $ECHO_C" >&6
20306
cat >conftest.$ac_ext <<_ACEOF
20309
cat confdefs.h >>conftest.$ac_ext
20310
cat >>conftest.$ac_ext <<_ACEOF
20311
/* end confdefs.h. */
20312
#include <sys/types.h>
20313
#include <sys/mman.h>
20314
#include <unistd.h>
20316
#ifndef MAP_ANONYMOUS
20317
#define MAP_ANONYMOUS MAP_ANON
20323
int n = MAP_ANONYMOUS;
20328
rm -f conftest.$ac_objext
20329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20330
(eval $ac_compile) 2>conftest.er1
20332
grep -v '^ *+' conftest.er1 >conftest.err
20334
cat conftest.err >&5
20335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336
(exit $ac_status); } &&
20337
{ ac_try='test -z "$ac_c_werror_flag"
20338
|| test ! -s conftest.err'
20339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340
(eval $ac_try) 2>&5
20342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343
(exit $ac_status); }; } &&
20344
{ ac_try='test -s conftest.$ac_objext'
20345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346
(eval $ac_try) 2>&5
20348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349
(exit $ac_status); }; }; then
20350
ac_cv_decl_map_anon=yes
20352
echo "$as_me: failed program was:" >&5
20353
sed 's/^/| /' conftest.$ac_ext >&5
20355
ac_cv_decl_map_anon=no
20357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20359
echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
20360
echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
20362
if test $ac_cv_decl_map_anon = no; then
20363
ac_cv_func_mmap_anon=no
20365
echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
20366
echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
20367
if test "${ac_cv_func_mmap_anon+set}" = set; then
20368
echo $ECHO_N "(cached) $ECHO_C" >&6
20370
# Add a system to this blacklist if it has mmap() and MAP_ANON or
20371
# MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
20372
# doesn't give anonymous zeroed pages with the same properties listed
20373
# above for use of /dev/zero.
20374
# Systems known to be in this category are Windows, VMS, and SCO Unix.
20376
vms* | cygwin* | pe | mingw* | sco* | udk* )
20377
ac_cv_func_mmap_anon=no ;;
20379
ac_cv_func_mmap_anon=yes;;
20382
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
20383
echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
20387
if test $ac_cv_func_mmap_file = yes; then
20389
cat >>confdefs.h <<\_ACEOF
20390
#define HAVE_MMAP_FILE 1
20394
if test $ac_cv_func_mmap_dev_zero = yes; then
20396
cat >>confdefs.h <<\_ACEOF
20397
#define HAVE_MMAP_DEV_ZERO 1
20401
if test $ac_cv_func_mmap_anon = yes; then
20403
cat >>confdefs.h <<\_ACEOF
20404
#define HAVE_MMAP_ANON 1
20410
TARGETDIR="unknown"
20412
i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
20413
i*86-*-gnu*) TARGET=X86; TARGETDIR=x86;;
20414
i*86-*-solaris2.1[0-9]*) TARGET=X86_64; TARGETDIR=x86;;
20415
i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
20416
i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
20417
i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86_FREEBSD; TARGETDIR=x86;;
20418
i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
20419
i*86-*-rtems*) TARGET=X86; TARGETDIR=x86;;
20420
i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
20421
i*86-*-darwin*) TARGET=X86_DARWIN; TARGETDIR=x86;;
20422
i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
20423
i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
20424
frv-*-*) TARGET=FRV; TARGETDIR=frv;;
20425
sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
20426
sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
20427
sparc-*-linux* | sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
20428
sparc*-*-rtems*) TARGET=SPARC; TARGETDIR=sparc;;
20429
sparc64-*-linux* | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
20430
alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) TARGET=ALPHA; TARGETDIR=alpha;;
20431
ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
20432
m32r*-*-linux* ) TARGET=M32R; TARGETDIR=m32r;;
20433
m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
20435
mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
20436
mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
20437
powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
20438
powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
20439
powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
20440
powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
20441
powerpc-*-freebsd*) TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc;;
20442
powerpc*-*-rtems*) TARGET=POWERPC; TARGETDIR=powerpc;;
20443
rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
20444
arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
20445
arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
20446
arm*-*-rtems*) TARGET=ARM; TARGETDIR=arm;;
20447
cris-*-*) TARGET=LIBFFI_CRIS; TARGETDIR=cris;;
20448
s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
20449
s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
20450
x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
20451
sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
20452
sh-*-rtems*) TARGET=SH; TARGETDIR=sh;;
20453
sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
20454
hppa-*-linux* | parisc-*-linux*) TARGET=PA; TARGETDIR=pa;;
20457
if test $TARGETDIR = unknown; then
20458
{ { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
20459
echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
20460
{ (exit 1); exit 1; }; }
20465
if test x$TARGET = xMIPS_IRIX; then
20467
MIPS_IRIX_FALSE='#'
20475
if test x$TARGET = xMIPS_LINUX; then
20477
MIPS_LINUX_FALSE='#'
20479
MIPS_LINUX_TRUE='#'
20485
if test x$TARGET = xSPARC; then
20495
if test x$TARGET = xX86; then
20505
if test x$TARGET = xX86_WIN32; then
20507
X86_WIN32_FALSE='#'
20515
if test x$TARGET = xX86_DARWIN; then
20517
X86_DARWIN_FALSE='#'
20519
X86_DARWIN_TRUE='#'
20525
if test x$TARGET = xX86_FREEBSD; then
20527
X86_FREEBSD_FALSE='#'
20529
X86_FREEBSD_TRUE='#'
20535
if test x$TARGET = xALPHA; then
20545
if test x$TARGET = xIA64; then
20555
if test x$TARGET = xM32R; then
20565
if test x$TARGET = xM68K; then
20575
if test x$TARGET = xPOWERPC; then
20585
if test x$TARGET = xPOWERPC_AIX; then
20587
POWERPC_AIX_FALSE='#'
20589
POWERPC_AIX_TRUE='#'
20595
if test x$TARGET = xPOWERPC_DARWIN; then
20596
POWERPC_DARWIN_TRUE=
20597
POWERPC_DARWIN_FALSE='#'
20599
POWERPC_DARWIN_TRUE='#'
20600
POWERPC_DARWIN_FALSE=
20605
if test x$TARGET = xPOWERPC_FREEBSD; then
20606
POWERPC_FREEBSD_TRUE=
20607
POWERPC_FREEBSD_FALSE='#'
20609
POWERPC_FREEBSD_TRUE='#'
20610
POWERPC_FREEBSD_FALSE=
20615
if test x$TARGET = xARM; then
20625
if test x$TARGET = xLIBFFI_CRIS; then
20627
LIBFFI_CRIS_FALSE='#'
20629
LIBFFI_CRIS_TRUE='#'
20635
if test x$TARGET = xFRV; then
20645
if test x$TARGET = xS390; then
20655
if test x$TARGET = xX86_64; then
20665
if test x$TARGET = xSH; then
20675
if test x$TARGET = xSH64; then
20685
if test x$TARGET = xPA; then
20695
xMIPS*) TARGET=MIPS ;;
20699
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20700
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20701
if test "${ac_cv_header_stdc+set}" = set; then
20702
echo $ECHO_N "(cached) $ECHO_C" >&6
20704
cat >conftest.$ac_ext <<_ACEOF
20707
cat confdefs.h >>conftest.$ac_ext
20708
cat >>conftest.$ac_ext <<_ACEOF
20709
/* end confdefs.h. */
20710
#include <stdlib.h>
20711
#include <stdarg.h>
20712
#include <string.h>
20723
rm -f conftest.$ac_objext
20724
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20725
(eval $ac_compile) 2>conftest.er1
20727
grep -v '^ *+' conftest.er1 >conftest.err
20729
cat conftest.err >&5
20730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731
(exit $ac_status); } &&
20732
{ ac_try='test -z "$ac_c_werror_flag"
20733
|| test ! -s conftest.err'
20734
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735
(eval $ac_try) 2>&5
20737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738
(exit $ac_status); }; } &&
20739
{ ac_try='test -s conftest.$ac_objext'
20740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741
(eval $ac_try) 2>&5
20743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744
(exit $ac_status); }; }; then
20745
ac_cv_header_stdc=yes
20747
echo "$as_me: failed program was:" >&5
20748
sed 's/^/| /' conftest.$ac_ext >&5
20750
ac_cv_header_stdc=no
20752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20754
if test $ac_cv_header_stdc = yes; then
20755
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20756
cat >conftest.$ac_ext <<_ACEOF
20759
cat confdefs.h >>conftest.$ac_ext
20760
cat >>conftest.$ac_ext <<_ACEOF
20761
/* end confdefs.h. */
20762
#include <string.h>
20765
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20766
$EGREP "memchr" >/dev/null 2>&1; then
20769
ac_cv_header_stdc=no
20775
if test $ac_cv_header_stdc = yes; then
20776
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20777
cat >conftest.$ac_ext <<_ACEOF
20780
cat confdefs.h >>conftest.$ac_ext
20781
cat >>conftest.$ac_ext <<_ACEOF
20782
/* end confdefs.h. */
20783
#include <stdlib.h>
20786
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20787
$EGREP "free" >/dev/null 2>&1; then
20790
ac_cv_header_stdc=no
20796
if test $ac_cv_header_stdc = yes; then
20797
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20798
if test "$cross_compiling" = yes; then
20801
cat >conftest.$ac_ext <<_ACEOF
20804
cat confdefs.h >>conftest.$ac_ext
20805
cat >>conftest.$ac_ext <<_ACEOF
20806
/* end confdefs.h. */
20808
#if ((' ' & 0x0FF) == 0x020)
20809
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20810
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20812
# define ISLOWER(c) \
20813
(('a' <= (c) && (c) <= 'i') \
20814
|| ('j' <= (c) && (c) <= 'r') \
20815
|| ('s' <= (c) && (c) <= 'z'))
20816
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20819
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20824
for (i = 0; i < 256; i++)
20825
if (XOR (islower (i), ISLOWER (i))
20826
|| toupper (i) != TOUPPER (i))
20831
rm -f conftest$ac_exeext
20832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20833
(eval $ac_link) 2>&5
20835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838
(eval $ac_try) 2>&5
20840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841
(exit $ac_status); }; }; then
20844
echo "$as_me: program exited with status $ac_status" >&5
20845
echo "$as_me: failed program was:" >&5
20846
sed 's/^/| /' conftest.$ac_ext >&5
20848
( exit $ac_status )
20849
ac_cv_header_stdc=no
20851
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20855
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20856
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20857
if test $ac_cv_header_stdc = yes; then
20859
cat >>confdefs.h <<\_ACEOF
20860
#define STDC_HEADERS 1
20866
for ac_func in memcpy
20868
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20869
echo "$as_me:$LINENO: checking for $ac_func" >&5
20870
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20871
if eval "test \"\${$as_ac_var+set}\" = set"; then
20872
echo $ECHO_N "(cached) $ECHO_C" >&6
20874
cat >conftest.$ac_ext <<_ACEOF
20877
cat confdefs.h >>conftest.$ac_ext
20878
cat >>conftest.$ac_ext <<_ACEOF
20879
/* end confdefs.h. */
20880
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20881
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20882
#define $ac_func innocuous_$ac_func
20884
/* System header to define __stub macros and hopefully few prototypes,
20885
which can conflict with char $ac_func (); below.
20886
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20887
<limits.h> exists even on freestanding compilers. */
20890
# include <limits.h>
20892
# include <assert.h>
20897
/* Override any gcc2 internal prototype to avoid an error. */
20902
/* We use char because int might match the return type of a gcc2
20903
builtin and then its argument prototype would still apply. */
20905
/* The GNU C library defines this for functions which it implements
20906
to always fail with ENOSYS. Some functions are actually named
20907
something starting with __ and the normal name is an alias. */
20908
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20911
char (*f) () = $ac_func;
20920
return f != $ac_func;
20925
rm -f conftest.$ac_objext conftest$ac_exeext
20926
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20927
(eval $ac_link) 2>conftest.er1
20929
grep -v '^ *+' conftest.er1 >conftest.err
20931
cat conftest.err >&5
20932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933
(exit $ac_status); } &&
20934
{ ac_try='test -z "$ac_c_werror_flag"
20935
|| test ! -s conftest.err'
20936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937
(eval $ac_try) 2>&5
20939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940
(exit $ac_status); }; } &&
20941
{ ac_try='test -s conftest$ac_exeext'
20942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20943
(eval $ac_try) 2>&5
20945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946
(exit $ac_status); }; }; then
20947
eval "$as_ac_var=yes"
20949
echo "$as_me: failed program was:" >&5
20950
sed 's/^/| /' conftest.$ac_ext >&5
20952
eval "$as_ac_var=no"
20954
rm -f conftest.err conftest.$ac_objext \
20955
conftest$ac_exeext conftest.$ac_ext
20957
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20958
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20959
if test `eval echo '${'$as_ac_var'}'` = yes; then
20960
cat >>confdefs.h <<_ACEOF
20961
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20967
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20968
# for constant arguments. Useless!
20969
echo "$as_me:$LINENO: checking for working alloca.h" >&5
20970
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20971
if test "${ac_cv_working_alloca_h+set}" = set; then
20972
echo $ECHO_N "(cached) $ECHO_C" >&6
20974
cat >conftest.$ac_ext <<_ACEOF
20977
cat confdefs.h >>conftest.$ac_ext
20978
cat >>conftest.$ac_ext <<_ACEOF
20979
/* end confdefs.h. */
20980
#include <alloca.h>
20984
char *p = (char *) alloca (2 * sizeof (int));
20989
rm -f conftest.$ac_objext conftest$ac_exeext
20990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20991
(eval $ac_link) 2>conftest.er1
20993
grep -v '^ *+' conftest.er1 >conftest.err
20995
cat conftest.err >&5
20996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997
(exit $ac_status); } &&
20998
{ ac_try='test -z "$ac_c_werror_flag"
20999
|| test ! -s conftest.err'
21000
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001
(eval $ac_try) 2>&5
21003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004
(exit $ac_status); }; } &&
21005
{ ac_try='test -s conftest$ac_exeext'
21006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007
(eval $ac_try) 2>&5
21009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010
(exit $ac_status); }; }; then
21011
ac_cv_working_alloca_h=yes
21013
echo "$as_me: failed program was:" >&5
21014
sed 's/^/| /' conftest.$ac_ext >&5
21016
ac_cv_working_alloca_h=no
21018
rm -f conftest.err conftest.$ac_objext \
21019
conftest$ac_exeext conftest.$ac_ext
21021
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21022
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21023
if test $ac_cv_working_alloca_h = yes; then
21025
cat >>confdefs.h <<\_ACEOF
21026
#define HAVE_ALLOCA_H 1
21031
echo "$as_me:$LINENO: checking for alloca" >&5
21032
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21033
if test "${ac_cv_func_alloca_works+set}" = set; then
21034
echo $ECHO_N "(cached) $ECHO_C" >&6
21036
cat >conftest.$ac_ext <<_ACEOF
21039
cat confdefs.h >>conftest.$ac_ext
21040
cat >>conftest.$ac_ext <<_ACEOF
21041
/* end confdefs.h. */
21043
# define alloca __builtin_alloca
21046
# include <malloc.h>
21047
# define alloca _alloca
21050
# include <alloca.h>
21055
# ifndef alloca /* predefined by HP cc +Olibcalls */
21066
char *p = (char *) alloca (1);
21071
rm -f conftest.$ac_objext conftest$ac_exeext
21072
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21073
(eval $ac_link) 2>conftest.er1
21075
grep -v '^ *+' conftest.er1 >conftest.err
21077
cat conftest.err >&5
21078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079
(exit $ac_status); } &&
21080
{ ac_try='test -z "$ac_c_werror_flag"
21081
|| test ! -s conftest.err'
21082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083
(eval $ac_try) 2>&5
21085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086
(exit $ac_status); }; } &&
21087
{ ac_try='test -s conftest$ac_exeext'
21088
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089
(eval $ac_try) 2>&5
21091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092
(exit $ac_status); }; }; then
21093
ac_cv_func_alloca_works=yes
21095
echo "$as_me: failed program was:" >&5
21096
sed 's/^/| /' conftest.$ac_ext >&5
21098
ac_cv_func_alloca_works=no
21100
rm -f conftest.err conftest.$ac_objext \
21101
conftest$ac_exeext conftest.$ac_ext
21103
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21104
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21106
if test $ac_cv_func_alloca_works = yes; then
21108
cat >>confdefs.h <<\_ACEOF
21109
#define HAVE_ALLOCA 1
21113
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
21114
# that cause trouble. Some versions do not even contain alloca or
21115
# contain a buggy version. If you still want to use their alloca,
21116
# use ar to extract alloca.o from them instead of compiling alloca.c.
21118
ALLOCA=alloca.$ac_objext
21120
cat >>confdefs.h <<\_ACEOF
21125
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21126
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21127
if test "${ac_cv_os_cray+set}" = set; then
21128
echo $ECHO_N "(cached) $ECHO_C" >&6
21130
cat >conftest.$ac_ext <<_ACEOF
21133
cat confdefs.h >>conftest.$ac_ext
21134
cat >>conftest.$ac_ext <<_ACEOF
21135
/* end confdefs.h. */
21136
#if defined(CRAY) && ! defined(CRAY2)
21143
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21144
$EGREP "webecray" >/dev/null 2>&1; then
21152
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21153
echo "${ECHO_T}$ac_cv_os_cray" >&6
21154
if test $ac_cv_os_cray = yes; then
21155
for ac_func in _getb67 GETB67 getb67; do
21156
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21157
echo "$as_me:$LINENO: checking for $ac_func" >&5
21158
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21159
if eval "test \"\${$as_ac_var+set}\" = set"; then
21160
echo $ECHO_N "(cached) $ECHO_C" >&6
21162
cat >conftest.$ac_ext <<_ACEOF
21165
cat confdefs.h >>conftest.$ac_ext
21166
cat >>conftest.$ac_ext <<_ACEOF
21167
/* end confdefs.h. */
21168
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21169
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21170
#define $ac_func innocuous_$ac_func
21172
/* System header to define __stub macros and hopefully few prototypes,
21173
which can conflict with char $ac_func (); below.
21174
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21175
<limits.h> exists even on freestanding compilers. */
21178
# include <limits.h>
21180
# include <assert.h>
21185
/* Override any gcc2 internal prototype to avoid an error. */
21190
/* We use char because int might match the return type of a gcc2
21191
builtin and then its argument prototype would still apply. */
21193
/* The GNU C library defines this for functions which it implements
21194
to always fail with ENOSYS. Some functions are actually named
21195
something starting with __ and the normal name is an alias. */
21196
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21199
char (*f) () = $ac_func;
21208
return f != $ac_func;
21213
rm -f conftest.$ac_objext conftest$ac_exeext
21214
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21215
(eval $ac_link) 2>conftest.er1
21217
grep -v '^ *+' conftest.er1 >conftest.err
21219
cat conftest.err >&5
21220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221
(exit $ac_status); } &&
21222
{ ac_try='test -z "$ac_c_werror_flag"
21223
|| test ! -s conftest.err'
21224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225
(eval $ac_try) 2>&5
21227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228
(exit $ac_status); }; } &&
21229
{ ac_try='test -s conftest$ac_exeext'
21230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231
(eval $ac_try) 2>&5
21233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234
(exit $ac_status); }; }; then
21235
eval "$as_ac_var=yes"
21237
echo "$as_me: failed program was:" >&5
21238
sed 's/^/| /' conftest.$ac_ext >&5
21240
eval "$as_ac_var=no"
21242
rm -f conftest.err conftest.$ac_objext \
21243
conftest$ac_exeext conftest.$ac_ext
21245
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21246
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21247
if test `eval echo '${'$as_ac_var'}'` = yes; then
21249
cat >>confdefs.h <<_ACEOF
21250
#define CRAY_STACKSEG_END $ac_func
21259
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21260
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21261
if test "${ac_cv_c_stack_direction+set}" = set; then
21262
echo $ECHO_N "(cached) $ECHO_C" >&6
21264
if test "$cross_compiling" = yes; then
21265
ac_cv_c_stack_direction=0
21267
cat >conftest.$ac_ext <<_ACEOF
21270
cat confdefs.h >>conftest.$ac_ext
21271
cat >>conftest.$ac_ext <<_ACEOF
21272
/* end confdefs.h. */
21274
find_stack_direction ()
21276
static char *addr = 0;
21281
return find_stack_direction ();
21284
return (&dummy > addr) ? 1 : -1;
21290
exit (find_stack_direction () < 0);
21293
rm -f conftest$ac_exeext
21294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295
(eval $ac_link) 2>&5
21297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300
(eval $ac_try) 2>&5
21302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303
(exit $ac_status); }; }; then
21304
ac_cv_c_stack_direction=1
21306
echo "$as_me: program exited with status $ac_status" >&5
21307
echo "$as_me: failed program was:" >&5
21308
sed 's/^/| /' conftest.$ac_ext >&5
21310
( exit $ac_status )
21311
ac_cv_c_stack_direction=-1
21313
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21316
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21317
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21319
cat >>confdefs.h <<_ACEOF
21320
#define STACK_DIRECTION $ac_cv_c_stack_direction
21327
echo "$as_me:$LINENO: checking for double" >&5
21328
echo $ECHO_N "checking for double... $ECHO_C" >&6
21329
if test "${ac_cv_type_double+set}" = set; then
21330
echo $ECHO_N "(cached) $ECHO_C" >&6
21332
cat >conftest.$ac_ext <<_ACEOF
21335
cat confdefs.h >>conftest.$ac_ext
21336
cat >>conftest.$ac_ext <<_ACEOF
21337
/* end confdefs.h. */
21338
$ac_includes_default
21344
if (sizeof (double))
21350
rm -f conftest.$ac_objext
21351
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21352
(eval $ac_compile) 2>conftest.er1
21354
grep -v '^ *+' conftest.er1 >conftest.err
21356
cat conftest.err >&5
21357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358
(exit $ac_status); } &&
21359
{ ac_try='test -z "$ac_c_werror_flag"
21360
|| test ! -s conftest.err'
21361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362
(eval $ac_try) 2>&5
21364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365
(exit $ac_status); }; } &&
21366
{ ac_try='test -s conftest.$ac_objext'
21367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21368
(eval $ac_try) 2>&5
21370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371
(exit $ac_status); }; }; then
21372
ac_cv_type_double=yes
21374
echo "$as_me: failed program was:" >&5
21375
sed 's/^/| /' conftest.$ac_ext >&5
21377
ac_cv_type_double=no
21379
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21381
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
21382
echo "${ECHO_T}$ac_cv_type_double" >&6
21384
echo "$as_me:$LINENO: checking size of double" >&5
21385
echo $ECHO_N "checking size of double... $ECHO_C" >&6
21386
if test "${ac_cv_sizeof_double+set}" = set; then
21387
echo $ECHO_N "(cached) $ECHO_C" >&6
21389
if test "$ac_cv_type_double" = yes; then
21390
# The cast to unsigned long works around a bug in the HP C Compiler
21391
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21392
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21393
# This bug is HP SR number 8606223364.
21394
if test "$cross_compiling" = yes; then
21395
# Depending upon the size, compute the lo and hi bounds.
21396
cat >conftest.$ac_ext <<_ACEOF
21399
cat confdefs.h >>conftest.$ac_ext
21400
cat >>conftest.$ac_ext <<_ACEOF
21401
/* end confdefs.h. */
21402
$ac_includes_default
21406
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
21413
rm -f conftest.$ac_objext
21414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21415
(eval $ac_compile) 2>conftest.er1
21417
grep -v '^ *+' conftest.er1 >conftest.err
21419
cat conftest.err >&5
21420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421
(exit $ac_status); } &&
21422
{ ac_try='test -z "$ac_c_werror_flag"
21423
|| test ! -s conftest.err'
21424
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425
(eval $ac_try) 2>&5
21427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428
(exit $ac_status); }; } &&
21429
{ ac_try='test -s conftest.$ac_objext'
21430
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431
(eval $ac_try) 2>&5
21433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434
(exit $ac_status); }; }; then
21437
cat >conftest.$ac_ext <<_ACEOF
21440
cat confdefs.h >>conftest.$ac_ext
21441
cat >>conftest.$ac_ext <<_ACEOF
21442
/* end confdefs.h. */
21443
$ac_includes_default
21447
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
21454
rm -f conftest.$ac_objext
21455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456
(eval $ac_compile) 2>conftest.er1
21458
grep -v '^ *+' conftest.er1 >conftest.err
21460
cat conftest.err >&5
21461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462
(exit $ac_status); } &&
21463
{ ac_try='test -z "$ac_c_werror_flag"
21464
|| test ! -s conftest.err'
21465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466
(eval $ac_try) 2>&5
21468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469
(exit $ac_status); }; } &&
21470
{ ac_try='test -s conftest.$ac_objext'
21471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472
(eval $ac_try) 2>&5
21474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475
(exit $ac_status); }; }; then
21476
ac_hi=$ac_mid; break
21478
echo "$as_me: failed program was:" >&5
21479
sed 's/^/| /' conftest.$ac_ext >&5
21481
ac_lo=`expr $ac_mid + 1`
21482
if test $ac_lo -le $ac_mid; then
21486
ac_mid=`expr 2 '*' $ac_mid + 1`
21488
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21491
echo "$as_me: failed program was:" >&5
21492
sed 's/^/| /' conftest.$ac_ext >&5
21494
cat >conftest.$ac_ext <<_ACEOF
21497
cat confdefs.h >>conftest.$ac_ext
21498
cat >>conftest.$ac_ext <<_ACEOF
21499
/* end confdefs.h. */
21500
$ac_includes_default
21504
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
21511
rm -f conftest.$ac_objext
21512
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21513
(eval $ac_compile) 2>conftest.er1
21515
grep -v '^ *+' conftest.er1 >conftest.err
21517
cat conftest.err >&5
21518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519
(exit $ac_status); } &&
21520
{ ac_try='test -z "$ac_c_werror_flag"
21521
|| test ! -s conftest.err'
21522
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523
(eval $ac_try) 2>&5
21525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526
(exit $ac_status); }; } &&
21527
{ ac_try='test -s conftest.$ac_objext'
21528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529
(eval $ac_try) 2>&5
21531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532
(exit $ac_status); }; }; then
21535
cat >conftest.$ac_ext <<_ACEOF
21538
cat confdefs.h >>conftest.$ac_ext
21539
cat >>conftest.$ac_ext <<_ACEOF
21540
/* end confdefs.h. */
21541
$ac_includes_default
21545
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
21552
rm -f conftest.$ac_objext
21553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21554
(eval $ac_compile) 2>conftest.er1
21556
grep -v '^ *+' conftest.er1 >conftest.err
21558
cat conftest.err >&5
21559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560
(exit $ac_status); } &&
21561
{ ac_try='test -z "$ac_c_werror_flag"
21562
|| test ! -s conftest.err'
21563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564
(eval $ac_try) 2>&5
21566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567
(exit $ac_status); }; } &&
21568
{ ac_try='test -s conftest.$ac_objext'
21569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570
(eval $ac_try) 2>&5
21572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573
(exit $ac_status); }; }; then
21574
ac_lo=$ac_mid; break
21576
echo "$as_me: failed program was:" >&5
21577
sed 's/^/| /' conftest.$ac_ext >&5
21579
ac_hi=`expr '(' $ac_mid ')' - 1`
21580
if test $ac_mid -le $ac_hi; then
21584
ac_mid=`expr 2 '*' $ac_mid`
21586
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21589
echo "$as_me: failed program was:" >&5
21590
sed 's/^/| /' conftest.$ac_ext >&5
21594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21596
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21597
# Binary search between lo and hi bounds.
21598
while test "x$ac_lo" != "x$ac_hi"; do
21599
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21600
cat >conftest.$ac_ext <<_ACEOF
21603
cat confdefs.h >>conftest.$ac_ext
21604
cat >>conftest.$ac_ext <<_ACEOF
21605
/* end confdefs.h. */
21606
$ac_includes_default
21610
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
21617
rm -f conftest.$ac_objext
21618
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21619
(eval $ac_compile) 2>conftest.er1
21621
grep -v '^ *+' conftest.er1 >conftest.err
21623
cat conftest.err >&5
21624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625
(exit $ac_status); } &&
21626
{ ac_try='test -z "$ac_c_werror_flag"
21627
|| test ! -s conftest.err'
21628
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629
(eval $ac_try) 2>&5
21631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632
(exit $ac_status); }; } &&
21633
{ ac_try='test -s conftest.$ac_objext'
21634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635
(eval $ac_try) 2>&5
21637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638
(exit $ac_status); }; }; then
21641
echo "$as_me: failed program was:" >&5
21642
sed 's/^/| /' conftest.$ac_ext >&5
21644
ac_lo=`expr '(' $ac_mid ')' + 1`
21646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21649
?*) ac_cv_sizeof_double=$ac_lo;;
21650
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
21651
See \`config.log' for more details." >&5
21652
echo "$as_me: error: cannot compute sizeof (double), 77
21653
See \`config.log' for more details." >&2;}
21654
{ (exit 1); exit 1; }; } ;;
21657
if test "$cross_compiling" = yes; then
21658
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21659
See \`config.log' for more details." >&5
21660
echo "$as_me: error: cannot run test program while cross compiling
21661
See \`config.log' for more details." >&2;}
21662
{ (exit 1); exit 1; }; }
21664
cat >conftest.$ac_ext <<_ACEOF
21667
cat confdefs.h >>conftest.$ac_ext
21668
cat >>conftest.$ac_ext <<_ACEOF
21669
/* end confdefs.h. */
21670
$ac_includes_default
21671
long longval () { return (long) (sizeof (double)); }
21672
unsigned long ulongval () { return (long) (sizeof (double)); }
21674
#include <stdlib.h>
21679
FILE *f = fopen ("conftest.val", "w");
21682
if (((long) (sizeof (double))) < 0)
21684
long i = longval ();
21685
if (i != ((long) (sizeof (double))))
21687
fprintf (f, "%ld\n", i);
21691
unsigned long i = ulongval ();
21692
if (i != ((long) (sizeof (double))))
21694
fprintf (f, "%lu\n", i);
21696
exit (ferror (f) || fclose (f) != 0);
21702
rm -f conftest$ac_exeext
21703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21704
(eval $ac_link) 2>&5
21706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21708
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709
(eval $ac_try) 2>&5
21711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712
(exit $ac_status); }; }; then
21713
ac_cv_sizeof_double=`cat conftest.val`
21715
echo "$as_me: program exited with status $ac_status" >&5
21716
echo "$as_me: failed program was:" >&5
21717
sed 's/^/| /' conftest.$ac_ext >&5
21719
( exit $ac_status )
21720
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
21721
See \`config.log' for more details." >&5
21722
echo "$as_me: error: cannot compute sizeof (double), 77
21723
See \`config.log' for more details." >&2;}
21724
{ (exit 1); exit 1; }; }
21726
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21731
ac_cv_sizeof_double=0
21734
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21735
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21736
cat >>confdefs.h <<_ACEOF
21737
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
21741
echo "$as_me:$LINENO: checking for long double" >&5
21742
echo $ECHO_N "checking for long double... $ECHO_C" >&6
21743
if test "${ac_cv_type_long_double+set}" = set; then
21744
echo $ECHO_N "(cached) $ECHO_C" >&6
21746
cat >conftest.$ac_ext <<_ACEOF
21749
cat confdefs.h >>conftest.$ac_ext
21750
cat >>conftest.$ac_ext <<_ACEOF
21751
/* end confdefs.h. */
21752
$ac_includes_default
21756
if ((long double *) 0)
21758
if (sizeof (long double))
21764
rm -f conftest.$ac_objext
21765
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21766
(eval $ac_compile) 2>conftest.er1
21768
grep -v '^ *+' conftest.er1 >conftest.err
21770
cat conftest.err >&5
21771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772
(exit $ac_status); } &&
21773
{ ac_try='test -z "$ac_c_werror_flag"
21774
|| test ! -s conftest.err'
21775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776
(eval $ac_try) 2>&5
21778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779
(exit $ac_status); }; } &&
21780
{ ac_try='test -s conftest.$ac_objext'
21781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782
(eval $ac_try) 2>&5
21784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785
(exit $ac_status); }; }; then
21786
ac_cv_type_long_double=yes
21788
echo "$as_me: failed program was:" >&5
21789
sed 's/^/| /' conftest.$ac_ext >&5
21791
ac_cv_type_long_double=no
21793
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21795
echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
21796
echo "${ECHO_T}$ac_cv_type_long_double" >&6
21798
echo "$as_me:$LINENO: checking size of long double" >&5
21799
echo $ECHO_N "checking size of long double... $ECHO_C" >&6
21800
if test "${ac_cv_sizeof_long_double+set}" = set; then
21801
echo $ECHO_N "(cached) $ECHO_C" >&6
21803
if test "$ac_cv_type_long_double" = yes; then
21804
# The cast to unsigned long works around a bug in the HP C Compiler
21805
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21806
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21807
# This bug is HP SR number 8606223364.
21808
if test "$cross_compiling" = yes; then
21809
# Depending upon the size, compute the lo and hi bounds.
21810
cat >conftest.$ac_ext <<_ACEOF
21813
cat confdefs.h >>conftest.$ac_ext
21814
cat >>conftest.$ac_ext <<_ACEOF
21815
/* end confdefs.h. */
21816
$ac_includes_default
21820
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
21827
rm -f conftest.$ac_objext
21828
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21829
(eval $ac_compile) 2>conftest.er1
21831
grep -v '^ *+' conftest.er1 >conftest.err
21833
cat conftest.err >&5
21834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835
(exit $ac_status); } &&
21836
{ ac_try='test -z "$ac_c_werror_flag"
21837
|| test ! -s conftest.err'
21838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839
(eval $ac_try) 2>&5
21841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842
(exit $ac_status); }; } &&
21843
{ ac_try='test -s conftest.$ac_objext'
21844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845
(eval $ac_try) 2>&5
21847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848
(exit $ac_status); }; }; then
21851
cat >conftest.$ac_ext <<_ACEOF
21854
cat confdefs.h >>conftest.$ac_ext
21855
cat >>conftest.$ac_ext <<_ACEOF
21856
/* end confdefs.h. */
21857
$ac_includes_default
21861
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
21868
rm -f conftest.$ac_objext
21869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21870
(eval $ac_compile) 2>conftest.er1
21872
grep -v '^ *+' conftest.er1 >conftest.err
21874
cat conftest.err >&5
21875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876
(exit $ac_status); } &&
21877
{ ac_try='test -z "$ac_c_werror_flag"
21878
|| test ! -s conftest.err'
21879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880
(eval $ac_try) 2>&5
21882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883
(exit $ac_status); }; } &&
21884
{ ac_try='test -s conftest.$ac_objext'
21885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886
(eval $ac_try) 2>&5
21888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889
(exit $ac_status); }; }; then
21890
ac_hi=$ac_mid; break
21892
echo "$as_me: failed program was:" >&5
21893
sed 's/^/| /' conftest.$ac_ext >&5
21895
ac_lo=`expr $ac_mid + 1`
21896
if test $ac_lo -le $ac_mid; then
21900
ac_mid=`expr 2 '*' $ac_mid + 1`
21902
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21905
echo "$as_me: failed program was:" >&5
21906
sed 's/^/| /' conftest.$ac_ext >&5
21908
cat >conftest.$ac_ext <<_ACEOF
21911
cat confdefs.h >>conftest.$ac_ext
21912
cat >>conftest.$ac_ext <<_ACEOF
21913
/* end confdefs.h. */
21914
$ac_includes_default
21918
static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
21925
rm -f conftest.$ac_objext
21926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21927
(eval $ac_compile) 2>conftest.er1
21929
grep -v '^ *+' conftest.er1 >conftest.err
21931
cat conftest.err >&5
21932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933
(exit $ac_status); } &&
21934
{ ac_try='test -z "$ac_c_werror_flag"
21935
|| test ! -s conftest.err'
21936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937
(eval $ac_try) 2>&5
21939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940
(exit $ac_status); }; } &&
21941
{ ac_try='test -s conftest.$ac_objext'
21942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943
(eval $ac_try) 2>&5
21945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946
(exit $ac_status); }; }; then
21949
cat >conftest.$ac_ext <<_ACEOF
21952
cat confdefs.h >>conftest.$ac_ext
21953
cat >>conftest.$ac_ext <<_ACEOF
21954
/* end confdefs.h. */
21955
$ac_includes_default
21959
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
21966
rm -f conftest.$ac_objext
21967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21968
(eval $ac_compile) 2>conftest.er1
21970
grep -v '^ *+' conftest.er1 >conftest.err
21972
cat conftest.err >&5
21973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974
(exit $ac_status); } &&
21975
{ ac_try='test -z "$ac_c_werror_flag"
21976
|| test ! -s conftest.err'
21977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978
(eval $ac_try) 2>&5
21980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981
(exit $ac_status); }; } &&
21982
{ ac_try='test -s conftest.$ac_objext'
21983
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984
(eval $ac_try) 2>&5
21986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987
(exit $ac_status); }; }; then
21988
ac_lo=$ac_mid; break
21990
echo "$as_me: failed program was:" >&5
21991
sed 's/^/| /' conftest.$ac_ext >&5
21993
ac_hi=`expr '(' $ac_mid ')' - 1`
21994
if test $ac_mid -le $ac_hi; then
21998
ac_mid=`expr 2 '*' $ac_mid`
22000
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22003
echo "$as_me: failed program was:" >&5
22004
sed 's/^/| /' conftest.$ac_ext >&5
22008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22010
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22011
# Binary search between lo and hi bounds.
22012
while test "x$ac_lo" != "x$ac_hi"; do
22013
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22014
cat >conftest.$ac_ext <<_ACEOF
22017
cat confdefs.h >>conftest.$ac_ext
22018
cat >>conftest.$ac_ext <<_ACEOF
22019
/* end confdefs.h. */
22020
$ac_includes_default
22024
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
22031
rm -f conftest.$ac_objext
22032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22033
(eval $ac_compile) 2>conftest.er1
22035
grep -v '^ *+' conftest.er1 >conftest.err
22037
cat conftest.err >&5
22038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039
(exit $ac_status); } &&
22040
{ ac_try='test -z "$ac_c_werror_flag"
22041
|| test ! -s conftest.err'
22042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043
(eval $ac_try) 2>&5
22045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046
(exit $ac_status); }; } &&
22047
{ ac_try='test -s conftest.$ac_objext'
22048
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049
(eval $ac_try) 2>&5
22051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052
(exit $ac_status); }; }; then
22055
echo "$as_me: failed program was:" >&5
22056
sed 's/^/| /' conftest.$ac_ext >&5
22058
ac_lo=`expr '(' $ac_mid ')' + 1`
22060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22063
?*) ac_cv_sizeof_long_double=$ac_lo;;
22064
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
22065
See \`config.log' for more details." >&5
22066
echo "$as_me: error: cannot compute sizeof (long double), 77
22067
See \`config.log' for more details." >&2;}
22068
{ (exit 1); exit 1; }; } ;;
22071
if test "$cross_compiling" = yes; then
22072
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22073
See \`config.log' for more details." >&5
22074
echo "$as_me: error: cannot run test program while cross compiling
22075
See \`config.log' for more details." >&2;}
22076
{ (exit 1); exit 1; }; }
22078
cat >conftest.$ac_ext <<_ACEOF
22081
cat confdefs.h >>conftest.$ac_ext
22082
cat >>conftest.$ac_ext <<_ACEOF
22083
/* end confdefs.h. */
22084
$ac_includes_default
22085
long longval () { return (long) (sizeof (long double)); }
22086
unsigned long ulongval () { return (long) (sizeof (long double)); }
22088
#include <stdlib.h>
22093
FILE *f = fopen ("conftest.val", "w");
22096
if (((long) (sizeof (long double))) < 0)
22098
long i = longval ();
22099
if (i != ((long) (sizeof (long double))))
22101
fprintf (f, "%ld\n", i);
22105
unsigned long i = ulongval ();
22106
if (i != ((long) (sizeof (long double))))
22108
fprintf (f, "%lu\n", i);
22110
exit (ferror (f) || fclose (f) != 0);
22116
rm -f conftest$ac_exeext
22117
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22118
(eval $ac_link) 2>&5
22120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123
(eval $ac_try) 2>&5
22125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126
(exit $ac_status); }; }; then
22127
ac_cv_sizeof_long_double=`cat conftest.val`
22129
echo "$as_me: program exited with status $ac_status" >&5
22130
echo "$as_me: failed program was:" >&5
22131
sed 's/^/| /' conftest.$ac_ext >&5
22133
( exit $ac_status )
22134
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
22135
See \`config.log' for more details." >&5
22136
echo "$as_me: error: cannot compute sizeof (long double), 77
22137
See \`config.log' for more details." >&2;}
22138
{ (exit 1); exit 1; }; }
22140
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22145
ac_cv_sizeof_long_double=0
22148
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
22149
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
22150
cat >>confdefs.h <<_ACEOF
22151
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
22156
# Also AC_SUBST this variable for ffi.h.
22158
if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
22159
if test $ac_cv_sizeof_long_double != 0; then
22162
cat >>confdefs.h <<\_ACEOF
22163
#define HAVE_LONG_DOUBLE 1
22170
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22171
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22172
if test "${ac_cv_c_bigendian+set}" = set; then
22173
echo $ECHO_N "(cached) $ECHO_C" >&6
22175
# See if sys/param.h defines the BYTE_ORDER macro.
22176
cat >conftest.$ac_ext <<_ACEOF
22179
cat confdefs.h >>conftest.$ac_ext
22180
cat >>conftest.$ac_ext <<_ACEOF
22181
/* end confdefs.h. */
22182
#include <sys/types.h>
22183
#include <sys/param.h>
22188
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22189
bogus endian macros
22196
rm -f conftest.$ac_objext
22197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22198
(eval $ac_compile) 2>conftest.er1
22200
grep -v '^ *+' conftest.er1 >conftest.err
22202
cat conftest.err >&5
22203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204
(exit $ac_status); } &&
22205
{ ac_try='test -z "$ac_c_werror_flag"
22206
|| test ! -s conftest.err'
22207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208
(eval $ac_try) 2>&5
22210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211
(exit $ac_status); }; } &&
22212
{ ac_try='test -s conftest.$ac_objext'
22213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214
(eval $ac_try) 2>&5
22216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217
(exit $ac_status); }; }; then
22218
# It does; now see whether it defined to BIG_ENDIAN or not.
22219
cat >conftest.$ac_ext <<_ACEOF
22222
cat confdefs.h >>conftest.$ac_ext
22223
cat >>conftest.$ac_ext <<_ACEOF
22224
/* end confdefs.h. */
22225
#include <sys/types.h>
22226
#include <sys/param.h>
22231
#if BYTE_ORDER != BIG_ENDIAN
22239
rm -f conftest.$ac_objext
22240
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22241
(eval $ac_compile) 2>conftest.er1
22243
grep -v '^ *+' conftest.er1 >conftest.err
22245
cat conftest.err >&5
22246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247
(exit $ac_status); } &&
22248
{ ac_try='test -z "$ac_c_werror_flag"
22249
|| test ! -s conftest.err'
22250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251
(eval $ac_try) 2>&5
22253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254
(exit $ac_status); }; } &&
22255
{ ac_try='test -s conftest.$ac_objext'
22256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257
(eval $ac_try) 2>&5
22259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260
(exit $ac_status); }; }; then
22261
ac_cv_c_bigendian=yes
22263
echo "$as_me: failed program was:" >&5
22264
sed 's/^/| /' conftest.$ac_ext >&5
22266
ac_cv_c_bigendian=no
22268
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22270
echo "$as_me: failed program was:" >&5
22271
sed 's/^/| /' conftest.$ac_ext >&5
22273
# It does not; compile a test program.
22274
if test "$cross_compiling" = yes; then
22275
# try to guess the endianness by grepping values into an object file
22276
ac_cv_c_bigendian=unknown
22277
cat >conftest.$ac_ext <<_ACEOF
22280
cat confdefs.h >>conftest.$ac_ext
22281
cat >>conftest.$ac_ext <<_ACEOF
22282
/* end confdefs.h. */
22283
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22284
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22285
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22286
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22287
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22288
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22292
_ascii (); _ebcdic ();
22297
rm -f conftest.$ac_objext
22298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22299
(eval $ac_compile) 2>conftest.er1
22301
grep -v '^ *+' conftest.er1 >conftest.err
22303
cat conftest.err >&5
22304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305
(exit $ac_status); } &&
22306
{ ac_try='test -z "$ac_c_werror_flag"
22307
|| test ! -s conftest.err'
22308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309
(eval $ac_try) 2>&5
22311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312
(exit $ac_status); }; } &&
22313
{ ac_try='test -s conftest.$ac_objext'
22314
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22315
(eval $ac_try) 2>&5
22317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318
(exit $ac_status); }; }; then
22319
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22320
ac_cv_c_bigendian=yes
22322
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22323
if test "$ac_cv_c_bigendian" = unknown; then
22324
ac_cv_c_bigendian=no
22326
# finding both strings is unlikely to happen, but who knows?
22327
ac_cv_c_bigendian=unknown
22331
echo "$as_me: failed program was:" >&5
22332
sed 's/^/| /' conftest.$ac_ext >&5
22335
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22337
cat >conftest.$ac_ext <<_ACEOF
22340
cat confdefs.h >>conftest.$ac_ext
22341
cat >>conftest.$ac_ext <<_ACEOF
22342
/* end confdefs.h. */
22346
/* Are we little or big endian? From Harbison&Steele. */
22350
char c[sizeof (long)];
22353
exit (u.c[sizeof (long) - 1] == 1);
22356
rm -f conftest$ac_exeext
22357
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22358
(eval $ac_link) 2>&5
22360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363
(eval $ac_try) 2>&5
22365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366
(exit $ac_status); }; }; then
22367
ac_cv_c_bigendian=no
22369
echo "$as_me: program exited with status $ac_status" >&5
22370
echo "$as_me: failed program was:" >&5
22371
sed 's/^/| /' conftest.$ac_ext >&5
22373
( exit $ac_status )
22374
ac_cv_c_bigendian=yes
22376
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22379
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22381
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22382
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22383
case $ac_cv_c_bigendian in
22386
cat >>confdefs.h <<\_ACEOF
22387
#define WORDS_BIGENDIAN 1
22393
{ { echo "$as_me:$LINENO: error: unknown endianness
22394
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22395
echo "$as_me: error: unknown endianness
22396
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22397
{ (exit 1); exit 1; }; } ;;
22401
if test x$TARGET = xSPARC; then
22402
echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
22403
echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
22404
if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
22405
echo $ECHO_N "(cached) $ECHO_C" >&6
22408
save_CFLAGS="$CFLAGS"
22409
save_LDFLAGS="$LDFLAGS"
22410
CFLAGS="$CFLAGS -fpic"
22411
LDFLAGS="$LDFLAGS -shared"
22412
cat >conftest.$ac_ext <<_ACEOF
22415
cat confdefs.h >>conftest.$ac_ext
22416
cat >>conftest.$ac_ext <<_ACEOF
22417
/* end confdefs.h. */
22418
asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
22427
rm -f conftest.$ac_objext conftest$ac_exeext
22428
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22429
(eval $ac_link) 2>conftest.er1
22431
grep -v '^ *+' conftest.er1 >conftest.err
22433
cat conftest.err >&5
22434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435
(exit $ac_status); } &&
22436
{ ac_try='test -z "$ac_c_werror_flag"
22437
|| test ! -s conftest.err'
22438
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439
(eval $ac_try) 2>&5
22441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442
(exit $ac_status); }; } &&
22443
{ ac_try='test -s conftest$ac_exeext'
22444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445
(eval $ac_try) 2>&5
22447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448
(exit $ac_status); }; }; then
22449
libffi_cv_as_sparc_ua_pcrel=yes
22451
echo "$as_me: failed program was:" >&5
22452
sed 's/^/| /' conftest.$ac_ext >&5
22454
libffi_cv_as_sparc_ua_pcrel=no
22456
rm -f conftest.err conftest.$ac_objext \
22457
conftest$ac_exeext conftest.$ac_ext
22458
CFLAGS="$save_CFLAGS"
22459
LDFLAGS="$save_LDFLAGS"
22461
echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
22462
echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
22463
if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
22465
cat >>confdefs.h <<\_ACEOF
22466
#define HAVE_AS_SPARC_UA_PCREL 1
22471
echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
22472
echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
22473
if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
22474
echo $ECHO_N "(cached) $ECHO_C" >&6
22477
libffi_cv_as_register_pseudo_op=unknown
22478
# Check if we have .register
22479
cat >conftest.$ac_ext <<_ACEOF
22482
cat confdefs.h >>conftest.$ac_ext
22483
cat >>conftest.$ac_ext <<_ACEOF
22484
/* end confdefs.h. */
22485
asm (".register %g2, #scratch");
22494
rm -f conftest.$ac_objext
22495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22496
(eval $ac_compile) 2>conftest.er1
22498
grep -v '^ *+' conftest.er1 >conftest.err
22500
cat conftest.err >&5
22501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502
(exit $ac_status); } &&
22503
{ ac_try='test -z "$ac_c_werror_flag"
22504
|| test ! -s conftest.err'
22505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506
(eval $ac_try) 2>&5
22508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509
(exit $ac_status); }; } &&
22510
{ ac_try='test -s conftest.$ac_objext'
22511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512
(eval $ac_try) 2>&5
22514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515
(exit $ac_status); }; }; then
22516
libffi_cv_as_register_pseudo_op=yes
22518
echo "$as_me: failed program was:" >&5
22519
sed 's/^/| /' conftest.$ac_ext >&5
22521
libffi_cv_as_register_pseudo_op=no
22523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22526
echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
22527
echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
22528
if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
22530
cat >>confdefs.h <<\_ACEOF
22531
#define HAVE_AS_REGISTER_PSEUDO_OP 1
22537
echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
22538
echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
22539
if test "${libffi_cv_ro_eh_frame+set}" = set; then
22540
echo $ECHO_N "(cached) $ECHO_C" >&6
22543
libffi_cv_ro_eh_frame=no
22544
echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
22545
if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
22546
if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
22547
libffi_cv_ro_eh_frame=yes
22548
elif grep '.section.*eh_frame.*#alloc' conftest.c \
22549
| grep -v '#write' > /dev/null; then
22550
libffi_cv_ro_eh_frame=yes
22556
echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
22557
echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
22558
if test "x$libffi_cv_ro_eh_frame" = xyes; then
22560
cat >>confdefs.h <<\_ACEOF
22561
#define HAVE_RO_EH_FRAME 1
22565
cat >>confdefs.h <<\_ACEOF
22566
#define EH_FRAME_FLAGS "a"
22571
cat >>confdefs.h <<\_ACEOF
22572
#define EH_FRAME_FLAGS "aw"
22577
echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
22578
echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
22579
if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
22580
echo $ECHO_N "(cached) $ECHO_C" >&6
22583
echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
22584
libffi_cv_hidden_visibility_attribute=no
22585
if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
22586
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22587
(eval $ac_try) 2>&5
22589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590
(exit $ac_status); }; }; then
22591
if grep '\.hidden.*foo' conftest.s >/dev/null; then
22592
libffi_cv_hidden_visibility_attribute=yes
22598
echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
22599
echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
22600
if test $libffi_cv_hidden_visibility_attribute = yes; then
22602
cat >>confdefs.h <<\_ACEOF
22603
#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
22616
# Check whether --enable-debug or --disable-debug was given.
22617
if test "${enable_debug+set}" = set; then
22618
enableval="$enable_debug"
22619
if test "$enable_debug" = "yes"; then
22621
cat >>confdefs.h <<\_ACEOF
22622
#define FFI_DEBUG 1
22628
# Check whether --enable-structs or --disable-structs was given.
22629
if test "${enable_structs+set}" = set; then
22630
enableval="$enable_structs"
22631
if test "$enable_structs" = "no"; then
22633
cat >>confdefs.h <<\_ACEOF
22634
#define FFI_NO_STRUCTS 1
22640
# Check whether --enable-raw-api or --disable-raw-api was given.
22641
if test "${enable_raw_api+set}" = set; then
22642
enableval="$enable_raw_api"
22643
if test "$enable_raw_api" = "no"; then
22645
cat >>confdefs.h <<\_ACEOF
22646
#define FFI_NO_RAW_API 1
22652
# Check whether --enable-purify-safety or --disable-purify-safety was given.
22653
if test "${enable_purify_safety+set}" = set; then
22654
enableval="$enable_purify_safety"
22655
if test "$enable_purify_safety" = "yes"; then
22657
cat >>confdefs.h <<\_ACEOF
22658
#define USING_PURIFY 1
22665
ac_config_commands="$ac_config_commands include"
22667
ac_config_commands="$ac_config_commands src"
22670
ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
22673
ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile"
22676
cat >confcache <<\_ACEOF
22677
# This file is a shell script that caches the results of configure
22678
# tests run on this system so they can be shared between configure
22679
# scripts and configure runs, see configure's option --config-cache.
22680
# It is not useful on other systems. If it contains results you don't
22681
# want to keep, you may remove or edit it.
22683
# config.status only pays attention to the cache file if you give it
22684
# the --recheck option to rerun configure.
22686
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22687
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22688
# following values.
22692
# The following way of writing the cache mishandles newlines in values,
22693
# but we know of no workaround that is simple, portable, and efficient.
22694
# So, don't put newlines in cache variables' values.
22695
# Ultrix sh set writes to stderr and can't be redirected directly,
22696
# and sets the high bit in the cache file unless we assign to the vars.
22699
case `(ac_space=' '; set | grep ac_space) 2>&1` in
22701
# `set' does not quote correctly, so add quotes (double-quote
22702
# substitution turns \\\\ into \\, and sed turns \\ into \).
22705
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22708
# `set' quotes correctly as required by POSIX, so do not add quotes.
22710
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22717
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22719
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22721
if diff $cache_file confcache >/dev/null 2>&1; then :; else
22722
if test -w $cache_file; then
22723
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22724
cat confcache >$cache_file
22726
echo "not updating unwritable cache $cache_file"
22731
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22732
# Let make expand exec_prefix.
22733
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22735
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22736
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22737
# trailing colons and then remove the whole line if VPATH becomes empty
22738
# (actually we leave an empty line to preserve line numbers).
22739
if test "x$srcdir" = x.; then
22740
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22741
s/:*\$(srcdir):*/:/;
22742
s/:*\${srcdir}:*/:/;
22744
s/^\([^=]*=[ ]*\):*/\1/;
22750
DEFS=-DHAVE_CONFIG_H
22754
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22755
# 1. Remove the extension, and $U if already installed.
22756
ac_i=`echo "$ac_i" |
22757
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22759
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22760
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22762
LIBOBJS=$ac_libobjs
22764
LTLIBOBJS=$ac_ltlibobjs
22767
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22768
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22769
Usually this means the macro was only invoked conditionally." >&5
22770
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22771
Usually this means the macro was only invoked conditionally." >&2;}
22772
{ (exit 1); exit 1; }; }
22774
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22775
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22776
Usually this means the macro was only invoked conditionally." >&5
22777
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22778
Usually this means the macro was only invoked conditionally." >&2;}
22779
{ (exit 1); exit 1; }; }
22781
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22782
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22783
Usually this means the macro was only invoked conditionally." >&5
22784
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22785
Usually this means the macro was only invoked conditionally." >&2;}
22786
{ (exit 1); exit 1; }; }
22788
if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
22789
{ { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
22790
Usually this means the macro was only invoked conditionally." >&5
22791
echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
22792
Usually this means the macro was only invoked conditionally." >&2;}
22793
{ (exit 1); exit 1; }; }
22795
if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
22796
{ { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
22797
Usually this means the macro was only invoked conditionally." >&5
22798
echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
22799
Usually this means the macro was only invoked conditionally." >&2;}
22800
{ (exit 1); exit 1; }; }
22802
if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
22803
{ { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
22804
Usually this means the macro was only invoked conditionally." >&5
22805
echo "$as_me: error: conditional \"SPARC\" was never defined.
22806
Usually this means the macro was only invoked conditionally." >&2;}
22807
{ (exit 1); exit 1; }; }
22809
if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
22810
{ { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
22811
Usually this means the macro was only invoked conditionally." >&5
22812
echo "$as_me: error: conditional \"X86\" was never defined.
22813
Usually this means the macro was only invoked conditionally." >&2;}
22814
{ (exit 1); exit 1; }; }
22816
if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
22817
{ { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
22818
Usually this means the macro was only invoked conditionally." >&5
22819
echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
22820
Usually this means the macro was only invoked conditionally." >&2;}
22821
{ (exit 1); exit 1; }; }
22823
if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
22824
{ { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
22825
Usually this means the macro was only invoked conditionally." >&5
22826
echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
22827
Usually this means the macro was only invoked conditionally." >&2;}
22828
{ (exit 1); exit 1; }; }
22830
if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
22831
{ { echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
22832
Usually this means the macro was only invoked conditionally." >&5
22833
echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
22834
Usually this means the macro was only invoked conditionally." >&2;}
22835
{ (exit 1); exit 1; }; }
22837
if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
22838
{ { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
22839
Usually this means the macro was only invoked conditionally." >&5
22840
echo "$as_me: error: conditional \"ALPHA\" was never defined.
22841
Usually this means the macro was only invoked conditionally." >&2;}
22842
{ (exit 1); exit 1; }; }
22844
if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
22845
{ { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
22846
Usually this means the macro was only invoked conditionally." >&5
22847
echo "$as_me: error: conditional \"IA64\" was never defined.
22848
Usually this means the macro was only invoked conditionally." >&2;}
22849
{ (exit 1); exit 1; }; }
22851
if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
22852
{ { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
22853
Usually this means the macro was only invoked conditionally." >&5
22854
echo "$as_me: error: conditional \"M32R\" was never defined.
22855
Usually this means the macro was only invoked conditionally." >&2;}
22856
{ (exit 1); exit 1; }; }
22858
if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
22859
{ { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
22860
Usually this means the macro was only invoked conditionally." >&5
22861
echo "$as_me: error: conditional \"M68K\" was never defined.
22862
Usually this means the macro was only invoked conditionally." >&2;}
22863
{ (exit 1); exit 1; }; }
22865
if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
22866
{ { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
22867
Usually this means the macro was only invoked conditionally." >&5
22868
echo "$as_me: error: conditional \"POWERPC\" was never defined.
22869
Usually this means the macro was only invoked conditionally." >&2;}
22870
{ (exit 1); exit 1; }; }
22872
if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
22873
{ { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
22874
Usually this means the macro was only invoked conditionally." >&5
22875
echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
22876
Usually this means the macro was only invoked conditionally." >&2;}
22877
{ (exit 1); exit 1; }; }
22879
if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
22880
{ { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
22881
Usually this means the macro was only invoked conditionally." >&5
22882
echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
22883
Usually this means the macro was only invoked conditionally." >&2;}
22884
{ (exit 1); exit 1; }; }
22886
if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
22887
{ { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
22888
Usually this means the macro was only invoked conditionally." >&5
22889
echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
22890
Usually this means the macro was only invoked conditionally." >&2;}
22891
{ (exit 1); exit 1; }; }
22893
if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
22894
{ { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
22895
Usually this means the macro was only invoked conditionally." >&5
22896
echo "$as_me: error: conditional \"ARM\" was never defined.
22897
Usually this means the macro was only invoked conditionally." >&2;}
22898
{ (exit 1); exit 1; }; }
22900
if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
22901
{ { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
22902
Usually this means the macro was only invoked conditionally." >&5
22903
echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
22904
Usually this means the macro was only invoked conditionally." >&2;}
22905
{ (exit 1); exit 1; }; }
22907
if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
22908
{ { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
22909
Usually this means the macro was only invoked conditionally." >&5
22910
echo "$as_me: error: conditional \"FRV\" was never defined.
22911
Usually this means the macro was only invoked conditionally." >&2;}
22912
{ (exit 1); exit 1; }; }
22914
if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
22915
{ { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
22916
Usually this means the macro was only invoked conditionally." >&5
22917
echo "$as_me: error: conditional \"S390\" was never defined.
22918
Usually this means the macro was only invoked conditionally." >&2;}
22919
{ (exit 1); exit 1; }; }
22921
if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
22922
{ { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
22923
Usually this means the macro was only invoked conditionally." >&5
22924
echo "$as_me: error: conditional \"X86_64\" was never defined.
22925
Usually this means the macro was only invoked conditionally." >&2;}
22926
{ (exit 1); exit 1; }; }
22928
if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
22929
{ { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
22930
Usually this means the macro was only invoked conditionally." >&5
22931
echo "$as_me: error: conditional \"SH\" was never defined.
22932
Usually this means the macro was only invoked conditionally." >&2;}
22933
{ (exit 1); exit 1; }; }
22935
if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
22936
{ { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
22937
Usually this means the macro was only invoked conditionally." >&5
22938
echo "$as_me: error: conditional \"SH64\" was never defined.
22939
Usually this means the macro was only invoked conditionally." >&2;}
22940
{ (exit 1); exit 1; }; }
22942
if test -z "${PA_TRUE}" && test -z "${PA_FALSE}"; then
22943
{ { echo "$as_me:$LINENO: error: conditional \"PA\" was never defined.
22944
Usually this means the macro was only invoked conditionally." >&5
22945
echo "$as_me: error: conditional \"PA\" was never defined.
22946
Usually this means the macro was only invoked conditionally." >&2;}
22947
{ (exit 1); exit 1; }; }
22950
: ${CONFIG_STATUS=./config.status}
22951
ac_clean_files_save=$ac_clean_files
22952
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22953
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22954
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22955
cat >$CONFIG_STATUS <<_ACEOF
22957
# Generated by $as_me.
22958
# Run this file to recreate the current configuration.
22959
# Compiler output produced by configure, useful for debugging
22960
# configure, is in config.log if it exists.
22963
ac_cs_recheck=false
22965
SHELL=\${CONFIG_SHELL-$SHELL}
22968
cat >>$CONFIG_STATUS <<\_ACEOF
22969
## --------------------- ##
22970
## M4sh Initialization. ##
22971
## --------------------- ##
22973
# Be Bourne compatible
22974
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22977
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22978
# is contrary to our usage. Disable this feature.
22979
alias -g '${1+"$@"}'='"$@"'
22980
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22983
DUALCASE=1; export DUALCASE # for MKS sh
22985
# Support unset when possible.
22986
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22993
# Work around bugs in pre-3.0 UWIN ksh.
22994
$as_unset ENV MAIL MAILPATH
23001
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23002
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23003
LC_TELEPHONE LC_TIME
23005
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23006
eval $as_var=C; export $as_var
23012
# Required to use basename.
23013
if expr a : '\(a\)' >/dev/null 2>&1; then
23019
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23020
as_basename=basename
23026
# Name of the executable.
23027
as_me=`$as_basename "$0" ||
23028
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23029
X"$0" : 'X\(//\)$' \| \
23030
X"$0" : 'X\(/\)$' \| \
23031
. : '\(.\)' 2>/dev/null ||
23033
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23034
/^X\/\(\/\/\)$/{ s//\1/; q; }
23035
/^X\/\(\/\).*/{ s//\1/; q; }
23039
# PATH needs CR, and LINENO needs CR and PATH.
23040
# Avoid depending upon Character Ranges.
23041
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23042
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23043
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23044
as_cr_digits='0123456789'
23045
as_cr_alnum=$as_cr_Letters$as_cr_digits
23047
# The user is always right.
23048
if test "${PATH_SEPARATOR+set}" != set; then
23049
echo "#! /bin/sh" >conf$$.sh
23050
echo "exit 0" >>conf$$.sh
23052
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23061
as_lineno_1=$LINENO
23062
as_lineno_2=$LINENO
23063
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23064
test "x$as_lineno_1" != "x$as_lineno_2" &&
23065
test "x$as_lineno_3" = "x$as_lineno_2" || {
23066
# Find who we are. Look in the path if we contain no path at all
23069
*[\\/]* ) as_myself=$0 ;;
23070
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23071
for as_dir in $PATH
23074
test -z "$as_dir" && as_dir=.
23075
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23080
# We did not find ourselves, most probably we were run as `sh COMMAND'
23081
# in which case we are not to be found in the path.
23082
if test "x$as_myself" = x; then
23085
if test ! -f "$as_myself"; then
23086
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23087
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23088
{ (exit 1); exit 1; }; }
23090
case $CONFIG_SHELL in
23092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23093
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23096
test -z "$as_dir" && as_dir=.
23097
for as_base in sh bash ksh sh5; do
23100
if ("$as_dir/$as_base" -c '
23101
as_lineno_1=$LINENO
23102
as_lineno_2=$LINENO
23103
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23104
test "x$as_lineno_1" != "x$as_lineno_2" &&
23105
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23106
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23107
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23108
CONFIG_SHELL=$as_dir/$as_base
23109
export CONFIG_SHELL
23110
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23118
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23119
# uniformly replaced by the line number. The first 'sed' inserts a
23120
# line-number line before each line; the second 'sed' does the real
23121
# work. The second script uses 'N' to pair each line-number line
23122
# with the numbered line, and appends trailing '-' during
23123
# substitution so that $LINENO is not a special case at line end.
23124
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23125
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23126
sed '=' <$as_myself |
23131
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23134
s,^['$as_cr_digits']*\n,,
23135
' >$as_me.lineno &&
23136
chmod +x $as_me.lineno ||
23137
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23138
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23139
{ (exit 1); exit 1; }; }
23141
# Don't try to exec as it changes $[0], causing all sort of problems
23142
# (the dirname of $[0] is not the place where we might find the
23143
# original and so on. Autoconf is especially sensible to this).
23145
# Exit status is that of the last command.
23150
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23151
*c*,-n*) ECHO_N= ECHO_C='
23153
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23154
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23157
if expr a : '\(a\)' >/dev/null 2>&1; then
23163
rm -f conf$$ conf$$.exe conf$$.file
23165
if ln -s conf$$.file conf$$ 2>/dev/null; then
23166
# We could just check for DJGPP; but this test a) works b) is more generic
23167
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23168
if test -f conf$$.exe; then
23169
# Don't use ln at all; we don't have any links
23174
elif ln conf$$.file conf$$ 2>/dev/null; then
23179
rm -f conf$$ conf$$.exe conf$$.file
23181
if mkdir -p . 2>/dev/null; then
23184
test -d ./-p && rmdir ./-p
23188
as_executable_p="test -f"
23190
# Sed expression to map a string onto a valid CPP name.
23191
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23193
# Sed expression to map a string onto a valid variable name.
23194
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23198
# We need space, tab and new line, in precisely that order.
23208
# Open the log real soon, to keep \$[0] and so on meaningful, and to
23209
# report actual input values of CONFIG_FILES etc. instead of their
23210
# values after options handling. Logging --version etc. is OK.
23214
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23215
## Running $as_me. ##
23220
This file was extended by libffi $as_me 2.1, which was
23221
generated by GNU Autoconf 2.59. Invocation command line was
23223
CONFIG_FILES = $CONFIG_FILES
23224
CONFIG_HEADERS = $CONFIG_HEADERS
23225
CONFIG_LINKS = $CONFIG_LINKS
23226
CONFIG_COMMANDS = $CONFIG_COMMANDS
23230
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23234
# Files that config.status was made for.
23235
if test -n "$ac_config_files"; then
23236
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23239
if test -n "$ac_config_headers"; then
23240
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23243
if test -n "$ac_config_links"; then
23244
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23247
if test -n "$ac_config_commands"; then
23248
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23251
cat >>$CONFIG_STATUS <<\_ACEOF
23254
\`$as_me' instantiates files from templates according to the
23255
current configuration.
23257
Usage: $0 [OPTIONS] [FILE]...
23259
-h, --help print this help, then exit
23260
-V, --version print version number, then exit
23261
-q, --quiet do not print progress messages
23262
-d, --debug don't remove temporary files
23263
--recheck update $as_me by reconfiguring in the same conditions
23264
--file=FILE[:TEMPLATE]
23265
instantiate the configuration file FILE
23266
--header=FILE[:TEMPLATE]
23267
instantiate the configuration header FILE
23269
Configuration files:
23272
Configuration headers:
23275
Configuration links:
23278
Configuration commands:
23281
Report bugs to <bug-autoconf@gnu.org>."
23284
cat >>$CONFIG_STATUS <<_ACEOF
23286
libffi config.status 2.1
23287
configured by $0, generated by GNU Autoconf 2.59,
23288
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23290
Copyright (C) 2003 Free Software Foundation, Inc.
23291
This config.status script is free software; the Free Software Foundation
23292
gives unlimited permission to copy, distribute and modify it."
23297
cat >>$CONFIG_STATUS <<\_ACEOF
23298
# If no file are specified by the user, then we need to provide default
23299
# value. By we need to know if files were specified by the user.
23305
ac_option=`expr "x$1" : 'x\([^=]*\)='`
23306
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23314
*) # This is not an option, so the user has probably given explicit
23317
ac_need_defaults=false;;
23321
# Handling of the options.
23323
cat >>$CONFIG_STATUS <<\_ACEOF
23324
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23326
--version | --vers* | -V )
23327
echo "$ac_cs_version"; exit 0 ;;
23329
# Conflict between --help and --header
23330
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
23331
Try \`$0 --help' for more information." >&5
23332
echo "$as_me: error: ambiguous option: $1
23333
Try \`$0 --help' for more information." >&2;}
23334
{ (exit 1); exit 1; }; };;
23335
--help | --hel | -h )
23336
echo "$ac_cs_usage"; exit 0 ;;
23337
--debug | --d* | -d )
23339
--file | --fil | --fi | --f )
23341
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23342
ac_need_defaults=false;;
23343
--header | --heade | --head | --hea )
23345
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23346
ac_need_defaults=false;;
23347
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23348
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23351
# This is an error.
23352
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23353
Try \`$0 --help' for more information." >&5
23354
echo "$as_me: error: unrecognized option: $1
23355
Try \`$0 --help' for more information." >&2;}
23356
{ (exit 1); exit 1; }; } ;;
23358
*) ac_config_targets="$ac_config_targets $1" ;;
23364
ac_configure_extra_args=
23366
if $ac_cs_silent; then
23368
ac_configure_extra_args="$ac_configure_extra_args --silent"
23372
cat >>$CONFIG_STATUS <<_ACEOF
23373
if \$ac_cs_recheck; then
23374
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23375
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23380
cat >>$CONFIG_STATUS <<_ACEOF
23382
# INIT-COMMANDS section.
23385
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23386
TARGETDIR="$TARGETDIR"
23392
cat >>$CONFIG_STATUS <<\_ACEOF
23393
for ac_config_target in $ac_config_targets
23395
case "$ac_config_target" in
23396
# Handling of arguments.
23397
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23398
"include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
23399
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23400
"include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
23401
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23402
"include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
23403
"src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
23404
"fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
23405
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23406
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23407
{ (exit 1); exit 1; }; };;
23411
# If the user did not use the arguments to specify the items to instantiate,
23412
# then the envvar interface is used. Set only those that are not.
23413
# We use the long form for the default assignment because of an extremely
23414
# bizarre bug on SunOS 4.1.3.
23415
if $ac_need_defaults; then
23416
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23417
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23418
test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23419
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23422
# Have a temporary directory for convenience. Make it in the build tree
23423
# simply because there is no reason to put it here, and in addition,
23424
# creating and moving files from /tmp can sometimes cause problems.
23425
# Create a temporary directory, and hook for its removal unless debugging.
23428
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23429
trap '{ (exit 1); exit 1; }' 1 2 13 15
23432
# Create a (secure) tmp directory for tmp files.
23435
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23436
test -n "$tmp" && test -d "$tmp"
23439
tmp=./confstat$$-$RANDOM
23440
(umask 077 && mkdir $tmp)
23443
echo "$me: cannot create a temporary directory in ." >&2
23444
{ (exit 1); exit 1; }
23449
cat >>$CONFIG_STATUS <<_ACEOF
23452
# CONFIG_FILES section.
23455
# No need to generate the scripts if there are no CONFIG_FILES.
23456
# This happens for instance when ./config.status config.h
23457
if test -n "\$CONFIG_FILES"; then
23458
# Protect against being on the right side of a sed subst in config.status.
23459
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23460
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23461
s,@SHELL@,$SHELL,;t t
23462
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23463
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23464
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23465
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23466
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23467
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23468
s,@exec_prefix@,$exec_prefix,;t t
23469
s,@prefix@,$prefix,;t t
23470
s,@program_transform_name@,$program_transform_name,;t t
23471
s,@bindir@,$bindir,;t t
23472
s,@sbindir@,$sbindir,;t t
23473
s,@libexecdir@,$libexecdir,;t t
23474
s,@datadir@,$datadir,;t t
23475
s,@sysconfdir@,$sysconfdir,;t t
23476
s,@sharedstatedir@,$sharedstatedir,;t t
23477
s,@localstatedir@,$localstatedir,;t t
23478
s,@libdir@,$libdir,;t t
23479
s,@includedir@,$includedir,;t t
23480
s,@oldincludedir@,$oldincludedir,;t t
23481
s,@infodir@,$infodir,;t t
23482
s,@mandir@,$mandir,;t t
23483
s,@build_alias@,$build_alias,;t t
23484
s,@host_alias@,$host_alias,;t t
23485
s,@target_alias@,$target_alias,;t t
23486
s,@DEFS@,$DEFS,;t t
23487
s,@ECHO_C@,$ECHO_C,;t t
23488
s,@ECHO_N@,$ECHO_N,;t t
23489
s,@ECHO_T@,$ECHO_T,;t t
23490
s,@LIBS@,$LIBS,;t t
23491
s,@build@,$build,;t t
23492
s,@build_cpu@,$build_cpu,;t t
23493
s,@build_vendor@,$build_vendor,;t t
23494
s,@build_os@,$build_os,;t t
23495
s,@host@,$host,;t t
23496
s,@host_cpu@,$host_cpu,;t t
23497
s,@host_vendor@,$host_vendor,;t t
23498
s,@host_os@,$host_os,;t t
23499
s,@target@,$target,;t t
23500
s,@target_cpu@,$target_cpu,;t t
23501
s,@target_vendor@,$target_vendor,;t t
23502
s,@target_os@,$target_os,;t t
23503
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23504
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23505
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23506
s,@CYGPATH_W@,$CYGPATH_W,;t t
23507
s,@PACKAGE@,$PACKAGE,;t t
23508
s,@VERSION@,$VERSION,;t t
23509
s,@ACLOCAL@,$ACLOCAL,;t t
23510
s,@AUTOCONF@,$AUTOCONF,;t t
23511
s,@AUTOMAKE@,$AUTOMAKE,;t t
23512
s,@AUTOHEADER@,$AUTOHEADER,;t t
23513
s,@MAKEINFO@,$MAKEINFO,;t t
23514
s,@install_sh@,$install_sh,;t t
23515
s,@STRIP@,$STRIP,;t t
23516
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23517
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23518
s,@mkdir_p@,$mkdir_p,;t t
23520
s,@SET_MAKE@,$SET_MAKE,;t t
23521
s,@am__leading_dot@,$am__leading_dot,;t t
23522
s,@AMTAR@,$AMTAR,;t t
23523
s,@am__tar@,$am__tar,;t t
23524
s,@am__untar@,$am__untar,;t t
23526
s,@CFLAGS@,$CFLAGS,;t t
23527
s,@LDFLAGS@,$LDFLAGS,;t t
23528
s,@CPPFLAGS@,$CPPFLAGS,;t t
23529
s,@ac_ct_CC@,$ac_ct_CC,;t t
23530
s,@EXEEXT@,$EXEEXT,;t t
23531
s,@OBJEXT@,$OBJEXT,;t t
23532
s,@DEPDIR@,$DEPDIR,;t t
23533
s,@am__include@,$am__include,;t t
23534
s,@am__quote@,$am__quote,;t t
23535
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23536
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23537
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23538
s,@CCDEPMODE@,$CCDEPMODE,;t t
23539
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23540
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23541
s,@CCAS@,$CCAS,;t t
23542
s,@CCASFLAGS@,$CCASFLAGS,;t t
23543
s,@EGREP@,$EGREP,;t t
23544
s,@LN_S@,$LN_S,;t t
23545
s,@ECHO@,$ECHO,;t t
23547
s,@ac_ct_AR@,$ac_ct_AR,;t t
23548
s,@RANLIB@,$RANLIB,;t t
23549
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23552
s,@CXXFLAGS@,$CXXFLAGS,;t t
23553
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23554
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23555
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23556
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23557
s,@CXXCPP@,$CXXCPP,;t t
23559
s,@FFLAGS@,$FFLAGS,;t t
23560
s,@ac_ct_F77@,$ac_ct_F77,;t t
23561
s,@LIBTOOL@,$LIBTOOL,;t t
23562
s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
23563
s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
23564
s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
23565
s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
23566
s,@SPARC_TRUE@,$SPARC_TRUE,;t t
23567
s,@SPARC_FALSE@,$SPARC_FALSE,;t t
23568
s,@X86_TRUE@,$X86_TRUE,;t t
23569
s,@X86_FALSE@,$X86_FALSE,;t t
23570
s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
23571
s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
23572
s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
23573
s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
23574
s,@X86_FREEBSD_TRUE@,$X86_FREEBSD_TRUE,;t t
23575
s,@X86_FREEBSD_FALSE@,$X86_FREEBSD_FALSE,;t t
23576
s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
23577
s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
23578
s,@IA64_TRUE@,$IA64_TRUE,;t t
23579
s,@IA64_FALSE@,$IA64_FALSE,;t t
23580
s,@M32R_TRUE@,$M32R_TRUE,;t t
23581
s,@M32R_FALSE@,$M32R_FALSE,;t t
23582
s,@M68K_TRUE@,$M68K_TRUE,;t t
23583
s,@M68K_FALSE@,$M68K_FALSE,;t t
23584
s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
23585
s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
23586
s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
23587
s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
23588
s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
23589
s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
23590
s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
23591
s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
23592
s,@ARM_TRUE@,$ARM_TRUE,;t t
23593
s,@ARM_FALSE@,$ARM_FALSE,;t t
23594
s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
23595
s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
23596
s,@FRV_TRUE@,$FRV_TRUE,;t t
23597
s,@FRV_FALSE@,$FRV_FALSE,;t t
23598
s,@S390_TRUE@,$S390_TRUE,;t t
23599
s,@S390_FALSE@,$S390_FALSE,;t t
23600
s,@X86_64_TRUE@,$X86_64_TRUE,;t t
23601
s,@X86_64_FALSE@,$X86_64_FALSE,;t t
23602
s,@SH_TRUE@,$SH_TRUE,;t t
23603
s,@SH_FALSE@,$SH_FALSE,;t t
23604
s,@SH64_TRUE@,$SH64_TRUE,;t t
23605
s,@SH64_FALSE@,$SH64_FALSE,;t t
23606
s,@PA_TRUE@,$PA_TRUE,;t t
23607
s,@PA_FALSE@,$PA_FALSE,;t t
23608
s,@ALLOCA@,$ALLOCA,;t t
23609
s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
23610
s,@TARGET@,$TARGET,;t t
23611
s,@TARGETDIR@,$TARGETDIR,;t t
23612
s,@LIBOBJS@,$LIBOBJS,;t t
23613
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23618
cat >>$CONFIG_STATUS <<\_ACEOF
23619
# Split the substitutions into bite-sized pieces for seds with
23620
# small command number limits, like on Digital OSF/1 and HP-UX.
23621
ac_max_sed_lines=48
23622
ac_sed_frag=1 # Number of current file.
23623
ac_beg=1 # First line for current file.
23624
ac_end=$ac_max_sed_lines # Line after last line for current file.
23627
while $ac_more_lines; do
23628
if test $ac_beg -gt 1; then
23629
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23631
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23633
if test ! -s $tmp/subs.frag; then
23634
ac_more_lines=false
23636
# The purpose of the label and of the branching condition is to
23637
# speed up the sed processing (if there are no `@' at all, there
23638
# is no need to browse any of the substitutions).
23639
# These are the two extra sed commands mentioned above.
23641
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23642
if test -z "$ac_sed_cmds"; then
23643
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23645
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23647
ac_sed_frag=`expr $ac_sed_frag + 1`
23649
ac_end=`expr $ac_end + $ac_max_sed_lines`
23652
if test -z "$ac_sed_cmds"; then
23655
fi # test -n "$CONFIG_FILES"
23658
cat >>$CONFIG_STATUS <<\_ACEOF
23659
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23660
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23662
- | *:- | *:-:* ) # input from stdin
23664
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23665
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23666
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23667
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23668
* ) ac_file_in=$ac_file.in ;;
23671
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23672
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23673
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23674
X"$ac_file" : 'X\(//\)[^/]' \| \
23675
X"$ac_file" : 'X\(//\)$' \| \
23676
X"$ac_file" : 'X\(/\)' \| \
23677
. : '\(.\)' 2>/dev/null ||
23679
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23680
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23681
/^X\(\/\/\)$/{ s//\1/; q; }
23682
/^X\(\/\).*/{ s//\1/; q; }
23684
{ if $as_mkdir_p; then
23689
while test ! -d "$as_dir"; do
23690
as_dirs="$as_dir $as_dirs"
23691
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23692
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23693
X"$as_dir" : 'X\(//\)[^/]' \| \
23694
X"$as_dir" : 'X\(//\)$' \| \
23695
X"$as_dir" : 'X\(/\)' \| \
23696
. : '\(.\)' 2>/dev/null ||
23698
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23699
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23700
/^X\(\/\/\)$/{ s//\1/; q; }
23701
/^X\(\/\).*/{ s//\1/; q; }
23704
test ! -n "$as_dirs" || mkdir $as_dirs
23705
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23706
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23707
{ (exit 1); exit 1; }; }; }
23711
if test "$ac_dir" != .; then
23712
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23713
# A "../" for each directory in $ac_dir_suffix.
23714
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23716
ac_dir_suffix= ac_top_builddir=
23720
.) # No --srcdir option. We are building in place.
23722
if test -z "$ac_top_builddir"; then
23725
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23727
[\\/]* | ?:[\\/]* ) # Absolute path.
23728
ac_srcdir=$srcdir$ac_dir_suffix;
23729
ac_top_srcdir=$srcdir ;;
23730
*) # Relative path.
23731
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23732
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23735
# Do not use `cd foo && pwd` to compute absolute paths, because
23736
# the directories may not exist.
23738
.) ac_abs_builddir="$ac_dir";;
23741
.) ac_abs_builddir=`pwd`;;
23742
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23743
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23746
case $ac_abs_builddir in
23747
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23749
case ${ac_top_builddir}. in
23750
.) ac_abs_top_builddir=$ac_abs_builddir;;
23751
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23752
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23755
case $ac_abs_builddir in
23756
.) ac_abs_srcdir=$ac_srcdir;;
23759
.) ac_abs_srcdir=$ac_abs_builddir;;
23760
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23761
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23764
case $ac_abs_builddir in
23765
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23767
case $ac_top_srcdir in
23768
.) ac_abs_top_srcdir=$ac_abs_builddir;;
23769
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23770
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23776
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23777
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23780
if test x"$ac_file" != x-; then
23781
{ echo "$as_me:$LINENO: creating $ac_file" >&5
23782
echo "$as_me: creating $ac_file" >&6;}
23785
# Let's still pretend it is `configure' which instantiates (i.e., don't
23786
# use $as_me), people would be surprised to read:
23787
# /* config.h. Generated by config.status. */
23788
if test x"$ac_file" = x-; then
23791
configure_input="$ac_file. "
23793
configure_input=$configure_input"Generated from `echo $ac_file_in |
23794
sed 's,.*/,,'` by configure."
23796
# First look for the input files in the build tree, otherwise in the
23798
ac_file_inputs=`IFS=:
23799
for f in $ac_file_in; do
23801
-) echo $tmp/stdin ;;
23803
# Absolute (can't be DOS-style, as IFS=:)
23804
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23805
echo "$as_me: error: cannot find input file: $f" >&2;}
23806
{ (exit 1); exit 1; }; }
23809
if test -f "$f"; then
23812
elif test -f "$srcdir/$f"; then
23817
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23818
echo "$as_me: error: cannot find input file: $f" >&2;}
23819
{ (exit 1); exit 1; }; }
23822
done` || { (exit 1); exit 1; }
23824
cat >>$CONFIG_STATUS <<_ACEOF
23828
cat >>$CONFIG_STATUS <<\_ACEOF
23830
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23831
s,@configure_input@,$configure_input,;t t
23832
s,@srcdir@,$ac_srcdir,;t t
23833
s,@abs_srcdir@,$ac_abs_srcdir,;t t
23834
s,@top_srcdir@,$ac_top_srcdir,;t t
23835
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23836
s,@builddir@,$ac_builddir,;t t
23837
s,@abs_builddir@,$ac_abs_builddir,;t t
23838
s,@top_builddir@,$ac_top_builddir,;t t
23839
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23840
s,@INSTALL@,$ac_INSTALL,;t t
23841
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23843
if test x"$ac_file" != x-; then
23844
mv $tmp/out $ac_file
23852
cat >>$CONFIG_STATUS <<\_ACEOF
23855
# CONFIG_HEADER section.
23858
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23859
# NAME is the cpp macro being defined and VALUE is the value it is being given.
23861
# ac_d sets the value in "#define NAME VALUE" lines.
23862
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23863
ac_dB='[ ].*$,\1#\2'
23866
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23867
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23868
ac_uB='$,\1#\2define\3'
23872
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23873
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23875
- | *:- | *:-:* ) # input from stdin
23877
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23878
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23879
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23880
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23881
* ) ac_file_in=$ac_file.in ;;
23884
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23885
echo "$as_me: creating $ac_file" >&6;}
23887
# First look for the input files in the build tree, otherwise in the
23889
ac_file_inputs=`IFS=:
23890
for f in $ac_file_in; do
23892
-) echo $tmp/stdin ;;
23894
# Absolute (can't be DOS-style, as IFS=:)
23895
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23896
echo "$as_me: error: cannot find input file: $f" >&2;}
23897
{ (exit 1); exit 1; }; }
23898
# Do quote $f, to prevent DOS paths from being IFS'd.
23901
if test -f "$f"; then
23904
elif test -f "$srcdir/$f"; then
23909
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23910
echo "$as_me: error: cannot find input file: $f" >&2;}
23911
{ (exit 1); exit 1; }; }
23914
done` || { (exit 1); exit 1; }
23915
# Remove the trailing spaces.
23916
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23920
# Transform confdefs.h into two sed scripts, `conftest.defines' and
23921
# `conftest.undefs', that substitutes the proper values into
23922
# config.h.in to produce config.h. The first handles `#define'
23923
# templates, and the second `#undef' templates.
23924
# And first: Protect against being on the right side of a sed subst in
23925
# config.status. Protect against being in an unquoted here document
23926
# in config.status.
23927
rm -f conftest.defines conftest.undefs
23928
# Using a here document instead of a string reduces the quoting nightmare.
23929
# Putting comments in sed scripts is not portable.
23931
# `end' is used to avoid that the second main sed command (meant for
23932
# 0-ary CPP macros) applies to n-ary macro definitions.
23933
# See the Autoconf documentation for `clear'.
23934
cat >confdef2sed.sed <<\_ACEOF
23939
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23941
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23944
# If some macros were called several times there might be several times
23945
# the same #defines, which is useless. Nevertheless, we may not want to
23946
# sort them, since we want the *last* AC-DEFINE to be honored.
23947
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23948
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23949
rm -f confdef2sed.sed
23951
# This sed command replaces #undef with comments. This is necessary, for
23952
# example, in the case of _POSIX_SOURCE, which is predefined and required
23953
# on some systems where configure will not decide to define it.
23954
cat >>conftest.undefs <<\_ACEOF
23955
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23958
# Break up conftest.defines because some shells have a limit on the size
23959
# of here documents, and old seds have small limits too (100 cmds).
23960
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23961
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23962
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23963
echo ' :' >>$CONFIG_STATUS
23964
rm -f conftest.tail
23965
while grep . conftest.defines >/dev/null
23967
# Write a limited-size here document to $tmp/defines.sed.
23968
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23969
# Speed up: don't consider the non `#define' lines.
23970
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23971
# Work around the forget-to-reset-the-flag bug.
23972
echo 't clr' >>$CONFIG_STATUS
23973
echo ': clr' >>$CONFIG_STATUS
23974
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23976
sed -f $tmp/defines.sed $tmp/in >$tmp/out
23978
mv $tmp/out $tmp/in
23980
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23981
rm -f conftest.defines
23982
mv conftest.tail conftest.defines
23984
rm -f conftest.defines
23985
echo ' fi # grep' >>$CONFIG_STATUS
23986
echo >>$CONFIG_STATUS
23988
# Break up conftest.undefs because some shells have a limit on the size
23989
# of here documents, and old seds have small limits too (100 cmds).
23990
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23991
rm -f conftest.tail
23992
while grep . conftest.undefs >/dev/null
23994
# Write a limited-size here document to $tmp/undefs.sed.
23995
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23996
# Speed up: don't consider the non `#undef'
23997
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23998
# Work around the forget-to-reset-the-flag bug.
23999
echo 't clr' >>$CONFIG_STATUS
24000
echo ': clr' >>$CONFIG_STATUS
24001
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24003
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24005
mv $tmp/out $tmp/in
24007
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24008
rm -f conftest.undefs
24009
mv conftest.tail conftest.undefs
24011
rm -f conftest.undefs
24013
cat >>$CONFIG_STATUS <<\_ACEOF
24014
# Let's still pretend it is `configure' which instantiates (i.e., don't
24015
# use $as_me), people would be surprised to read:
24016
# /* config.h. Generated by config.status. */
24017
if test x"$ac_file" = x-; then
24018
echo "/* Generated by configure. */" >$tmp/config.h
24020
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24022
cat $tmp/in >>$tmp/config.h
24024
if test x"$ac_file" != x-; then
24025
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24026
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24027
echo "$as_me: $ac_file is unchanged" >&6;}
24029
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24030
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24031
X"$ac_file" : 'X\(//\)[^/]' \| \
24032
X"$ac_file" : 'X\(//\)$' \| \
24033
X"$ac_file" : 'X\(/\)' \| \
24034
. : '\(.\)' 2>/dev/null ||
24036
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24037
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24038
/^X\(\/\/\)$/{ s//\1/; q; }
24039
/^X\(\/\).*/{ s//\1/; q; }
24041
{ if $as_mkdir_p; then
24046
while test ! -d "$as_dir"; do
24047
as_dirs="$as_dir $as_dirs"
24048
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24049
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24050
X"$as_dir" : 'X\(//\)[^/]' \| \
24051
X"$as_dir" : 'X\(//\)$' \| \
24052
X"$as_dir" : 'X\(/\)' \| \
24053
. : '\(.\)' 2>/dev/null ||
24055
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24056
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24057
/^X\(\/\/\)$/{ s//\1/; q; }
24058
/^X\(\/\).*/{ s//\1/; q; }
24061
test ! -n "$as_dirs" || mkdir $as_dirs
24062
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24063
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24064
{ (exit 1); exit 1; }; }; }
24067
mv $tmp/config.h $ac_file
24071
rm -f $tmp/config.h
24073
# Compute $ac_file's index in $config_headers.
24075
for _am_header in $config_headers :; do
24076
case $_am_header in
24077
$ac_file | $ac_file:* )
24080
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
24083
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24084
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24085
X$ac_file : 'X\(//\)[^/]' \| \
24086
X$ac_file : 'X\(//\)$' \| \
24087
X$ac_file : 'X\(/\)' \| \
24088
. : '\(.\)' 2>/dev/null ||
24090
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24091
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24092
/^X\(\/\/\)$/{ s//\1/; q; }
24093
/^X\(\/\).*/{ s//\1/; q; }
24094
s/.*/./; q'`/stamp-h$_am_stamp_count
24097
cat >>$CONFIG_STATUS <<\_ACEOF
24100
# CONFIG_LINKS section.
24103
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24104
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24105
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24107
{ echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24108
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24110
if test ! -r $srcdir/$ac_source; then
24111
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24112
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24113
{ (exit 1); exit 1; }; }
24117
# Make relative symlinks.
24118
ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24119
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24120
X"$ac_dest" : 'X\(//\)[^/]' \| \
24121
X"$ac_dest" : 'X\(//\)$' \| \
24122
X"$ac_dest" : 'X\(/\)' \| \
24123
. : '\(.\)' 2>/dev/null ||
24125
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24126
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24127
/^X\(\/\/\)$/{ s//\1/; q; }
24128
/^X\(\/\).*/{ s//\1/; q; }
24130
{ if $as_mkdir_p; then
24131
mkdir -p "$ac_dest_dir"
24133
as_dir="$ac_dest_dir"
24135
while test ! -d "$as_dir"; do
24136
as_dirs="$as_dir $as_dirs"
24137
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24138
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24139
X"$as_dir" : 'X\(//\)[^/]' \| \
24140
X"$as_dir" : 'X\(//\)$' \| \
24141
X"$as_dir" : 'X\(/\)' \| \
24142
. : '\(.\)' 2>/dev/null ||
24144
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24145
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24146
/^X\(\/\/\)$/{ s//\1/; q; }
24147
/^X\(\/\).*/{ s//\1/; q; }
24150
test ! -n "$as_dirs" || mkdir $as_dirs
24151
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24152
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24153
{ (exit 1); exit 1; }; }; }
24157
if test "$ac_dest_dir" != .; then
24158
ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24159
# A "../" for each directory in $ac_dir_suffix.
24160
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24162
ac_dir_suffix= ac_top_builddir=
24166
.) # No --srcdir option. We are building in place.
24168
if test -z "$ac_top_builddir"; then
24171
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24173
[\\/]* | ?:[\\/]* ) # Absolute path.
24174
ac_srcdir=$srcdir$ac_dir_suffix;
24175
ac_top_srcdir=$srcdir ;;
24176
*) # Relative path.
24177
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24178
ac_top_srcdir=$ac_top_builddir$srcdir ;;
24181
# Do not use `cd foo && pwd` to compute absolute paths, because
24182
# the directories may not exist.
24184
.) ac_abs_builddir="$ac_dest_dir";;
24186
case "$ac_dest_dir" in
24187
.) ac_abs_builddir=`pwd`;;
24188
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24189
*) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24192
case $ac_abs_builddir in
24193
.) ac_abs_top_builddir=${ac_top_builddir}.;;
24195
case ${ac_top_builddir}. in
24196
.) ac_abs_top_builddir=$ac_abs_builddir;;
24197
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24198
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24201
case $ac_abs_builddir in
24202
.) ac_abs_srcdir=$ac_srcdir;;
24205
.) ac_abs_srcdir=$ac_abs_builddir;;
24206
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24207
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24210
case $ac_abs_builddir in
24211
.) ac_abs_top_srcdir=$ac_top_srcdir;;
24213
case $ac_top_srcdir in
24214
.) ac_abs_top_srcdir=$ac_abs_builddir;;
24215
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24216
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24222
[\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24223
*) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24226
# Try a symlink, then a hard link, then a copy.
24227
ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24228
ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24229
cp -p $srcdir/$ac_source $ac_dest ||
24230
{ { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24231
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24232
{ (exit 1); exit 1; }; }
24235
cat >>$CONFIG_STATUS <<\_ACEOF
24238
# CONFIG_COMMANDS section.
24240
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24241
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24242
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24243
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24244
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24245
X"$ac_dest" : 'X\(//\)[^/]' \| \
24246
X"$ac_dest" : 'X\(//\)$' \| \
24247
X"$ac_dest" : 'X\(/\)' \| \
24248
. : '\(.\)' 2>/dev/null ||
24250
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24251
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24252
/^X\(\/\/\)$/{ s//\1/; q; }
24253
/^X\(\/\).*/{ s//\1/; q; }
24255
{ if $as_mkdir_p; then
24260
while test ! -d "$as_dir"; do
24261
as_dirs="$as_dir $as_dirs"
24262
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24263
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24264
X"$as_dir" : 'X\(//\)[^/]' \| \
24265
X"$as_dir" : 'X\(//\)$' \| \
24266
X"$as_dir" : 'X\(/\)' \| \
24267
. : '\(.\)' 2>/dev/null ||
24269
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24270
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24271
/^X\(\/\/\)$/{ s//\1/; q; }
24272
/^X\(\/\).*/{ s//\1/; q; }
24275
test ! -n "$as_dirs" || mkdir $as_dirs
24276
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24277
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24278
{ (exit 1); exit 1; }; }; }
24282
if test "$ac_dir" != .; then
24283
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24284
# A "../" for each directory in $ac_dir_suffix.
24285
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24287
ac_dir_suffix= ac_top_builddir=
24291
.) # No --srcdir option. We are building in place.
24293
if test -z "$ac_top_builddir"; then
24296
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24298
[\\/]* | ?:[\\/]* ) # Absolute path.
24299
ac_srcdir=$srcdir$ac_dir_suffix;
24300
ac_top_srcdir=$srcdir ;;
24301
*) # Relative path.
24302
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24303
ac_top_srcdir=$ac_top_builddir$srcdir ;;
24306
# Do not use `cd foo && pwd` to compute absolute paths, because
24307
# the directories may not exist.
24309
.) ac_abs_builddir="$ac_dir";;
24312
.) ac_abs_builddir=`pwd`;;
24313
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24314
*) ac_abs_builddir=`pwd`/"$ac_dir";;
24317
case $ac_abs_builddir in
24318
.) ac_abs_top_builddir=${ac_top_builddir}.;;
24320
case ${ac_top_builddir}. in
24321
.) ac_abs_top_builddir=$ac_abs_builddir;;
24322
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24323
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24326
case $ac_abs_builddir in
24327
.) ac_abs_srcdir=$ac_srcdir;;
24330
.) ac_abs_srcdir=$ac_abs_builddir;;
24331
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24332
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24335
case $ac_abs_builddir in
24336
.) ac_abs_top_srcdir=$ac_top_srcdir;;
24338
case $ac_top_srcdir in
24339
.) ac_abs_top_srcdir=$ac_abs_builddir;;
24340
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24341
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24346
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24347
echo "$as_me: executing $ac_dest commands" >&6;}
24349
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24350
# Strip MF so we end up with the name of the file.
24351
mf=`echo "$mf" | sed -e 's/:.*$//'`
24352
# Check whether this is an Automake generated Makefile or not.
24353
# We used to match only the files named `Makefile.in', but
24354
# some people rename them; so instead we look at the file content.
24355
# Grep'ing the first line is not enough: some people post-process
24356
# each Makefile.in and add a new line on top of each file to say so.
24357
# So let's grep whole file.
24358
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24359
dirpart=`(dirname "$mf") 2>/dev/null ||
24360
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24361
X"$mf" : 'X\(//\)[^/]' \| \
24362
X"$mf" : 'X\(//\)$' \| \
24363
X"$mf" : 'X\(/\)' \| \
24364
. : '\(.\)' 2>/dev/null ||
24366
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24367
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24368
/^X\(\/\/\)$/{ s//\1/; q; }
24369
/^X\(\/\).*/{ s//\1/; q; }
24374
# Extract the definition of DEPDIR, am__include, and am__quote
24375
# from the Makefile without running `make'.
24376
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24377
test -z "$DEPDIR" && continue
24378
am__include=`sed -n 's/^am__include = //p' < "$mf"`
24379
test -z "am__include" && continue
24380
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24381
# When using ansi2knr, U may be empty or an underscore; expand it
24382
U=`sed -n 's/^U = //p' < "$mf"`
24383
# Find all dependency output files, they are included files with
24384
# $(DEPDIR) in their names. We invoke sed twice because it is the
24385
# simplest approach to changing $(DEPDIR) to its actual value in the
24387
for file in `sed -n "
24388
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24389
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24390
# Make sure the directory exists.
24391
test -f "$dirpart/$file" && continue
24392
fdir=`(dirname "$file") 2>/dev/null ||
24393
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24394
X"$file" : 'X\(//\)[^/]' \| \
24395
X"$file" : 'X\(//\)$' \| \
24396
X"$file" : 'X\(/\)' \| \
24397
. : '\(.\)' 2>/dev/null ||
24399
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24400
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24401
/^X\(\/\/\)$/{ s//\1/; q; }
24402
/^X\(\/\).*/{ s//\1/; q; }
24404
{ if $as_mkdir_p; then
24405
mkdir -p $dirpart/$fdir
24407
as_dir=$dirpart/$fdir
24409
while test ! -d "$as_dir"; do
24410
as_dirs="$as_dir $as_dirs"
24411
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24412
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24413
X"$as_dir" : 'X\(//\)[^/]' \| \
24414
X"$as_dir" : 'X\(//\)$' \| \
24415
X"$as_dir" : 'X\(/\)' \| \
24416
. : '\(.\)' 2>/dev/null ||
24418
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24419
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
24420
/^X\(\/\/\)$/{ s//\1/; q; }
24421
/^X\(\/\).*/{ s//\1/; q; }
24424
test ! -n "$as_dirs" || mkdir $as_dirs
24425
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24426
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24427
{ (exit 1); exit 1; }; }; }
24429
# echo "creating $dirpart/$file"
24430
echo '# dummy' > "$dirpart/$file"
24434
include ) test -d include || mkdir include ;;
24436
test -d src || mkdir src
24437
test -d src/$TARGETDIR || mkdir src/$TARGETDIR
24443
cat >>$CONFIG_STATUS <<\_ACEOF
24445
{ (exit 0); exit 0; }
24447
chmod +x $CONFIG_STATUS
24448
ac_clean_files=$ac_clean_files_save
24451
# configure is writing to config.log, and then calls config.status.
24452
# config.status does its own redirection, appending to config.log.
24453
# Unfortunately, on DOS this fails, as config.log is still kept open
24454
# by configure, so config.status won't be able to write to it; its
24455
# output is simply discarded. So we exec the FD to /dev/null,
24456
# effectively closing config.log, so it can be properly (re)opened and
24457
# appended to by config.status. When coming back to configure, we
24458
# need to make the FD available again.
24459
if test "$no_create" != yes; then
24461
ac_config_status_args=
24462
test "$silent" = yes &&
24463
ac_config_status_args="$ac_config_status_args --quiet"
24465
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24467
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
24468
# would make configure fail if this is the last instruction.
24469
$ac_cs_success || { (exit 1); exit 1; }