2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
echo_test_string="`eval $cmd`" &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
428
ac_unique_file="src/ipmitool.c"
429
ac_unique_file="src/ipmitool.c"
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE ac_configure_args CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LN_S RPMBUILD SED CPP EGREP LIBOBJS POW_LIB ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ARCH OS PSTAMP BASEDIR INTF_LAN INTF_LAN_LIB INTF_LANPLUS INTF_LANPLUS_LIB INTF_OPEN INTF_OPEN_LIB INTF_IMB INTF_IMB_LIB INTF_LIPMI INTF_LIPMI_LIB INTF_BMC INTF_BMC_LIB IPMITOOL_INTF_LIB IPMIEVD_TRUE IPMIEVD_FALSE IPMIEVD_BIN 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_CPP_set=${CPP+set}
925
ac_env_CPP_value=$CPP
926
ac_cv_env_CPP_set=${CPP+set}
927
ac_cv_env_CPP_value=$CPP
928
ac_env_CXX_set=${CXX+set}
929
ac_env_CXX_value=$CXX
930
ac_cv_env_CXX_set=${CXX+set}
931
ac_cv_env_CXX_value=$CXX
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_env_CXXFLAGS_value=$CXXFLAGS
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
ac_env_CXXCPP_set=${CXXCPP+set}
937
ac_env_CXXCPP_value=$CXXCPP
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
ac_cv_env_CXXCPP_value=$CXXCPP
940
ac_env_F77_set=${F77+set}
941
ac_env_F77_value=$F77
942
ac_cv_env_F77_set=${F77+set}
943
ac_cv_env_F77_value=$F77
944
ac_env_FFLAGS_set=${FFLAGS+set}
945
ac_env_FFLAGS_value=$FFLAGS
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
ac_cv_env_FFLAGS_value=$FFLAGS
950
# Report the --help message.
952
if test "$ac_init_help" = "long"; then
953
# Omit some internal or obsolete options to make the list less imposing.
954
# This message is too long to be a string in the A/UX 3.1 sh.
956
\`configure' configures this package to adapt to many kinds of systems.
958
Usage: $0 [OPTION]... [VAR=VALUE]...
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
961
VAR=VALUE. See below for descriptions of some of the useful variables.
963
Defaults for the options are specified in brackets.
966
-h, --help display this help and exit
967
--help=short display options specific to this package
968
--help=recursive display the short help of all the included packages
969
-V, --version display version information and exit
970
-q, --quiet, --silent do not print \`checking...' messages
971
--cache-file=FILE cache test results in FILE [disabled]
972
-C, --config-cache alias for \`--cache-file=config.cache'
973
-n, --no-create do not create output files
974
--srcdir=DIR find the sources in DIR [configure dir or \`..']
979
Installation directories:
980
--prefix=PREFIX install architecture-independent files in PREFIX
982
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985
By default, \`make install' will install all the files in
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988
for instance \`--prefix=\$HOME'.
990
For better control, use the options below.
992
Fine tuning of the installation directories:
993
--bindir=DIR user executables [EPREFIX/bin]
994
--sbindir=DIR system admin executables [EPREFIX/sbin]
995
--libexecdir=DIR program executables [EPREFIX/libexec]
996
--datadir=DIR read-only architecture-independent data [PREFIX/share]
997
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000
--libdir=DIR object code libraries [EPREFIX/lib]
1001
--includedir=DIR C header files [PREFIX/include]
1002
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1003
--infodir=DIR info documentation [PREFIX/info]
1004
--mandir=DIR man documentation [PREFIX/man]
1010
--program-prefix=PREFIX prepend PREFIX to installed program names
1011
--program-suffix=SUFFIX append SUFFIX to installed program names
1012
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
--build=BUILD configure for building on BUILD [guessed]
1016
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1017
--target=TARGET configure for building compilers for TARGET [HOST]
1021
if test -n "$ac_init_help"; then
1026
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028
--disable-dependency-tracking Speeds up one-time builds
1029
--enable-dependency-tracking Do not reject slow dependency extractors
1030
--enable-shared[=PKGS]
1031
build shared libraries [default=yes]
1032
--enable-static[=PKGS]
1033
build static libraries [default=yes]
1034
--enable-fast-install[=PKGS]
1035
optimize for fast installation [default=yes]
1036
--disable-libtool-lock avoid locking (might break parallel builds)
1037
--enable-internal-md5 enable internal MD5 library [default=no]
1038
--enable-intf-lan enable IPMIv1.5 LAN interface [default=yes]
1039
--enable-intf-lanplus enable IPMIv2.0 RMCP+ LAN interface [default=auto]
1040
--enable-intf-open enable Linux OpenIPMI interface [default=auto]
1041
--enable-intf-imb enable Intel IMB driver interface [default=auto]
1042
--enable-intf-lipmi enable Solaris 9 x86 IPMI interface [default=no]
1043
--enable-intf-bmc enable Solaris 10 x86 IPMI interface [default=auto]
1044
--enable-ipmishell enable IPMI shell interface [default=yes]
1045
--enable-ipmievd enable IPMI Event daemon [default=auto]
1046
--enable-buildcheck enable -Wall -Werror for build testing [default=no]
1049
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1051
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1052
--with-pic try to use only PIC/non-PIC objects [default=use
1055
include additional configurations [automatic]
1056
--with-kerneldir=DIR set kernel include path to DIR
1058
Some influential environment variables:
1059
CC C compiler command
1060
CFLAGS C compiler flags
1061
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062
nonstandard directory <lib dir>
1063
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064
headers in a nonstandard directory <include dir>
1066
CXX C++ compiler command
1067
CXXFLAGS C++ compiler flags
1068
CXXCPP C++ preprocessor
1069
F77 Fortran 77 compiler command
1070
FFLAGS Fortran 77 compiler flags
1072
Use these variables to override the choices made by `configure' or to help
1073
it to find libraries and programs with nonstandard names/locations.
1078
if test "$ac_init_help" = "recursive"; then
1079
# If there are subdirs, report their specific --help.
1081
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082
test -d $ac_dir || continue
1085
if test "$ac_dir" != .; then
1086
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087
# A "../" for each directory in $ac_dir_suffix.
1088
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090
ac_dir_suffix= ac_top_builddir=
1094
.) # No --srcdir option. We are building in place.
1096
if test -z "$ac_top_builddir"; then
1099
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101
[\\/]* | ?:[\\/]* ) # Absolute path.
1102
ac_srcdir=$srcdir$ac_dir_suffix;
1103
ac_top_srcdir=$srcdir ;;
1105
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109
# Do not use `cd foo && pwd` to compute absolute paths, because
1110
# the directories may not exist.
1112
.) ac_abs_builddir="$ac_dir";;
1115
.) ac_abs_builddir=`pwd`;;
1116
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1120
case $ac_abs_builddir in
1121
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1123
case ${ac_top_builddir}. in
1124
.) ac_abs_top_builddir=$ac_abs_builddir;;
1125
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129
case $ac_abs_builddir in
1130
.) ac_abs_srcdir=$ac_srcdir;;
1133
.) ac_abs_srcdir=$ac_abs_builddir;;
1134
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138
case $ac_abs_builddir in
1139
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1141
case $ac_top_srcdir in
1142
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1143
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149
# Check for guested configure; otherwise get Cygnus style configure.
1150
if test -f $ac_srcdir/configure.gnu; then
1152
$SHELL $ac_srcdir/configure.gnu --help=recursive
1153
elif test -f $ac_srcdir/configure; then
1155
$SHELL $ac_srcdir/configure --help=recursive
1156
elif test -f $ac_srcdir/configure.ac ||
1157
test -f $ac_srcdir/configure.in; then
1159
$ac_configure --help
1161
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167
test -n "$ac_init_help" && exit 0
1168
if $ac_init_version; then
1171
Copyright (C) 2003 Free Software Foundation, Inc.
1172
This configure script is free software; the Free Software Foundation
1173
gives unlimited permission to copy, distribute and modify it.
1179
This file contains any messages produced by compilers while
1180
running configure, to aid debugging if configure makes a mistake.
1182
It was created by $as_me, which was
1183
generated by GNU Autoconf 2.59. Invocation command line was
1194
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217
test -z "$as_dir" && as_dir=.
1218
echo "PATH: $as_dir"
1233
# Keep a trace of the command line.
1234
# Strip out --no-create and --no-recursion so they do not pile up.
1235
# Strip out --silent because we don't want to record it for future runs.
1236
# Also quote any args containing shell meta-characters.
1237
# Make two passes to allow for proper duplicate-argument suppression.
1242
ac_must_keep_next=false
1248
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250
| -silent | --silent | --silen | --sile | --sil)
1252
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259
if test $ac_must_keep_next = true; then
1260
ac_must_keep_next=false # Got value, back to normal.
1263
*=* | --config-cache | -C | -disable-* | --disable-* \
1264
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266
| -with-* | --with-* | -without-* | --without-* | --x)
1267
case "$ac_configure_args0 " in
1268
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271
-* ) ac_must_keep_next=true ;;
1274
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275
# Get rid of the leading space.
1281
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
# When interrupted or exit'd, cleanup temporary files, and complete
1285
# config.log. We remove comments because anyway the quotes in there
1286
# would cause problems or look ugly.
1287
# WARNING: Be sure not to use single quotes in there, as some shells,
1288
# such as our DU 5.0 friend, will then `close' the trap.
1289
trap 'exit_status=$?
1290
# Save into config.log some information that might help in debugging.
1295
## ---------------- ##
1296
## Cache variables. ##
1297
## ---------------- ##
1300
# The following way of writing the cache mishandles newlines in values,
1303
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318
## ----------------- ##
1319
## Output variables. ##
1320
## ----------------- ##
1323
for ac_var in $ac_subst_vars
1325
eval ac_val=$`echo $ac_var`
1326
echo "$ac_var='"'"'$ac_val'"'"'"
1330
if test -n "$ac_subst_files"; then
1337
for ac_var in $ac_subst_files
1339
eval ac_val=$`echo $ac_var`
1340
echo "$ac_var='"'"'$ac_val'"'"'"
1345
if test -s confdefs.h; then
1352
sed "/^$/d" confdefs.h | sort
1355
test "$ac_signal" != 0 &&
1356
echo "$as_me: caught signal $ac_signal"
1357
echo "$as_me: exit $exit_status"
1359
rm -f core *.core &&
1360
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363
for ac_signal in 1 2 13 15; do
1364
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369
rm -rf conftest* confdefs.h
1370
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373
# Predefined preprocessor variables.
1375
cat >>confdefs.h <<_ACEOF
1376
#define PACKAGE_NAME "$PACKAGE_NAME"
1380
cat >>confdefs.h <<_ACEOF
1381
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385
cat >>confdefs.h <<_ACEOF
1386
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1390
cat >>confdefs.h <<_ACEOF
1391
#define PACKAGE_STRING "$PACKAGE_STRING"
1395
cat >>confdefs.h <<_ACEOF
1396
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400
# Let the site file select an alternate cache file if it wants to.
1401
# Prefer explicitly selected file to automatically selected ones.
1402
if test -z "$CONFIG_SITE"; then
1403
if test "x$prefix" != xNONE; then
1404
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409
for ac_site_file in $CONFIG_SITE; do
1410
if test -r "$ac_site_file"; then
1411
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412
echo "$as_me: loading site script $ac_site_file" >&6;}
1413
sed 's/^/| /' "$ac_site_file" >&5
1418
if test -r "$cache_file"; then
1419
# Some versions of bash will fail to source /dev/null (special
1420
# files actually), so we avoid doing that.
1421
if test -f "$cache_file"; then
1422
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423
echo "$as_me: loading cache $cache_file" >&6;}
1425
[\\/]* | ?:[\\/]* ) . $cache_file;;
1426
*) . ./$cache_file;;
1430
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431
echo "$as_me: creating cache $cache_file" >&6;}
1435
# Check that the precious variables saved in the cache have kept the same
1437
ac_cache_corrupted=false
1438
for ac_var in `(set) 2>&1 |
1439
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441
eval ac_new_set=\$ac_env_${ac_var}_set
1442
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443
eval ac_new_val="\$ac_env_${ac_var}_value"
1444
case $ac_old_set,$ac_new_set in
1446
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448
ac_cache_corrupted=: ;;
1450
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452
ac_cache_corrupted=: ;;
1455
if test "x$ac_old_val" != "x$ac_new_val"; then
1456
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459
echo "$as_me: former value: $ac_old_val" >&2;}
1460
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461
echo "$as_me: current value: $ac_new_val" >&2;}
1462
ac_cache_corrupted=:
1465
# Pass precious variables to config.status.
1466
if test "$ac_new_set" = set; then
1468
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470
*) ac_arg=$ac_var=$ac_new_val ;;
1472
case " $ac_configure_args " in
1473
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478
if $ac_cache_corrupted; then
1479
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483
{ (exit 1); exit 1; }; }
1487
ac_cpp='$CPP $CPPFLAGS'
1488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1512
if test -f $ac_dir/install-sh; then
1514
ac_install_sh="$ac_aux_dir/install-sh -c"
1516
elif test -f $ac_dir/install.sh; then
1518
ac_install_sh="$ac_aux_dir/install.sh -c"
1520
elif test -f $ac_dir/shtool; then
1522
ac_install_sh="$ac_aux_dir/shtool install -c"
1526
if test -z "$ac_aux_dir"; then
1527
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1528
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1529
{ (exit 1); exit 1; }; }
1531
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1532
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1533
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535
# Make sure we can run config.sub.
1536
$ac_config_sub sun4 >/dev/null 2>&1 ||
1537
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1538
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1539
{ (exit 1); exit 1; }; }
1541
echo "$as_me:$LINENO: checking build system type" >&5
1542
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1543
if test "${ac_cv_build+set}" = set; then
1544
echo $ECHO_N "(cached) $ECHO_C" >&6
1546
ac_cv_build_alias=$build_alias
1547
test -z "$ac_cv_build_alias" &&
1548
ac_cv_build_alias=`$ac_config_guess`
1549
test -z "$ac_cv_build_alias" &&
1550
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1551
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1552
{ (exit 1); exit 1; }; }
1553
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1554
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1555
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1556
{ (exit 1); exit 1; }; }
1559
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1560
echo "${ECHO_T}$ac_cv_build" >&6
1562
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
echo "$as_me:$LINENO: checking host system type" >&5
1568
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1569
if test "${ac_cv_host+set}" = set; then
1570
echo $ECHO_N "(cached) $ECHO_C" >&6
1572
ac_cv_host_alias=$host_alias
1573
test -z "$ac_cv_host_alias" &&
1574
ac_cv_host_alias=$ac_cv_build_alias
1575
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1576
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1577
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1578
{ (exit 1); exit 1; }; }
1581
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1582
echo "${ECHO_T}$ac_cv_host" >&6
1584
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
echo "$as_me:$LINENO: checking target system type" >&5
1590
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1591
if test "${ac_cv_target+set}" = set; then
1592
echo $ECHO_N "(cached) $ECHO_C" >&6
1594
ac_cv_target_alias=$target_alias
1595
test "x$ac_cv_target_alias" = "x" &&
1596
ac_cv_target_alias=$ac_cv_host_alias
1597
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1598
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1599
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1600
{ (exit 1); exit 1; }; }
1603
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1604
echo "${ECHO_T}$ac_cv_target" >&6
1605
target=$ac_cv_target
1606
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
# The aliases save the names the user supplied, while $host etc.
1612
# will get canonicalized.
1613
test -n "$target_alias" &&
1614
test "$program_prefix$program_suffix$program_transform_name" = \
1616
program_prefix=${target_alias}-
1617
am__api_version="1.6"
1618
# Find a good install program. We prefer a C program (faster),
1619
# so one script is as good as another. But avoid the broken or
1620
# incompatible versions:
1621
# SysV /etc/install, /usr/sbin/install
1622
# SunOS /usr/etc/install
1623
# IRIX /sbin/install
1625
# AmigaOS /C/install, which installs bootblocks on floppy discs
1626
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1627
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1628
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1629
# OS/2's system install, which has a completely different semantic
1630
# ./install, which can be erroneously created by make from ./install.sh.
1631
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1632
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1633
if test -z "$INSTALL"; then
1634
if test "${ac_cv_path_install+set}" = set; then
1635
echo $ECHO_N "(cached) $ECHO_C" >&6
1637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641
test -z "$as_dir" && as_dir=.
1642
# Account for people who put trailing slashes in PATH elements.
1644
./ | .// | /cC/* | \
1645
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1646
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1649
# OSF1 and SCO ODT 3.0 have their own names for install.
1650
# Don't use installbsd from OSF since it installs stuff as root
1652
for ac_prog in ginstall scoinst install; do
1653
for ac_exec_ext in '' $ac_executable_extensions; do
1654
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1655
if test $ac_prog = install &&
1656
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1657
# AIX install. It has an incompatible calling convention.
1659
elif test $ac_prog = install &&
1660
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1661
# program-specific install script used by HP pwplus--don't use.
1664
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1676
if test "${ac_cv_path_install+set}" = set; then
1677
INSTALL=$ac_cv_path_install
1679
# As a last resort, use the slow shell script. We don't cache a
1680
# path for INSTALL within a source directory, because that will
1681
# break other packages using the cache if that directory is
1682
# removed, or if the path is relative.
1683
INSTALL=$ac_install_sh
1686
echo "$as_me:$LINENO: result: $INSTALL" >&5
1687
echo "${ECHO_T}$INSTALL" >&6
1689
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1690
# It thinks the first close brace ends the variable substitution.
1691
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1693
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1695
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1697
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1698
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1701
echo timestamp > conftest.file
1702
# Do `set' in a subshell so we don't clobber the current shell's
1703
# arguments. Must try -L first in case configure is actually a
1704
# symlink; some systems play weird games with the mod time of symlinks
1705
# (eg FreeBSD returns the mod time of the symlink's containing
1708
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1709
if test "$*" = "X"; then
1711
set X `ls -t $srcdir/configure conftest.file`
1714
if test "$*" != "X $srcdir/configure conftest.file" \
1715
&& test "$*" != "X conftest.file $srcdir/configure"; then
1717
# If neither matched, then we have a broken ls. This can happen
1718
# if, for instance, CONFIG_SHELL is bash and it inherits a
1719
# broken ls alias from the environment. This has actually
1720
# happened. Such a system could not be considered "sane".
1721
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1722
alias in your environment" >&5
1723
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1724
alias in your environment" >&2;}
1725
{ (exit 1); exit 1; }; }
1728
test "$2" = conftest.file
1734
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1735
Check your system clock" >&5
1736
echo "$as_me: error: newly created file is older than distributed files!
1737
Check your system clock" >&2;}
1738
{ (exit 1); exit 1; }; }
1740
echo "$as_me:$LINENO: result: yes" >&5
1741
echo "${ECHO_T}yes" >&6
1742
test "$program_prefix" != NONE &&
1743
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1744
# Use a double $ so make ignores it.
1745
test "$program_suffix" != NONE &&
1746
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1747
# Double any \ or $. echo might interpret backslashes.
1748
# By default was `s,x,x', remove it if useless.
1749
cat <<\_ACEOF >conftest.sed
1750
s/[\\$]/&&/g;s/;s,x,x,$//
1752
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1756
# expand $ac_aux_dir to an absolute path
1757
am_aux_dir=`cd $ac_aux_dir && pwd`
1759
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1760
# Use eval to expand $SHELL
1761
if eval "$MISSING --run true"; then
1762
am_missing_run="$MISSING --run "
1765
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1766
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1769
for ac_prog in gawk mawk nawk awk
1771
# Extract the first word of "$ac_prog", so it can be a program name with args.
1772
set dummy $ac_prog; ac_word=$2
1773
echo "$as_me:$LINENO: checking for $ac_word" >&5
1774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775
if test "${ac_cv_prog_AWK+set}" = set; then
1776
echo $ECHO_N "(cached) $ECHO_C" >&6
1778
if test -n "$AWK"; then
1779
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785
test -z "$as_dir" && as_dir=.
1786
for ac_exec_ext in '' $ac_executable_extensions; do
1787
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788
ac_cv_prog_AWK="$ac_prog"
1789
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798
if test -n "$AWK"; then
1799
echo "$as_me:$LINENO: result: $AWK" >&5
1800
echo "${ECHO_T}$AWK" >&6
1802
echo "$as_me:$LINENO: result: no" >&5
1803
echo "${ECHO_T}no" >&6
1806
test -n "$AWK" && break
1809
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1810
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1811
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1812
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1813
echo $ECHO_N "(cached) $ECHO_C" >&6
1815
cat >conftest.make <<\_ACEOF
1817
@echo 'ac_maketemp="$(MAKE)"'
1819
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1820
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1821
if test -n "$ac_maketemp"; then
1822
eval ac_cv_prog_make_${ac_make}_set=yes
1824
eval ac_cv_prog_make_${ac_make}_set=no
1828
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1829
echo "$as_me:$LINENO: result: yes" >&5
1830
echo "${ECHO_T}yes" >&6
1833
echo "$as_me:$LINENO: result: no" >&5
1834
echo "${ECHO_T}no" >&6
1835
SET_MAKE="MAKE=${MAKE-make}"
1838
# test to see if srcdir already configured
1839
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1840
test -f $srcdir/config.status; then
1841
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1842
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1843
{ (exit 1); exit 1; }; }
1846
# Define the identity of the package.
1851
cat >>confdefs.h <<_ACEOF
1852
#define PACKAGE "$PACKAGE"
1856
cat >>confdefs.h <<_ACEOF
1857
#define VERSION "$VERSION"
1860
# Some tools Automake needs.
1862
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1865
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1868
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1871
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1874
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1877
AMTAR=${AMTAR-"${am_missing_run}tar"}
1879
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1881
# Installed binaries are usually stripped using `strip' when the user
1882
# run `make install-strip'. However `strip' might not be the right
1883
# tool to use in cross-compilation environments, therefore Automake
1884
# will honor the `STRIP' environment variable to overrule this program.
1885
if test "$cross_compiling" != no; then
1886
if test -n "$ac_tool_prefix"; then
1887
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1888
set dummy ${ac_tool_prefix}strip; ac_word=$2
1889
echo "$as_me:$LINENO: checking for $ac_word" >&5
1890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891
if test "${ac_cv_prog_STRIP+set}" = set; then
1892
echo $ECHO_N "(cached) $ECHO_C" >&6
1894
if test -n "$STRIP"; then
1895
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901
test -z "$as_dir" && as_dir=.
1902
for ac_exec_ext in '' $ac_executable_extensions; do
1903
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1905
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913
STRIP=$ac_cv_prog_STRIP
1914
if test -n "$STRIP"; then
1915
echo "$as_me:$LINENO: result: $STRIP" >&5
1916
echo "${ECHO_T}$STRIP" >&6
1918
echo "$as_me:$LINENO: result: no" >&5
1919
echo "${ECHO_T}no" >&6
1923
if test -z "$ac_cv_prog_STRIP"; then
1925
# Extract the first word of "strip", so it can be a program name with args.
1926
set dummy strip; ac_word=$2
1927
echo "$as_me:$LINENO: checking for $ac_word" >&5
1928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1930
echo $ECHO_N "(cached) $ECHO_C" >&6
1932
if test -n "$ac_ct_STRIP"; then
1933
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939
test -z "$as_dir" && as_dir=.
1940
for ac_exec_ext in '' $ac_executable_extensions; do
1941
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942
ac_cv_prog_ac_ct_STRIP="strip"
1943
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1952
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1953
if test -n "$ac_ct_STRIP"; then
1954
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1955
echo "${ECHO_T}$ac_ct_STRIP" >&6
1957
echo "$as_me:$LINENO: result: no" >&5
1958
echo "${ECHO_T}no" >&6
1963
STRIP="$ac_cv_prog_STRIP"
1967
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1969
# We need awk for the "check" target. The system "awk" is bad on
1974
# Add the stamp file to the list of files AC keeps track of,
1975
# along with our hook.
1976
ac_config_headers="$ac_config_headers config.h"
1985
ac_cpp='$CPP $CPPFLAGS'
1986
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989
if test -n "$ac_tool_prefix"; then
1990
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1991
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1992
echo "$as_me:$LINENO: checking for $ac_word" >&5
1993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994
if test "${ac_cv_prog_CC+set}" = set; then
1995
echo $ECHO_N "(cached) $ECHO_C" >&6
1997
if test -n "$CC"; then
1998
ac_cv_prog_CC="$CC" # Let the user override the test.
2000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004
test -z "$as_dir" && as_dir=.
2005
for ac_exec_ext in '' $ac_executable_extensions; do
2006
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2008
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017
if test -n "$CC"; then
2018
echo "$as_me:$LINENO: result: $CC" >&5
2019
echo "${ECHO_T}$CC" >&6
2021
echo "$as_me:$LINENO: result: no" >&5
2022
echo "${ECHO_T}no" >&6
2026
if test -z "$ac_cv_prog_CC"; then
2028
# Extract the first word of "gcc", so it can be a program name with args.
2029
set dummy gcc; ac_word=$2
2030
echo "$as_me:$LINENO: checking for $ac_word" >&5
2031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033
echo $ECHO_N "(cached) $ECHO_C" >&6
2035
if test -n "$ac_ct_CC"; then
2036
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042
test -z "$as_dir" && as_dir=.
2043
for ac_exec_ext in '' $ac_executable_extensions; do
2044
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045
ac_cv_prog_ac_ct_CC="gcc"
2046
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055
if test -n "$ac_ct_CC"; then
2056
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057
echo "${ECHO_T}$ac_ct_CC" >&6
2059
echo "$as_me:$LINENO: result: no" >&5
2060
echo "${ECHO_T}no" >&6
2068
if test -z "$CC"; then
2069
if test -n "$ac_tool_prefix"; then
2070
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2071
set dummy ${ac_tool_prefix}cc; ac_word=$2
2072
echo "$as_me:$LINENO: checking for $ac_word" >&5
2073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074
if test "${ac_cv_prog_CC+set}" = set; then
2075
echo $ECHO_N "(cached) $ECHO_C" >&6
2077
if test -n "$CC"; then
2078
ac_cv_prog_CC="$CC" # Let the user override the test.
2080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084
test -z "$as_dir" && as_dir=.
2085
for ac_exec_ext in '' $ac_executable_extensions; do
2086
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087
ac_cv_prog_CC="${ac_tool_prefix}cc"
2088
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097
if test -n "$CC"; then
2098
echo "$as_me:$LINENO: result: $CC" >&5
2099
echo "${ECHO_T}$CC" >&6
2101
echo "$as_me:$LINENO: result: no" >&5
2102
echo "${ECHO_T}no" >&6
2106
if test -z "$ac_cv_prog_CC"; then
2108
# Extract the first word of "cc", so it can be a program name with args.
2109
set dummy cc; ac_word=$2
2110
echo "$as_me:$LINENO: checking for $ac_word" >&5
2111
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2113
echo $ECHO_N "(cached) $ECHO_C" >&6
2115
if test -n "$ac_ct_CC"; then
2116
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122
test -z "$as_dir" && as_dir=.
2123
for ac_exec_ext in '' $ac_executable_extensions; do
2124
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125
ac_cv_prog_ac_ct_CC="cc"
2126
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2135
if test -n "$ac_ct_CC"; then
2136
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2137
echo "${ECHO_T}$ac_ct_CC" >&6
2139
echo "$as_me:$LINENO: result: no" >&5
2140
echo "${ECHO_T}no" >&6
2149
if test -z "$CC"; then
2150
# Extract the first word of "cc", so it can be a program name with args.
2151
set dummy cc; ac_word=$2
2152
echo "$as_me:$LINENO: checking for $ac_word" >&5
2153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154
if test "${ac_cv_prog_CC+set}" = set; then
2155
echo $ECHO_N "(cached) $ECHO_C" >&6
2157
if test -n "$CC"; then
2158
ac_cv_prog_CC="$CC" # Let the user override the test.
2161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165
test -z "$as_dir" && as_dir=.
2166
for ac_exec_ext in '' $ac_executable_extensions; do
2167
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2169
ac_prog_rejected=yes
2173
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179
if test $ac_prog_rejected = yes; then
2180
# We found a bogon in the path, so make sure we never use it.
2181
set dummy $ac_cv_prog_CC
2183
if test $# != 0; then
2184
# We chose a different compiler from the bogus one.
2185
# However, it has the same basename, so the bogon will be chosen
2186
# first if we set CC to just the basename; use the full file name.
2188
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2194
if test -n "$CC"; then
2195
echo "$as_me:$LINENO: result: $CC" >&5
2196
echo "${ECHO_T}$CC" >&6
2198
echo "$as_me:$LINENO: result: no" >&5
2199
echo "${ECHO_T}no" >&6
2203
if test -z "$CC"; then
2204
if test -n "$ac_tool_prefix"; then
2207
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2208
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2209
echo "$as_me:$LINENO: checking for $ac_word" >&5
2210
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211
if test "${ac_cv_prog_CC+set}" = set; then
2212
echo $ECHO_N "(cached) $ECHO_C" >&6
2214
if test -n "$CC"; then
2215
ac_cv_prog_CC="$CC" # Let the user override the test.
2217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221
test -z "$as_dir" && as_dir=.
2222
for ac_exec_ext in '' $ac_executable_extensions; do
2223
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2225
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234
if test -n "$CC"; then
2235
echo "$as_me:$LINENO: result: $CC" >&5
2236
echo "${ECHO_T}$CC" >&6
2238
echo "$as_me:$LINENO: result: no" >&5
2239
echo "${ECHO_T}no" >&6
2242
test -n "$CC" && break
2245
if test -z "$CC"; then
2249
# Extract the first word of "$ac_prog", so it can be a program name with args.
2250
set dummy $ac_prog; ac_word=$2
2251
echo "$as_me:$LINENO: checking for $ac_word" >&5
2252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254
echo $ECHO_N "(cached) $ECHO_C" >&6
2256
if test -n "$ac_ct_CC"; then
2257
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263
test -z "$as_dir" && as_dir=.
2264
for ac_exec_ext in '' $ac_executable_extensions; do
2265
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266
ac_cv_prog_ac_ct_CC="$ac_prog"
2267
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276
if test -n "$ac_ct_CC"; then
2277
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278
echo "${ECHO_T}$ac_ct_CC" >&6
2280
echo "$as_me:$LINENO: result: no" >&5
2281
echo "${ECHO_T}no" >&6
2284
test -n "$ac_ct_CC" && break
2293
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2294
See \`config.log' for more details." >&5
2295
echo "$as_me: error: no acceptable C compiler found in \$PATH
2296
See \`config.log' for more details." >&2;}
2297
{ (exit 1); exit 1; }; }
2299
# Provide some information about the compiler.
2300
echo "$as_me:$LINENO:" \
2301
"checking for C compiler version" >&5
2302
ac_compiler=`set X $ac_compile; echo $2`
2303
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2304
(eval $ac_compiler --version </dev/null >&5) 2>&5
2306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307
(exit $ac_status); }
2308
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2309
(eval $ac_compiler -v </dev/null >&5) 2>&5
2311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312
(exit $ac_status); }
2313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2314
(eval $ac_compiler -V </dev/null >&5) 2>&5
2316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317
(exit $ac_status); }
2319
cat >conftest.$ac_ext <<_ACEOF
2322
cat confdefs.h >>conftest.$ac_ext
2323
cat >>conftest.$ac_ext <<_ACEOF
2324
/* end confdefs.h. */
2334
ac_clean_files_save=$ac_clean_files
2335
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2336
# Try to create an executable without -o first, disregard a.out.
2337
# It will help us diagnose broken compilers, and finding out an intuition
2339
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2340
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2341
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2342
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2343
(eval $ac_link_default) 2>&5
2345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346
(exit $ac_status); }; then
2347
# Find the output, starting from the most likely. This scheme is
2348
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2351
# Be careful to initialize this variable, since it used to be cached.
2352
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2354
# b.out is created by i960 compilers.
2355
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2357
test -f "$ac_file" || continue
2359
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2362
# This is the source file.
2365
# We found the default executable, but exeext='' is most
2369
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2370
# FIXME: I believe we export ac_cv_exeext for Libtool,
2371
# but it would be cool to find out if it's true. Does anybody
2372
# maintain Libtool? --akim.
2380
echo "$as_me: failed program was:" >&5
2381
sed 's/^/| /' conftest.$ac_ext >&5
2383
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2384
See \`config.log' for more details." >&5
2385
echo "$as_me: error: C compiler cannot create executables
2386
See \`config.log' for more details." >&2;}
2387
{ (exit 77); exit 77; }; }
2390
ac_exeext=$ac_cv_exeext
2391
echo "$as_me:$LINENO: result: $ac_file" >&5
2392
echo "${ECHO_T}$ac_file" >&6
2394
# Check the compiler produces executables we can run. If not, either
2395
# the compiler is broken, or we cross compile.
2396
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2397
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2398
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2399
# If not cross compiling, check that we can run a simple program.
2400
if test "$cross_compiling" != yes; then
2401
if { ac_try='./$ac_file'
2402
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406
(exit $ac_status); }; }; then
2409
if test "$cross_compiling" = maybe; then
2412
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2413
If you meant to cross compile, use \`--host'.
2414
See \`config.log' for more details." >&5
2415
echo "$as_me: error: cannot run C compiled programs.
2416
If you meant to cross compile, use \`--host'.
2417
See \`config.log' for more details." >&2;}
2418
{ (exit 1); exit 1; }; }
2422
echo "$as_me:$LINENO: result: yes" >&5
2423
echo "${ECHO_T}yes" >&6
2425
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2426
ac_clean_files=$ac_clean_files_save
2427
# Check the compiler produces executables we can run. If not, either
2428
# the compiler is broken, or we cross compile.
2429
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2430
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2431
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2432
echo "${ECHO_T}$cross_compiling" >&6
2434
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2435
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2436
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2437
(eval $ac_link) 2>&5
2439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440
(exit $ac_status); }; then
2441
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2442
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2443
# work properly (i.e., refer to `conftest.exe'), while it won't with
2445
for ac_file in conftest.exe conftest conftest.*; do
2446
test -f "$ac_file" || continue
2448
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2449
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2457
See \`config.log' for more details." >&5
2458
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2459
See \`config.log' for more details." >&2;}
2460
{ (exit 1); exit 1; }; }
2463
rm -f conftest$ac_cv_exeext
2464
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2465
echo "${ECHO_T}$ac_cv_exeext" >&6
2467
rm -f conftest.$ac_ext
2468
EXEEXT=$ac_cv_exeext
2470
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2471
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2472
if test "${ac_cv_objext+set}" = set; then
2473
echo $ECHO_N "(cached) $ECHO_C" >&6
2475
cat >conftest.$ac_ext <<_ACEOF
2478
cat confdefs.h >>conftest.$ac_ext
2479
cat >>conftest.$ac_ext <<_ACEOF
2480
/* end confdefs.h. */
2490
rm -f conftest.o conftest.obj
2491
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492
(eval $ac_compile) 2>&5
2494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495
(exit $ac_status); }; then
2496
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2498
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2499
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2504
echo "$as_me: failed program was:" >&5
2505
sed 's/^/| /' conftest.$ac_ext >&5
2507
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2508
See \`config.log' for more details." >&5
2509
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2510
See \`config.log' for more details." >&2;}
2511
{ (exit 1); exit 1; }; }
2514
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2516
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2517
echo "${ECHO_T}$ac_cv_objext" >&6
2518
OBJEXT=$ac_cv_objext
2520
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2521
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2522
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2523
echo $ECHO_N "(cached) $ECHO_C" >&6
2525
cat >conftest.$ac_ext <<_ACEOF
2528
cat confdefs.h >>conftest.$ac_ext
2529
cat >>conftest.$ac_ext <<_ACEOF
2530
/* end confdefs.h. */
2543
rm -f conftest.$ac_objext
2544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545
(eval $ac_compile) 2>conftest.er1
2547
grep -v '^ *+' conftest.er1 >conftest.err
2549
cat conftest.err >&5
2550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551
(exit $ac_status); } &&
2552
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557
(exit $ac_status); }; } &&
2558
{ ac_try='test -s conftest.$ac_objext'
2559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563
(exit $ac_status); }; }; then
2566
echo "$as_me: failed program was:" >&5
2567
sed 's/^/| /' conftest.$ac_ext >&5
2571
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2575
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2576
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2577
GCC=`test $ac_compiler_gnu = yes && echo yes`
2578
ac_test_CFLAGS=${CFLAGS+set}
2579
ac_save_CFLAGS=$CFLAGS
2581
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2582
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2583
if test "${ac_cv_prog_cc_g+set}" = set; then
2584
echo $ECHO_N "(cached) $ECHO_C" >&6
2586
cat >conftest.$ac_ext <<_ACEOF
2589
cat confdefs.h >>conftest.$ac_ext
2590
cat >>conftest.$ac_ext <<_ACEOF
2591
/* end confdefs.h. */
2601
rm -f conftest.$ac_objext
2602
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603
(eval $ac_compile) 2>conftest.er1
2605
grep -v '^ *+' conftest.er1 >conftest.err
2607
cat conftest.err >&5
2608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609
(exit $ac_status); } &&
2610
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2611
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615
(exit $ac_status); }; } &&
2616
{ ac_try='test -s conftest.$ac_objext'
2617
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621
(exit $ac_status); }; }; then
2624
echo "$as_me: failed program was:" >&5
2625
sed 's/^/| /' conftest.$ac_ext >&5
2629
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2632
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2633
if test "$ac_test_CFLAGS" = set; then
2634
CFLAGS=$ac_save_CFLAGS
2635
elif test $ac_cv_prog_cc_g = yes; then
2636
if test "$GCC" = yes; then
2642
if test "$GCC" = yes; then
2648
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2649
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2650
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2651
echo $ECHO_N "(cached) $ECHO_C" >&6
2653
ac_cv_prog_cc_stdc=no
2655
cat >conftest.$ac_ext <<_ACEOF
2658
cat confdefs.h >>conftest.$ac_ext
2659
cat >>conftest.$ac_ext <<_ACEOF
2660
/* end confdefs.h. */
2663
#include <sys/types.h>
2664
#include <sys/stat.h>
2665
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2666
struct buf { int x; };
2667
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2668
static char *e (p, i)
2674
static char *f (char * (*g) (char **, int), char **p, ...)
2679
s = g (p, va_arg (v,int));
2684
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2685
function prototypes and stuff, but not '\xHH' hex character constants.
2686
These don't provoke an error unfortunately, instead are silently treated
2687
as 'x'. The following induces an error, until -std1 is added to get
2688
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2689
array size at least. It's necessary to write '\x00'==0 to get something
2690
that's true only with -std1. */
2691
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2693
int test (int i, double x);
2694
struct s1 {int (*f) (int a);};
2695
struct s2 {int (*f) (double a);};
2696
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2702
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2707
# Don't try gcc -ansi; that turns off useful extensions and
2708
# breaks some systems' header files.
2709
# AIX -qlanglvl=ansi
2710
# Ultrix and OSF/1 -std1
2711
# HP-UX 10.20 and later -Ae
2712
# HP-UX older versions -Aa -D_HPUX_SOURCE
2713
# SVR4 -Xc -D__EXTENSIONS__
2714
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2716
CC="$ac_save_CC $ac_arg"
2717
rm -f conftest.$ac_objext
2718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719
(eval $ac_compile) 2>conftest.er1
2721
grep -v '^ *+' conftest.er1 >conftest.err
2723
cat conftest.err >&5
2724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725
(exit $ac_status); } &&
2726
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
(exit $ac_status); }; } &&
2732
{ ac_try='test -s conftest.$ac_objext'
2733
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737
(exit $ac_status); }; }; then
2738
ac_cv_prog_cc_stdc=$ac_arg
2741
echo "$as_me: failed program was:" >&5
2742
sed 's/^/| /' conftest.$ac_ext >&5
2745
rm -f conftest.err conftest.$ac_objext
2747
rm -f conftest.$ac_ext conftest.$ac_objext
2752
case "x$ac_cv_prog_cc_stdc" in
2754
echo "$as_me:$LINENO: result: none needed" >&5
2755
echo "${ECHO_T}none needed" >&6 ;;
2757
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2758
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2759
CC="$CC $ac_cv_prog_cc_stdc" ;;
2762
# Some people use a C++ compiler to compile C. Since we use `exit',
2763
# in C++ we need to declare it. In case someone uses the same compiler
2764
# for both compiling C and C++ we need to have the C++ compiler decide
2765
# the declaration of exit, since it's the most demanding environment.
2766
cat >conftest.$ac_ext <<_ACEOF
2771
rm -f conftest.$ac_objext
2772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773
(eval $ac_compile) 2>conftest.er1
2775
grep -v '^ *+' conftest.er1 >conftest.err
2777
cat conftest.err >&5
2778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779
(exit $ac_status); } &&
2780
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
(exit $ac_status); }; } &&
2786
{ ac_try='test -s conftest.$ac_objext'
2787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
(exit $ac_status); }; }; then
2792
for ac_declaration in \
2794
'extern "C" void std::exit (int) throw (); using std::exit;' \
2795
'extern "C" void std::exit (int); using std::exit;' \
2796
'extern "C" void exit (int) throw ();' \
2797
'extern "C" void exit (int);' \
2800
cat >conftest.$ac_ext <<_ACEOF
2803
cat confdefs.h >>conftest.$ac_ext
2804
cat >>conftest.$ac_ext <<_ACEOF
2805
/* end confdefs.h. */
2816
rm -f conftest.$ac_objext
2817
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2818
(eval $ac_compile) 2>conftest.er1
2820
grep -v '^ *+' conftest.er1 >conftest.err
2822
cat conftest.err >&5
2823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824
(exit $ac_status); } &&
2825
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830
(exit $ac_status); }; } &&
2831
{ ac_try='test -s conftest.$ac_objext'
2832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836
(exit $ac_status); }; }; then
2839
echo "$as_me: failed program was:" >&5
2840
sed 's/^/| /' conftest.$ac_ext >&5
2844
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845
cat >conftest.$ac_ext <<_ACEOF
2848
cat confdefs.h >>conftest.$ac_ext
2849
cat >>conftest.$ac_ext <<_ACEOF
2850
/* end confdefs.h. */
2860
rm -f conftest.$ac_objext
2861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862
(eval $ac_compile) 2>conftest.er1
2864
grep -v '^ *+' conftest.er1 >conftest.err
2866
cat conftest.err >&5
2867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868
(exit $ac_status); } &&
2869
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874
(exit $ac_status); }; } &&
2875
{ ac_try='test -s conftest.$ac_objext'
2876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880
(exit $ac_status); }; }; then
2883
echo "$as_me: failed program was:" >&5
2884
sed 's/^/| /' conftest.$ac_ext >&5
2887
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890
if test -n "$ac_declaration"; then
2891
echo '#ifdef __cplusplus' >>confdefs.h
2892
echo $ac_declaration >>confdefs.h
2893
echo '#endif' >>confdefs.h
2897
echo "$as_me: failed program was:" >&5
2898
sed 's/^/| /' conftest.$ac_ext >&5
2901
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903
ac_cpp='$CPP $CPPFLAGS'
2904
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907
rm -f .deps 2>/dev/null
2908
mkdir .deps 2>/dev/null
2909
if test -d .deps; then
2912
# MS-DOS does not allow filenames that begin with a dot.
2915
rmdir .deps 2>/dev/null
2918
ac_config_commands="$ac_config_commands depfiles"
2921
am_make=${MAKE-make}
2922
cat > confinc << 'END'
2926
# If we don't find an include directive, just comment out the code.
2927
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2928
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2932
# First try GNU make style include.
2933
echo "include confinc" > confmf
2934
# We grep out `Entering directory' and `Leaving directory'
2935
# messages which can occur if `w' ends up in MAKEFLAGS.
2936
# In particular we don't look at `^make:' because GNU make might
2937
# be invoked under some other name (usually "gmake"), in which
2938
# case it prints its new name instead of `make'.
2939
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2944
# Now try BSD make style include.
2945
if test "$am__include" = "#"; then
2946
echo '.include "confinc"' > confmf
2947
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2948
am__include=.include
2955
echo "$as_me:$LINENO: result: $_am_result" >&5
2956
echo "${ECHO_T}$_am_result" >&6
2957
rm -f confinc confmf
2959
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2960
if test "${enable_dependency_tracking+set}" = set; then
2961
enableval="$enable_dependency_tracking"
2964
if test "x$enable_dependency_tracking" != xno; then
2965
am_depcomp="$ac_aux_dir/depcomp"
2970
if test "x$enable_dependency_tracking" != xno; then
2981
depcc="$CC" am_compiler_list=
2983
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2984
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2985
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2986
echo $ECHO_N "(cached) $ECHO_C" >&6
2988
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2989
# We make a subdir and do the tests there. Otherwise we can end up
2990
# making bogus files that we don't know about and never remove. For
2991
# instance it was reported that on HP-UX the gcc test will end up
2992
# making a dummy file named `D' -- because `-MD' means `put the output
2995
# Copy depcomp to subdir because otherwise we won't find it if we're
2996
# using a relative directory.
2997
cp "$am_depcomp" conftest.dir
3000
am_cv_CC_dependencies_compiler_type=none
3001
if test "$am_compiler_list" = ""; then
3002
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3004
for depmode in $am_compiler_list; do
3005
# We need to recreate these files for each test, as the compiler may
3006
# overwrite some of them when testing with obscure command lines.
3007
# This happens at least with the AIX C compiler.
3008
echo '#include "conftest.h"' > conftest.c
3009
echo 'int i;' > conftest.h
3010
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3014
# after this tag, mechanisms are not by side-effect, so they'll
3015
# only be used when explicitly requested
3016
if test "x$enable_dependency_tracking" = xyes; then
3024
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3025
# mode. It turns out that the SunPro C++ compiler does not properly
3026
# handle `-M -o', and we need to detect this.
3027
if depmode=$depmode \
3028
source=conftest.c object=conftest.o \
3029
depfile=conftest.Po tmpdepfile=conftest.TPo \
3030
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3031
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3032
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3033
am_cv_CC_dependencies_compiler_type=$depmode
3041
am_cv_CC_dependencies_compiler_type=none
3045
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3046
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3047
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3050
# Find a good install program. We prefer a C program (faster),
3051
# so one script is as good as another. But avoid the broken or
3052
# incompatible versions:
3053
# SysV /etc/install, /usr/sbin/install
3054
# SunOS /usr/etc/install
3055
# IRIX /sbin/install
3057
# AmigaOS /C/install, which installs bootblocks on floppy discs
3058
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3059
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3060
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3061
# OS/2's system install, which has a completely different semantic
3062
# ./install, which can be erroneously created by make from ./install.sh.
3063
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3064
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3065
if test -z "$INSTALL"; then
3066
if test "${ac_cv_path_install+set}" = set; then
3067
echo $ECHO_N "(cached) $ECHO_C" >&6
3069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073
test -z "$as_dir" && as_dir=.
3074
# Account for people who put trailing slashes in PATH elements.
3076
./ | .// | /cC/* | \
3077
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3078
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3081
# OSF1 and SCO ODT 3.0 have their own names for install.
3082
# Don't use installbsd from OSF since it installs stuff as root
3084
for ac_prog in ginstall scoinst install; do
3085
for ac_exec_ext in '' $ac_executable_extensions; do
3086
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3087
if test $ac_prog = install &&
3088
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3089
# AIX install. It has an incompatible calling convention.
3091
elif test $ac_prog = install &&
3092
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3093
# program-specific install script used by HP pwplus--don't use.
3096
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3108
if test "${ac_cv_path_install+set}" = set; then
3109
INSTALL=$ac_cv_path_install
3111
# As a last resort, use the slow shell script. We don't cache a
3112
# path for INSTALL within a source directory, because that will
3113
# break other packages using the cache if that directory is
3114
# removed, or if the path is relative.
3115
INSTALL=$ac_install_sh
3118
echo "$as_me:$LINENO: result: $INSTALL" >&5
3119
echo "${ECHO_T}$INSTALL" >&6
3121
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3122
# It thinks the first close brace ends the variable substitution.
3123
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3125
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3127
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3129
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3130
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3132
if test "$LN_S" = "ln -s"; then
3133
echo "$as_me:$LINENO: result: yes" >&5
3134
echo "${ECHO_T}yes" >&6
3136
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3137
echo "${ECHO_T}no, using $LN_S" >&6
3140
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3141
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3142
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3143
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3144
echo $ECHO_N "(cached) $ECHO_C" >&6
3146
cat >conftest.make <<\_ACEOF
3148
@echo 'ac_maketemp="$(MAKE)"'
3150
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3151
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3152
if test -n "$ac_maketemp"; then
3153
eval ac_cv_prog_make_${ac_make}_set=yes
3155
eval ac_cv_prog_make_${ac_make}_set=no
3159
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3160
echo "$as_me:$LINENO: result: yes" >&5
3161
echo "${ECHO_T}yes" >&6
3164
echo "$as_me:$LINENO: result: no" >&5
3165
echo "${ECHO_T}no" >&6
3166
SET_MAKE="MAKE=${MAKE-make}"
3169
# Extract the first word of "rpmbuild", so it can be a program name with args.
3170
set dummy rpmbuild; ac_word=$2
3171
echo "$as_me:$LINENO: checking for $ac_word" >&5
3172
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3173
if test "${ac_cv_prog_RPMBUILD+set}" = set; then
3174
echo $ECHO_N "(cached) $ECHO_C" >&6
3176
if test -n "$RPMBUILD"; then
3177
ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test.
3179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183
test -z "$as_dir" && as_dir=.
3184
for ac_exec_ext in '' $ac_executable_extensions; do
3185
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186
ac_cv_prog_RPMBUILD="rpmbuild"
3187
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193
test -z "$ac_cv_prog_RPMBUILD" && ac_cv_prog_RPMBUILD="rpm"
3196
RPMBUILD=$ac_cv_prog_RPMBUILD
3197
if test -n "$RPMBUILD"; then
3198
echo "$as_me:$LINENO: result: $RPMBUILD" >&5
3199
echo "${ECHO_T}$RPMBUILD" >&6
3201
echo "$as_me:$LINENO: result: no" >&5
3202
echo "${ECHO_T}no" >&6
3205
# Extract the first word of "sed", so it can be a program name with args.
3206
set dummy sed; ac_word=$2
3207
echo "$as_me:$LINENO: checking for $ac_word" >&5
3208
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209
if test "${ac_cv_prog_SED+set}" = set; then
3210
echo $ECHO_N "(cached) $ECHO_C" >&6
3212
if test -n "$SED"; then
3213
ac_cv_prog_SED="$SED" # Let the user override the test.
3215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219
test -z "$as_dir" && as_dir=.
3220
for ac_exec_ext in '' $ac_executable_extensions; do
3221
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222
ac_cv_prog_SED="sed"
3223
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232
if test -n "$SED"; then
3233
echo "$as_me:$LINENO: result: $SED" >&5
3234
echo "${ECHO_T}$SED" >&6
3236
echo "$as_me:$LINENO: result: no" >&5
3237
echo "${ECHO_T}no" >&6
3243
ac_cpp='$CPP $CPPFLAGS'
3244
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3248
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3249
# On Suns, sometimes $CPP names a directory.
3250
if test -n "$CPP" && test -d "$CPP"; then
3253
if test -z "$CPP"; then
3254
if test "${ac_cv_prog_CPP+set}" = set; then
3255
echo $ECHO_N "(cached) $ECHO_C" >&6
3257
# Double quotes because CPP needs to be expanded
3258
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3261
for ac_c_preproc_warn_flag in '' yes
3263
# Use a header file that comes with gcc, so configuring glibc
3264
# with a fresh cross-compiler works.
3265
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3266
# <limits.h> exists even on freestanding compilers.
3267
# On the NeXT, cc -E runs the code through the compiler's parser,
3268
# not just through cpp. "Syntax error" is here to catch this case.
3269
cat >conftest.$ac_ext <<_ACEOF
3272
cat confdefs.h >>conftest.$ac_ext
3273
cat >>conftest.$ac_ext <<_ACEOF
3274
/* end confdefs.h. */
3276
# include <limits.h>
3278
# include <assert.h>
3282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3283
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3285
grep -v '^ *+' conftest.er1 >conftest.err
3287
cat conftest.err >&5
3288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289
(exit $ac_status); } >/dev/null; then
3290
if test -s conftest.err; then
3291
ac_cpp_err=$ac_c_preproc_warn_flag
3292
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299
if test -z "$ac_cpp_err"; then
3302
echo "$as_me: failed program was:" >&5
3303
sed 's/^/| /' conftest.$ac_ext >&5
3305
# Broken: fails on valid input.
3308
rm -f conftest.err conftest.$ac_ext
3310
# OK, works on sane cases. Now check whether non-existent headers
3311
# can be detected and how.
3312
cat >conftest.$ac_ext <<_ACEOF
3315
cat confdefs.h >>conftest.$ac_ext
3316
cat >>conftest.$ac_ext <<_ACEOF
3317
/* end confdefs.h. */
3318
#include <ac_nonexistent.h>
3320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3321
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3323
grep -v '^ *+' conftest.er1 >conftest.err
3325
cat conftest.err >&5
3326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327
(exit $ac_status); } >/dev/null; then
3328
if test -s conftest.err; then
3329
ac_cpp_err=$ac_c_preproc_warn_flag
3330
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337
if test -z "$ac_cpp_err"; then
3338
# Broken: success on invalid input.
3341
echo "$as_me: failed program was:" >&5
3342
sed 's/^/| /' conftest.$ac_ext >&5
3344
# Passes both tests.
3348
rm -f conftest.err conftest.$ac_ext
3351
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352
rm -f conftest.err conftest.$ac_ext
3353
if $ac_preproc_ok; then
3365
echo "$as_me:$LINENO: result: $CPP" >&5
3366
echo "${ECHO_T}$CPP" >&6
3368
for ac_c_preproc_warn_flag in '' yes
3370
# Use a header file that comes with gcc, so configuring glibc
3371
# with a fresh cross-compiler works.
3372
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373
# <limits.h> exists even on freestanding compilers.
3374
# On the NeXT, cc -E runs the code through the compiler's parser,
3375
# not just through cpp. "Syntax error" is here to catch this case.
3376
cat >conftest.$ac_ext <<_ACEOF
3379
cat confdefs.h >>conftest.$ac_ext
3380
cat >>conftest.$ac_ext <<_ACEOF
3381
/* end confdefs.h. */
3383
# include <limits.h>
3385
# include <assert.h>
3389
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3390
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3392
grep -v '^ *+' conftest.er1 >conftest.err
3394
cat conftest.err >&5
3395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396
(exit $ac_status); } >/dev/null; then
3397
if test -s conftest.err; then
3398
ac_cpp_err=$ac_c_preproc_warn_flag
3399
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406
if test -z "$ac_cpp_err"; then
3409
echo "$as_me: failed program was:" >&5
3410
sed 's/^/| /' conftest.$ac_ext >&5
3412
# Broken: fails on valid input.
3415
rm -f conftest.err conftest.$ac_ext
3417
# OK, works on sane cases. Now check whether non-existent headers
3418
# can be detected and how.
3419
cat >conftest.$ac_ext <<_ACEOF
3422
cat confdefs.h >>conftest.$ac_ext
3423
cat >>conftest.$ac_ext <<_ACEOF
3424
/* end confdefs.h. */
3425
#include <ac_nonexistent.h>
3427
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3430
grep -v '^ *+' conftest.er1 >conftest.err
3432
cat conftest.err >&5
3433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434
(exit $ac_status); } >/dev/null; then
3435
if test -s conftest.err; then
3436
ac_cpp_err=$ac_c_preproc_warn_flag
3437
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444
if test -z "$ac_cpp_err"; then
3445
# Broken: success on invalid input.
3448
echo "$as_me: failed program was:" >&5
3449
sed 's/^/| /' conftest.$ac_ext >&5
3451
# Passes both tests.
3455
rm -f conftest.err conftest.$ac_ext
3458
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3459
rm -f conftest.err conftest.$ac_ext
3460
if $ac_preproc_ok; then
3463
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3464
See \`config.log' for more details." >&5
3465
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3466
See \`config.log' for more details." >&2;}
3467
{ (exit 1); exit 1; }; }
3471
ac_cpp='$CPP $CPPFLAGS'
3472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
echo "$as_me:$LINENO: checking for egrep" >&5
3478
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3479
if test "${ac_cv_prog_egrep+set}" = set; then
3480
echo $ECHO_N "(cached) $ECHO_C" >&6
3482
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3483
then ac_cv_prog_egrep='grep -E'
3484
else ac_cv_prog_egrep='egrep'
3487
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3488
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3489
EGREP=$ac_cv_prog_egrep
3492
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3493
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3494
if test "${ac_cv_header_stdc+set}" = set; then
3495
echo $ECHO_N "(cached) $ECHO_C" >&6
3497
cat >conftest.$ac_ext <<_ACEOF
3500
cat confdefs.h >>conftest.$ac_ext
3501
cat >>conftest.$ac_ext <<_ACEOF
3502
/* end confdefs.h. */
3516
rm -f conftest.$ac_objext
3517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518
(eval $ac_compile) 2>conftest.er1
3520
grep -v '^ *+' conftest.er1 >conftest.err
3522
cat conftest.err >&5
3523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524
(exit $ac_status); } &&
3525
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530
(exit $ac_status); }; } &&
3531
{ ac_try='test -s conftest.$ac_objext'
3532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536
(exit $ac_status); }; }; then
3537
ac_cv_header_stdc=yes
3539
echo "$as_me: failed program was:" >&5
3540
sed 's/^/| /' conftest.$ac_ext >&5
3542
ac_cv_header_stdc=no
3544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3546
if test $ac_cv_header_stdc = yes; then
3547
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3548
cat >conftest.$ac_ext <<_ACEOF
3551
cat confdefs.h >>conftest.$ac_ext
3552
cat >>conftest.$ac_ext <<_ACEOF
3553
/* end confdefs.h. */
3557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558
$EGREP "memchr" >/dev/null 2>&1; then
3561
ac_cv_header_stdc=no
3567
if test $ac_cv_header_stdc = yes; then
3568
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3569
cat >conftest.$ac_ext <<_ACEOF
3572
cat confdefs.h >>conftest.$ac_ext
3573
cat >>conftest.$ac_ext <<_ACEOF
3574
/* end confdefs.h. */
3578
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579
$EGREP "free" >/dev/null 2>&1; then
3582
ac_cv_header_stdc=no
3588
if test $ac_cv_header_stdc = yes; then
3589
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3590
if test "$cross_compiling" = yes; then
3593
cat >conftest.$ac_ext <<_ACEOF
3596
cat confdefs.h >>conftest.$ac_ext
3597
cat >>conftest.$ac_ext <<_ACEOF
3598
/* end confdefs.h. */
3600
#if ((' ' & 0x0FF) == 0x020)
3601
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3602
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3604
# define ISLOWER(c) \
3605
(('a' <= (c) && (c) <= 'i') \
3606
|| ('j' <= (c) && (c) <= 'r') \
3607
|| ('s' <= (c) && (c) <= 'z'))
3608
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3611
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3616
for (i = 0; i < 256; i++)
3617
if (XOR (islower (i), ISLOWER (i))
3618
|| toupper (i) != TOUPPER (i))
3623
rm -f conftest$ac_exeext
3624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3625
(eval $ac_link) 2>&5
3627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633
(exit $ac_status); }; }; then
3636
echo "$as_me: program exited with status $ac_status" >&5
3637
echo "$as_me: failed program was:" >&5
3638
sed 's/^/| /' conftest.$ac_ext >&5
3641
ac_cv_header_stdc=no
3643
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3647
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3648
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3649
if test $ac_cv_header_stdc = yes; then
3651
cat >>confdefs.h <<\_ACEOF
3652
#define STDC_HEADERS 1
3657
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3667
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3668
inttypes.h stdint.h unistd.h
3670
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3671
echo "$as_me:$LINENO: checking for $ac_header" >&5
3672
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3673
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3674
echo $ECHO_N "(cached) $ECHO_C" >&6
3676
cat >conftest.$ac_ext <<_ACEOF
3679
cat confdefs.h >>conftest.$ac_ext
3680
cat >>conftest.$ac_ext <<_ACEOF
3681
/* end confdefs.h. */
3682
$ac_includes_default
3684
#include <$ac_header>
3686
rm -f conftest.$ac_objext
3687
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3688
(eval $ac_compile) 2>conftest.er1
3690
grep -v '^ *+' conftest.er1 >conftest.err
3692
cat conftest.err >&5
3693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694
(exit $ac_status); } &&
3695
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3696
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700
(exit $ac_status); }; } &&
3701
{ ac_try='test -s conftest.$ac_objext'
3702
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706
(exit $ac_status); }; }; then
3707
eval "$as_ac_Header=yes"
3709
echo "$as_me: failed program was:" >&5
3710
sed 's/^/| /' conftest.$ac_ext >&5
3712
eval "$as_ac_Header=no"
3714
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3717
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3718
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3719
cat >>confdefs.h <<_ACEOF
3720
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3733
for ac_header in stdlib.h string.h sys/ioctl.h sys/stat.h unistd.h
3735
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3736
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3737
echo "$as_me:$LINENO: checking for $ac_header" >&5
3738
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3739
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3740
echo $ECHO_N "(cached) $ECHO_C" >&6
3742
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3743
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3745
# Is the header compilable?
3746
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3747
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3748
cat >conftest.$ac_ext <<_ACEOF
3751
cat confdefs.h >>conftest.$ac_ext
3752
cat >>conftest.$ac_ext <<_ACEOF
3753
/* end confdefs.h. */
3754
$ac_includes_default
3755
#include <$ac_header>
3757
rm -f conftest.$ac_objext
3758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3759
(eval $ac_compile) 2>conftest.er1
3761
grep -v '^ *+' conftest.er1 >conftest.err
3763
cat conftest.err >&5
3764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765
(exit $ac_status); } &&
3766
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771
(exit $ac_status); }; } &&
3772
{ ac_try='test -s conftest.$ac_objext'
3773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777
(exit $ac_status); }; }; then
3778
ac_header_compiler=yes
3780
echo "$as_me: failed program was:" >&5
3781
sed 's/^/| /' conftest.$ac_ext >&5
3783
ac_header_compiler=no
3785
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3787
echo "${ECHO_T}$ac_header_compiler" >&6
3789
# Is the header present?
3790
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3791
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3792
cat >conftest.$ac_ext <<_ACEOF
3795
cat confdefs.h >>conftest.$ac_ext
3796
cat >>conftest.$ac_ext <<_ACEOF
3797
/* end confdefs.h. */
3798
#include <$ac_header>
3800
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3801
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3803
grep -v '^ *+' conftest.er1 >conftest.err
3805
cat conftest.err >&5
3806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807
(exit $ac_status); } >/dev/null; then
3808
if test -s conftest.err; then
3809
ac_cpp_err=$ac_c_preproc_warn_flag
3810
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3817
if test -z "$ac_cpp_err"; then
3818
ac_header_preproc=yes
3820
echo "$as_me: failed program was:" >&5
3821
sed 's/^/| /' conftest.$ac_ext >&5
3823
ac_header_preproc=no
3825
rm -f conftest.err conftest.$ac_ext
3826
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3827
echo "${ECHO_T}$ac_header_preproc" >&6
3829
# So? What about this header?
3830
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3832
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3833
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3834
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3835
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3836
ac_header_preproc=yes
3839
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3840
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3841
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3842
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3843
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3844
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3845
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3846
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3847
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3848
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3849
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3850
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3853
## ------------------------------------------ ##
3854
## Report this to the AC_PACKAGE_NAME lists. ##
3855
## ------------------------------------------ ##
3858
sed "s/^/$as_me: WARNING: /" >&2
3861
echo "$as_me:$LINENO: checking for $ac_header" >&5
3862
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3863
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3864
echo $ECHO_N "(cached) $ECHO_C" >&6
3866
eval "$as_ac_Header=\$ac_header_preproc"
3868
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3869
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3872
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3873
cat >>confdefs.h <<_ACEOF
3874
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3886
for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h sys/socket.h
3888
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3889
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3890
echo "$as_me:$LINENO: checking for $ac_header" >&5
3891
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3892
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3893
echo $ECHO_N "(cached) $ECHO_C" >&6
3895
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3896
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3898
# Is the header compilable?
3899
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3900
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3901
cat >conftest.$ac_ext <<_ACEOF
3904
cat confdefs.h >>conftest.$ac_ext
3905
cat >>conftest.$ac_ext <<_ACEOF
3906
/* end confdefs.h. */
3907
$ac_includes_default
3908
#include <$ac_header>
3910
rm -f conftest.$ac_objext
3911
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3912
(eval $ac_compile) 2>conftest.er1
3914
grep -v '^ *+' conftest.er1 >conftest.err
3916
cat conftest.err >&5
3917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
(exit $ac_status); } &&
3919
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3920
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924
(exit $ac_status); }; } &&
3925
{ ac_try='test -s conftest.$ac_objext'
3926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930
(exit $ac_status); }; }; then
3931
ac_header_compiler=yes
3933
echo "$as_me: failed program was:" >&5
3934
sed 's/^/| /' conftest.$ac_ext >&5
3936
ac_header_compiler=no
3938
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3939
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3940
echo "${ECHO_T}$ac_header_compiler" >&6
3942
# Is the header present?
3943
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3944
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3945
cat >conftest.$ac_ext <<_ACEOF
3948
cat confdefs.h >>conftest.$ac_ext
3949
cat >>conftest.$ac_ext <<_ACEOF
3950
/* end confdefs.h. */
3951
#include <$ac_header>
3953
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3954
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3956
grep -v '^ *+' conftest.er1 >conftest.err
3958
cat conftest.err >&5
3959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960
(exit $ac_status); } >/dev/null; then
3961
if test -s conftest.err; then
3962
ac_cpp_err=$ac_c_preproc_warn_flag
3963
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970
if test -z "$ac_cpp_err"; then
3971
ac_header_preproc=yes
3973
echo "$as_me: failed program was:" >&5
3974
sed 's/^/| /' conftest.$ac_ext >&5
3976
ac_header_preproc=no
3978
rm -f conftest.err conftest.$ac_ext
3979
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3980
echo "${ECHO_T}$ac_header_preproc" >&6
3982
# So? What about this header?
3983
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3985
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3986
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3987
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3988
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3989
ac_header_preproc=yes
3992
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3993
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3994
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3995
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3996
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3997
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3998
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3999
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4000
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4001
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4002
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4003
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4006
## ------------------------------------------ ##
4007
## Report this to the AC_PACKAGE_NAME lists. ##
4008
## ------------------------------------------ ##
4011
sed "s/^/$as_me: WARNING: /" >&2
4014
echo "$as_me:$LINENO: checking for $ac_header" >&5
4015
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4016
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4017
echo $ECHO_N "(cached) $ECHO_C" >&6
4019
eval "$as_ac_Header=\$ac_header_preproc"
4021
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4022
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4025
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4026
cat >>confdefs.h <<_ACEOF
4027
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4036
for ac_header in sys/byteorder.h byteswap.h
4038
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4039
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4040
echo "$as_me:$LINENO: checking for $ac_header" >&5
4041
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4042
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4043
echo $ECHO_N "(cached) $ECHO_C" >&6
4045
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4046
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4048
# Is the header compilable?
4049
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4050
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4051
cat >conftest.$ac_ext <<_ACEOF
4054
cat confdefs.h >>conftest.$ac_ext
4055
cat >>conftest.$ac_ext <<_ACEOF
4056
/* end confdefs.h. */
4057
$ac_includes_default
4058
#include <$ac_header>
4060
rm -f conftest.$ac_objext
4061
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062
(eval $ac_compile) 2>conftest.er1
4064
grep -v '^ *+' conftest.er1 >conftest.err
4066
cat conftest.err >&5
4067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068
(exit $ac_status); } &&
4069
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4070
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074
(exit $ac_status); }; } &&
4075
{ ac_try='test -s conftest.$ac_objext'
4076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
(exit $ac_status); }; }; then
4081
ac_header_compiler=yes
4083
echo "$as_me: failed program was:" >&5
4084
sed 's/^/| /' conftest.$ac_ext >&5
4086
ac_header_compiler=no
4088
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4089
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4090
echo "${ECHO_T}$ac_header_compiler" >&6
4092
# Is the header present?
4093
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4094
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4095
cat >conftest.$ac_ext <<_ACEOF
4098
cat confdefs.h >>conftest.$ac_ext
4099
cat >>conftest.$ac_ext <<_ACEOF
4100
/* end confdefs.h. */
4101
#include <$ac_header>
4103
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4104
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4106
grep -v '^ *+' conftest.er1 >conftest.err
4108
cat conftest.err >&5
4109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110
(exit $ac_status); } >/dev/null; then
4111
if test -s conftest.err; then
4112
ac_cpp_err=$ac_c_preproc_warn_flag
4113
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4120
if test -z "$ac_cpp_err"; then
4121
ac_header_preproc=yes
4123
echo "$as_me: failed program was:" >&5
4124
sed 's/^/| /' conftest.$ac_ext >&5
4126
ac_header_preproc=no
4128
rm -f conftest.err conftest.$ac_ext
4129
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4130
echo "${ECHO_T}$ac_header_preproc" >&6
4132
# So? What about this header?
4133
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4135
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4136
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4137
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4138
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4139
ac_header_preproc=yes
4142
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4143
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4144
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4145
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4146
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4147
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4148
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4149
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4150
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4151
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4152
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4153
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4156
## ------------------------------------------ ##
4157
## Report this to the AC_PACKAGE_NAME lists. ##
4158
## ------------------------------------------ ##
4161
sed "s/^/$as_me: WARNING: /" >&2
4164
echo "$as_me:$LINENO: checking for $ac_header" >&5
4165
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4166
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4167
echo $ECHO_N "(cached) $ECHO_C" >&6
4169
eval "$as_ac_Header=\$ac_header_preproc"
4171
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4172
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4175
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4176
cat >>confdefs.h <<_ACEOF
4177
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4185
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4186
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4187
if test "${ac_cv_c_const+set}" = set; then
4188
echo $ECHO_N "(cached) $ECHO_C" >&6
4190
cat >conftest.$ac_ext <<_ACEOF
4193
cat confdefs.h >>conftest.$ac_ext
4194
cat >>conftest.$ac_ext <<_ACEOF
4195
/* end confdefs.h. */
4200
/* FIXME: Include the comments suggested by Paul. */
4202
/* Ultrix mips cc rejects this. */
4203
typedef int charset[2];
4205
/* SunOS 4.1.1 cc rejects this. */
4206
char const *const *ccp;
4208
/* NEC SVR4.0.2 mips cc rejects this. */
4209
struct point {int x, y;};
4210
static struct point const zero = {0,0};
4211
/* AIX XL C 1.02.0.0 rejects this.
4212
It does not let you subtract one const X* pointer from another in
4213
an arm of an if-expression whose if-part is not a constant
4215
const char *g = "string";
4216
ccp = &g + (g ? g-g : 0);
4217
/* HPUX 7.0 cc rejects these. */
4220
ccp = (char const *const *) p;
4221
{ /* SCO 3.2v4 cc rejects this. */
4223
char const *s = 0 ? (char *) 0 : (char const *) 0;
4227
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4229
const int *foo = &x[0];
4232
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4233
typedef const int *iptr;
4237
{ /* AIX XL C 1.02.0.0 rejects this saying
4238
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4239
struct s { int j; const int *ap[3]; };
4240
struct s *b; b->j = 5;
4242
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4251
rm -f conftest.$ac_objext
4252
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253
(eval $ac_compile) 2>conftest.er1
4255
grep -v '^ *+' conftest.er1 >conftest.err
4257
cat conftest.err >&5
4258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259
(exit $ac_status); } &&
4260
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265
(exit $ac_status); }; } &&
4266
{ ac_try='test -s conftest.$ac_objext'
4267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271
(exit $ac_status); }; }; then
4274
echo "$as_me: failed program was:" >&5
4275
sed 's/^/| /' conftest.$ac_ext >&5
4279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4281
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4282
echo "${ECHO_T}$ac_cv_c_const" >&6
4283
if test $ac_cv_c_const = no; then
4285
cat >>confdefs.h <<\_ACEOF
4291
echo "$as_me:$LINENO: checking for inline" >&5
4292
echo $ECHO_N "checking for inline... $ECHO_C" >&6
4293
if test "${ac_cv_c_inline+set}" = set; then
4294
echo $ECHO_N "(cached) $ECHO_C" >&6
4297
for ac_kw in inline __inline__ __inline; do
4298
cat >conftest.$ac_ext <<_ACEOF
4301
cat confdefs.h >>conftest.$ac_ext
4302
cat >>conftest.$ac_ext <<_ACEOF
4303
/* end confdefs.h. */
4306
static $ac_kw foo_t static_foo () {return 0; }
4307
$ac_kw foo_t foo () {return 0; }
4311
rm -f conftest.$ac_objext
4312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313
(eval $ac_compile) 2>conftest.er1
4315
grep -v '^ *+' conftest.er1 >conftest.err
4317
cat conftest.err >&5
4318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319
(exit $ac_status); } &&
4320
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325
(exit $ac_status); }; } &&
4326
{ ac_try='test -s conftest.$ac_objext'
4327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331
(exit $ac_status); }; }; then
4332
ac_cv_c_inline=$ac_kw; break
4334
echo "$as_me: failed program was:" >&5
4335
sed 's/^/| /' conftest.$ac_ext >&5
4338
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4342
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4343
echo "${ECHO_T}$ac_cv_c_inline" >&6
4346
case $ac_cv_c_inline in
4349
case $ac_cv_c_inline in
4351
*) ac_val=$ac_cv_c_inline;;
4353
cat >>confdefs.h <<_ACEOF
4355
#define inline $ac_val
4361
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4362
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4363
if test "${ac_cv_c_bigendian+set}" = set; then
4364
echo $ECHO_N "(cached) $ECHO_C" >&6
4366
# See if sys/param.h defines the BYTE_ORDER macro.
4367
cat >conftest.$ac_ext <<_ACEOF
4370
cat confdefs.h >>conftest.$ac_ext
4371
cat >>conftest.$ac_ext <<_ACEOF
4372
/* end confdefs.h. */
4373
#include <sys/types.h>
4374
#include <sys/param.h>
4379
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4387
rm -f conftest.$ac_objext
4388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389
(eval $ac_compile) 2>conftest.er1
4391
grep -v '^ *+' conftest.er1 >conftest.err
4393
cat conftest.err >&5
4394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395
(exit $ac_status); } &&
4396
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401
(exit $ac_status); }; } &&
4402
{ ac_try='test -s conftest.$ac_objext'
4403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407
(exit $ac_status); }; }; then
4408
# It does; now see whether it defined to BIG_ENDIAN or not.
4409
cat >conftest.$ac_ext <<_ACEOF
4412
cat confdefs.h >>conftest.$ac_ext
4413
cat >>conftest.$ac_ext <<_ACEOF
4414
/* end confdefs.h. */
4415
#include <sys/types.h>
4416
#include <sys/param.h>
4421
#if BYTE_ORDER != BIG_ENDIAN
4429
rm -f conftest.$ac_objext
4430
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431
(eval $ac_compile) 2>conftest.er1
4433
grep -v '^ *+' conftest.er1 >conftest.err
4435
cat conftest.err >&5
4436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437
(exit $ac_status); } &&
4438
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443
(exit $ac_status); }; } &&
4444
{ ac_try='test -s conftest.$ac_objext'
4445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449
(exit $ac_status); }; }; then
4450
ac_cv_c_bigendian=yes
4452
echo "$as_me: failed program was:" >&5
4453
sed 's/^/| /' conftest.$ac_ext >&5
4455
ac_cv_c_bigendian=no
4457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4459
echo "$as_me: failed program was:" >&5
4460
sed 's/^/| /' conftest.$ac_ext >&5
4462
# It does not; compile a test program.
4463
if test "$cross_compiling" = yes; then
4464
# try to guess the endianness by grepping values into an object file
4465
ac_cv_c_bigendian=unknown
4466
cat >conftest.$ac_ext <<_ACEOF
4469
cat confdefs.h >>conftest.$ac_ext
4470
cat >>conftest.$ac_ext <<_ACEOF
4471
/* end confdefs.h. */
4472
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4473
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4474
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4475
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4476
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4477
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4481
_ascii (); _ebcdic ();
4486
rm -f conftest.$ac_objext
4487
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488
(eval $ac_compile) 2>conftest.er1
4490
grep -v '^ *+' conftest.er1 >conftest.err
4492
cat conftest.err >&5
4493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494
(exit $ac_status); } &&
4495
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500
(exit $ac_status); }; } &&
4501
{ ac_try='test -s conftest.$ac_objext'
4502
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
(exit $ac_status); }; }; then
4507
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4508
ac_cv_c_bigendian=yes
4510
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4511
if test "$ac_cv_c_bigendian" = unknown; then
4512
ac_cv_c_bigendian=no
4514
# finding both strings is unlikely to happen, but who knows?
4515
ac_cv_c_bigendian=unknown
4519
echo "$as_me: failed program was:" >&5
4520
sed 's/^/| /' conftest.$ac_ext >&5
4523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525
cat >conftest.$ac_ext <<_ACEOF
4528
cat confdefs.h >>conftest.$ac_ext
4529
cat >>conftest.$ac_ext <<_ACEOF
4530
/* end confdefs.h. */
4534
/* Are we little or big endian? From Harbison&Steele. */
4538
char c[sizeof (long)];
4541
exit (u.c[sizeof (long) - 1] == 1);
4544
rm -f conftest$ac_exeext
4545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4546
(eval $ac_link) 2>&5
4548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554
(exit $ac_status); }; }; then
4555
ac_cv_c_bigendian=no
4557
echo "$as_me: program exited with status $ac_status" >&5
4558
echo "$as_me: failed program was:" >&5
4559
sed 's/^/| /' conftest.$ac_ext >&5
4562
ac_cv_c_bigendian=yes
4564
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4567
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4570
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4571
case $ac_cv_c_bigendian in
4574
cat >>confdefs.h <<\_ACEOF
4575
#define WORDS_BIGENDIAN 1
4581
{ { echo "$as_me:$LINENO: error: unknown endianness
4582
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4583
echo "$as_me: error: unknown endianness
4584
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4585
{ (exit 1); exit 1; }; } ;;
4590
for ac_header in stdlib.h
4592
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4593
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4594
echo "$as_me:$LINENO: checking for $ac_header" >&5
4595
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4597
echo $ECHO_N "(cached) $ECHO_C" >&6
4599
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4600
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4602
# Is the header compilable?
4603
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4604
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4605
cat >conftest.$ac_ext <<_ACEOF
4608
cat confdefs.h >>conftest.$ac_ext
4609
cat >>conftest.$ac_ext <<_ACEOF
4610
/* end confdefs.h. */
4611
$ac_includes_default
4612
#include <$ac_header>
4614
rm -f conftest.$ac_objext
4615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616
(eval $ac_compile) 2>conftest.er1
4618
grep -v '^ *+' conftest.er1 >conftest.err
4620
cat conftest.err >&5
4621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622
(exit $ac_status); } &&
4623
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628
(exit $ac_status); }; } &&
4629
{ ac_try='test -s conftest.$ac_objext'
4630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634
(exit $ac_status); }; }; then
4635
ac_header_compiler=yes
4637
echo "$as_me: failed program was:" >&5
4638
sed 's/^/| /' conftest.$ac_ext >&5
4640
ac_header_compiler=no
4642
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4644
echo "${ECHO_T}$ac_header_compiler" >&6
4646
# Is the header present?
4647
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4648
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4649
cat >conftest.$ac_ext <<_ACEOF
4652
cat confdefs.h >>conftest.$ac_ext
4653
cat >>conftest.$ac_ext <<_ACEOF
4654
/* end confdefs.h. */
4655
#include <$ac_header>
4657
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4658
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4660
grep -v '^ *+' conftest.er1 >conftest.err
4662
cat conftest.err >&5
4663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664
(exit $ac_status); } >/dev/null; then
4665
if test -s conftest.err; then
4666
ac_cpp_err=$ac_c_preproc_warn_flag
4667
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4674
if test -z "$ac_cpp_err"; then
4675
ac_header_preproc=yes
4677
echo "$as_me: failed program was:" >&5
4678
sed 's/^/| /' conftest.$ac_ext >&5
4680
ac_header_preproc=no
4682
rm -f conftest.err conftest.$ac_ext
4683
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4684
echo "${ECHO_T}$ac_header_preproc" >&6
4686
# So? What about this header?
4687
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4689
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4690
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4691
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4692
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4693
ac_header_preproc=yes
4696
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4697
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4698
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4699
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4700
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4701
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4702
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4703
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4704
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4705
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4706
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4707
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4710
## ------------------------------------------ ##
4711
## Report this to the AC_PACKAGE_NAME lists. ##
4712
## ------------------------------------------ ##
4715
sed "s/^/$as_me: WARNING: /" >&2
4718
echo "$as_me:$LINENO: checking for $ac_header" >&5
4719
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721
echo $ECHO_N "(cached) $ECHO_C" >&6
4723
eval "$as_ac_Header=\$ac_header_preproc"
4725
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4726
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4729
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4730
cat >>confdefs.h <<_ACEOF
4731
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4738
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4739
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4740
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4741
echo $ECHO_N "(cached) $ECHO_C" >&6
4743
if test "$cross_compiling" = yes; then
4744
ac_cv_func_malloc_0_nonnull=no
4746
cat >conftest.$ac_ext <<_ACEOF
4749
cat confdefs.h >>conftest.$ac_ext
4750
cat >>conftest.$ac_ext <<_ACEOF
4751
/* end confdefs.h. */
4752
#if STDC_HEADERS || HAVE_STDLIB_H
4753
# include <stdlib.h>
4761
exit (malloc (0) ? 0 : 1);
4766
rm -f conftest$ac_exeext
4767
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4768
(eval $ac_link) 2>&5
4770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776
(exit $ac_status); }; }; then
4777
ac_cv_func_malloc_0_nonnull=yes
4779
echo "$as_me: program exited with status $ac_status" >&5
4780
echo "$as_me: failed program was:" >&5
4781
sed 's/^/| /' conftest.$ac_ext >&5
4784
ac_cv_func_malloc_0_nonnull=no
4786
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4789
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4790
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4791
if test $ac_cv_func_malloc_0_nonnull = yes; then
4793
cat >>confdefs.h <<\_ACEOF
4794
#define HAVE_MALLOC 1
4798
cat >>confdefs.h <<\_ACEOF
4799
#define HAVE_MALLOC 0
4803
"malloc.$ac_objext" | \
4804
*" malloc.$ac_objext" | \
4805
"malloc.$ac_objext "* | \
4806
*" malloc.$ac_objext "* ) ;;
4807
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4811
cat >>confdefs.h <<\_ACEOF
4812
#define malloc rpl_malloc
4821
for ac_header in sys/select.h sys/socket.h
4823
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4824
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4825
echo "$as_me:$LINENO: checking for $ac_header" >&5
4826
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4827
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4828
echo $ECHO_N "(cached) $ECHO_C" >&6
4830
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4831
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4833
# Is the header compilable?
4834
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4835
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4836
cat >conftest.$ac_ext <<_ACEOF
4839
cat confdefs.h >>conftest.$ac_ext
4840
cat >>conftest.$ac_ext <<_ACEOF
4841
/* end confdefs.h. */
4842
$ac_includes_default
4843
#include <$ac_header>
4845
rm -f conftest.$ac_objext
4846
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847
(eval $ac_compile) 2>conftest.er1
4849
grep -v '^ *+' conftest.er1 >conftest.err
4851
cat conftest.err >&5
4852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853
(exit $ac_status); } &&
4854
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859
(exit $ac_status); }; } &&
4860
{ ac_try='test -s conftest.$ac_objext'
4861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865
(exit $ac_status); }; }; then
4866
ac_header_compiler=yes
4868
echo "$as_me: failed program was:" >&5
4869
sed 's/^/| /' conftest.$ac_ext >&5
4871
ac_header_compiler=no
4873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4874
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4875
echo "${ECHO_T}$ac_header_compiler" >&6
4877
# Is the header present?
4878
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4879
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4880
cat >conftest.$ac_ext <<_ACEOF
4883
cat confdefs.h >>conftest.$ac_ext
4884
cat >>conftest.$ac_ext <<_ACEOF
4885
/* end confdefs.h. */
4886
#include <$ac_header>
4888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4889
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4891
grep -v '^ *+' conftest.er1 >conftest.err
4893
cat conftest.err >&5
4894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
(exit $ac_status); } >/dev/null; then
4896
if test -s conftest.err; then
4897
ac_cpp_err=$ac_c_preproc_warn_flag
4898
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4905
if test -z "$ac_cpp_err"; then
4906
ac_header_preproc=yes
4908
echo "$as_me: failed program was:" >&5
4909
sed 's/^/| /' conftest.$ac_ext >&5
4911
ac_header_preproc=no
4913
rm -f conftest.err conftest.$ac_ext
4914
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4915
echo "${ECHO_T}$ac_header_preproc" >&6
4917
# So? What about this header?
4918
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4920
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4921
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4922
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4923
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4924
ac_header_preproc=yes
4927
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4928
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4929
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4930
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4931
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4932
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4933
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4934
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4935
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4936
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4937
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4938
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4941
## ------------------------------------------ ##
4942
## Report this to the AC_PACKAGE_NAME lists. ##
4943
## ------------------------------------------ ##
4946
sed "s/^/$as_me: WARNING: /" >&2
4949
echo "$as_me:$LINENO: checking for $ac_header" >&5
4950
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4951
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4952
echo $ECHO_N "(cached) $ECHO_C" >&6
4954
eval "$as_ac_Header=\$ac_header_preproc"
4956
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4957
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4960
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4961
cat >>confdefs.h <<_ACEOF
4962
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969
echo "$as_me:$LINENO: checking types of arguments for select" >&5
4970
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
4971
if test "${ac_cv_func_select_args+set}" = set; then
4972
echo $ECHO_N "(cached) $ECHO_C" >&6
4974
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4975
for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4976
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4977
cat >conftest.$ac_ext <<_ACEOF
4980
cat confdefs.h >>conftest.$ac_ext
4981
cat >>conftest.$ac_ext <<_ACEOF
4982
/* end confdefs.h. */
4983
$ac_includes_default
4984
#if HAVE_SYS_SELECT_H
4985
# include <sys/select.h>
4987
#if HAVE_SYS_SOCKET_H
4988
# include <sys/socket.h>
4994
extern int select ($ac_arg1,
4995
$ac_arg234, $ac_arg234, $ac_arg234,
5001
rm -f conftest.$ac_objext
5002
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003
(eval $ac_compile) 2>conftest.er1
5005
grep -v '^ *+' conftest.er1 >conftest.err
5007
cat conftest.err >&5
5008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009
(exit $ac_status); } &&
5010
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015
(exit $ac_status); }; } &&
5016
{ ac_try='test -s conftest.$ac_objext'
5017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021
(exit $ac_status); }; }; then
5022
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5024
echo "$as_me: failed program was:" >&5
5025
sed 's/^/| /' conftest.$ac_ext >&5
5028
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032
# Provide a safe default value.
5033
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
5036
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
5037
echo "${ECHO_T}$ac_cv_func_select_args" >&6
5038
ac_save_IFS=$IFS; IFS=','
5039
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5043
cat >>confdefs.h <<_ACEOF
5044
#define SELECT_TYPE_ARG1 $1
5048
cat >>confdefs.h <<_ACEOF
5049
#define SELECT_TYPE_ARG234 ($2)
5053
cat >>confdefs.h <<_ACEOF
5054
#define SELECT_TYPE_ARG5 ($3)
5059
echo "$as_me:$LINENO: checking for working strtod" >&5
5060
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
5061
if test "${ac_cv_func_strtod+set}" = set; then
5062
echo $ECHO_N "(cached) $ECHO_C" >&6
5064
if test "$cross_compiling" = yes; then
5065
ac_cv_func_strtod=no
5067
cat >conftest.$ac_ext <<_ACEOF
5070
cat confdefs.h >>conftest.$ac_ext
5071
cat >>conftest.$ac_ext <<_ACEOF
5072
/* end confdefs.h. */
5079
/* Some versions of Linux strtod mis-parse strings with leading '+'. */
5080
char *string = " +69";
5083
value = strtod (string, &term);
5084
if (value != 69 || term != (string + 4))
5089
/* Under Solaris 2.4, strtod returns the wrong value for the
5090
terminating character under some conditions. */
5091
char *string = "NaN";
5093
strtod (string, &term);
5094
if (term != string && *(term - 1) == 0)
5101
rm -f conftest$ac_exeext
5102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5103
(eval $ac_link) 2>&5
5105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111
(exit $ac_status); }; }; then
5112
ac_cv_func_strtod=yes
5114
echo "$as_me: program exited with status $ac_status" >&5
5115
echo "$as_me: failed program was:" >&5
5116
sed 's/^/| /' conftest.$ac_ext >&5
5119
ac_cv_func_strtod=no
5121
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5124
echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
5125
echo "${ECHO_T}$ac_cv_func_strtod" >&6
5126
if test $ac_cv_func_strtod = no; then
5128
"strtod.$ac_objext" | \
5129
*" strtod.$ac_objext" | \
5130
"strtod.$ac_objext "* | \
5131
*" strtod.$ac_objext "* ) ;;
5132
*) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
5135
echo "$as_me:$LINENO: checking for pow" >&5
5136
echo $ECHO_N "checking for pow... $ECHO_C" >&6
5137
if test "${ac_cv_func_pow+set}" = set; then
5138
echo $ECHO_N "(cached) $ECHO_C" >&6
5140
cat >conftest.$ac_ext <<_ACEOF
5143
cat confdefs.h >>conftest.$ac_ext
5144
cat >>conftest.$ac_ext <<_ACEOF
5145
/* end confdefs.h. */
5146
/* Define pow to an innocuous variant, in case <limits.h> declares pow.
5147
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5148
#define pow innocuous_pow
5150
/* System header to define __stub macros and hopefully few prototypes,
5151
which can conflict with char pow (); below.
5152
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5153
<limits.h> exists even on freestanding compilers. */
5156
# include <limits.h>
5158
# include <assert.h>
5163
/* Override any gcc2 internal prototype to avoid an error. */
5168
/* We use char because int might match the return type of a gcc2
5169
builtin and then its argument prototype would still apply. */
5171
/* The GNU C library defines this for functions which it implements
5172
to always fail with ENOSYS. Some functions are actually named
5173
something starting with __ and the normal name is an alias. */
5174
#if defined (__stub_pow) || defined (__stub___pow)
5191
rm -f conftest.$ac_objext conftest$ac_exeext
5192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193
(eval $ac_link) 2>conftest.er1
5195
grep -v '^ *+' conftest.er1 >conftest.err
5197
cat conftest.err >&5
5198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199
(exit $ac_status); } &&
5200
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205
(exit $ac_status); }; } &&
5206
{ ac_try='test -s conftest$ac_exeext'
5207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211
(exit $ac_status); }; }; then
5214
echo "$as_me: failed program was:" >&5
5215
sed 's/^/| /' conftest.$ac_ext >&5
5219
rm -f conftest.err conftest.$ac_objext \
5220
conftest$ac_exeext conftest.$ac_ext
5222
echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
5223
echo "${ECHO_T}$ac_cv_func_pow" >&6
5225
if test $ac_cv_func_pow = no; then
5226
echo "$as_me:$LINENO: checking for pow in -lm" >&5
5227
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
5228
if test "${ac_cv_lib_m_pow+set}" = set; then
5229
echo $ECHO_N "(cached) $ECHO_C" >&6
5231
ac_check_lib_save_LIBS=$LIBS
5233
cat >conftest.$ac_ext <<_ACEOF
5236
cat confdefs.h >>conftest.$ac_ext
5237
cat >>conftest.$ac_ext <<_ACEOF
5238
/* end confdefs.h. */
5240
/* Override any gcc2 internal prototype to avoid an error. */
5244
/* We use char because int might match the return type of a gcc2
5245
builtin and then its argument prototype would still apply. */
5255
rm -f conftest.$ac_objext conftest$ac_exeext
5256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5257
(eval $ac_link) 2>conftest.er1
5259
grep -v '^ *+' conftest.er1 >conftest.err
5261
cat conftest.err >&5
5262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263
(exit $ac_status); } &&
5264
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269
(exit $ac_status); }; } &&
5270
{ ac_try='test -s conftest$ac_exeext'
5271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275
(exit $ac_status); }; }; then
5278
echo "$as_me: failed program was:" >&5
5279
sed 's/^/| /' conftest.$ac_ext >&5
5283
rm -f conftest.err conftest.$ac_objext \
5284
conftest$ac_exeext conftest.$ac_ext
5285
LIBS=$ac_check_lib_save_LIBS
5287
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
5288
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
5289
if test $ac_cv_lib_m_pow = yes; then
5292
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
5293
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
5304
for ac_func in alarm gethostbyname socket select
5306
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5307
echo "$as_me:$LINENO: checking for $ac_func" >&5
5308
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5309
if eval "test \"\${$as_ac_var+set}\" = set"; then
5310
echo $ECHO_N "(cached) $ECHO_C" >&6
5312
cat >conftest.$ac_ext <<_ACEOF
5315
cat confdefs.h >>conftest.$ac_ext
5316
cat >>conftest.$ac_ext <<_ACEOF
5317
/* end confdefs.h. */
5318
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5319
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5320
#define $ac_func innocuous_$ac_func
5322
/* System header to define __stub macros and hopefully few prototypes,
5323
which can conflict with char $ac_func (); below.
5324
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5325
<limits.h> exists even on freestanding compilers. */
5328
# include <limits.h>
5330
# include <assert.h>
5335
/* Override any gcc2 internal prototype to avoid an error. */
5340
/* We use char because int might match the return type of a gcc2
5341
builtin and then its argument prototype would still apply. */
5343
/* The GNU C library defines this for functions which it implements
5344
to always fail with ENOSYS. Some functions are actually named
5345
something starting with __ and the normal name is an alias. */
5346
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5349
char (*f) () = $ac_func;
5358
return f != $ac_func;
5363
rm -f conftest.$ac_objext conftest$ac_exeext
5364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5365
(eval $ac_link) 2>conftest.er1
5367
grep -v '^ *+' conftest.er1 >conftest.err
5369
cat conftest.err >&5
5370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371
(exit $ac_status); } &&
5372
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377
(exit $ac_status); }; } &&
5378
{ ac_try='test -s conftest$ac_exeext'
5379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383
(exit $ac_status); }; }; then
5384
eval "$as_ac_var=yes"
5386
echo "$as_me: failed program was:" >&5
5387
sed 's/^/| /' conftest.$ac_ext >&5
5389
eval "$as_ac_var=no"
5391
rm -f conftest.err conftest.$ac_objext \
5392
conftest$ac_exeext conftest.$ac_ext
5394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5395
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5396
if test `eval echo '${'$as_ac_var'}'` = yes; then
5397
cat >>confdefs.h <<_ACEOF
5398
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5409
for ac_func in memmove memset strchr strdup strerror
5411
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5412
echo "$as_me:$LINENO: checking for $ac_func" >&5
5413
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5414
if eval "test \"\${$as_ac_var+set}\" = set"; then
5415
echo $ECHO_N "(cached) $ECHO_C" >&6
5417
cat >conftest.$ac_ext <<_ACEOF
5420
cat confdefs.h >>conftest.$ac_ext
5421
cat >>conftest.$ac_ext <<_ACEOF
5422
/* end confdefs.h. */
5423
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5424
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5425
#define $ac_func innocuous_$ac_func
5427
/* System header to define __stub macros and hopefully few prototypes,
5428
which can conflict with char $ac_func (); below.
5429
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5430
<limits.h> exists even on freestanding compilers. */
5433
# include <limits.h>
5435
# include <assert.h>
5440
/* Override any gcc2 internal prototype to avoid an error. */
5445
/* We use char because int might match the return type of a gcc2
5446
builtin and then its argument prototype would still apply. */
5448
/* The GNU C library defines this for functions which it implements
5449
to always fail with ENOSYS. Some functions are actually named
5450
something starting with __ and the normal name is an alias. */
5451
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5454
char (*f) () = $ac_func;
5463
return f != $ac_func;
5468
rm -f conftest.$ac_objext conftest$ac_exeext
5469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470
(eval $ac_link) 2>conftest.er1
5472
grep -v '^ *+' conftest.er1 >conftest.err
5474
cat conftest.err >&5
5475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476
(exit $ac_status); } &&
5477
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482
(exit $ac_status); }; } &&
5483
{ ac_try='test -s conftest$ac_exeext'
5484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488
(exit $ac_status); }; }; then
5489
eval "$as_ac_var=yes"
5491
echo "$as_me: failed program was:" >&5
5492
sed 's/^/| /' conftest.$ac_ext >&5
5494
eval "$as_ac_var=no"
5496
rm -f conftest.err conftest.$ac_objext \
5497
conftest$ac_exeext conftest.$ac_ext
5499
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5500
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5501
if test `eval echo '${'$as_ac_var'}'` = yes; then
5502
cat >>confdefs.h <<_ACEOF
5503
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5510
for ac_func in getpassphrase
5512
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5513
echo "$as_me:$LINENO: checking for $ac_func" >&5
5514
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5515
if eval "test \"\${$as_ac_var+set}\" = set"; then
5516
echo $ECHO_N "(cached) $ECHO_C" >&6
5518
cat >conftest.$ac_ext <<_ACEOF
5521
cat confdefs.h >>conftest.$ac_ext
5522
cat >>conftest.$ac_ext <<_ACEOF
5523
/* end confdefs.h. */
5524
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5525
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5526
#define $ac_func innocuous_$ac_func
5528
/* System header to define __stub macros and hopefully few prototypes,
5529
which can conflict with char $ac_func (); below.
5530
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5531
<limits.h> exists even on freestanding compilers. */
5534
# include <limits.h>
5536
# include <assert.h>
5541
/* Override any gcc2 internal prototype to avoid an error. */
5546
/* We use char because int might match the return type of a gcc2
5547
builtin and then its argument prototype would still apply. */
5549
/* The GNU C library defines this for functions which it implements
5550
to always fail with ENOSYS. Some functions are actually named
5551
something starting with __ and the normal name is an alias. */
5552
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5555
char (*f) () = $ac_func;
5564
return f != $ac_func;
5569
rm -f conftest.$ac_objext conftest$ac_exeext
5570
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571
(eval $ac_link) 2>conftest.er1
5573
grep -v '^ *+' conftest.er1 >conftest.err
5575
cat conftest.err >&5
5576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577
(exit $ac_status); } &&
5578
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583
(exit $ac_status); }; } &&
5584
{ ac_try='test -s conftest$ac_exeext'
5585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589
(exit $ac_status); }; }; then
5590
eval "$as_ac_var=yes"
5592
echo "$as_me: failed program was:" >&5
5593
sed 's/^/| /' conftest.$ac_ext >&5
5595
eval "$as_ac_var=no"
5597
rm -f conftest.err conftest.$ac_objext \
5598
conftest$ac_exeext conftest.$ac_ext
5600
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5601
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5602
if test `eval echo '${'$as_ac_var'}'` = yes; then
5603
cat >>confdefs.h <<_ACEOF
5604
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5611
CFLAGS="$CFLAGS -fno-strict-aliasing"
5613
# Check whether --enable-shared or --disable-shared was given.
5614
if test "${enable_shared+set}" = set; then
5615
enableval="$enable_shared"
5616
p=${PACKAGE-default}
5618
yes) enable_shared=yes ;;
5619
no) enable_shared=no ;;
5622
# Look at the argument we got. We use all the common list separators.
5623
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5624
for pkg in $enableval; do
5626
if test "X$pkg" = "X$p"; then
5637
# Check whether --enable-static or --disable-static was given.
5638
if test "${enable_static+set}" = set; then
5639
enableval="$enable_static"
5640
p=${PACKAGE-default}
5642
yes) enable_static=yes ;;
5643
no) enable_static=no ;;
5646
# Look at the argument we got. We use all the common list separators.
5647
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5648
for pkg in $enableval; do
5650
if test "X$pkg" = "X$p"; then
5661
# Check whether --enable-fast-install or --disable-fast-install was given.
5662
if test "${enable_fast_install+set}" = set; then
5663
enableval="$enable_fast_install"
5664
p=${PACKAGE-default}
5666
yes) enable_fast_install=yes ;;
5667
no) enable_fast_install=no ;;
5669
enable_fast_install=no
5670
# Look at the argument we got. We use all the common list separators.
5671
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5672
for pkg in $enableval; do
5674
if test "X$pkg" = "X$p"; then
5675
enable_fast_install=yes
5682
enable_fast_install=yes
5685
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5686
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5687
if test "${lt_cv_path_SED+set}" = set; then
5688
echo $ECHO_N "(cached) $ECHO_C" >&6
5690
# Loop through the user's path and test for sed and gsed.
5691
# Then use that list of sed's as ones to test for truncation.
5692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696
test -z "$as_dir" && as_dir=.
5697
for lt_ac_prog in sed gsed; do
5698
for ac_exec_ext in '' $ac_executable_extensions; do
5699
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5700
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5707
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5708
# along with /bin/sed that truncates output.
5709
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5710
test ! -f $lt_ac_sed && break
5711
cat /dev/null > conftest.in
5713
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5714
# Check for GNU sed and select it if it is found.
5715
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5716
lt_cv_path_SED=$lt_ac_sed
5720
cat conftest.in conftest.in >conftest.tmp
5721
mv conftest.tmp conftest.in
5722
cp conftest.in conftest.nl
5724
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5725
cmp -s conftest.out conftest.nl || break
5726
# 10000 chars as input seems more than enough
5727
test $lt_ac_count -gt 10 && break
5728
lt_ac_count=`expr $lt_ac_count + 1`
5729
if test $lt_ac_count -gt $lt_ac_max; then
5730
lt_ac_max=$lt_ac_count
5731
lt_cv_path_SED=$lt_ac_sed
5739
echo "$as_me:$LINENO: result: $SED" >&5
5740
echo "${ECHO_T}$SED" >&6
5743
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5744
if test "${with_gnu_ld+set}" = set; then
5745
withval="$with_gnu_ld"
5746
test "$withval" = no || with_gnu_ld=yes
5751
if test "$GCC" = yes; then
5752
# Check if gcc -print-prog-name=ld gives a path.
5753
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5754
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5757
# gcc leaves a trailing carriage return which upsets mingw
5758
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5760
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5763
# Accept absolute paths.
5765
re_direlt='/[^/][^/]*/\.\./'
5766
# Canonicalize the pathname of ld
5767
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5768
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5769
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5771
test -z "$LD" && LD="$ac_prog"
5774
# If it fails, then pretend we aren't using GCC.
5778
# If it is relative, then search for the first ld in PATH.
5782
elif test "$with_gnu_ld" = yes; then
5783
echo "$as_me:$LINENO: checking for GNU ld" >&5
5784
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5786
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5787
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5789
if test "${lt_cv_path_LD+set}" = set; then
5790
echo $ECHO_N "(cached) $ECHO_C" >&6
5792
if test -z "$LD"; then
5793
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5794
for ac_dir in $PATH; do
5796
test -z "$ac_dir" && ac_dir=.
5797
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5798
lt_cv_path_LD="$ac_dir/$ac_prog"
5799
# Check to see if the program is GNU ld. I'd rather use --version,
5800
# but apparently some GNU ld's only accept -v.
5801
# Break only if it was the GNU/non-GNU ld that we prefer.
5802
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5803
*GNU* | *'with BFD'*)
5804
test "$with_gnu_ld" != no && break
5807
test "$with_gnu_ld" != yes && break
5814
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5819
if test -n "$LD"; then
5820
echo "$as_me:$LINENO: result: $LD" >&5
5821
echo "${ECHO_T}$LD" >&6
5823
echo "$as_me:$LINENO: result: no" >&5
5824
echo "${ECHO_T}no" >&6
5826
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5827
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5828
{ (exit 1); exit 1; }; }
5829
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5830
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5831
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5832
echo $ECHO_N "(cached) $ECHO_C" >&6
5834
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
5835
case `$LD -v 2>&1 </dev/null` in
5836
*GNU* | *'with BFD'*)
5837
lt_cv_prog_gnu_ld=yes
5840
lt_cv_prog_gnu_ld=no
5844
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5845
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5846
with_gnu_ld=$lt_cv_prog_gnu_ld
5849
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5850
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5851
if test "${lt_cv_ld_reload_flag+set}" = set; then
5852
echo $ECHO_N "(cached) $ECHO_C" >&6
5854
lt_cv_ld_reload_flag='-r'
5856
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5857
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5858
reload_flag=$lt_cv_ld_reload_flag
5859
case $reload_flag in
5861
*) reload_flag=" $reload_flag" ;;
5863
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5865
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5866
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5867
if test "${lt_cv_path_NM+set}" = set; then
5868
echo $ECHO_N "(cached) $ECHO_C" >&6
5870
if test -n "$NM"; then
5871
# Let the user override the test.
5874
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5875
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5877
test -z "$ac_dir" && ac_dir=.
5878
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5879
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5880
# Check to see if the nm accepts a BSD-compat flag.
5881
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5882
# nm: unknown option "B" ignored
5883
# Tru64's nm complains that /dev/null is an invalid object file
5884
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5885
*/dev/null* | *'Invalid file or object type'*)
5886
lt_cv_path_NM="$tmp_nm -B"
5890
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5892
lt_cv_path_NM="$tmp_nm -p"
5896
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5897
continue # so that we can try to find one that supports BSD flags
5904
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5907
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5908
echo "${ECHO_T}$lt_cv_path_NM" >&6
5911
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5912
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5913
if test "${lt_cv_deplibs_check_method+set}" = set; then
5914
echo $ECHO_N "(cached) $ECHO_C" >&6
5916
lt_cv_file_magic_cmd='$MAGIC_CMD'
5917
lt_cv_file_magic_test_file=
5918
lt_cv_deplibs_check_method='unknown'
5919
# Need to set the preceding variable on all platforms that support
5920
# interlibrary dependencies.
5921
# 'none' -- dependencies not supported.
5922
# `unknown' -- same as none, but documents that we really don't know.
5923
# 'pass_all' -- all dependencies passed with no checks.
5924
# 'test_compile' -- check by making test program.
5925
# 'file_magic [[regex]]' -- check by looking for files in library path
5926
# which responds to the $file_magic_cmd with a given extended regex.
5927
# If you have `file' or equivalent on your system and you're not sure
5928
# whether `pass_all' will *always* work, you probably want this one.
5932
lt_cv_deplibs_check_method=pass_all
5936
lt_cv_deplibs_check_method=pass_all
5940
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5941
lt_cv_file_magic_cmd='/usr/bin/file -L'
5942
lt_cv_file_magic_test_file=/shlib/libc.so
5946
# func_win32_libid is a shell function defined in ltmain.sh
5947
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5948
lt_cv_file_magic_cmd='func_win32_libid'
5952
# Base MSYS/MinGW do not provide the 'file' command needed by
5953
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
5954
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5955
lt_cv_file_magic_cmd='$OBJDUMP -f'
5958
darwin* | rhapsody*)
5959
lt_cv_deplibs_check_method=pass_all
5962
freebsd* | kfreebsd*-gnu)
5963
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5966
# Not sure whether the presence of OpenBSD here was a mistake.
5967
# Let's accept both of them until this is cleared up.
5968
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5969
lt_cv_file_magic_cmd=/usr/bin/file
5970
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5974
lt_cv_deplibs_check_method=pass_all
5979
lt_cv_deplibs_check_method=pass_all
5982
hpux10.20* | hpux11*)
5983
lt_cv_file_magic_cmd=/usr/bin/file
5986
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5987
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5990
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]'
5991
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5994
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5995
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6000
irix5* | irix6* | nonstopux*)
6002
*-32|*"-32 ") libmagic=32-bit;;
6003
*-n32|*"-n32 ") libmagic=N32;;
6004
*-64|*"-64 ") libmagic=64-bit;;
6005
*) libmagic=never-match;;
6007
lt_cv_deplibs_check_method=pass_all
6010
# This must be Linux ELF.
6012
lt_cv_deplibs_check_method=pass_all
6015
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6016
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6017
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6019
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6024
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6025
lt_cv_file_magic_cmd=/usr/bin/file
6026
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6030
lt_cv_deplibs_check_method=unknown
6034
lt_cv_file_magic_cmd=/usr/bin/file
6035
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6036
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6037
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6039
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6043
osf3* | osf4* | osf5*)
6044
lt_cv_deplibs_check_method=pass_all
6048
lt_cv_deplibs_check_method=pass_all
6052
lt_cv_deplibs_check_method=pass_all
6055
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6056
case $host_vendor in
6058
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]'
6059
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6062
lt_cv_deplibs_check_method=pass_all
6065
lt_cv_file_magic_cmd='/bin/file'
6066
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6069
lt_cv_file_magic_cmd='/bin/file'
6070
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6071
lt_cv_file_magic_test_file=/lib/libc.so
6074
lt_cv_deplibs_check_method=pass_all
6079
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6080
lt_cv_deplibs_check_method=pass_all
6085
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6086
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6087
file_magic_cmd=$lt_cv_file_magic_cmd
6088
deplibs_check_method=$lt_cv_deplibs_check_method
6089
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6094
# If no C compiler was specified, use CC.
6097
# Allow CC to be a program name with arguments.
6100
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6101
if test "${enable_libtool_lock+set}" = set; then
6102
enableval="$enable_libtool_lock"
6105
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6107
# Some flags need to be propagated to the compiler or linker for good
6111
# Find out which ABI we are using.
6112
echo 'int i;' > conftest.$ac_ext
6113
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114
(eval $ac_compile) 2>&5
6116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117
(exit $ac_status); }; then
6118
case `/usr/bin/file conftest.$ac_objext` in
6130
# Find out which ABI we are using.
6131
echo '#line 6131 "configure"' > conftest.$ac_ext
6132
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133
(eval $ac_compile) 2>&5
6135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136
(exit $ac_status); }; then
6137
if test "$lt_cv_prog_gnu_ld" = yes; then
6138
case `/usr/bin/file conftest.$ac_objext` in
6140
LD="${LD-ld} -melf32bsmip"
6143
LD="${LD-ld} -melf32bmipn32"
6146
LD="${LD-ld} -melf64bmip"
6150
case `/usr/bin/file conftest.$ac_objext` in
6166
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6167
# Find out which ABI we are using.
6168
echo 'int i;' > conftest.$ac_ext
6169
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170
(eval $ac_compile) 2>&5
6172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173
(exit $ac_status); }; then
6174
case "`/usr/bin/file conftest.o`" in
6178
LD="${LD-ld} -m elf_i386"
6180
ppc64-*linux*|powerpc64-*linux*)
6181
LD="${LD-ld} -m elf32ppclinux"
6184
LD="${LD-ld} -m elf_s390"
6187
LD="${LD-ld} -m elf32_sparc"
6194
LD="${LD-ld} -m elf_x86_64"
6196
ppc*-*linux*|powerpc*-*linux*)
6197
LD="${LD-ld} -m elf64ppc"
6200
LD="${LD-ld} -m elf64_s390"
6203
LD="${LD-ld} -m elf64_sparc"
6213
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6214
SAVE_CFLAGS="$CFLAGS"
6215
CFLAGS="$CFLAGS -belf"
6216
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6217
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6218
if test "${lt_cv_cc_needs_belf+set}" = set; then
6219
echo $ECHO_N "(cached) $ECHO_C" >&6
6222
ac_cpp='$CPP $CPPFLAGS'
6223
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227
cat >conftest.$ac_ext <<_ACEOF
6230
cat confdefs.h >>conftest.$ac_ext
6231
cat >>conftest.$ac_ext <<_ACEOF
6232
/* end confdefs.h. */
6242
rm -f conftest.$ac_objext conftest$ac_exeext
6243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6244
(eval $ac_link) 2>conftest.er1
6246
grep -v '^ *+' conftest.er1 >conftest.err
6248
cat conftest.err >&5
6249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250
(exit $ac_status); } &&
6251
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256
(exit $ac_status); }; } &&
6257
{ ac_try='test -s conftest$ac_exeext'
6258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262
(exit $ac_status); }; }; then
6263
lt_cv_cc_needs_belf=yes
6265
echo "$as_me: failed program was:" >&5
6266
sed 's/^/| /' conftest.$ac_ext >&5
6268
lt_cv_cc_needs_belf=no
6270
rm -f conftest.err conftest.$ac_objext \
6271
conftest$ac_exeext conftest.$ac_ext
6273
ac_cpp='$CPP $CPPFLAGS'
6274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6280
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6281
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6282
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6283
CFLAGS="$SAVE_CFLAGS"
6289
need_locks="$enable_libtool_lock"
6293
for ac_header in dlfcn.h
6295
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297
echo "$as_me:$LINENO: checking for $ac_header" >&5
6298
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6299
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300
echo $ECHO_N "(cached) $ECHO_C" >&6
6302
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6303
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6305
# Is the header compilable?
6306
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6307
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6308
cat >conftest.$ac_ext <<_ACEOF
6311
cat confdefs.h >>conftest.$ac_ext
6312
cat >>conftest.$ac_ext <<_ACEOF
6313
/* end confdefs.h. */
6314
$ac_includes_default
6315
#include <$ac_header>
6317
rm -f conftest.$ac_objext
6318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319
(eval $ac_compile) 2>conftest.er1
6321
grep -v '^ *+' conftest.er1 >conftest.err
6323
cat conftest.err >&5
6324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325
(exit $ac_status); } &&
6326
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331
(exit $ac_status); }; } &&
6332
{ ac_try='test -s conftest.$ac_objext'
6333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337
(exit $ac_status); }; }; then
6338
ac_header_compiler=yes
6340
echo "$as_me: failed program was:" >&5
6341
sed 's/^/| /' conftest.$ac_ext >&5
6343
ac_header_compiler=no
6345
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347
echo "${ECHO_T}$ac_header_compiler" >&6
6349
# Is the header present?
6350
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6351
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6352
cat >conftest.$ac_ext <<_ACEOF
6355
cat confdefs.h >>conftest.$ac_ext
6356
cat >>conftest.$ac_ext <<_ACEOF
6357
/* end confdefs.h. */
6358
#include <$ac_header>
6360
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6363
grep -v '^ *+' conftest.er1 >conftest.err
6365
cat conftest.err >&5
6366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367
(exit $ac_status); } >/dev/null; then
6368
if test -s conftest.err; then
6369
ac_cpp_err=$ac_c_preproc_warn_flag
6370
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6377
if test -z "$ac_cpp_err"; then
6378
ac_header_preproc=yes
6380
echo "$as_me: failed program was:" >&5
6381
sed 's/^/| /' conftest.$ac_ext >&5
6383
ac_header_preproc=no
6385
rm -f conftest.err conftest.$ac_ext
6386
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6387
echo "${ECHO_T}$ac_header_preproc" >&6
6389
# So? What about this header?
6390
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6392
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6393
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6394
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6395
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6396
ac_header_preproc=yes
6399
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6404
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6405
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6406
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6407
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6408
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6410
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6413
## ------------------------------------------ ##
6414
## Report this to the AC_PACKAGE_NAME lists. ##
6415
## ------------------------------------------ ##
6418
sed "s/^/$as_me: WARNING: /" >&2
6421
echo "$as_me:$LINENO: checking for $ac_header" >&5
6422
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6423
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6424
echo $ECHO_N "(cached) $ECHO_C" >&6
6426
eval "$as_ac_Header=\$ac_header_preproc"
6428
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6432
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433
cat >>confdefs.h <<_ACEOF
6434
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6442
ac_cpp='$CXXCPP $CPPFLAGS'
6443
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6444
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6446
if test -n "$ac_tool_prefix"; then
6447
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6449
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6450
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6451
echo "$as_me:$LINENO: checking for $ac_word" >&5
6452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6453
if test "${ac_cv_prog_CXX+set}" = set; then
6454
echo $ECHO_N "(cached) $ECHO_C" >&6
6456
if test -n "$CXX"; then
6457
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463
test -z "$as_dir" && as_dir=.
6464
for ac_exec_ext in '' $ac_executable_extensions; do
6465
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6467
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476
if test -n "$CXX"; then
6477
echo "$as_me:$LINENO: result: $CXX" >&5
6478
echo "${ECHO_T}$CXX" >&6
6480
echo "$as_me:$LINENO: result: no" >&5
6481
echo "${ECHO_T}no" >&6
6484
test -n "$CXX" && break
6487
if test -z "$CXX"; then
6489
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6491
# Extract the first word of "$ac_prog", so it can be a program name with args.
6492
set dummy $ac_prog; ac_word=$2
6493
echo "$as_me:$LINENO: checking for $ac_word" >&5
6494
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6496
echo $ECHO_N "(cached) $ECHO_C" >&6
6498
if test -n "$ac_ct_CXX"; then
6499
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6501
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505
test -z "$as_dir" && as_dir=.
6506
for ac_exec_ext in '' $ac_executable_extensions; do
6507
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508
ac_cv_prog_ac_ct_CXX="$ac_prog"
6509
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6518
if test -n "$ac_ct_CXX"; then
6519
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6520
echo "${ECHO_T}$ac_ct_CXX" >&6
6522
echo "$as_me:$LINENO: result: no" >&5
6523
echo "${ECHO_T}no" >&6
6526
test -n "$ac_ct_CXX" && break
6528
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6534
# Provide some information about the compiler.
6535
echo "$as_me:$LINENO:" \
6536
"checking for C++ compiler version" >&5
6537
ac_compiler=`set X $ac_compile; echo $2`
6538
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6539
(eval $ac_compiler --version </dev/null >&5) 2>&5
6541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542
(exit $ac_status); }
6543
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6544
(eval $ac_compiler -v </dev/null >&5) 2>&5
6546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547
(exit $ac_status); }
6548
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6549
(eval $ac_compiler -V </dev/null >&5) 2>&5
6551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552
(exit $ac_status); }
6554
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6555
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6556
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6557
echo $ECHO_N "(cached) $ECHO_C" >&6
6559
cat >conftest.$ac_ext <<_ACEOF
6562
cat confdefs.h >>conftest.$ac_ext
6563
cat >>conftest.$ac_ext <<_ACEOF
6564
/* end confdefs.h. */
6577
rm -f conftest.$ac_objext
6578
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579
(eval $ac_compile) 2>conftest.er1
6581
grep -v '^ *+' conftest.er1 >conftest.err
6583
cat conftest.err >&5
6584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585
(exit $ac_status); } &&
6586
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591
(exit $ac_status); }; } &&
6592
{ ac_try='test -s conftest.$ac_objext'
6593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597
(exit $ac_status); }; }; then
6600
echo "$as_me: failed program was:" >&5
6601
sed 's/^/| /' conftest.$ac_ext >&5
6605
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6606
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6609
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6610
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6611
GXX=`test $ac_compiler_gnu = yes && echo yes`
6612
ac_test_CXXFLAGS=${CXXFLAGS+set}
6613
ac_save_CXXFLAGS=$CXXFLAGS
6615
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6616
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6617
if test "${ac_cv_prog_cxx_g+set}" = set; then
6618
echo $ECHO_N "(cached) $ECHO_C" >&6
6620
cat >conftest.$ac_ext <<_ACEOF
6623
cat confdefs.h >>conftest.$ac_ext
6624
cat >>conftest.$ac_ext <<_ACEOF
6625
/* end confdefs.h. */
6635
rm -f conftest.$ac_objext
6636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6637
(eval $ac_compile) 2>conftest.er1
6639
grep -v '^ *+' conftest.er1 >conftest.err
6641
cat conftest.err >&5
6642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643
(exit $ac_status); } &&
6644
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649
(exit $ac_status); }; } &&
6650
{ ac_try='test -s conftest.$ac_objext'
6651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655
(exit $ac_status); }; }; then
6656
ac_cv_prog_cxx_g=yes
6658
echo "$as_me: failed program was:" >&5
6659
sed 's/^/| /' conftest.$ac_ext >&5
6663
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6665
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6666
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6667
if test "$ac_test_CXXFLAGS" = set; then
6668
CXXFLAGS=$ac_save_CXXFLAGS
6669
elif test $ac_cv_prog_cxx_g = yes; then
6670
if test "$GXX" = yes; then
6676
if test "$GXX" = yes; then
6682
for ac_declaration in \
6684
'extern "C" void std::exit (int) throw (); using std::exit;' \
6685
'extern "C" void std::exit (int); using std::exit;' \
6686
'extern "C" void exit (int) throw ();' \
6687
'extern "C" void exit (int);' \
6690
cat >conftest.$ac_ext <<_ACEOF
6693
cat confdefs.h >>conftest.$ac_ext
6694
cat >>conftest.$ac_ext <<_ACEOF
6695
/* end confdefs.h. */
6706
rm -f conftest.$ac_objext
6707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708
(eval $ac_compile) 2>conftest.er1
6710
grep -v '^ *+' conftest.er1 >conftest.err
6712
cat conftest.err >&5
6713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714
(exit $ac_status); } &&
6715
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720
(exit $ac_status); }; } &&
6721
{ ac_try='test -s conftest.$ac_objext'
6722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726
(exit $ac_status); }; }; then
6729
echo "$as_me: failed program was:" >&5
6730
sed 's/^/| /' conftest.$ac_ext >&5
6734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6735
cat >conftest.$ac_ext <<_ACEOF
6738
cat confdefs.h >>conftest.$ac_ext
6739
cat >>conftest.$ac_ext <<_ACEOF
6740
/* end confdefs.h. */
6750
rm -f conftest.$ac_objext
6751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6752
(eval $ac_compile) 2>conftest.er1
6754
grep -v '^ *+' conftest.er1 >conftest.err
6756
cat conftest.err >&5
6757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758
(exit $ac_status); } &&
6759
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
(exit $ac_status); }; } &&
6765
{ ac_try='test -s conftest.$ac_objext'
6766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770
(exit $ac_status); }; }; then
6773
echo "$as_me: failed program was:" >&5
6774
sed 's/^/| /' conftest.$ac_ext >&5
6777
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780
if test -n "$ac_declaration"; then
6781
echo '#ifdef __cplusplus' >>confdefs.h
6782
echo $ac_declaration >>confdefs.h
6783
echo '#endif' >>confdefs.h
6787
ac_cpp='$CXXCPP $CPPFLAGS'
6788
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6789
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6790
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6792
depcc="$CXX" am_compiler_list=
6794
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6795
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6796
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6797
echo $ECHO_N "(cached) $ECHO_C" >&6
6799
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6800
# We make a subdir and do the tests there. Otherwise we can end up
6801
# making bogus files that we don't know about and never remove. For
6802
# instance it was reported that on HP-UX the gcc test will end up
6803
# making a dummy file named `D' -- because `-MD' means `put the output
6806
# Copy depcomp to subdir because otherwise we won't find it if we're
6807
# using a relative directory.
6808
cp "$am_depcomp" conftest.dir
6811
am_cv_CXX_dependencies_compiler_type=none
6812
if test "$am_compiler_list" = ""; then
6813
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6815
for depmode in $am_compiler_list; do
6816
# We need to recreate these files for each test, as the compiler may
6817
# overwrite some of them when testing with obscure command lines.
6818
# This happens at least with the AIX C compiler.
6819
echo '#include "conftest.h"' > conftest.c
6820
echo 'int i;' > conftest.h
6821
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
6825
# after this tag, mechanisms are not by side-effect, so they'll
6826
# only be used when explicitly requested
6827
if test "x$enable_dependency_tracking" = xyes; then
6835
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6836
# mode. It turns out that the SunPro C++ compiler does not properly
6837
# handle `-M -o', and we need to detect this.
6838
if depmode=$depmode \
6839
source=conftest.c object=conftest.o \
6840
depfile=conftest.Po tmpdepfile=conftest.TPo \
6841
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
6842
grep conftest.h conftest.Po > /dev/null 2>&1 &&
6843
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6844
am_cv_CXX_dependencies_compiler_type=$depmode
6852
am_cv_CXX_dependencies_compiler_type=none
6856
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6857
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6858
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6862
ac_cpp='$CXXCPP $CPPFLAGS'
6863
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6864
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6865
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6866
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6867
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6868
if test -z "$CXXCPP"; then
6869
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6870
echo $ECHO_N "(cached) $ECHO_C" >&6
6872
# Double quotes because CXXCPP needs to be expanded
6873
for CXXCPP in "$CXX -E" "/lib/cpp"
6876
for ac_cxx_preproc_warn_flag in '' yes
6878
# Use a header file that comes with gcc, so configuring glibc
6879
# with a fresh cross-compiler works.
6880
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6881
# <limits.h> exists even on freestanding compilers.
6882
# On the NeXT, cc -E runs the code through the compiler's parser,
6883
# not just through cpp. "Syntax error" is here to catch this case.
6884
cat >conftest.$ac_ext <<_ACEOF
6887
cat confdefs.h >>conftest.$ac_ext
6888
cat >>conftest.$ac_ext <<_ACEOF
6889
/* end confdefs.h. */
6891
# include <limits.h>
6893
# include <assert.h>
6897
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6898
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6900
grep -v '^ *+' conftest.er1 >conftest.err
6902
cat conftest.err >&5
6903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904
(exit $ac_status); } >/dev/null; then
6905
if test -s conftest.err; then
6906
ac_cpp_err=$ac_cxx_preproc_warn_flag
6907
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6914
if test -z "$ac_cpp_err"; then
6917
echo "$as_me: failed program was:" >&5
6918
sed 's/^/| /' conftest.$ac_ext >&5
6920
# Broken: fails on valid input.
6923
rm -f conftest.err conftest.$ac_ext
6925
# OK, works on sane cases. Now check whether non-existent headers
6926
# can be detected and how.
6927
cat >conftest.$ac_ext <<_ACEOF
6930
cat confdefs.h >>conftest.$ac_ext
6931
cat >>conftest.$ac_ext <<_ACEOF
6932
/* end confdefs.h. */
6933
#include <ac_nonexistent.h>
6935
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6936
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6938
grep -v '^ *+' conftest.er1 >conftest.err
6940
cat conftest.err >&5
6941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942
(exit $ac_status); } >/dev/null; then
6943
if test -s conftest.err; then
6944
ac_cpp_err=$ac_cxx_preproc_warn_flag
6945
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6952
if test -z "$ac_cpp_err"; then
6953
# Broken: success on invalid input.
6956
echo "$as_me: failed program was:" >&5
6957
sed 's/^/| /' conftest.$ac_ext >&5
6959
# Passes both tests.
6963
rm -f conftest.err conftest.$ac_ext
6966
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6967
rm -f conftest.err conftest.$ac_ext
6968
if $ac_preproc_ok; then
6973
ac_cv_prog_CXXCPP=$CXXCPP
6976
CXXCPP=$ac_cv_prog_CXXCPP
6978
ac_cv_prog_CXXCPP=$CXXCPP
6980
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6981
echo "${ECHO_T}$CXXCPP" >&6
6983
for ac_cxx_preproc_warn_flag in '' yes
6985
# Use a header file that comes with gcc, so configuring glibc
6986
# with a fresh cross-compiler works.
6987
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6988
# <limits.h> exists even on freestanding compilers.
6989
# On the NeXT, cc -E runs the code through the compiler's parser,
6990
# not just through cpp. "Syntax error" is here to catch this case.
6991
cat >conftest.$ac_ext <<_ACEOF
6994
cat confdefs.h >>conftest.$ac_ext
6995
cat >>conftest.$ac_ext <<_ACEOF
6996
/* end confdefs.h. */
6998
# include <limits.h>
7000
# include <assert.h>
7004
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7005
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7007
grep -v '^ *+' conftest.er1 >conftest.err
7009
cat conftest.err >&5
7010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011
(exit $ac_status); } >/dev/null; then
7012
if test -s conftest.err; then
7013
ac_cpp_err=$ac_cxx_preproc_warn_flag
7014
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7021
if test -z "$ac_cpp_err"; then
7024
echo "$as_me: failed program was:" >&5
7025
sed 's/^/| /' conftest.$ac_ext >&5
7027
# Broken: fails on valid input.
7030
rm -f conftest.err conftest.$ac_ext
7032
# OK, works on sane cases. Now check whether non-existent headers
7033
# can be detected and how.
7034
cat >conftest.$ac_ext <<_ACEOF
7037
cat confdefs.h >>conftest.$ac_ext
7038
cat >>conftest.$ac_ext <<_ACEOF
7039
/* end confdefs.h. */
7040
#include <ac_nonexistent.h>
7042
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7043
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7045
grep -v '^ *+' conftest.er1 >conftest.err
7047
cat conftest.err >&5
7048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049
(exit $ac_status); } >/dev/null; then
7050
if test -s conftest.err; then
7051
ac_cpp_err=$ac_cxx_preproc_warn_flag
7052
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7059
if test -z "$ac_cpp_err"; then
7060
# Broken: success on invalid input.
7063
echo "$as_me: failed program was:" >&5
7064
sed 's/^/| /' conftest.$ac_ext >&5
7066
# Passes both tests.
7070
rm -f conftest.err conftest.$ac_ext
7073
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7074
rm -f conftest.err conftest.$ac_ext
7075
if $ac_preproc_ok; then
7078
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7079
See \`config.log' for more details." >&5
7080
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7081
See \`config.log' for more details." >&2;}
7082
{ (exit 1); exit 1; }; }
7086
ac_cpp='$CXXCPP $CPPFLAGS'
7087
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7093
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7094
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7096
if test -n "$ac_tool_prefix"; then
7097
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7099
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7100
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7101
echo "$as_me:$LINENO: checking for $ac_word" >&5
7102
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7103
if test "${ac_cv_prog_F77+set}" = set; then
7104
echo $ECHO_N "(cached) $ECHO_C" >&6
7106
if test -n "$F77"; then
7107
ac_cv_prog_F77="$F77" # Let the user override the test.
7109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113
test -z "$as_dir" && as_dir=.
7114
for ac_exec_ext in '' $ac_executable_extensions; do
7115
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7117
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126
if test -n "$F77"; then
7127
echo "$as_me:$LINENO: result: $F77" >&5
7128
echo "${ECHO_T}$F77" >&6
7130
echo "$as_me:$LINENO: result: no" >&5
7131
echo "${ECHO_T}no" >&6
7134
test -n "$F77" && break
7137
if test -z "$F77"; then
7139
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7141
# Extract the first word of "$ac_prog", so it can be a program name with args.
7142
set dummy $ac_prog; ac_word=$2
7143
echo "$as_me:$LINENO: checking for $ac_word" >&5
7144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7146
echo $ECHO_N "(cached) $ECHO_C" >&6
7148
if test -n "$ac_ct_F77"; then
7149
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155
test -z "$as_dir" && as_dir=.
7156
for ac_exec_ext in '' $ac_executable_extensions; do
7157
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158
ac_cv_prog_ac_ct_F77="$ac_prog"
7159
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7167
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7168
if test -n "$ac_ct_F77"; then
7169
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7170
echo "${ECHO_T}$ac_ct_F77" >&6
7172
echo "$as_me:$LINENO: result: no" >&5
7173
echo "${ECHO_T}no" >&6
7176
test -n "$ac_ct_F77" && break
7183
# Provide some information about the compiler.
7184
echo "$as_me:7184:" \
7185
"checking for Fortran 77 compiler version" >&5
7186
ac_compiler=`set X $ac_compile; echo $2`
7187
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7188
(eval $ac_compiler --version </dev/null >&5) 2>&5
7190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191
(exit $ac_status); }
7192
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7193
(eval $ac_compiler -v </dev/null >&5) 2>&5
7195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196
(exit $ac_status); }
7197
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7198
(eval $ac_compiler -V </dev/null >&5) 2>&5
7200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201
(exit $ac_status); }
7204
# If we don't use `.F' as extension, the preprocessor is not run on the
7205
# input file. (Note that this only needs to work for GNU compilers.)
7208
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7209
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7210
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7211
echo $ECHO_N "(cached) $ECHO_C" >&6
7213
cat >conftest.$ac_ext <<_ACEOF
7221
rm -f conftest.$ac_objext
7222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223
(eval $ac_compile) 2>conftest.er1
7225
grep -v '^ *+' conftest.er1 >conftest.err
7227
cat conftest.err >&5
7228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229
(exit $ac_status); } &&
7230
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235
(exit $ac_status); }; } &&
7236
{ ac_try='test -s conftest.$ac_objext'
7237
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241
(exit $ac_status); }; }; then
7244
echo "$as_me: failed program was:" >&5
7245
sed 's/^/| /' conftest.$ac_ext >&5
7249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7253
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7254
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7256
ac_test_FFLAGS=${FFLAGS+set}
7257
ac_save_FFLAGS=$FFLAGS
7259
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7260
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7261
if test "${ac_cv_prog_f77_g+set}" = set; then
7262
echo $ECHO_N "(cached) $ECHO_C" >&6
7265
cat >conftest.$ac_ext <<_ACEOF
7270
rm -f conftest.$ac_objext
7271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7272
(eval $ac_compile) 2>conftest.er1
7274
grep -v '^ *+' conftest.er1 >conftest.err
7276
cat conftest.err >&5
7277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278
(exit $ac_status); } &&
7279
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7280
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284
(exit $ac_status); }; } &&
7285
{ ac_try='test -s conftest.$ac_objext'
7286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290
(exit $ac_status); }; }; then
7291
ac_cv_prog_f77_g=yes
7293
echo "$as_me: failed program was:" >&5
7294
sed 's/^/| /' conftest.$ac_ext >&5
7298
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7301
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7302
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7303
if test "$ac_test_FFLAGS" = set; then
7304
FFLAGS=$ac_save_FFLAGS
7305
elif test $ac_cv_prog_f77_g = yes; then
7306
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7312
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7319
G77=`test $ac_compiler_gnu = yes && echo yes`
7321
ac_cpp='$CPP $CPPFLAGS'
7322
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7330
# find the maximum length of command line arguments
7331
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7332
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7333
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7334
echo $ECHO_N "(cached) $ECHO_C" >&6
7341
# On DJGPP, this test can blow up pretty badly due to problems in libc
7342
# (any single argument exceeding 2000 bytes causes a buffer overrun
7343
# during glob expansion). Even if it were fixed, the result of this
7344
# check would be larger than it should be.
7345
lt_cv_sys_max_cmd_len=12288; # 12K is about right
7349
# Under GNU Hurd, this test is not required because there is
7350
# no limit to the length of command line arguments.
7351
# Libtool will interpret -1 as no limit whatsoever
7352
lt_cv_sys_max_cmd_len=-1;
7356
# On Win9x/ME, this test blows up -- it succeeds, but takes
7357
# about 5 minutes as the teststring grows exponentially.
7358
# Worse, since 9x/ME are not pre-emptively multitasking,
7359
# you end up with a "frozen" computer, even though with patience
7360
# the test eventually succeeds (with a max line length of 256k).
7361
# Instead, let's just punt: use the minimum linelength reported by
7362
# all of the supported platforms: 8192 (on NT/2K/XP).
7363
lt_cv_sys_max_cmd_len=8192;
7367
# On AmigaOS with pdksh, this test takes hours, literally.
7368
# So we just punt and use a minimum line length of 8192.
7369
lt_cv_sys_max_cmd_len=8192;
7373
# If test is not a shell built-in, we'll probably end up computing a
7374
# maximum length that is only half of the actual maximum length, but
7376
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7377
= "XX$teststring") >/dev/null 2>&1 &&
7378
new_result=`expr "X$teststring" : ".*" 2>&1` &&
7379
lt_cv_sys_max_cmd_len=$new_result &&
7380
test $i != 17 # 1/2 MB should be enough
7383
teststring=$teststring$teststring
7386
# Add a significant safety factor because C++ compilers can tack on massive
7387
# amounts of additional arguments before passing them to the linker.
7388
# It appears as though 1/2 is a usable value.
7389
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7395
if test -n $lt_cv_sys_max_cmd_len ; then
7396
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7397
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7399
echo "$as_me:$LINENO: result: none" >&5
7400
echo "${ECHO_T}none" >&6
7406
# Check for command to grab the raw symbol name followed by C symbol from nm.
7407
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7408
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7409
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7410
echo $ECHO_N "(cached) $ECHO_C" >&6
7413
# These are sane defaults that work on at least a few old systems.
7414
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7416
# Character class describing NM global symbol codes.
7417
symcode='[BCDEGRST]'
7419
# Regexp to match symbols that can be accessed directly from C.
7420
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7422
# Transform the above into a raw symbol and a C symbol.
7423
symxfrm='\1 \2\3 \3'
7425
# Transform an extracted symbol line into a proper C declaration
7426
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7428
# Transform an extracted symbol line into symbol name and symbol address
7429
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'"
7431
# Define system-specific variables.
7436
cygwin* | mingw* | pw32*)
7437
symcode='[ABCDGISTW]'
7439
hpux*) # Its linker distinguishes data from code symbols
7440
if test "$host_cpu" = ia64; then
7441
symcode='[ABCDEGRST]'
7443
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7444
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'"
7447
symcode='[BCDEGRST]'
7450
symcode='[BCDEGQRST]'
7460
# Handle CRLF in mingw tool chain
7464
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7468
# If we're using GNU nm, then use its standard symbol codes.
7469
case `$NM -V 2>&1` in
7470
*GNU* | *'with BFD'*)
7471
symcode='[ABCDGIRSTW]' ;;
7474
# Try without a prefix undercore, then with it.
7475
for ac_symprfx in "" "_"; do
7477
# Write the raw and C identifiers.
7478
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7480
# Check to see that the pipe works correctly.
7484
cat > conftest.$ac_ext <<EOF
7489
void nm_test_func(){}
7493
int main(){nm_test_var='a';nm_test_func();return(0);}
7496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497
(eval $ac_compile) 2>&5
7499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500
(exit $ac_status); }; then
7501
# Now try to grab the symbols.
7503
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7504
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507
(exit $ac_status); } && test -s "$nlist"; then
7508
# Try sorting and uniquifying the output.
7509
if sort "$nlist" | uniq > "$nlist"T; then
7510
mv -f "$nlist"T "$nlist"
7515
# Make sure that we snagged all the symbols we need.
7516
if grep ' nm_test_var$' "$nlist" >/dev/null; then
7517
if grep ' nm_test_func$' "$nlist" >/dev/null; then
7518
cat <<EOF > conftest.$ac_ext
7524
# Now generate the symbol file.
7525
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7527
cat <<EOF >> conftest.$ac_ext
7528
#if defined (__STDC__) && __STDC__
7529
# define lt_ptr_t void *
7531
# define lt_ptr_t char *
7535
/* The mapping between symbol names and symbols. */
7540
lt_preloaded_symbols[] =
7543
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7544
cat <<\EOF >> conftest.$ac_ext
7552
# Now try linking the two files.
7553
mv conftest.$ac_objext conftstm.$ac_objext
7554
lt_save_LIBS="$LIBS"
7555
lt_save_CFLAGS="$CFLAGS"
7556
LIBS="conftstm.$ac_objext"
7557
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559
(eval $ac_link) 2>&5
7561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562
(exit $ac_status); } && test -s conftest${ac_exeext}; then
7565
LIBS="$lt_save_LIBS"
7566
CFLAGS="$lt_save_CFLAGS"
7568
echo "cannot find nm_test_func in $nlist" >&5
7571
echo "cannot find nm_test_var in $nlist" >&5
7574
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7577
echo "$progname: failed program was:" >&5
7578
cat conftest.$ac_ext >&5
7580
rm -f conftest* conftst*
7582
# Do not use the global_symbol_pipe unless it works.
7583
if test "$pipe_works" = yes; then
7586
lt_cv_sys_global_symbol_pipe=
7592
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7593
lt_cv_sys_global_symbol_to_cdecl=
7595
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7596
echo "$as_me:$LINENO: result: failed" >&5
7597
echo "${ECHO_T}failed" >&6
7599
echo "$as_me:$LINENO: result: ok" >&5
7600
echo "${ECHO_T}ok" >&6
7603
echo "$as_me:$LINENO: checking for objdir" >&5
7604
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7605
if test "${lt_cv_objdir+set}" = set; then
7606
echo $ECHO_N "(cached) $ECHO_C" >&6
7608
rm -f .libs 2>/dev/null
7609
mkdir .libs 2>/dev/null
7610
if test -d .libs; then
7613
# MS-DOS does not allow filenames that begin with a dot.
7616
rmdir .libs 2>/dev/null
7618
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7619
echo "${ECHO_T}$lt_cv_objdir" >&6
7620
objdir=$lt_cv_objdir
7628
# AIX sometimes has problems with the GCC collect2 program. For some
7629
# reason, if we set the COLLECT_NAMES environment variable, the problems
7630
# vanish in a puff of smoke.
7631
if test "X${COLLECT_NAMES+set}" != Xset; then
7633
export COLLECT_NAMES
7638
# Sed substitution that helps us do robust quoting. It backslashifies
7639
# metacharacters that are still active within double-quoted strings.
7640
Xsed='sed -e s/^X//'
7641
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7643
# Same as above, but do not quote variable references.
7644
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7646
# Sed substitution to delay expansion of an escaped shell variable in a
7647
# double_quote_subst'ed string.
7648
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7650
# Sed substitution to avoid accidental globbing in evaled expressions
7651
no_glob_subst='s/\*/\\\*/g'
7657
default_ofile=libtool
7658
can_build_shared=yes
7660
# All known linkers require a `.a' archive for static linking (except M$VC,
7661
# which needs '.lib').
7663
ltmain="$ac_aux_dir/ltmain.sh"
7664
ofile="$default_ofile"
7665
with_gnu_ld="$lt_cv_prog_gnu_ld"
7667
if test -n "$ac_tool_prefix"; then
7668
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7669
set dummy ${ac_tool_prefix}ar; ac_word=$2
7670
echo "$as_me:$LINENO: checking for $ac_word" >&5
7671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7672
if test "${ac_cv_prog_AR+set}" = set; then
7673
echo $ECHO_N "(cached) $ECHO_C" >&6
7675
if test -n "$AR"; then
7676
ac_cv_prog_AR="$AR" # Let the user override the test.
7678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682
test -z "$as_dir" && as_dir=.
7683
for ac_exec_ext in '' $ac_executable_extensions; do
7684
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685
ac_cv_prog_AR="${ac_tool_prefix}ar"
7686
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695
if test -n "$AR"; then
7696
echo "$as_me:$LINENO: result: $AR" >&5
7697
echo "${ECHO_T}$AR" >&6
7699
echo "$as_me:$LINENO: result: no" >&5
7700
echo "${ECHO_T}no" >&6
7704
if test -z "$ac_cv_prog_AR"; then
7706
# Extract the first word of "ar", so it can be a program name with args.
7707
set dummy ar; ac_word=$2
7708
echo "$as_me:$LINENO: checking for $ac_word" >&5
7709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7710
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7711
echo $ECHO_N "(cached) $ECHO_C" >&6
7713
if test -n "$ac_ct_AR"; then
7714
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720
test -z "$as_dir" && as_dir=.
7721
for ac_exec_ext in '' $ac_executable_extensions; do
7722
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723
ac_cv_prog_ac_ct_AR="ar"
7724
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7733
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7734
if test -n "$ac_ct_AR"; then
7735
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7736
echo "${ECHO_T}$ac_ct_AR" >&6
7738
echo "$as_me:$LINENO: result: no" >&5
7739
echo "${ECHO_T}no" >&6
7747
if test -n "$ac_tool_prefix"; then
7748
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7749
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7750
echo "$as_me:$LINENO: checking for $ac_word" >&5
7751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7752
if test "${ac_cv_prog_RANLIB+set}" = set; then
7753
echo $ECHO_N "(cached) $ECHO_C" >&6
7755
if test -n "$RANLIB"; then
7756
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762
test -z "$as_dir" && as_dir=.
7763
for ac_exec_ext in '' $ac_executable_extensions; do
7764
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7766
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774
RANLIB=$ac_cv_prog_RANLIB
7775
if test -n "$RANLIB"; then
7776
echo "$as_me:$LINENO: result: $RANLIB" >&5
7777
echo "${ECHO_T}$RANLIB" >&6
7779
echo "$as_me:$LINENO: result: no" >&5
7780
echo "${ECHO_T}no" >&6
7784
if test -z "$ac_cv_prog_RANLIB"; then
7785
ac_ct_RANLIB=$RANLIB
7786
# Extract the first word of "ranlib", so it can be a program name with args.
7787
set dummy ranlib; ac_word=$2
7788
echo "$as_me:$LINENO: checking for $ac_word" >&5
7789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7790
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7791
echo $ECHO_N "(cached) $ECHO_C" >&6
7793
if test -n "$ac_ct_RANLIB"; then
7794
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800
test -z "$as_dir" && as_dir=.
7801
for ac_exec_ext in '' $ac_executable_extensions; do
7802
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803
ac_cv_prog_ac_ct_RANLIB="ranlib"
7804
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7813
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7814
if test -n "$ac_ct_RANLIB"; then
7815
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7816
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7818
echo "$as_me:$LINENO: result: no" >&5
7819
echo "${ECHO_T}no" >&6
7822
RANLIB=$ac_ct_RANLIB
7824
RANLIB="$ac_cv_prog_RANLIB"
7827
if test -n "$ac_tool_prefix"; then
7828
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7829
set dummy ${ac_tool_prefix}strip; ac_word=$2
7830
echo "$as_me:$LINENO: checking for $ac_word" >&5
7831
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7832
if test "${ac_cv_prog_STRIP+set}" = set; then
7833
echo $ECHO_N "(cached) $ECHO_C" >&6
7835
if test -n "$STRIP"; then
7836
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842
test -z "$as_dir" && as_dir=.
7843
for ac_exec_ext in '' $ac_executable_extensions; do
7844
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7846
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854
STRIP=$ac_cv_prog_STRIP
7855
if test -n "$STRIP"; then
7856
echo "$as_me:$LINENO: result: $STRIP" >&5
7857
echo "${ECHO_T}$STRIP" >&6
7859
echo "$as_me:$LINENO: result: no" >&5
7860
echo "${ECHO_T}no" >&6
7864
if test -z "$ac_cv_prog_STRIP"; then
7866
# Extract the first word of "strip", so it can be a program name with args.
7867
set dummy strip; ac_word=$2
7868
echo "$as_me:$LINENO: checking for $ac_word" >&5
7869
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7870
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7871
echo $ECHO_N "(cached) $ECHO_C" >&6
7873
if test -n "$ac_ct_STRIP"; then
7874
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880
test -z "$as_dir" && as_dir=.
7881
for ac_exec_ext in '' $ac_executable_extensions; do
7882
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883
ac_cv_prog_ac_ct_STRIP="strip"
7884
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7893
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7894
if test -n "$ac_ct_STRIP"; then
7895
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7896
echo "${ECHO_T}$ac_ct_STRIP" >&6
7898
echo "$as_me:$LINENO: result: no" >&5
7899
echo "${ECHO_T}no" >&6
7904
STRIP="$ac_cv_prog_STRIP"
7909
old_CFLAGS="$CFLAGS"
7911
# Set sane defaults for various variables
7912
test -z "$AR" && AR=ar
7913
test -z "$AR_FLAGS" && AR_FLAGS=cru
7914
test -z "$AS" && AS=as
7915
test -z "$CC" && CC=cc
7916
test -z "$LTCC" && LTCC=$CC
7917
test -z "$DLLTOOL" && DLLTOOL=dlltool
7918
test -z "$LD" && LD=ld
7919
test -z "$LN_S" && LN_S="ln -s"
7920
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7921
test -z "$NM" && NM=nm
7922
test -z "$SED" && SED=sed
7923
test -z "$OBJDUMP" && OBJDUMP=objdump
7924
test -z "$RANLIB" && RANLIB=:
7925
test -z "$STRIP" && STRIP=:
7926
test -z "$ac_objext" && ac_objext=o
7928
# Determine commands to create old-style static archives.
7929
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7930
old_postinstall_cmds='chmod 644 $oldlib'
7931
old_postuninstall_cmds=
7933
if test -n "$RANLIB"; then
7936
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7939
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7942
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7945
# Only perform the check for file, if the check method requires it
7946
case $deplibs_check_method in
7948
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7949
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7950
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7951
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7952
echo $ECHO_N "(cached) $ECHO_C" >&6
7956
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7959
lt_save_MAGIC_CMD="$MAGIC_CMD"
7960
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7961
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7962
for ac_dir in $ac_dummy; do
7964
test -z "$ac_dir" && ac_dir=.
7965
if test -f $ac_dir/${ac_tool_prefix}file; then
7966
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7967
if test -n "$file_magic_test_file"; then
7968
case $deplibs_check_method in
7970
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7971
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7972
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7973
$EGREP "$file_magic_regex" > /dev/null; then
7978
*** Warning: the command libtool uses to detect shared libraries,
7979
*** $file_magic_cmd, produces output that libtool cannot recognize.
7980
*** The result is that libtool may fail to recognize shared libraries
7981
*** as such. This will affect the creation of libtool libraries that
7982
*** depend on shared libraries, but programs linked with such libtool
7983
*** libraries will work regardless of this problem. Nevertheless, you
7984
*** may want to report the problem to your system manager and/or to
7985
*** bug-libtool@gnu.org
7995
MAGIC_CMD="$lt_save_MAGIC_CMD"
8000
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8001
if test -n "$MAGIC_CMD"; then
8002
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8003
echo "${ECHO_T}$MAGIC_CMD" >&6
8005
echo "$as_me:$LINENO: result: no" >&5
8006
echo "${ECHO_T}no" >&6
8009
if test -z "$lt_cv_path_MAGIC_CMD"; then
8010
if test -n "$ac_tool_prefix"; then
8011
echo "$as_me:$LINENO: checking for file" >&5
8012
echo $ECHO_N "checking for file... $ECHO_C" >&6
8013
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8014
echo $ECHO_N "(cached) $ECHO_C" >&6
8018
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8021
lt_save_MAGIC_CMD="$MAGIC_CMD"
8022
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8023
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8024
for ac_dir in $ac_dummy; do
8026
test -z "$ac_dir" && ac_dir=.
8027
if test -f $ac_dir/file; then
8028
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8029
if test -n "$file_magic_test_file"; then
8030
case $deplibs_check_method in
8032
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8033
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8034
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8035
$EGREP "$file_magic_regex" > /dev/null; then
8040
*** Warning: the command libtool uses to detect shared libraries,
8041
*** $file_magic_cmd, produces output that libtool cannot recognize.
8042
*** The result is that libtool may fail to recognize shared libraries
8043
*** as such. This will affect the creation of libtool libraries that
8044
*** depend on shared libraries, but programs linked with such libtool
8045
*** libraries will work regardless of this problem. Nevertheless, you
8046
*** may want to report the problem to your system manager and/or to
8047
*** bug-libtool@gnu.org
8057
MAGIC_CMD="$lt_save_MAGIC_CMD"
8062
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8063
if test -n "$MAGIC_CMD"; then
8064
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8065
echo "${ECHO_T}$MAGIC_CMD" >&6
8067
echo "$as_me:$LINENO: result: no" >&5
8068
echo "${ECHO_T}no" >&6
8083
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8084
if test "${enable_libtool_lock+set}" = set; then
8085
enableval="$enable_libtool_lock"
8088
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8091
# Check whether --with-pic or --without-pic was given.
8092
if test "${with_pic+set}" = set; then
8098
test -z "$pic_mode" && pic_mode=default
8100
# Use C for the default configuration in the libtool script
8104
ac_cpp='$CPP $CPPFLAGS'
8105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110
# Source file extension for C test sources.
8113
# Object file extension for compiled C test sources.
8117
# Code to be used in simple compile tests
8118
lt_simple_compile_test_code="int some_variable = 0;\n"
8120
# Code to be used in simple link tests
8121
lt_simple_link_test_code='int main(){return(0);}\n'
8124
# If no C compiler was specified, use CC.
8127
# Allow CC to be a program name with arguments.
8132
# Check for any special shared library compilation flags.
8135
if test "$GCC" = no; then
8138
lt_prog_cc_shlib='-belf'
8142
if test -n "$lt_prog_cc_shlib"; then
8143
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8144
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8145
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8147
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8148
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8149
lt_cv_prog_cc_can_build_shared=no
8155
# Check to make sure the static flag actually works.
8157
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8158
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8159
if test "${lt_prog_compiler_static_works+set}" = set; then
8160
echo $ECHO_N "(cached) $ECHO_C" >&6
8162
lt_prog_compiler_static_works=no
8163
save_LDFLAGS="$LDFLAGS"
8164
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8165
printf "$lt_simple_link_test_code" > conftest.$ac_ext
8166
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8167
# The compiler can only warn and ignore the option if not recognized
8168
# So say no if there are warnings
8169
if test -s conftest.err; then
8170
# Append any errors to the config.log.
8171
cat conftest.err 1>&5
8173
lt_prog_compiler_static_works=yes
8177
LDFLAGS="$save_LDFLAGS"
8180
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8181
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8183
if test x"$lt_prog_compiler_static_works" = xyes; then
8186
lt_prog_compiler_static=
8192
lt_prog_compiler_no_builtin_flag=
8194
if test "$GCC" = yes; then
8195
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8198
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8199
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8200
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8201
echo $ECHO_N "(cached) $ECHO_C" >&6
8203
lt_cv_prog_compiler_rtti_exceptions=no
8204
ac_outfile=conftest.$ac_objext
8205
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8206
lt_compiler_flag="-fno-rtti -fno-exceptions"
8207
# Insert the option either (1) after the last *FLAGS variable, or
8208
# (2) before a word containing "conftest.", or (3) at the end.
8209
# Note that $ac_compile itself does not contain backslashes and begins
8210
# with a dollar sign (not a hyphen), so the echo should work correctly.
8211
# The option is referenced via a variable to avoid confusing sed.
8212
lt_compile=`echo "$ac_compile" | $SED \
8213
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8214
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215
-e 's:$: $lt_compiler_flag:'`
8216
(eval echo "\"\$as_me:8216: $lt_compile\"" >&5)
8217
(eval "$lt_compile" 2>conftest.err)
8219
cat conftest.err >&5
8220
echo "$as_me:8220: \$? = $ac_status" >&5
8221
if (exit $ac_status) && test -s "$ac_outfile"; then
8222
# The compiler can only warn and ignore the option if not recognized
8223
# So say no if there are warnings
8224
if test ! -s conftest.err; then
8225
lt_cv_prog_compiler_rtti_exceptions=yes
8231
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8232
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8234
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8235
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8242
lt_prog_compiler_wl=
8243
lt_prog_compiler_pic=
8244
lt_prog_compiler_static=
8246
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8247
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8249
if test "$GCC" = yes; then
8250
lt_prog_compiler_wl='-Wl,'
8251
lt_prog_compiler_static='-static'
8255
# All AIX code is PIC.
8256
if test "$host_cpu" = ia64; then
8257
# AIX 5 now supports IA64 processor
8258
lt_prog_compiler_static='-Bstatic'
8263
# FIXME: we need at least 68020 code to build shared libraries, but
8264
# adding the `-m68020' flag to GCC prevents building anything better,
8266
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8269
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8270
# PIC is the default for these OSes.
8273
mingw* | pw32* | os2*)
8274
# This hack is so that the source file can tell whether it is being
8275
# built for inclusion in a dll (and should export symbols for example).
8276
lt_prog_compiler_pic='-DDLL_EXPORT'
8279
darwin* | rhapsody*)
8280
# PIC is the default on this platform
8281
# Common symbols not allowed in MH_DYLIB files
8282
lt_prog_compiler_pic='-fno-common'
8286
# Just because we use GCC doesn't mean we suddenly get shared libraries
8287
# on systems that don't support them.
8288
lt_prog_compiler_can_build_shared=no
8293
if test -d /usr/nec; then
8294
lt_prog_compiler_pic=-Kconform_pic
8299
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8306
lt_prog_compiler_pic='-fPIC'
8312
lt_prog_compiler_pic='-fPIC'
8316
# PORTME Check for flag to pass linker flags through the system compiler.
8319
lt_prog_compiler_wl='-Wl,'
8320
if test "$host_cpu" = ia64; then
8321
# AIX 5 now supports IA64 processor
8322
lt_prog_compiler_static='-Bstatic'
8324
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8328
mingw* | pw32* | os2*)
8329
# This hack is so that the source file can tell whether it is being
8330
# built for inclusion in a dll (and should export symbols for example).
8331
lt_prog_compiler_pic='-DDLL_EXPORT'
8334
hpux9* | hpux10* | hpux11*)
8335
lt_prog_compiler_wl='-Wl,'
8336
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8343
lt_prog_compiler_pic='+Z'
8346
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8347
lt_prog_compiler_static='${wl}-a ${wl}archive'
8350
irix5* | irix6* | nonstopux*)
8351
lt_prog_compiler_wl='-Wl,'
8352
# PIC (with -KPIC) is the default.
8353
lt_prog_compiler_static='-non_shared'
8357
lt_prog_compiler_pic='-KPIC'
8358
lt_prog_compiler_static='-Bstatic'
8364
lt_prog_compiler_wl='-Wl,'
8365
lt_prog_compiler_pic='-KPIC'
8366
lt_prog_compiler_static='-static'
8369
lt_prog_compiler_wl='-Wl,'
8370
# All Alpha code is PIC.
8371
lt_prog_compiler_static='-non_shared'
8376
osf3* | osf4* | osf5*)
8377
lt_prog_compiler_wl='-Wl,'
8378
# All OSF/1 code is PIC.
8379
lt_prog_compiler_static='-non_shared'
8383
lt_prog_compiler_pic='-Kpic'
8384
lt_prog_compiler_static='-dn'
8388
lt_prog_compiler_wl='-Wl,'
8389
lt_prog_compiler_pic='-KPIC'
8390
lt_prog_compiler_static='-Bstatic'
8394
lt_prog_compiler_wl='-Qoption ld '
8395
lt_prog_compiler_pic='-PIC'
8396
lt_prog_compiler_static='-Bstatic'
8399
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8400
lt_prog_compiler_wl='-Wl,'
8401
lt_prog_compiler_pic='-KPIC'
8402
lt_prog_compiler_static='-Bstatic'
8406
if test -d /usr/nec ;then
8407
lt_prog_compiler_pic='-Kconform_pic'
8408
lt_prog_compiler_static='-Bstatic'
8413
lt_prog_compiler_pic='-pic'
8414
lt_prog_compiler_static='-Bstatic'
8418
lt_prog_compiler_can_build_shared=no
8423
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8424
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8427
# Check to make sure the PIC flag actually works.
8429
if test -n "$lt_prog_compiler_pic"; then
8431
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8432
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8433
if test "${lt_prog_compiler_pic_works+set}" = set; then
8434
echo $ECHO_N "(cached) $ECHO_C" >&6
8436
lt_prog_compiler_pic_works=no
8437
ac_outfile=conftest.$ac_objext
8438
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8439
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8440
# Insert the option either (1) after the last *FLAGS variable, or
8441
# (2) before a word containing "conftest.", or (3) at the end.
8442
# Note that $ac_compile itself does not contain backslashes and begins
8443
# with a dollar sign (not a hyphen), so the echo should work correctly.
8444
# The option is referenced via a variable to avoid confusing sed.
8445
lt_compile=`echo "$ac_compile" | $SED \
8446
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8447
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8448
-e 's:$: $lt_compiler_flag:'`
8449
(eval echo "\"\$as_me:8449: $lt_compile\"" >&5)
8450
(eval "$lt_compile" 2>conftest.err)
8452
cat conftest.err >&5
8453
echo "$as_me:8453: \$? = $ac_status" >&5
8454
if (exit $ac_status) && test -s "$ac_outfile"; then
8455
# The compiler can only warn and ignore the option if not recognized
8456
# So say no if there are warnings
8457
if test ! -s conftest.err; then
8458
lt_prog_compiler_pic_works=yes
8464
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8465
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8467
if test x"$lt_prog_compiler_pic_works" = xyes; then
8468
case $lt_prog_compiler_pic in
8470
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8473
lt_prog_compiler_pic=
8474
lt_prog_compiler_can_build_shared=no
8479
# For platforms which do not support PIC, -DPIC is meaningless:
8481
lt_prog_compiler_pic=
8484
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8488
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8489
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8490
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8491
echo $ECHO_N "(cached) $ECHO_C" >&6
8493
lt_cv_prog_compiler_c_o=no
8494
$rm -r conftest 2>/dev/null
8498
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8500
lt_compiler_flag="-o out/conftest2.$ac_objext"
8501
# Insert the option either (1) after the last *FLAGS variable, or
8502
# (2) before a word containing "conftest.", or (3) at the end.
8503
# Note that $ac_compile itself does not contain backslashes and begins
8504
# with a dollar sign (not a hyphen), so the echo should work correctly.
8505
lt_compile=`echo "$ac_compile" | $SED \
8506
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8507
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8508
-e 's:$: $lt_compiler_flag:'`
8509
(eval echo "\"\$as_me:8509: $lt_compile\"" >&5)
8510
(eval "$lt_compile" 2>out/conftest.err)
8512
cat out/conftest.err >&5
8513
echo "$as_me:8513: \$? = $ac_status" >&5
8514
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8516
# The compiler can only warn and ignore the option if not recognized
8517
# So say no if there are warnings
8518
if test ! -s out/conftest.err; then
8519
lt_cv_prog_compiler_c_o=yes
8524
# SGI C++ compiler will create directory out/ii_files/ for
8525
# template instantiation
8526
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8527
$rm out/* && rmdir out
8533
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8534
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8537
hard_links="nottested"
8538
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8539
# do not overwrite the value of need_locks provided by the user
8540
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8541
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8544
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8546
ln conftest.a conftest.b 2>&5 || hard_links=no
8547
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8548
echo "$as_me:$LINENO: result: $hard_links" >&5
8549
echo "${ECHO_T}$hard_links" >&6
8550
if test "$hard_links" = no; then
8551
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8552
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8559
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8560
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8563
allow_undefined_flag=
8564
enable_shared_with_static_runtimes=no
8566
archive_expsym_cmds=
8567
old_archive_From_new_cmds=
8568
old_archive_from_expsyms_cmds=
8569
export_dynamic_flag_spec=
8570
whole_archive_flag_spec=
8571
thread_safe_flag_spec=
8572
hardcode_libdir_flag_spec=
8573
hardcode_libdir_flag_spec_ld=
8574
hardcode_libdir_separator=
8577
hardcode_shlibpath_var=unsupported
8578
link_all_deplibs=unknown
8579
hardcode_automatic=no
8582
always_export_symbols=no
8583
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8584
# include_expsyms should be a list of space-separated symbols to be *always*
8585
# included in the symbol list
8587
# exclude_expsyms can be an extended regexp of symbols to exclude
8588
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8589
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8590
# as well as any symbol that contains `d'.
8591
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8592
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8593
# platforms (ab)use it in PIC code, but their linkers get confused if
8594
# the symbol is explicitly referenced. Since portable code cannot
8595
# rely on this symbol name, it's probably fine to never include it in
8596
# preloaded symbol tables.
8597
extract_expsyms_cmds=
8600
cygwin* | mingw* | pw32*)
8601
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8602
# When not using gcc, we currently assume that we are using
8603
# Microsoft Visual C++.
8604
if test "$GCC" != yes; then
8614
if test "$with_gnu_ld" = yes; then
8615
# If archive_cmds runs LD, not CC, wlarc should be empty
8618
# See if GNU ld supports shared libraries.
8620
aix3* | aix4* | aix5*)
8621
# On AIX/PPC, the GNU linker is very broken
8622
if test "$host_cpu" != ia64; then
8626
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8627
*** to be unable to reliably create shared libraries on AIX.
8628
*** Therefore, libtool is disabling shared libraries support. If you
8629
*** really care for shared libraries, you may want to modify your PATH
8630
*** so that a non-GNU linker is found, and then restart.
8637
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)'
8638
hardcode_libdir_flag_spec='-L$libdir'
8639
hardcode_minus_L=yes
8641
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8642
# that the semantics of dynamic libraries on AmigaOS, at least up
8643
# to version 4, is to share data among multiple programs linked
8644
# with the same dynamic library. Since this doesn't match the
8645
# behavior of shared libraries on other platforms, we can't use
8651
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8652
allow_undefined_flag=unsupported
8653
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8654
# support --undefined. This deserves some investigation. FIXME
8655
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661
cygwin* | mingw* | pw32*)
8662
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8663
# as there is no search path for DLLs.
8664
hardcode_libdir_flag_spec='-L$libdir'
8665
allow_undefined_flag=unsupported
8666
always_export_symbols=no
8667
enable_shared_with_static_runtimes=yes
8668
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8670
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8671
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8672
# If the export-symbols file already is a .def file (1st line
8673
# is EXPORTS), use it as is; otherwise, prepend...
8674
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8675
cp $export_symbols $output_objdir/$soname.def;
8677
echo EXPORTS > $output_objdir/$soname.def;
8678
cat $export_symbols >> $output_objdir/$soname.def;
8680
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8686
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8687
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8688
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8691
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8697
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8701
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8702
*** create shared libraries on Solaris systems. Therefore, libtool
8703
*** is disabling shared libraries support. We urge you to upgrade GNU
8704
*** binutils to release 2.9.1 or newer. Another option is to modify
8705
*** your PATH or compiler configuration so that the native linker is
8706
*** used, and then restart.
8709
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8710
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8718
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8721
hardcode_shlibpath_var=no
8725
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8726
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727
archive_cmds="$tmp_archive_cmds"
8728
supports_anon_versioning=no
8729
case `$LD -v 2>/dev/null` in
8730
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8731
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8732
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8733
*\ 2.11.*) ;; # other 2.11 versions
8734
*) supports_anon_versioning=yes ;;
8736
if test $supports_anon_versioning = yes; then
8737
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8738
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8739
$echo "local: *; };" >> $output_objdir/$libname.ver~
8740
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8742
archive_expsym_cmds="$tmp_archive_cmds"
8751
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8752
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760
if test "$ld_shlibs" = yes; then
8761
runpath_var=LD_RUN_PATH
8762
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8763
export_dynamic_flag_spec='${wl}--export-dynamic'
8764
# ancient GNU ld didn't support --whole-archive et. al.
8765
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8766
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8768
whole_archive_flag_spec=
8772
# PORTME fill in a description of your system's linker (not GNU ld)
8775
allow_undefined_flag=unsupported
8776
always_export_symbols=yes
8777
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'
8778
# Note: this linker hardcodes the directories in LIBPATH if there
8779
# are no directories specified by -L.
8780
hardcode_minus_L=yes
8781
if test "$GCC" = yes && test -z "$link_static_flag"; then
8782
# Neither direct hardcoding nor static linking is supported with a
8784
hardcode_direct=unsupported
8789
if test "$host_cpu" = ia64; then
8790
# On IA64, the linker does run time linking by default, so we don't
8791
# have to do anything special.
8792
aix_use_runtimelinking=no
8793
exp_sym_flag='-Bexport'
8796
# If we're using GNU nm, then we don't want the "-C" option.
8797
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8798
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8799
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'
8801
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'
8803
aix_use_runtimelinking=no
8805
# Test if we are trying to use run time linking or normal
8806
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8807
# need to do runtime linking.
8808
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8809
for ld_flag in $LDFLAGS; do
8810
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8811
aix_use_runtimelinking=yes
8817
exp_sym_flag='-bexport'
8818
no_entry_flag='-bnoentry'
8821
# When large executables or shared objects are built, AIX ld can
8822
# have problems creating the table of contents. If linking a library
8823
# or program results in "error TOC overflow" add -mminimal-toc to
8824
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8825
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8829
hardcode_libdir_separator=':'
8830
link_all_deplibs=yes
8832
if test "$GCC" = yes; then
8833
case $host_os in aix4.012|aix4.012.*)
8834
# We only want to do this on AIX 4.2 and lower, the check
8835
# below for broken collect2 doesn't work under 4.3+
8836
collect2name=`${CC} -print-prog-name=collect2`
8837
if test -f "$collect2name" && \
8838
strings "$collect2name" | grep resolve_lib_name >/dev/null
8840
# We have reworked collect2
8843
# We have old collect2
8844
hardcode_direct=unsupported
8845
# It fails to find uninstalled libraries when the uninstalled
8846
# path is not listed in the libpath. Setting hardcode_minus_L
8847
# to unsupported forces relinking
8848
hardcode_minus_L=yes
8849
hardcode_libdir_flag_spec='-L$libdir'
8850
hardcode_libdir_separator=
8853
shared_flag='-shared'
8856
if test "$host_cpu" = ia64; then
8857
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8858
# chokes on -Wl,-G. The following line is correct:
8861
if test "$aix_use_runtimelinking" = yes; then
8862
shared_flag='${wl}-G'
8864
shared_flag='${wl}-bM:SRE'
8869
# It seems that -bexpall does not export symbols beginning with
8870
# underscore (_), so it is better to generate a list of symbols to export.
8871
always_export_symbols=yes
8872
if test "$aix_use_runtimelinking" = yes; then
8873
# Warning - without using the other runtime loading flags (-brtl),
8874
# -berok will link without error, but may produce a broken library.
8875
allow_undefined_flag='-berok'
8876
# Determine the default libpath from the value encoded in an empty executable.
8877
cat >conftest.$ac_ext <<_ACEOF
8880
cat confdefs.h >>conftest.$ac_ext
8881
cat >>conftest.$ac_ext <<_ACEOF
8882
/* end confdefs.h. */
8892
rm -f conftest.$ac_objext conftest$ac_exeext
8893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894
(eval $ac_link) 2>conftest.er1
8896
grep -v '^ *+' conftest.er1 >conftest.err
8898
cat conftest.err >&5
8899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900
(exit $ac_status); } &&
8901
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906
(exit $ac_status); }; } &&
8907
{ ac_try='test -s conftest$ac_exeext'
8908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912
(exit $ac_status); }; }; then
8914
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8916
# Check for a 64-bit object if we didn't find anything.
8917
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; }
8920
echo "$as_me: failed program was:" >&5
8921
sed 's/^/| /' conftest.$ac_ext >&5
8924
rm -f conftest.err conftest.$ac_objext \
8925
conftest$ac_exeext conftest.$ac_ext
8926
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8928
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8929
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"
8931
if test "$host_cpu" = ia64; then
8932
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8933
allow_undefined_flag="-z nodefs"
8934
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"
8936
# Determine the default libpath from the value encoded in an empty executable.
8937
cat >conftest.$ac_ext <<_ACEOF
8940
cat confdefs.h >>conftest.$ac_ext
8941
cat >>conftest.$ac_ext <<_ACEOF
8942
/* end confdefs.h. */
8952
rm -f conftest.$ac_objext conftest$ac_exeext
8953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954
(eval $ac_link) 2>conftest.er1
8956
grep -v '^ *+' conftest.er1 >conftest.err
8958
cat conftest.err >&5
8959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960
(exit $ac_status); } &&
8961
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8962
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966
(exit $ac_status); }; } &&
8967
{ ac_try='test -s conftest$ac_exeext'
8968
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972
(exit $ac_status); }; }; then
8974
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8976
# Check for a 64-bit object if we didn't find anything.
8977
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; }
8980
echo "$as_me: failed program was:" >&5
8981
sed 's/^/| /' conftest.$ac_ext >&5
8984
rm -f conftest.err conftest.$ac_objext \
8985
conftest$ac_exeext conftest.$ac_ext
8986
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8988
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8989
# Warning - without using the other run time loading flags,
8990
# -berok will link without error, but may produce a broken library.
8991
no_undefined_flag=' ${wl}-bernotok'
8992
allow_undefined_flag=' ${wl}-berok'
8993
# -bexpall does not export symbols beginning with underscore (_)
8994
always_export_symbols=yes
8995
# Exported symbols can be pulled into shared objects from archives
8996
whole_archive_flag_spec=' '
8997
archive_cmds_need_lc=yes
8998
# This is similar to how AIX traditionally builds it's shared libraries.
8999
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'
9005
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)'
9006
hardcode_libdir_flag_spec='-L$libdir'
9007
hardcode_minus_L=yes
9008
# see comment about different semantics on the GNU ld section
9013
export_dynamic_flag_spec=-rdynamic
9016
cygwin* | mingw* | pw32*)
9017
# When not using gcc, we currently assume that we are using
9018
# Microsoft Visual C++.
9019
# hardcode_libdir_flag_spec is actually meaningless, as there is
9020
# no search path for DLLs.
9021
hardcode_libdir_flag_spec=' '
9022
allow_undefined_flag=unsupported
9023
# Tell ltmain to make .lib files, not .a files.
9025
# Tell ltmain to make .dll files, not .so files.
9027
# FIXME: Setting linknames here is a bad hack.
9028
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9029
# The linker will automatically build a .lib file if we build a DLL.
9030
old_archive_From_new_cmds='true'
9031
# FIXME: Should let the user specify the lib program.
9032
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9033
fix_srcfile_path='`cygpath -w "$srcfile"`'
9034
enable_shared_with_static_runtimes=yes
9037
darwin* | rhapsody*)
9038
if test "$GXX" = yes ; then
9039
archive_cmds_need_lc=no
9041
rhapsody* | darwin1.[012])
9042
allow_undefined_flag='-undefined suppress'
9045
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9046
allow_undefined_flag='-flat_namespace -undefined suppress'
9048
case ${MACOSX_DEPLOYMENT_TARGET} in
9050
allow_undefined_flag='-flat_namespace -undefined suppress'
9053
allow_undefined_flag='-undefined dynamic_lookup'
9059
lt_int_apple_cc_single_mod=no
9060
output_verbose_link_cmd='echo'
9061
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9062
lt_int_apple_cc_single_mod=yes
9064
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9065
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9067
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9069
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9070
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9071
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9072
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9074
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9076
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}'
9078
hardcode_automatic=yes
9079
hardcode_shlibpath_var=unsupported
9080
whole_archive_flag_spec='-all_load $convenience'
9081
link_all_deplibs=yes
9088
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9089
hardcode_libdir_flag_spec='-L$libdir'
9090
hardcode_shlibpath_var=no
9097
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9098
# support. Future versions do this automatically, but an explicit c++rt0.o
9099
# does not break anything, and helps significantly (at the cost of a little
9102
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9103
hardcode_libdir_flag_spec='-R$libdir'
9105
hardcode_shlibpath_var=no
9108
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9110
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9112
hardcode_minus_L=yes
9113
hardcode_shlibpath_var=no
9116
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9117
freebsd* | kfreebsd*-gnu)
9118
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9119
hardcode_libdir_flag_spec='-R$libdir'
9121
hardcode_shlibpath_var=no
9125
if test "$GCC" = yes; then
9126
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'
9128
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'
9130
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9131
hardcode_libdir_separator=:
9134
# hardcode_minus_L: Not really in the search PATH,
9135
# but as the default location of the library.
9136
hardcode_minus_L=yes
9137
export_dynamic_flag_spec='${wl}-E'
9141
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9144
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9147
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9153
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9156
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9160
if test "$with_gnu_ld" = no; then
9163
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164
hardcode_libdir_flag_spec_ld='+b $libdir'
9165
hardcode_libdir_separator=:
9167
hardcode_shlibpath_var=no
9170
hardcode_libdir_flag_spec='-L$libdir'
9172
hardcode_shlibpath_var=no
9174
# hardcode_minus_L: Not really in the search PATH,
9175
# but as the default location of the library.
9176
hardcode_minus_L=yes
9179
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9180
hardcode_libdir_separator=:
9182
export_dynamic_flag_spec='${wl}-E'
9184
# hardcode_minus_L: Not really in the search PATH,
9185
# but as the default location of the library.
9186
hardcode_minus_L=yes
9192
irix5* | irix6* | nonstopux*)
9193
if test "$GCC" = yes; then
9194
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'
9196
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'
9197
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9199
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9200
hardcode_libdir_separator=:
9201
link_all_deplibs=yes
9204
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
9205
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9206
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9208
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9210
hardcode_libdir_flag_spec='-R$libdir'
9212
hardcode_shlibpath_var=no
9216
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9218
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9219
hardcode_libdir_separator=:
9220
hardcode_shlibpath_var=no
9225
hardcode_shlibpath_var=no
9226
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9227
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9228
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9229
export_dynamic_flag_spec='${wl}-E'
9232
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9233
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9234
hardcode_libdir_flag_spec='-R$libdir'
9237
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9238
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9245
hardcode_libdir_flag_spec='-L$libdir'
9246
hardcode_minus_L=yes
9247
allow_undefined_flag=unsupported
9248
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'
9249
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9253
if test "$GCC" = yes; then
9254
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9255
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'
9257
allow_undefined_flag=' -expect_unresolved \*'
9258
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'
9260
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9261
hardcode_libdir_separator=:
9264
osf4* | osf5*) # as osf3* with the addition of -msym flag
9265
if test "$GCC" = yes; then
9266
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9267
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'
9268
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9270
allow_undefined_flag=' -expect_unresolved \*'
9271
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'
9272
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9273
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9275
# Both c and cxx compiler support -rpath directly
9276
hardcode_libdir_flag_spec='-rpath $libdir'
9278
hardcode_libdir_separator=:
9282
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283
hardcode_shlibpath_var=no
9284
export_dynamic_flag_spec='${wl}-Bexport'
9285
runpath_var=LD_RUN_PATH
9286
hardcode_runpath_var=yes
9290
no_undefined_flag=' -z text'
9291
if test "$GCC" = yes; then
9292
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9293
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9294
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9296
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9298
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9300
hardcode_libdir_flag_spec='-R$libdir'
9301
hardcode_shlibpath_var=no
9303
solaris2.[0-5] | solaris2.[0-5].*) ;;
9304
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
9305
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9307
link_all_deplibs=yes
9311
if test "x$host_vendor" = xsequent; then
9312
# Use $CC to link under sequent, because it throws in some extra .o
9313
# files that make .init and .fini sections work.
9314
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9316
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9318
hardcode_libdir_flag_spec='-L$libdir'
9320
hardcode_minus_L=yes
9321
hardcode_shlibpath_var=no
9325
case $host_vendor in
9327
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328
hardcode_direct=yes # is this really true???
9331
## LD is ld it makes a PLAMLIB
9332
## CC just makes a GrossModule.
9333
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9334
reload_cmds='$CC -r -o $output$reload_objs'
9338
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9342
runpath_var='LD_RUN_PATH'
9343
hardcode_shlibpath_var=no
9347
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348
hardcode_shlibpath_var=no
9349
export_dynamic_flag_spec='-Bexport'
9353
if test -d /usr/nec; then
9354
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355
hardcode_shlibpath_var=no
9356
runpath_var=LD_RUN_PATH
9357
hardcode_runpath_var=yes
9363
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9366
hardcode_shlibpath_var=no
9367
hardcode_runpath_var=yes
9368
runpath_var=LD_RUN_PATH
9371
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9372
no_undefined_flag='${wl}-z ${wl}text'
9373
if test "$GCC" = yes; then
9374
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9376
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9378
runpath_var='LD_RUN_PATH'
9379
hardcode_shlibpath_var=no
9383
no_undefined_flag=' -z text'
9384
# $CC -shared without GNU ld will not create a library from C++
9385
# object files and a static libstdc++, better avoid it by now
9386
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9388
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9389
hardcode_libdir_flag_spec=
9390
hardcode_shlibpath_var=no
9391
runpath_var='LD_RUN_PATH'
9395
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396
hardcode_libdir_flag_spec='-L$libdir'
9397
hardcode_shlibpath_var=no
9406
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9407
echo "${ECHO_T}$ld_shlibs" >&6
9408
test "$ld_shlibs" = no && can_build_shared=no
9410
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9411
if test "$GCC" = yes; then
9412
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9416
# Do we need to explicitly link libc?
9418
case "x$archive_cmds_need_lc" in
9420
# Assume -lc should be added
9421
archive_cmds_need_lc=yes
9423
if test "$enable_shared" = yes && test "$GCC" = yes; then
9424
case $archive_cmds in
9426
# FIXME: we may have to deal with multi-command sequences.
9429
# Test whether the compiler implicitly links with -lc since on some
9430
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9431
# to ld, don't add -lc before -lgcc.
9432
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9433
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9435
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9437
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438
(eval $ac_compile) 2>&5
9440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
(exit $ac_status); } 2>conftest.err; then
9444
libobjs=conftest.$ac_objext
9446
wl=$lt_prog_compiler_wl
9452
lt_save_allow_undefined_flag=$allow_undefined_flag
9453
allow_undefined_flag=
9454
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9455
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458
(exit $ac_status); }
9460
archive_cmds_need_lc=no
9462
archive_cmds_need_lc=yes
9464
allow_undefined_flag=$lt_save_allow_undefined_flag
9466
cat conftest.err 1>&5
9469
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9470
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9477
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9478
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9480
libname_spec='lib$name'
9488
shlibpath_overrides_runpath=unknown
9490
dynamic_linker="$host_os ld.so"
9491
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9492
if test "$GCC" = yes; then
9493
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9494
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9495
# if the path contains ";" then we assume it to be the separator
9496
# otherwise default to the standard path separator (i.e. ":") - it is
9497
# assumed that no part of a normal pathname contains ";" but that should
9498
# okay in the real world where ";" in dirpaths is itself problematic.
9499
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9501
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9504
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9506
need_lib_prefix=unknown
9507
hardcode_into_libs=no
9509
# when you set need_version to no, make sure it does not cause -set_version
9510
# flags to be left without arguments
9511
need_version=unknown
9516
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9517
shlibpath_var=LIBPATH
9519
# AIX 3 has no versioning support, so we append a major version to the name.
9520
soname_spec='${libname}${release}${shared_ext}$major'
9527
hardcode_into_libs=yes
9528
if test "$host_cpu" = ia64; then
9529
# AIX 5 supports IA64
9530
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9531
shlibpath_var=LD_LIBRARY_PATH
9533
# With GCC up to 2.95.x, collect2 would create an import file
9534
# for dependence libraries. The import file would start with
9535
# the line `#! .'. This would cause the generated library to
9536
# depend on `.', always an invalid library. This was fixed in
9537
# development snapshots of GCC prior to 3.0.
9539
aix4 | aix4.[01] | aix4.[01].*)
9540
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9542
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9549
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9550
# soname into executable. Probably we can add versioning support to
9551
# collect2, so additional links can be useful in future.
9552
if test "$aix_use_runtimelinking" = yes; then
9553
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9554
# instead of lib<name>.a to let people know that these are not
9555
# typical AIX shared libraries.
9556
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558
# We preserve .a as extension for shared libraries through AIX4.2
9559
# and later when we are not doing run time linking.
9560
library_names_spec='${libname}${release}.a $libname.a'
9561
soname_spec='${libname}${release}${shared_ext}$major'
9563
shlibpath_var=LIBPATH
9568
library_names_spec='$libname.ixlibrary $libname.a'
9569
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9570
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'
9574
library_names_spec='${libname}${shared_ext}'
9575
dynamic_linker="$host_os ld.so"
9576
shlibpath_var=LIBRARY_PATH
9582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583
soname_spec='${libname}${release}${shared_ext}$major'
9584
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9585
shlibpath_var=LD_LIBRARY_PATH
9586
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9587
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9588
# the default ld.so.conf also contains /usr/contrib/lib and
9589
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9590
# libtool to hard-code these into programs
9593
cygwin* | mingw* | pw32*)
9594
version_type=windows
9599
case $GCC,$host_os in
9600
yes,cygwin* | yes,mingw* | yes,pw32*)
9601
library_names_spec='$libname.dll.a'
9602
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9603
postinstall_cmds='base_file=`basename \${file}`~
9604
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9605
dldir=$destdir/`dirname \$dlpath`~
9606
test -d \$dldir || mkdir -p \$dldir~
9607
$install_prog $dir/$dlname \$dldir/$dlname'
9608
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9609
dlpath=$dir/\$dldll~
9611
shlibpath_overrides_runpath=yes
9615
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9616
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9617
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9620
# MinGW DLLs use traditional 'lib' prefix
9621
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9622
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9623
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9624
# It is most probably a Windows format PATH printed by
9625
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9626
# path with ; separators, and with drive letters. We can handle the
9627
# drive letters (cygwin fileutils understands them), so leave them,
9628
# especially as we might pass files found there to a mingw objdump,
9629
# which wouldn't understand a cygwinified path. Ahh.
9630
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9632
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9636
# pw32 DLLs use 'pw' prefix rather than 'lib'
9637
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9643
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9646
dynamic_linker='Win32 ld.exe'
9647
# FIXME: first we should search . and the directory the executable is in
9651
darwin* | rhapsody*)
9652
dynamic_linker="$host_os dyld"
9656
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9657
soname_spec='${libname}${release}${major}$shared_ext'
9658
shlibpath_overrides_runpath=yes
9659
shlibpath_var=DYLD_LIBRARY_PATH
9660
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9661
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9662
if test "$GCC" = yes; then
9663
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"`
9665
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9667
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9675
soname_spec='${libname}${release}${shared_ext}$major'
9676
shlibpath_var=LD_LIBRARY_PATH
9687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9688
soname_spec='${libname}${release}${shared_ext}$major'
9689
shlibpath_var=LD_LIBRARY_PATH
9690
shlibpath_overrides_runpath=no
9691
hardcode_into_libs=yes
9692
dynamic_linker='GNU ld.so'
9696
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9697
version_type=freebsd-$objformat
9698
case $version_type in
9700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9705
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9709
shlibpath_var=LD_LIBRARY_PATH
9712
shlibpath_overrides_runpath=yes
9714
freebsd3.01* | freebsdelf3.01*)
9715
shlibpath_overrides_runpath=yes
9716
hardcode_into_libs=yes
9719
shlibpath_overrides_runpath=no
9720
hardcode_into_libs=yes
9729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9730
soname_spec='${libname}${release}${shared_ext}$major'
9731
shlibpath_var=LD_LIBRARY_PATH
9732
hardcode_into_libs=yes
9735
hpux9* | hpux10* | hpux11*)
9736
# Give a soname corresponding to the major version so that dld.sl refuses to
9737
# link against other versions.
9744
hardcode_into_libs=yes
9745
dynamic_linker="$host_os dld.so"
9746
shlibpath_var=LD_LIBRARY_PATH
9747
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749
soname_spec='${libname}${release}${shared_ext}$major'
9750
if test "X$HPUX_IA64_MODE" = X32; then
9751
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9753
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9755
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9759
hardcode_into_libs=yes
9760
dynamic_linker="$host_os dld.sl"
9761
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9762
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764
soname_spec='${libname}${release}${shared_ext}$major'
9765
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9766
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9770
dynamic_linker="$host_os dld.sl"
9771
shlibpath_var=SHLIB_PATH
9772
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774
soname_spec='${libname}${release}${shared_ext}$major'
9777
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9778
postinstall_cmds='chmod 555 $lib'
9781
irix5* | irix6* | nonstopux*)
9783
nonstopux*) version_type=nonstopux ;;
9785
if test "$lt_cv_prog_gnu_ld" = yes; then
9793
soname_spec='${libname}${release}${shared_ext}$major'
9794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9796
irix5* | nonstopux*)
9800
case $LD in # libtool.m4 will add one of these switches to LD
9801
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9802
libsuff= shlibsuff= libmagic=32-bit;;
9803
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9804
libsuff=32 shlibsuff=N32 libmagic=N32;;
9805
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9806
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9807
*) libsuff= shlibsuff= libmagic=never-match;;
9811
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9812
shlibpath_overrides_runpath=no
9813
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9814
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9815
hardcode_into_libs=yes
9818
# No shared lib support for Linux oldld, aout, or coff.
9819
linux*oldld* | linux*aout* | linux*coff*)
9823
# This must be Linux ELF.
9828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829
soname_spec='${libname}${release}${shared_ext}$major'
9830
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9831
shlibpath_var=LD_LIBRARY_PATH
9832
shlibpath_overrides_runpath=no
9833
# This implies no fast_install, which is unacceptable.
9834
# Some rework will be needed to allow for fast_install
9835
# before this can be enabled.
9836
hardcode_into_libs=yes
9838
# Append ld.so.conf contents to the search path
9839
if test -f /etc/ld.so.conf; then
9840
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9841
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9844
# We used to test for /lib/ld.so.1 and disable shared libraries on
9845
# powerpc, because MkLinux only supported shared libraries with the
9846
# GNU dynamic linker. Since this was broken with cross compilers,
9847
# most powerpc-linux boxes support dynamic linking these days and
9848
# people can always --disable-shared, the test was removed, and we
9849
# assume the GNU/Linux dynamic linker is in use.
9850
dynamic_linker='GNU/Linux ld.so'
9857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9858
soname_spec='${libname}${release}${shared_ext}$major'
9859
shlibpath_var=LD_LIBRARY_PATH
9860
shlibpath_overrides_runpath=no
9861
hardcode_into_libs=yes
9862
dynamic_linker='NetBSD ld.elf_so'
9869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9870
soname_spec='${libname}${release}${shared_ext}$major'
9871
shlibpath_var=LD_LIBRARY_PATH
9872
shlibpath_overrides_runpath=no
9873
hardcode_into_libs=yes
9874
dynamic_linker='GNU ld.so'
9881
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9882
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9883
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9884
dynamic_linker='NetBSD (a.out) ld.so'
9886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9887
soname_spec='${libname}${release}${shared_ext}$major'
9888
dynamic_linker='NetBSD ld.elf_so'
9890
shlibpath_var=LD_LIBRARY_PATH
9891
shlibpath_overrides_runpath=yes
9892
hardcode_into_libs=yes
9897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898
shlibpath_var=LD_LIBRARY_PATH
9899
shlibpath_overrides_runpath=yes
9906
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907
soname_spec='${libname}${release}${shared_ext}$major'
9908
shlibpath_var=LD_LIBRARY_PATH
9909
shlibpath_overrides_runpath=yes
9916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9917
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9918
shlibpath_var=LD_LIBRARY_PATH
9919
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9921
openbsd2.[89] | openbsd2.[89].*)
9922
shlibpath_overrides_runpath=no
9925
shlibpath_overrides_runpath=yes
9929
shlibpath_overrides_runpath=yes
9934
libname_spec='$name'
9937
library_names_spec='$libname${shared_ext} $libname.a'
9938
dynamic_linker='OS/2 ld.exe'
9939
shlibpath_var=LIBPATH
9942
osf3* | osf4* | osf5*)
9946
soname_spec='${libname}${release}${shared_ext}$major'
9947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948
shlibpath_var=LD_LIBRARY_PATH
9949
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9950
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9955
soname_spec='${libname}${release}${shared_ext}$major'
9956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957
shlibpath_var=LD_LIBRARY_PATH
9964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965
soname_spec='${libname}${release}${shared_ext}$major'
9966
shlibpath_var=LD_LIBRARY_PATH
9967
shlibpath_overrides_runpath=yes
9968
hardcode_into_libs=yes
9969
# ldd complains unless libraries are executable
9970
postinstall_cmds='chmod +x $lib'
9975
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9976
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9977
shlibpath_var=LD_LIBRARY_PATH
9978
shlibpath_overrides_runpath=yes
9979
if test "$with_gnu_ld" = yes; then
9985
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988
soname_spec='${libname}${release}${shared_ext}$major'
9989
shlibpath_var=LD_LIBRARY_PATH
9990
case $host_vendor in
9992
shlibpath_overrides_runpath=no
9994
export_dynamic_flag_spec='${wl}-Blargedynsym'
9995
runpath_var=LD_RUN_PATH
10003
shlibpath_overrides_runpath=no
10004
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10010
if test -d /usr/nec ;then
10012
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10013
soname_spec='$libname${shared_ext}.$major'
10014
shlibpath_var=LD_LIBRARY_PATH
10020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021
soname_spec='${libname}${release}${shared_ext}$major'
10022
shlibpath_var=LD_LIBRARY_PATH
10029
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10030
echo "${ECHO_T}$dynamic_linker" >&6
10031
test "$dynamic_linker" = no && can_build_shared=no
10033
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10034
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10036
if test -n "$hardcode_libdir_flag_spec" || \
10037
test -n "$runpath_var " || \
10038
test "X$hardcode_automatic"="Xyes" ; then
10040
# We can hardcode non-existant directories.
10041
if test "$hardcode_direct" != no &&
10042
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10043
# have to relink, otherwise we might link with an installed library
10044
# when we should be linking with a yet-to-be-installed one
10045
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10046
test "$hardcode_minus_L" != no; then
10047
# Linking always hardcodes the temporary library directory.
10048
hardcode_action=relink
10050
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10051
hardcode_action=immediate
10054
# We cannot hardcode anything, or else we can only hardcode existing
10056
hardcode_action=unsupported
10058
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10059
echo "${ECHO_T}$hardcode_action" >&6
10061
if test "$hardcode_action" = relink; then
10062
# Fast installation is not supported
10063
enable_fast_install=no
10064
elif test "$shlibpath_overrides_runpath" = yes ||
10065
test "$enable_shared" = no; then
10066
# Fast installation is not necessary
10067
enable_fast_install=needless
10072
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10073
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10074
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10075
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10076
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10077
echo "$as_me:$LINENO: result: yes" >&5
10078
echo "${ECHO_T}yes" >&6
10080
# FIXME - insert some real tests, host_os isn't really good enough
10083
if test -n "$STRIP" ; then
10084
striplib="$STRIP -x"
10085
echo "$as_me:$LINENO: result: yes" >&5
10086
echo "${ECHO_T}yes" >&6
10088
echo "$as_me:$LINENO: result: no" >&5
10089
echo "${ECHO_T}no" >&6
10093
echo "$as_me:$LINENO: result: no" >&5
10094
echo "${ECHO_T}no" >&6
10099
if test "x$enable_dlopen" != xyes; then
10100
enable_dlopen=unknown
10101
enable_dlopen_self=unknown
10102
enable_dlopen_self_static=unknown
10109
lt_cv_dlopen="load_add_on"
10111
lt_cv_dlopen_self=yes
10115
lt_cv_dlopen="LoadLibrary"
10120
lt_cv_dlopen="dlopen"
10125
# if libdl is installed we need to link against it
10126
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10127
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10128
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10129
echo $ECHO_N "(cached) $ECHO_C" >&6
10131
ac_check_lib_save_LIBS=$LIBS
10133
cat >conftest.$ac_ext <<_ACEOF
10136
cat confdefs.h >>conftest.$ac_ext
10137
cat >>conftest.$ac_ext <<_ACEOF
10138
/* end confdefs.h. */
10140
/* Override any gcc2 internal prototype to avoid an error. */
10144
/* We use char because int might match the return type of a gcc2
10145
builtin and then its argument prototype would still apply. */
10155
rm -f conftest.$ac_objext conftest$ac_exeext
10156
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157
(eval $ac_link) 2>conftest.er1
10159
grep -v '^ *+' conftest.er1 >conftest.err
10161
cat conftest.err >&5
10162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163
(exit $ac_status); } &&
10164
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166
(eval $ac_try) 2>&5
10168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169
(exit $ac_status); }; } &&
10170
{ ac_try='test -s conftest$ac_exeext'
10171
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172
(eval $ac_try) 2>&5
10174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175
(exit $ac_status); }; }; then
10176
ac_cv_lib_dl_dlopen=yes
10178
echo "$as_me: failed program was:" >&5
10179
sed 's/^/| /' conftest.$ac_ext >&5
10181
ac_cv_lib_dl_dlopen=no
10183
rm -f conftest.err conftest.$ac_objext \
10184
conftest$ac_exeext conftest.$ac_ext
10185
LIBS=$ac_check_lib_save_LIBS
10187
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10188
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10189
if test $ac_cv_lib_dl_dlopen = yes; then
10190
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10193
lt_cv_dlopen="dyld"
10195
lt_cv_dlopen_self=yes
10202
echo "$as_me:$LINENO: checking for shl_load" >&5
10203
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10204
if test "${ac_cv_func_shl_load+set}" = set; then
10205
echo $ECHO_N "(cached) $ECHO_C" >&6
10207
cat >conftest.$ac_ext <<_ACEOF
10210
cat confdefs.h >>conftest.$ac_ext
10211
cat >>conftest.$ac_ext <<_ACEOF
10212
/* end confdefs.h. */
10213
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10214
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10215
#define shl_load innocuous_shl_load
10217
/* System header to define __stub macros and hopefully few prototypes,
10218
which can conflict with char shl_load (); below.
10219
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10220
<limits.h> exists even on freestanding compilers. */
10223
# include <limits.h>
10225
# include <assert.h>
10230
/* Override any gcc2 internal prototype to avoid an error. */
10235
/* We use char because int might match the return type of a gcc2
10236
builtin and then its argument prototype would still apply. */
10238
/* The GNU C library defines this for functions which it implements
10239
to always fail with ENOSYS. Some functions are actually named
10240
something starting with __ and the normal name is an alias. */
10241
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10244
char (*f) () = shl_load;
10253
return f != shl_load;
10258
rm -f conftest.$ac_objext conftest$ac_exeext
10259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260
(eval $ac_link) 2>conftest.er1
10262
grep -v '^ *+' conftest.er1 >conftest.err
10264
cat conftest.err >&5
10265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266
(exit $ac_status); } &&
10267
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269
(eval $ac_try) 2>&5
10271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272
(exit $ac_status); }; } &&
10273
{ ac_try='test -s conftest$ac_exeext'
10274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275
(eval $ac_try) 2>&5
10277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278
(exit $ac_status); }; }; then
10279
ac_cv_func_shl_load=yes
10281
echo "$as_me: failed program was:" >&5
10282
sed 's/^/| /' conftest.$ac_ext >&5
10284
ac_cv_func_shl_load=no
10286
rm -f conftest.err conftest.$ac_objext \
10287
conftest$ac_exeext conftest.$ac_ext
10289
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10290
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10291
if test $ac_cv_func_shl_load = yes; then
10292
lt_cv_dlopen="shl_load"
10294
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10295
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10296
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10297
echo $ECHO_N "(cached) $ECHO_C" >&6
10299
ac_check_lib_save_LIBS=$LIBS
10301
cat >conftest.$ac_ext <<_ACEOF
10304
cat confdefs.h >>conftest.$ac_ext
10305
cat >>conftest.$ac_ext <<_ACEOF
10306
/* end confdefs.h. */
10308
/* Override any gcc2 internal prototype to avoid an error. */
10312
/* We use char because int might match the return type of a gcc2
10313
builtin and then its argument prototype would still apply. */
10323
rm -f conftest.$ac_objext conftest$ac_exeext
10324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325
(eval $ac_link) 2>conftest.er1
10327
grep -v '^ *+' conftest.er1 >conftest.err
10329
cat conftest.err >&5
10330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331
(exit $ac_status); } &&
10332
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334
(eval $ac_try) 2>&5
10336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337
(exit $ac_status); }; } &&
10338
{ ac_try='test -s conftest$ac_exeext'
10339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340
(eval $ac_try) 2>&5
10342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343
(exit $ac_status); }; }; then
10344
ac_cv_lib_dld_shl_load=yes
10346
echo "$as_me: failed program was:" >&5
10347
sed 's/^/| /' conftest.$ac_ext >&5
10349
ac_cv_lib_dld_shl_load=no
10351
rm -f conftest.err conftest.$ac_objext \
10352
conftest$ac_exeext conftest.$ac_ext
10353
LIBS=$ac_check_lib_save_LIBS
10355
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10356
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10357
if test $ac_cv_lib_dld_shl_load = yes; then
10358
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10360
echo "$as_me:$LINENO: checking for dlopen" >&5
10361
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10362
if test "${ac_cv_func_dlopen+set}" = set; then
10363
echo $ECHO_N "(cached) $ECHO_C" >&6
10365
cat >conftest.$ac_ext <<_ACEOF
10368
cat confdefs.h >>conftest.$ac_ext
10369
cat >>conftest.$ac_ext <<_ACEOF
10370
/* end confdefs.h. */
10371
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10372
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10373
#define dlopen innocuous_dlopen
10375
/* System header to define __stub macros and hopefully few prototypes,
10376
which can conflict with char dlopen (); below.
10377
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10378
<limits.h> exists even on freestanding compilers. */
10381
# include <limits.h>
10383
# include <assert.h>
10388
/* Override any gcc2 internal prototype to avoid an error. */
10393
/* We use char because int might match the return type of a gcc2
10394
builtin and then its argument prototype would still apply. */
10396
/* The GNU C library defines this for functions which it implements
10397
to always fail with ENOSYS. Some functions are actually named
10398
something starting with __ and the normal name is an alias. */
10399
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10402
char (*f) () = dlopen;
10411
return f != dlopen;
10416
rm -f conftest.$ac_objext conftest$ac_exeext
10417
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418
(eval $ac_link) 2>conftest.er1
10420
grep -v '^ *+' conftest.er1 >conftest.err
10422
cat conftest.err >&5
10423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424
(exit $ac_status); } &&
10425
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427
(eval $ac_try) 2>&5
10429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430
(exit $ac_status); }; } &&
10431
{ ac_try='test -s conftest$ac_exeext'
10432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433
(eval $ac_try) 2>&5
10435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436
(exit $ac_status); }; }; then
10437
ac_cv_func_dlopen=yes
10439
echo "$as_me: failed program was:" >&5
10440
sed 's/^/| /' conftest.$ac_ext >&5
10442
ac_cv_func_dlopen=no
10444
rm -f conftest.err conftest.$ac_objext \
10445
conftest$ac_exeext conftest.$ac_ext
10447
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10448
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10449
if test $ac_cv_func_dlopen = yes; then
10450
lt_cv_dlopen="dlopen"
10452
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10453
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10454
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10455
echo $ECHO_N "(cached) $ECHO_C" >&6
10457
ac_check_lib_save_LIBS=$LIBS
10459
cat >conftest.$ac_ext <<_ACEOF
10462
cat confdefs.h >>conftest.$ac_ext
10463
cat >>conftest.$ac_ext <<_ACEOF
10464
/* end confdefs.h. */
10466
/* Override any gcc2 internal prototype to avoid an error. */
10470
/* We use char because int might match the return type of a gcc2
10471
builtin and then its argument prototype would still apply. */
10481
rm -f conftest.$ac_objext conftest$ac_exeext
10482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10483
(eval $ac_link) 2>conftest.er1
10485
grep -v '^ *+' conftest.er1 >conftest.err
10487
cat conftest.err >&5
10488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489
(exit $ac_status); } &&
10490
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492
(eval $ac_try) 2>&5
10494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495
(exit $ac_status); }; } &&
10496
{ ac_try='test -s conftest$ac_exeext'
10497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498
(eval $ac_try) 2>&5
10500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501
(exit $ac_status); }; }; then
10502
ac_cv_lib_dl_dlopen=yes
10504
echo "$as_me: failed program was:" >&5
10505
sed 's/^/| /' conftest.$ac_ext >&5
10507
ac_cv_lib_dl_dlopen=no
10509
rm -f conftest.err conftest.$ac_objext \
10510
conftest$ac_exeext conftest.$ac_ext
10511
LIBS=$ac_check_lib_save_LIBS
10513
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10514
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10515
if test $ac_cv_lib_dl_dlopen = yes; then
10516
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10518
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10519
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10520
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10521
echo $ECHO_N "(cached) $ECHO_C" >&6
10523
ac_check_lib_save_LIBS=$LIBS
10524
LIBS="-lsvld $LIBS"
10525
cat >conftest.$ac_ext <<_ACEOF
10528
cat confdefs.h >>conftest.$ac_ext
10529
cat >>conftest.$ac_ext <<_ACEOF
10530
/* end confdefs.h. */
10532
/* Override any gcc2 internal prototype to avoid an error. */
10536
/* We use char because int might match the return type of a gcc2
10537
builtin and then its argument prototype would still apply. */
10547
rm -f conftest.$ac_objext conftest$ac_exeext
10548
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549
(eval $ac_link) 2>conftest.er1
10551
grep -v '^ *+' conftest.er1 >conftest.err
10553
cat conftest.err >&5
10554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555
(exit $ac_status); } &&
10556
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10557
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558
(eval $ac_try) 2>&5
10560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561
(exit $ac_status); }; } &&
10562
{ ac_try='test -s conftest$ac_exeext'
10563
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564
(eval $ac_try) 2>&5
10566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567
(exit $ac_status); }; }; then
10568
ac_cv_lib_svld_dlopen=yes
10570
echo "$as_me: failed program was:" >&5
10571
sed 's/^/| /' conftest.$ac_ext >&5
10573
ac_cv_lib_svld_dlopen=no
10575
rm -f conftest.err conftest.$ac_objext \
10576
conftest$ac_exeext conftest.$ac_ext
10577
LIBS=$ac_check_lib_save_LIBS
10579
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10580
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10581
if test $ac_cv_lib_svld_dlopen = yes; then
10582
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10584
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10585
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10586
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10587
echo $ECHO_N "(cached) $ECHO_C" >&6
10589
ac_check_lib_save_LIBS=$LIBS
10591
cat >conftest.$ac_ext <<_ACEOF
10594
cat confdefs.h >>conftest.$ac_ext
10595
cat >>conftest.$ac_ext <<_ACEOF
10596
/* end confdefs.h. */
10598
/* Override any gcc2 internal prototype to avoid an error. */
10602
/* We use char because int might match the return type of a gcc2
10603
builtin and then its argument prototype would still apply. */
10613
rm -f conftest.$ac_objext conftest$ac_exeext
10614
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10615
(eval $ac_link) 2>conftest.er1
10617
grep -v '^ *+' conftest.er1 >conftest.err
10619
cat conftest.err >&5
10620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621
(exit $ac_status); } &&
10622
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624
(eval $ac_try) 2>&5
10626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627
(exit $ac_status); }; } &&
10628
{ ac_try='test -s conftest$ac_exeext'
10629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630
(eval $ac_try) 2>&5
10632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633
(exit $ac_status); }; }; then
10634
ac_cv_lib_dld_dld_link=yes
10636
echo "$as_me: failed program was:" >&5
10637
sed 's/^/| /' conftest.$ac_ext >&5
10639
ac_cv_lib_dld_dld_link=no
10641
rm -f conftest.err conftest.$ac_objext \
10642
conftest$ac_exeext conftest.$ac_ext
10643
LIBS=$ac_check_lib_save_LIBS
10645
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10646
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10647
if test $ac_cv_lib_dld_dld_link = yes; then
10648
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10669
if test "x$lt_cv_dlopen" != xno; then
10675
case $lt_cv_dlopen in
10677
save_CPPFLAGS="$CPPFLAGS"
10678
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10680
save_LDFLAGS="$LDFLAGS"
10681
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10684
LIBS="$lt_cv_dlopen_libs $LIBS"
10686
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10687
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10688
if test "${lt_cv_dlopen_self+set}" = set; then
10689
echo $ECHO_N "(cached) $ECHO_C" >&6
10691
if test "$cross_compiling" = yes; then :
10692
lt_cv_dlopen_self=cross
10694
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10695
lt_status=$lt_dlunknown
10696
cat > conftest.$ac_ext <<EOF
10697
#line 10697 "configure"
10698
#include "confdefs.h"
10707
# define LT_DLGLOBAL RTLD_GLOBAL
10710
# define LT_DLGLOBAL DL_GLOBAL
10712
# define LT_DLGLOBAL 0
10716
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10717
find out it does not work in some platform. */
10718
#ifndef LT_DLLAZY_OR_NOW
10720
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10723
# define LT_DLLAZY_OR_NOW DL_LAZY
10726
# define LT_DLLAZY_OR_NOW RTLD_NOW
10729
# define LT_DLLAZY_OR_NOW DL_NOW
10731
# define LT_DLLAZY_OR_NOW 0
10739
extern "C" void exit (int);
10742
void fnord() { int i=42;}
10745
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10746
int status = $lt_dlunknown;
10750
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10751
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10752
/* dlclose (self); */
10758
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759
(eval $ac_link) 2>&5
10761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10763
(./conftest; exit; ) 2>/dev/null
10765
case x$lt_status in
10766
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10767
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10768
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10771
# compilation failed
10772
lt_cv_dlopen_self=no
10779
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10780
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10782
if test "x$lt_cv_dlopen_self" = xyes; then
10783
LDFLAGS="$LDFLAGS $link_static_flag"
10784
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10785
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10786
if test "${lt_cv_dlopen_self_static+set}" = set; then
10787
echo $ECHO_N "(cached) $ECHO_C" >&6
10789
if test "$cross_compiling" = yes; then :
10790
lt_cv_dlopen_self_static=cross
10792
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10793
lt_status=$lt_dlunknown
10794
cat > conftest.$ac_ext <<EOF
10795
#line 10795 "configure"
10796
#include "confdefs.h"
10805
# define LT_DLGLOBAL RTLD_GLOBAL
10808
# define LT_DLGLOBAL DL_GLOBAL
10810
# define LT_DLGLOBAL 0
10814
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10815
find out it does not work in some platform. */
10816
#ifndef LT_DLLAZY_OR_NOW
10818
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10821
# define LT_DLLAZY_OR_NOW DL_LAZY
10824
# define LT_DLLAZY_OR_NOW RTLD_NOW
10827
# define LT_DLLAZY_OR_NOW DL_NOW
10829
# define LT_DLLAZY_OR_NOW 0
10837
extern "C" void exit (int);
10840
void fnord() { int i=42;}
10843
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10844
int status = $lt_dlunknown;
10848
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10849
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10850
/* dlclose (self); */
10856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857
(eval $ac_link) 2>&5
10859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10861
(./conftest; exit; ) 2>/dev/null
10863
case x$lt_status in
10864
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10865
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10866
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10869
# compilation failed
10870
lt_cv_dlopen_self_static=no
10877
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10878
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10881
CPPFLAGS="$save_CPPFLAGS"
10882
LDFLAGS="$save_LDFLAGS"
10887
case $lt_cv_dlopen_self in
10888
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10889
*) enable_dlopen_self=unknown ;;
10892
case $lt_cv_dlopen_self_static in
10893
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10894
*) enable_dlopen_self_static=unknown ;;
10899
# Report which librarie types wil actually be built
10900
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10901
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10902
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10903
echo "${ECHO_T}$can_build_shared" >&6
10905
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10906
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10907
test "$can_build_shared" = "no" && enable_shared=no
10909
# On AIX, shared libraries and static libraries use the same namespace, and
10910
# are all built from PIC.
10913
test "$enable_shared" = yes && enable_static=no
10914
if test -n "$RANLIB"; then
10915
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10916
postinstall_cmds='$RANLIB $lib'
10921
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10922
test "$enable_shared" = yes && enable_static=no
10925
darwin* | rhapsody*)
10926
if test "$GCC" = yes; then
10927
archive_cmds_need_lc=no
10929
rhapsody* | darwin1.[012])
10930
allow_undefined_flag='-undefined suppress'
10933
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10934
allow_undefined_flag='-flat_namespace -undefined suppress'
10936
case ${MACOSX_DEPLOYMENT_TARGET} in
10938
allow_undefined_flag='-flat_namespace -undefined suppress'
10941
allow_undefined_flag='-undefined dynamic_lookup'
10947
output_verbose_link_cmd='echo'
10948
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10949
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10950
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10951
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}'
10952
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}'
10954
hardcode_automatic=yes
10955
hardcode_shlibpath_var=unsupported
10956
whole_archive_flag_spec='-all_load $convenience'
10957
link_all_deplibs=yes
10963
echo "$as_me:$LINENO: result: $enable_shared" >&5
10964
echo "${ECHO_T}$enable_shared" >&6
10966
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10967
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10968
# Make sure either enable_shared or enable_static is yes.
10969
test "$enable_shared" = yes || enable_static=yes
10970
echo "$as_me:$LINENO: result: $enable_static" >&5
10971
echo "${ECHO_T}$enable_static" >&6
10973
# The else clause should only fire when bootstrapping the
10974
# libtool distribution, otherwise you forgot to ship ltmain.sh
10975
# with your package, and you will get complaints that there are
10976
# no rules to generate ltmain.sh.
10977
if test -f "$ltmain"; then
10978
# See if we are running on zsh, and set the options which allow our commands through
10979
# without removal of \ escapes.
10980
if test -n "${ZSH_VERSION+set}" ; then
10981
setopt NO_GLOB_SUBST
10983
# Now quote all the things that may contain metacharacters while being
10984
# careful not to overquote the AC_SUBSTed values. We take copies of the
10985
# variables and quote the copies for generation of the libtool script.
10986
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10988
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10989
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10990
deplibs_check_method reload_flag reload_cmds need_locks \
10991
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10992
lt_cv_sys_global_symbol_to_c_name_address \
10993
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10994
old_postinstall_cmds old_postuninstall_cmds \
10998
lt_prog_compiler_wl \
10999
lt_prog_compiler_pic \
11000
lt_prog_compiler_static \
11001
lt_prog_compiler_no_builtin_flag \
11002
export_dynamic_flag_spec \
11003
thread_safe_flag_spec \
11004
whole_archive_flag_spec \
11005
enable_shared_with_static_runtimes \
11007
old_archive_from_new_cmds \
11012
compiler_lib_search_path \
11014
archive_expsym_cmds \
11016
postuninstall_cmds \
11017
old_archive_from_expsyms_cmds \
11018
allow_undefined_flag \
11019
no_undefined_flag \
11020
export_symbols_cmds \
11021
hardcode_libdir_flag_spec \
11022
hardcode_libdir_flag_spec_ld \
11023
hardcode_libdir_separator \
11024
hardcode_automatic \
11026
module_expsym_cmds \
11027
lt_cv_prog_compiler_c_o \
11029
include_expsyms; do
11032
old_archive_cmds | \
11033
old_archive_from_new_cmds | \
11035
archive_expsym_cmds | \
11037
module_expsym_cmds | \
11038
old_archive_from_expsyms_cmds | \
11039
export_symbols_cmds | \
11040
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11041
postinstall_cmds | postuninstall_cmds | \
11042
old_postinstall_cmds | old_postuninstall_cmds | \
11043
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11044
# Double-quote double-evaled strings.
11045
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11048
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11054
*'\$0 --fallback-echo"')
11055
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11059
cfgfile="${ofile}T"
11060
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11062
{ echo "$as_me:$LINENO: creating $ofile" >&5
11063
echo "$as_me: creating $ofile" >&6;}
11065
cat <<__EOF__ >> "$cfgfile"
11068
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11069
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11070
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11072
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11073
# Free Software Foundation, Inc.
11075
# This file is part of GNU Libtool:
11076
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11078
# This program is free software; you can redistribute it and/or modify
11079
# it under the terms of the GNU General Public License as published by
11080
# the Free Software Foundation; either version 2 of the License, or
11081
# (at your option) any later version.
11083
# This program is distributed in the hope that it will be useful, but
11084
# WITHOUT ANY WARRANTY; without even the implied warranty of
11085
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11086
# General Public License for more details.
11088
# You should have received a copy of the GNU General Public License
11089
# along with this program; if not, write to the Free Software
11090
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11092
# As a special exception to the GNU General Public License, if you
11093
# distribute this file as part of a program that contains a
11094
# configuration script generated by Autoconf, you may include it under
11095
# the same distribution terms that you use for the rest of that program.
11097
# A sed program that does not truncate output.
11100
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11101
Xsed="$SED -e s/^X//"
11103
# The HP-UX ksh and POSIX shell print the target directory to stdout
11104
# if CDPATH is set.
11105
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11107
# The names of the tagged configurations supported by this script.
11110
# ### BEGIN LIBTOOL CONFIG
11112
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11114
# Shell to use when invoking shell scripts.
11117
# Whether or not to build shared libraries.
11118
build_libtool_libs=$enable_shared
11120
# Whether or not to build static libraries.
11121
build_old_libs=$enable_static
11123
# Whether or not to add -lc for building shared libraries.
11124
build_libtool_need_lc=$archive_cmds_need_lc
11126
# Whether or not to disallow shared libs when runtime libs are static
11127
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11129
# Whether or not to optimize for fast installation.
11130
fast_install=$enable_fast_install
11133
host_alias=$host_alias
11136
# An echo program that does not interpret backslashes.
11141
AR_FLAGS=$lt_AR_FLAGS
11146
# A language-specific compiler.
11149
# Is the compiler the GNU C compiler?
11155
# The linker used to build libraries.
11158
# Whether we need hard or soft links.
11161
# A BSD-compatible nm program.
11164
# A symbol stripping program
11167
# Used to examine libraries when file_magic_cmd begins "file"
11168
MAGIC_CMD=$MAGIC_CMD
11170
# Used on cygwin: DLL creation program.
11173
# Used on cygwin: object dumper.
11176
# Used on cygwin: assembler.
11179
# The name of the directory that contains temporary libtool files.
11182
# How to create reloadable object files.
11183
reload_flag=$lt_reload_flag
11184
reload_cmds=$lt_reload_cmds
11186
# How to pass a linker flag through the compiler.
11187
wl=$lt_lt_prog_compiler_wl
11189
# Object file suffix (normally "o").
11190
objext="$ac_objext"
11192
# Old archive suffix (normally "a").
11195
# Shared library suffix (normally ".so").
11196
shrext_cmds='$shrext_cmds'
11198
# Executable file suffix (normally "").
11201
# Additional compiler flags for building library objects.
11202
pic_flag=$lt_lt_prog_compiler_pic
11205
# What is the maximum length of a command?
11206
max_cmd_len=$lt_cv_sys_max_cmd_len
11208
# Does compiler simultaneously support -c and -o options?
11209
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11211
# Must we lock files when doing compilation ?
11212
need_locks=$lt_need_locks
11214
# Do we need the lib prefix for modules?
11215
need_lib_prefix=$need_lib_prefix
11217
# Do we need a version for libraries?
11218
need_version=$need_version
11220
# Whether dlopen is supported.
11221
dlopen_support=$enable_dlopen
11223
# Whether dlopen of programs is supported.
11224
dlopen_self=$enable_dlopen_self
11226
# Whether dlopen of statically linked programs is supported.
11227
dlopen_self_static=$enable_dlopen_self_static
11229
# Compiler flag to prevent dynamic linking.
11230
link_static_flag=$lt_lt_prog_compiler_static
11232
# Compiler flag to turn off builtin functions.
11233
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11235
# Compiler flag to allow reflexive dlopens.
11236
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11238
# Compiler flag to generate shared objects directly from archives.
11239
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11241
# Compiler flag to generate thread-safe objects.
11242
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11244
# Library versioning type.
11245
version_type=$version_type
11247
# Format of library name prefix.
11248
libname_spec=$lt_libname_spec
11250
# List of archive names. First name is the real one, the rest are links.
11251
# The last name is the one that the linker finds with -lNAME.
11252
library_names_spec=$lt_library_names_spec
11254
# The coded name of the library, if different from the real name.
11255
soname_spec=$lt_soname_spec
11257
# Commands used to build and install an old-style archive.
11259
old_archive_cmds=$lt_old_archive_cmds
11260
old_postinstall_cmds=$lt_old_postinstall_cmds
11261
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11263
# Create an old-style archive from a shared archive.
11264
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11266
# Create a temporary old-style archive to link instead of a shared archive.
11267
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11269
# Commands used to build and install a shared archive.
11270
archive_cmds=$lt_archive_cmds
11271
archive_expsym_cmds=$lt_archive_expsym_cmds
11272
postinstall_cmds=$lt_postinstall_cmds
11273
postuninstall_cmds=$lt_postuninstall_cmds
11275
# Commands used to build a loadable module (assumed same as above if empty)
11276
module_cmds=$lt_module_cmds
11277
module_expsym_cmds=$lt_module_expsym_cmds
11279
# Commands to strip libraries.
11280
old_striplib=$lt_old_striplib
11281
striplib=$lt_striplib
11283
# Dependencies to place before the objects being linked to create a
11285
predep_objects=$lt_predep_objects
11287
# Dependencies to place after the objects being linked to create a
11289
postdep_objects=$lt_postdep_objects
11291
# Dependencies to place before the objects being linked to create a
11293
predeps=$lt_predeps
11295
# Dependencies to place after the objects being linked to create a
11297
postdeps=$lt_postdeps
11299
# The library search path used internally by the compiler when linking
11300
# a shared library.
11301
compiler_lib_search_path=$lt_compiler_lib_search_path
11303
# Method to check whether dependent libraries are shared objects.
11304
deplibs_check_method=$lt_deplibs_check_method
11306
# Command to use when deplibs_check_method == file_magic.
11307
file_magic_cmd=$lt_file_magic_cmd
11309
# Flag that allows shared libraries with undefined symbols to be built.
11310
allow_undefined_flag=$lt_allow_undefined_flag
11312
# Flag that forces no undefined symbols.
11313
no_undefined_flag=$lt_no_undefined_flag
11315
# Commands used to finish a libtool library installation in a directory.
11316
finish_cmds=$lt_finish_cmds
11318
# Same as above, but a single script fragment to be evaled but not shown.
11319
finish_eval=$lt_finish_eval
11321
# Take the output of nm and produce a listing of raw symbols and C names.
11322
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11324
# Transform the output of nm in a proper C declaration
11325
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11327
# Transform the output of nm in a C name address pair
11328
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11330
# This is the shared library runtime path variable.
11331
runpath_var=$runpath_var
11333
# This is the shared library path variable.
11334
shlibpath_var=$shlibpath_var
11336
# Is shlibpath searched before the hard-coded library search path?
11337
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11339
# How to hardcode a shared library path into an executable.
11340
hardcode_action=$hardcode_action
11342
# Whether we should hardcode library paths into libraries.
11343
hardcode_into_libs=$hardcode_into_libs
11345
# Flag to hardcode \$libdir into a binary during linking.
11346
# This must work even if \$libdir does not exist.
11347
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11349
# If ld is used when linking, flag to hardcode \$libdir into
11350
# a binary during linking. This must work even if \$libdir does
11352
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11354
# Whether we need a single -rpath flag with a separated argument.
11355
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11357
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11358
# resulting binary.
11359
hardcode_direct=$hardcode_direct
11361
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11362
# resulting binary.
11363
hardcode_minus_L=$hardcode_minus_L
11365
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11366
# the resulting binary.
11367
hardcode_shlibpath_var=$hardcode_shlibpath_var
11369
# Set to yes if building a shared library automatically hardcodes DIR into the library
11370
# and all subsequent libraries and executables linked against it.
11371
hardcode_automatic=$hardcode_automatic
11373
# Variables whose values should be saved in libtool wrapper scripts and
11374
# restored at relink time.
11375
variables_saved_for_relink="$variables_saved_for_relink"
11377
# Whether libtool must link a program against all its dependency libraries.
11378
link_all_deplibs=$link_all_deplibs
11380
# Compile-time system search path for libraries
11381
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11383
# Run-time system search path for libraries
11384
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11386
# Fix the shell variable \$srcfile for the compiler.
11387
fix_srcfile_path="$fix_srcfile_path"
11389
# Set to yes if exported symbols are required.
11390
always_export_symbols=$always_export_symbols
11392
# The commands to list exported symbols.
11393
export_symbols_cmds=$lt_export_symbols_cmds
11395
# The commands to extract the exported symbol list from a shared archive.
11396
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11398
# Symbols that should not be listed in the preloaded symbols.
11399
exclude_expsyms=$lt_exclude_expsyms
11401
# Symbols that must always be exported.
11402
include_expsyms=$lt_include_expsyms
11404
# ### END LIBTOOL CONFIG
11411
cat <<\EOF >> "$cfgfile"
11413
# AIX sometimes has problems with the GCC collect2 program. For some
11414
# reason, if we set the COLLECT_NAMES environment variable, the problems
11415
# vanish in a puff of smoke.
11416
if test "X${COLLECT_NAMES+set}" != Xset; then
11418
export COLLECT_NAMES
11424
# We use sed instead of cat because bash on DJGPP gets confused if
11425
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11426
# text mode, it properly converts lines to CR/LF. This bash problem
11427
# is reportedly fixed, but why not run on old versions too?
11428
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11430
mv -f "$cfgfile" "$ofile" || \
11431
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11435
# If there is no Makefile yet, we rely on a make rule to execute
11436
# `config.status --recheck' to rerun these tests and create the
11437
# libtool script then.
11438
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11439
if test -f "$ltmain_in"; then
11440
test -f Makefile && make "$ltmain"
11446
ac_cpp='$CPP $CPPFLAGS'
11447
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11448
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11449
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11454
# Check whether --with-tags or --without-tags was given.
11455
if test "${with_tags+set}" = set; then
11456
withval="$with_tags"
11457
tagnames="$withval"
11460
if test -f "$ltmain" && test -n "$tagnames"; then
11461
if test ! -f "${ofile}"; then
11462
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11463
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11466
if test -z "$LTCC"; then
11467
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11468
if test -z "$LTCC"; then
11469
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11470
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11472
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11473
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11477
# Extract list of available tagged configurations in $ofile.
11478
# Note that this assumes the entire list is on one line.
11479
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11481
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11482
for tagname in $tagnames; do
11484
# Check whether tagname contains only valid characters
11485
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11487
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11488
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11489
{ (exit 1); exit 1; }; }
11493
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11495
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11496
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11497
{ (exit 1); exit 1; }; }
11500
# Update the list of available tags.
11501
if test -n "$tagname"; then
11502
echo appending configuration tag \"$tagname\" to $ofile
11506
if test -n "$CXX" && test "X$CXX" != "Xno"; then
11508
ac_cpp='$CXXCPP $CPPFLAGS'
11509
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11516
archive_cmds_need_lc_CXX=no
11517
allow_undefined_flag_CXX=
11518
always_export_symbols_CXX=no
11519
archive_expsym_cmds_CXX=
11520
export_dynamic_flag_spec_CXX=
11521
hardcode_direct_CXX=no
11522
hardcode_libdir_flag_spec_CXX=
11523
hardcode_libdir_flag_spec_ld_CXX=
11524
hardcode_libdir_separator_CXX=
11525
hardcode_minus_L_CXX=no
11526
hardcode_automatic_CXX=no
11528
module_expsym_cmds_CXX=
11529
link_all_deplibs_CXX=unknown
11530
old_archive_cmds_CXX=$old_archive_cmds
11531
no_undefined_flag_CXX=
11532
whole_archive_flag_spec_CXX=
11533
enable_shared_with_static_runtimes_CXX=no
11535
# Dependencies to place before and after the object being linked:
11536
predep_objects_CXX=
11537
postdep_objects_CXX=
11540
compiler_lib_search_path_CXX=
11542
# Source file extension for C++ test sources.
11545
# Object file extension for compiled C++ test sources.
11549
# Code to be used in simple compile tests
11550
lt_simple_compile_test_code="int some_variable = 0;\n"
11552
# Code to be used in simple link tests
11553
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11555
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11557
# If no C compiler was specified, use CC.
11560
# Allow CC to be a program name with arguments.
11564
# Allow CC to be a program name with arguments.
11569
lt_save_with_gnu_ld=$with_gnu_ld
11570
lt_save_path_LD=$lt_cv_path_LD
11571
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11572
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11574
unset lt_cv_prog_gnu_ld
11576
if test -n "${lt_cv_path_LDCXX+set}"; then
11577
lt_cv_path_LD=$lt_cv_path_LDCXX
11579
unset lt_cv_path_LD
11581
test -z "${LDCXX+set}" || LD=$LDCXX
11585
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11587
# We don't want -fno-exception wen compiling C++ code, so set the
11588
# no_builtin_flag separately
11589
if test "$GXX" = yes; then
11590
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11592
lt_prog_compiler_no_builtin_flag_CXX=
11595
if test "$GXX" = yes; then
11596
# Set up default GNU C++ configuration
11599
# Check whether --with-gnu-ld or --without-gnu-ld was given.
11600
if test "${with_gnu_ld+set}" = set; then
11601
withval="$with_gnu_ld"
11602
test "$withval" = no || with_gnu_ld=yes
11607
if test "$GCC" = yes; then
11608
# Check if gcc -print-prog-name=ld gives a path.
11609
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11610
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11613
# gcc leaves a trailing carriage return which upsets mingw
11614
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11616
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11619
# Accept absolute paths.
11621
re_direlt='/[^/][^/]*/\.\./'
11622
# Canonicalize the pathname of ld
11623
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11624
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11625
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11627
test -z "$LD" && LD="$ac_prog"
11630
# If it fails, then pretend we aren't using GCC.
11634
# If it is relative, then search for the first ld in PATH.
11635
with_gnu_ld=unknown
11638
elif test "$with_gnu_ld" = yes; then
11639
echo "$as_me:$LINENO: checking for GNU ld" >&5
11640
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11642
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11643
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11645
if test "${lt_cv_path_LD+set}" = set; then
11646
echo $ECHO_N "(cached) $ECHO_C" >&6
11648
if test -z "$LD"; then
11649
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11650
for ac_dir in $PATH; do
11652
test -z "$ac_dir" && ac_dir=.
11653
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11654
lt_cv_path_LD="$ac_dir/$ac_prog"
11655
# Check to see if the program is GNU ld. I'd rather use --version,
11656
# but apparently some GNU ld's only accept -v.
11657
# Break only if it was the GNU/non-GNU ld that we prefer.
11658
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11659
*GNU* | *'with BFD'*)
11660
test "$with_gnu_ld" != no && break
11663
test "$with_gnu_ld" != yes && break
11670
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11674
LD="$lt_cv_path_LD"
11675
if test -n "$LD"; then
11676
echo "$as_me:$LINENO: result: $LD" >&5
11677
echo "${ECHO_T}$LD" >&6
11679
echo "$as_me:$LINENO: result: no" >&5
11680
echo "${ECHO_T}no" >&6
11682
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11683
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11684
{ (exit 1); exit 1; }; }
11685
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11686
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11687
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11688
echo $ECHO_N "(cached) $ECHO_C" >&6
11690
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
11691
case `$LD -v 2>&1 </dev/null` in
11692
*GNU* | *'with BFD'*)
11693
lt_cv_prog_gnu_ld=yes
11696
lt_cv_prog_gnu_ld=no
11700
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11701
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11702
with_gnu_ld=$lt_cv_prog_gnu_ld
11706
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11707
# archiving commands below assume that GNU ld is being used.
11708
if test "$with_gnu_ld" = yes; then
11709
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11710
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'
11712
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11713
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11715
# If archive_cmds runs LD, not CC, wlarc should be empty
11716
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11717
# investigate it a little bit more. (MM)
11720
# ancient GNU ld didn't support --whole-archive et. al.
11721
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11722
grep 'no-whole-archive' > /dev/null; then
11723
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11725
whole_archive_flag_spec_CXX=
11731
# A generic and very simple default shared library creation
11732
# command for GNU C++ for the case where it uses the native
11733
# linker, instead of GNU ld. If possible, this setting should
11734
# overridden to take advantage of the native linker features on
11735
# the platform it is being used on.
11736
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11739
# Commands to make compiler produce verbose output that lists
11740
# what "hidden" libraries, object files and flags are used when
11741
# linking a shared library.
11742
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11750
# PORTME: fill in a description of your system's C++ link characteristics
11751
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11752
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11756
# FIXME: insert proper C++ library support
11760
if test "$host_cpu" = ia64; then
11761
# On IA64, the linker does run time linking by default, so we don't
11762
# have to do anything special.
11763
aix_use_runtimelinking=no
11764
exp_sym_flag='-Bexport'
11767
aix_use_runtimelinking=no
11769
# Test if we are trying to use run time linking or normal
11770
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11771
# need to do runtime linking.
11772
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11773
for ld_flag in $LDFLAGS; do
11776
aix_use_runtimelinking=yes
11783
exp_sym_flag='-bexport'
11784
no_entry_flag='-bnoentry'
11787
# When large executables or shared objects are built, AIX ld can
11788
# have problems creating the table of contents. If linking a library
11789
# or program results in "error TOC overflow" add -mminimal-toc to
11790
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11791
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11793
archive_cmds_CXX=''
11794
hardcode_direct_CXX=yes
11795
hardcode_libdir_separator_CXX=':'
11796
link_all_deplibs_CXX=yes
11798
if test "$GXX" = yes; then
11799
case $host_os in aix4.012|aix4.012.*)
11800
# We only want to do this on AIX 4.2 and lower, the check
11801
# below for broken collect2 doesn't work under 4.3+
11802
collect2name=`${CC} -print-prog-name=collect2`
11803
if test -f "$collect2name" && \
11804
strings "$collect2name" | grep resolve_lib_name >/dev/null
11806
# We have reworked collect2
11807
hardcode_direct_CXX=yes
11809
# We have old collect2
11810
hardcode_direct_CXX=unsupported
11811
# It fails to find uninstalled libraries when the uninstalled
11812
# path is not listed in the libpath. Setting hardcode_minus_L
11813
# to unsupported forces relinking
11814
hardcode_minus_L_CXX=yes
11815
hardcode_libdir_flag_spec_CXX='-L$libdir'
11816
hardcode_libdir_separator_CXX=
11819
shared_flag='-shared'
11822
if test "$host_cpu" = ia64; then
11823
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11824
# chokes on -Wl,-G. The following line is correct:
11827
if test "$aix_use_runtimelinking" = yes; then
11828
shared_flag='${wl}-G'
11830
shared_flag='${wl}-bM:SRE'
11835
# It seems that -bexpall does not export symbols beginning with
11836
# underscore (_), so it is better to generate a list of symbols to export.
11837
always_export_symbols_CXX=yes
11838
if test "$aix_use_runtimelinking" = yes; then
11839
# Warning - without using the other runtime loading flags (-brtl),
11840
# -berok will link without error, but may produce a broken library.
11841
allow_undefined_flag_CXX='-berok'
11842
# Determine the default libpath from the value encoded in an empty executable.
11843
cat >conftest.$ac_ext <<_ACEOF
11846
cat confdefs.h >>conftest.$ac_ext
11847
cat >>conftest.$ac_ext <<_ACEOF
11848
/* end confdefs.h. */
11858
rm -f conftest.$ac_objext conftest$ac_exeext
11859
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860
(eval $ac_link) 2>conftest.er1
11862
grep -v '^ *+' conftest.er1 >conftest.err
11864
cat conftest.err >&5
11865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866
(exit $ac_status); } &&
11867
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869
(eval $ac_try) 2>&5
11871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872
(exit $ac_status); }; } &&
11873
{ ac_try='test -s conftest$ac_exeext'
11874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875
(eval $ac_try) 2>&5
11877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878
(exit $ac_status); }; }; then
11880
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11882
# Check for a 64-bit object if we didn't find anything.
11883
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; }
11886
echo "$as_me: failed program was:" >&5
11887
sed 's/^/| /' conftest.$ac_ext >&5
11890
rm -f conftest.err conftest.$ac_objext \
11891
conftest$ac_exeext conftest.$ac_ext
11892
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11894
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11896
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"
11898
if test "$host_cpu" = ia64; then
11899
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11900
allow_undefined_flag_CXX="-z nodefs"
11901
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"
11903
# Determine the default libpath from the value encoded in an empty executable.
11904
cat >conftest.$ac_ext <<_ACEOF
11907
cat confdefs.h >>conftest.$ac_ext
11908
cat >>conftest.$ac_ext <<_ACEOF
11909
/* end confdefs.h. */
11919
rm -f conftest.$ac_objext conftest$ac_exeext
11920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921
(eval $ac_link) 2>conftest.er1
11923
grep -v '^ *+' conftest.er1 >conftest.err
11925
cat conftest.err >&5
11926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927
(exit $ac_status); } &&
11928
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930
(eval $ac_try) 2>&5
11932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933
(exit $ac_status); }; } &&
11934
{ ac_try='test -s conftest$ac_exeext'
11935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936
(eval $ac_try) 2>&5
11938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939
(exit $ac_status); }; }; then
11941
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11943
# Check for a 64-bit object if we didn't find anything.
11944
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; }
11947
echo "$as_me: failed program was:" >&5
11948
sed 's/^/| /' conftest.$ac_ext >&5
11951
rm -f conftest.err conftest.$ac_objext \
11952
conftest$ac_exeext conftest.$ac_ext
11953
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11955
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11956
# Warning - without using the other run time loading flags,
11957
# -berok will link without error, but may produce a broken library.
11958
no_undefined_flag_CXX=' ${wl}-bernotok'
11959
allow_undefined_flag_CXX=' ${wl}-berok'
11960
# -bexpall does not export symbols beginning with underscore (_)
11961
always_export_symbols_CXX=yes
11962
# Exported symbols can be pulled into shared objects from archives
11963
whole_archive_flag_spec_CXX=' '
11964
archive_cmds_need_lc_CXX=yes
11965
# This is similar to how AIX traditionally builds it's shared libraries.
11966
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'
11971
case $cc_basename in
11973
# FIXME: insert proper C++ library support
11979
cygwin* | mingw* | pw32*)
11980
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11981
# as there is no search path for DLLs.
11982
hardcode_libdir_flag_spec_CXX='-L$libdir'
11983
allow_undefined_flag_CXX=unsupported
11984
always_export_symbols_CXX=no
11985
enable_shared_with_static_runtimes_CXX=yes
11987
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11988
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'
11989
# If the export-symbols file already is a .def file (1st line
11990
# is EXPORTS), use it as is; otherwise, prepend...
11991
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11992
cp $export_symbols $output_objdir/$soname.def;
11994
echo EXPORTS > $output_objdir/$soname.def;
11995
cat $export_symbols >> $output_objdir/$soname.def;
11997
$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'
12003
darwin* | rhapsody*)
12004
if test "$GXX" = yes; then
12005
archive_cmds_need_lc_CXX=no
12007
rhapsody* | darwin1.[012])
12008
allow_undefined_flag_CXX='-undefined suppress'
12011
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12012
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12014
case ${MACOSX_DEPLOYMENT_TARGET} in
12016
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12019
allow_undefined_flag_CXX='-undefined dynamic_lookup'
12025
lt_int_apple_cc_single_mod=no
12026
output_verbose_link_cmd='echo'
12027
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12028
lt_int_apple_cc_single_mod=yes
12030
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12031
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12033
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12035
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12037
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12038
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12039
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}'
12041
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12043
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}'
12044
hardcode_direct_CXX=no
12045
hardcode_automatic_CXX=yes
12046
hardcode_shlibpath_var_CXX=unsupported
12047
whole_archive_flag_spec_CXX='-all_load $convenience'
12048
link_all_deplibs_CXX=yes
12055
case $cc_basename in
12057
# FIXME: insert proper C++ library support
12061
# Green Hills C++ Compiler
12062
# FIXME: insert proper C++ library support
12066
# FIXME: insert proper C++ library support
12072
# C++ shared libraries reported to be fairly broken before switch to ELF
12076
archive_cmds_need_lc_CXX=no
12078
freebsd* | kfreebsd*-gnu)
12079
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12086
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12087
hardcode_libdir_separator_CXX=:
12088
export_dynamic_flag_spec_CXX='${wl}-E'
12089
hardcode_direct_CXX=yes
12090
hardcode_minus_L_CXX=yes # Not in the search PATH,
12091
# but as the default
12092
# location of the library.
12094
case $cc_basename in
12096
# FIXME: insert proper C++ library support
12100
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'
12101
# Commands to make compiler produce verbose output that lists
12102
# what "hidden" libraries, object files and flags are used when
12103
# linking a shared library.
12105
# There doesn't appear to be a way to prevent this compiler from
12106
# explicitly linking system object files so we need to strip them
12107
# from the output so that they don't get included in the library
12109
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'
12112
if test "$GXX" = yes; then
12113
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'
12115
# FIXME: insert proper C++ library support
12122
if test $with_gnu_ld = no; then
12123
case "$host_cpu" in
12125
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12126
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12127
hardcode_libdir_separator_CXX=:
12130
hardcode_libdir_flag_spec_CXX='-L$libdir'
12133
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12134
hardcode_libdir_separator_CXX=:
12135
export_dynamic_flag_spec_CXX='${wl}-E'
12139
case "$host_cpu" in
12141
hardcode_direct_CXX=no
12142
hardcode_shlibpath_var_CXX=no
12145
hardcode_direct_CXX=no
12146
hardcode_shlibpath_var_CXX=no
12147
hardcode_minus_L_CXX=yes # Not in the search PATH,
12148
# but as the default
12149
# location of the library.
12152
hardcode_direct_CXX=yes
12153
hardcode_minus_L_CXX=yes # Not in the search PATH,
12154
# but as the default
12155
# location of the library.
12159
case $cc_basename in
12161
# FIXME: insert proper C++ library support
12165
case "$host_cpu" in
12167
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12170
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12173
# Commands to make compiler produce verbose output that lists
12174
# what "hidden" libraries, object files and flags are used when
12175
# linking a shared library.
12177
# There doesn't appear to be a way to prevent this compiler from
12178
# explicitly linking system object files so we need to strip them
12179
# from the output so that they don't get included in the library
12181
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'
12184
if test "$GXX" = yes; then
12185
if test $with_gnu_ld = no; then
12186
case "$host_cpu" in
12188
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12191
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'
12196
# FIXME: insert proper C++ library support
12203
case $cc_basename in
12206
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12208
# Archives containing C++ object files must be created using
12209
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12210
# necessary to make sure instantiated templates are included
12212
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12215
if test "$GXX" = yes; then
12216
if test "$with_gnu_ld" = no; then
12217
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12219
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'
12222
link_all_deplibs_CXX=yes
12225
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12226
hardcode_libdir_separator_CXX=:
12229
case $cc_basename in
12231
# Kuck and Associates, Inc. (KAI) C++ Compiler
12233
# KCC will only create a shared library if the output file
12234
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12235
# to its proper name (with version) after linking.
12236
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'
12237
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'
12238
# Commands to make compiler produce verbose output that lists
12239
# what "hidden" libraries, object files and flags are used when
12240
# linking a shared library.
12242
# There doesn't appear to be a way to prevent this compiler from
12243
# explicitly linking system object files so we need to strip them
12244
# from the output so that they don't get included in the library
12246
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'
12248
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12249
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12251
# Archives containing C++ object files must be created using
12252
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12253
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12258
archive_cmds_need_lc_CXX=no
12259
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12260
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'
12261
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12262
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12267
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268
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'
12270
runpath_var=LD_RUN_PATH
12271
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12272
hardcode_libdir_separator_CXX=:
12274
# Commands to make compiler produce verbose output that lists
12275
# what "hidden" libraries, object files and flags are used when
12276
# linking a shared library.
12278
# There doesn't appear to be a way to prevent this compiler from
12279
# explicitly linking system object files so we need to strip them
12280
# from the output so that they don't get included in the library
12282
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'
12287
# FIXME: insert proper C++ library support
12291
# FIXME: insert proper C++ library support
12295
case $cc_basename in
12297
# FIXME: insert proper C++ library support
12301
# FIXME: insert proper C++ library support
12306
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12307
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12308
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12310
hardcode_libdir_flag_spec_CXX='-R$libdir'
12311
hardcode_direct_CXX=yes
12312
hardcode_shlibpath_var_CXX=no
12314
# Workaround some broken pre-1.5 toolchains
12315
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12318
case $cc_basename in
12320
# Kuck and Associates, Inc. (KAI) C++ Compiler
12322
# KCC will only create a shared library if the output file
12323
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12324
# to its proper name (with version) after linking.
12325
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'
12327
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12328
hardcode_libdir_separator_CXX=:
12330
# Archives containing C++ object files must be created using
12331
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12332
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12336
# Rational C++ 2.4.1
12337
# FIXME: insert proper C++ library support
12341
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12342
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12344
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12345
hardcode_libdir_separator_CXX=:
12347
# Commands to make compiler produce verbose output that lists
12348
# what "hidden" libraries, object files and flags are used when
12349
# linking a shared library.
12351
# There doesn't appear to be a way to prevent this compiler from
12352
# explicitly linking system object files so we need to strip them
12353
# from the output so that they don't get included in the library
12355
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'
12358
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12359
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12360
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12362
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12363
hardcode_libdir_separator_CXX=:
12365
# Commands to make compiler produce verbose output that lists
12366
# what "hidden" libraries, object files and flags are used when
12367
# linking a shared library.
12368
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12371
# FIXME: insert proper C++ library support
12378
case $cc_basename in
12380
# Kuck and Associates, Inc. (KAI) C++ Compiler
12382
# KCC will only create a shared library if the output file
12383
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12384
# to its proper name (with version) after linking.
12385
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'
12387
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12388
hardcode_libdir_separator_CXX=:
12390
# Archives containing C++ object files must be created using
12391
# the KAI C++ compiler.
12392
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12395
# Rational C++ 2.4.1
12396
# FIXME: insert proper C++ library support
12400
allow_undefined_flag_CXX=' -expect_unresolved \*'
12401
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12402
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12403
echo "-hidden">> $lib.exp~
12404
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
12407
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12408
hardcode_libdir_separator_CXX=:
12410
# Commands to make compiler produce verbose output that lists
12411
# what "hidden" libraries, object files and flags are used when
12412
# linking a shared library.
12414
# There doesn't appear to be a way to prevent this compiler from
12415
# explicitly linking system object files so we need to strip them
12416
# from the output so that they don't get included in the library
12418
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'
12421
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12422
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12423
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12425
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12426
hardcode_libdir_separator_CXX=:
12428
# Commands to make compiler produce verbose output that lists
12429
# what "hidden" libraries, object files and flags are used when
12430
# linking a shared library.
12431
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12434
# FIXME: insert proper C++ library support
12441
# FIXME: insert proper C++ library support
12445
archive_cmds_need_lc_CXX=no
12446
case $cc_basename in
12448
# FIXME: insert proper C++ library support
12452
# FIXME: insert proper C++ library support
12458
case $cc_basename in
12461
# FIXME: insert proper C++ library support
12466
# FIXME: insert proper C++ library support
12470
# FIXME: insert proper C++ library support
12476
case $cc_basename in
12478
# Sun C++ 4.2, 5.x and Centerline C++
12479
no_undefined_flag_CXX=' -zdefs'
12480
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12481
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12482
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12484
hardcode_libdir_flag_spec_CXX='-R$libdir'
12485
hardcode_shlibpath_var_CXX=no
12487
solaris2.0-5 | solaris2.0-5.*) ;;
12489
# The C++ compiler is used as linker so we must use $wl
12490
# flag to pass the commands to the underlying system
12492
# Supported since Solaris 2.6 (maybe 2.5.1?)
12493
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12496
link_all_deplibs_CXX=yes
12498
# Commands to make compiler produce verbose output that lists
12499
# what "hidden" libraries, object files and flags are used when
12500
# linking a shared library.
12502
# There doesn't appear to be a way to prevent this compiler from
12503
# explicitly linking system object files so we need to strip them
12504
# from the output so that they don't get included in the library
12506
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12508
# Archives containing C++ object files must be created using
12509
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12510
# necessary to make sure instantiated templates are included
12512
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12515
# Green Hills C++ Compiler
12516
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12518
# The C++ compiler must be used to create the archive.
12519
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12522
# GNU C++ compiler with Solaris linker
12523
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12524
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12525
if $CC --version | grep -v '^2\.7' > /dev/null; then
12526
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12527
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12528
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12530
# Commands to make compiler produce verbose output that lists
12531
# what "hidden" libraries, object files and flags are used when
12532
# linking a shared library.
12533
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12535
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12537
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12538
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12539
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12541
# Commands to make compiler produce verbose output that lists
12542
# what "hidden" libraries, object files and flags are used when
12543
# linking a shared library.
12544
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12547
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12552
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12553
archive_cmds_need_lc_CXX=no
12556
case $cc_basename in
12558
# NonStop-UX NCC 3.20
12559
# FIXME: insert proper C++ library support
12563
# FIXME: insert proper C++ library support
12569
# FIXME: insert proper C++ library support
12573
# FIXME: insert proper C++ library support
12577
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12578
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12579
test "$ld_shlibs_CXX" = no && can_build_shared=no
12585
cat > conftest.$ac_ext <<EOF
12589
Foo (void) { a = 0; }
12595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596
(eval $ac_compile) 2>&5
12598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599
(exit $ac_status); }; then
12600
# Parse the compiler output and extract the necessary
12601
# objects, libraries and library flags.
12603
# Sentinel used to keep track of whether or not we are before
12604
# the conftest object file.
12605
pre_test_object_deps_done=no
12607
# The `*' in the case matches for architectures that use `case' in
12608
# $output_verbose_cmd can trigger glob expansion during the loop
12609
# eval without this substitution.
12610
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12612
for p in `eval $output_verbose_link_cmd`; do
12616
# Some compilers place space between "-{L,R}" and the path.
12617
# Remove the space.
12618
if test $p = "-L" \
12619
|| test $p = "-R"; then
12626
if test "$pre_test_object_deps_done" = no; then
12629
# Internal compiler library paths should come after those
12630
# provided the user. The postdeps already come after the
12631
# user supplied libs so there is no need to process them.
12632
if test -z "$compiler_lib_search_path_CXX"; then
12633
compiler_lib_search_path_CXX="${prev}${p}"
12635
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12638
# The "-l" case would never come before the object being
12639
# linked, so don't bother handling this case.
12642
if test -z "$postdeps_CXX"; then
12643
postdeps_CXX="${prev}${p}"
12645
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12651
# This assumes that the test object file only shows up
12652
# once in the compiler output.
12653
if test "$p" = "conftest.$objext"; then
12654
pre_test_object_deps_done=yes
12658
if test "$pre_test_object_deps_done" = no; then
12659
if test -z "$predep_objects_CXX"; then
12660
predep_objects_CXX="$p"
12662
predep_objects_CXX="$predep_objects_CXX $p"
12665
if test -z "$postdep_objects_CXX"; then
12666
postdep_objects_CXX="$p"
12668
postdep_objects_CXX="$postdep_objects_CXX $p"
12673
*) ;; # Ignore the rest.
12681
echo "libtool.m4: error: problem compiling CXX test program"
12684
$rm -f confest.$objext
12686
case " $postdeps_CXX " in
12687
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12690
lt_prog_compiler_wl_CXX=
12691
lt_prog_compiler_pic_CXX=
12692
lt_prog_compiler_static_CXX=
12694
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12695
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12697
# C++ specific cases for pic, static, wl, etc.
12698
if test "$GXX" = yes; then
12699
lt_prog_compiler_wl_CXX='-Wl,'
12700
lt_prog_compiler_static_CXX='-static'
12704
# All AIX code is PIC.
12705
if test "$host_cpu" = ia64; then
12706
# AIX 5 now supports IA64 processor
12707
lt_prog_compiler_static_CXX='-Bstatic'
12711
# FIXME: we need at least 68020 code to build shared libraries, but
12712
# adding the `-m68020' flag to GCC prevents building anything better,
12714
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12716
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12717
# PIC is the default for these OSes.
12719
mingw* | os2* | pw32*)
12720
# This hack is so that the source file can tell whether it is being
12721
# built for inclusion in a dll (and should export symbols for example).
12722
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12724
darwin* | rhapsody*)
12725
# PIC is the default on this platform
12726
# Common symbols not allowed in MH_DYLIB files
12727
lt_prog_compiler_pic_CXX='-fno-common'
12730
# DJGPP does not support shared libraries at all
12731
lt_prog_compiler_pic_CXX=
12734
if test -d /usr/nec; then
12735
lt_prog_compiler_pic_CXX=-Kconform_pic
12739
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12740
# not for PA HP-UX.
12741
case "$host_cpu" in
12745
lt_prog_compiler_pic_CXX='-fPIC'
12750
lt_prog_compiler_pic_CXX='-fPIC'
12756
# All AIX code is PIC.
12757
if test "$host_cpu" = ia64; then
12758
# AIX 5 now supports IA64 processor
12759
lt_prog_compiler_static_CXX='-Bstatic'
12761
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12765
case $cc_basename in
12767
# Green Hills C++ Compiler
12768
# _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"
12773
case $cc_basename in
12775
lt_prog_compiler_pic_CXX='-KPIC'
12778
# Green Hills C++ Compiler
12779
lt_prog_compiler_pic_CXX='-pic'
12785
freebsd* | kfreebsd*-gnu)
12786
# FreeBSD uses GNU C++
12788
hpux9* | hpux10* | hpux11*)
12789
case $cc_basename in
12791
lt_prog_compiler_wl_CXX='-Wl,'
12792
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12793
if test "$host_cpu" != ia64; then
12794
lt_prog_compiler_pic_CXX='+Z'
12798
lt_prog_compiler_wl_CXX='-Wl,'
12799
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12800
case "$host_cpu" in
12805
lt_prog_compiler_pic_CXX='+Z'
12813
irix5* | irix6* | nonstopux*)
12814
case $cc_basename in
12816
lt_prog_compiler_wl_CXX='-Wl,'
12817
lt_prog_compiler_static_CXX='-non_shared'
12818
# CC pic flag -KPIC is the default.
12825
case $cc_basename in
12828
lt_prog_compiler_wl_CXX='--backend -Wl,'
12829
lt_prog_compiler_pic_CXX='-fPIC'
12833
lt_prog_compiler_wl_CXX='-Wl,'
12834
lt_prog_compiler_pic_CXX='-KPIC'
12835
lt_prog_compiler_static_CXX='-static'
12839
# Make sure the PIC flag is empty. It appears that all Alpha
12840
# Linux and Compaq Tru64 Unix objects are PIC.
12841
lt_prog_compiler_pic_CXX=
12842
lt_prog_compiler_static_CXX='-non_shared'
12853
case $cc_basename in
12855
lt_prog_compiler_pic_CXX='-W c,exportall'
12861
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12863
osf3* | osf4* | osf5*)
12864
case $cc_basename in
12866
lt_prog_compiler_wl_CXX='--backend -Wl,'
12869
# Rational C++ 2.4.1
12870
lt_prog_compiler_pic_CXX='-pic'
12873
# Digital/Compaq C++
12874
lt_prog_compiler_wl_CXX='-Wl,'
12875
# Make sure the PIC flag is empty. It appears that all Alpha
12876
# Linux and Compaq Tru64 Unix objects are PIC.
12877
lt_prog_compiler_pic_CXX=
12878
lt_prog_compiler_static_CXX='-non_shared'
12887
case $cc_basename in
12889
lt_prog_compiler_pic_CXX='-fPIC'
12896
case $cc_basename in
12898
# Sun C++ 4.2, 5.x and Centerline C++
12899
lt_prog_compiler_pic_CXX='-KPIC'
12900
lt_prog_compiler_static_CXX='-Bstatic'
12901
lt_prog_compiler_wl_CXX='-Qoption ld '
12904
# Green Hills C++ Compiler
12905
lt_prog_compiler_pic_CXX='-PIC'
12912
case $cc_basename in
12915
lt_prog_compiler_pic_CXX='-pic'
12916
lt_prog_compiler_static_CXX='-Bstatic'
12920
lt_prog_compiler_pic_CXX='-pic'
12927
case $cc_basename in
12929
# NonStop-UX NCC 3.20
12930
lt_prog_compiler_pic_CXX='-KPIC'
12941
lt_prog_compiler_can_build_shared_CXX=no
12946
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12947
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12950
# Check to make sure the PIC flag actually works.
12952
if test -n "$lt_prog_compiler_pic_CXX"; then
12954
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12955
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12956
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12957
echo $ECHO_N "(cached) $ECHO_C" >&6
12959
lt_prog_compiler_pic_works_CXX=no
12960
ac_outfile=conftest.$ac_objext
12961
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12962
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12963
# Insert the option either (1) after the last *FLAGS variable, or
12964
# (2) before a word containing "conftest.", or (3) at the end.
12965
# Note that $ac_compile itself does not contain backslashes and begins
12966
# with a dollar sign (not a hyphen), so the echo should work correctly.
12967
# The option is referenced via a variable to avoid confusing sed.
12968
lt_compile=`echo "$ac_compile" | $SED \
12969
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12970
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12971
-e 's:$: $lt_compiler_flag:'`
12972
(eval echo "\"\$as_me:12972: $lt_compile\"" >&5)
12973
(eval "$lt_compile" 2>conftest.err)
12975
cat conftest.err >&5
12976
echo "$as_me:12976: \$? = $ac_status" >&5
12977
if (exit $ac_status) && test -s "$ac_outfile"; then
12978
# The compiler can only warn and ignore the option if not recognized
12979
# So say no if there are warnings
12980
if test ! -s conftest.err; then
12981
lt_prog_compiler_pic_works_CXX=yes
12987
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12988
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12990
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12991
case $lt_prog_compiler_pic_CXX in
12993
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12996
lt_prog_compiler_pic_CXX=
12997
lt_prog_compiler_can_build_shared_CXX=no
13002
# For platforms which do not support PIC, -DPIC is meaningless:
13004
lt_prog_compiler_pic_CXX=
13007
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13011
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13012
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13013
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13014
echo $ECHO_N "(cached) $ECHO_C" >&6
13016
lt_cv_prog_compiler_c_o_CXX=no
13017
$rm -r conftest 2>/dev/null
13021
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13023
lt_compiler_flag="-o out/conftest2.$ac_objext"
13024
# Insert the option either (1) after the last *FLAGS variable, or
13025
# (2) before a word containing "conftest.", or (3) at the end.
13026
# Note that $ac_compile itself does not contain backslashes and begins
13027
# with a dollar sign (not a hyphen), so the echo should work correctly.
13028
lt_compile=`echo "$ac_compile" | $SED \
13029
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13030
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13031
-e 's:$: $lt_compiler_flag:'`
13032
(eval echo "\"\$as_me:13032: $lt_compile\"" >&5)
13033
(eval "$lt_compile" 2>out/conftest.err)
13035
cat out/conftest.err >&5
13036
echo "$as_me:13036: \$? = $ac_status" >&5
13037
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13039
# The compiler can only warn and ignore the option if not recognized
13040
# So say no if there are warnings
13041
if test ! -s out/conftest.err; then
13042
lt_cv_prog_compiler_c_o_CXX=yes
13047
# SGI C++ compiler will create directory out/ii_files/ for
13048
# template instantiation
13049
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13050
$rm out/* && rmdir out
13056
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13057
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13060
hard_links="nottested"
13061
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13062
# do not overwrite the value of need_locks provided by the user
13063
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13064
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13067
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13069
ln conftest.a conftest.b 2>&5 || hard_links=no
13070
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13071
echo "$as_me:$LINENO: result: $hard_links" >&5
13072
echo "${ECHO_T}$hard_links" >&6
13073
if test "$hard_links" = no; then
13074
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13075
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13082
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13083
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13085
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13088
# If we're using GNU nm, then we don't want the "-C" option.
13089
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13090
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13091
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'
13093
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'
13097
export_symbols_cmds_CXX="$ltdll_cmds"
13100
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13103
link_all_deplibs_CXX=no
13106
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13110
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13111
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13112
test "$ld_shlibs_CXX" = no && can_build_shared=no
13114
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13115
if test "$GCC" = yes; then
13116
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13120
# Do we need to explicitly link libc?
13122
case "x$archive_cmds_need_lc_CXX" in
13124
# Assume -lc should be added
13125
archive_cmds_need_lc_CXX=yes
13127
if test "$enable_shared" = yes && test "$GCC" = yes; then
13128
case $archive_cmds_CXX in
13130
# FIXME: we may have to deal with multi-command sequences.
13133
# Test whether the compiler implicitly links with -lc since on some
13134
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13135
# to ld, don't add -lc before -lgcc.
13136
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13137
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13139
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142
(eval $ac_compile) 2>&5
13144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145
(exit $ac_status); } 2>conftest.err; then
13148
libobjs=conftest.$ac_objext
13150
wl=$lt_prog_compiler_wl_CXX
13156
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13157
allow_undefined_flag_CXX=
13158
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13159
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162
(exit $ac_status); }
13164
archive_cmds_need_lc_CXX=no
13166
archive_cmds_need_lc_CXX=yes
13168
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13170
cat conftest.err 1>&5
13173
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13174
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13181
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13182
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13183
library_names_spec=
13184
libname_spec='lib$name'
13188
postuninstall_cmds=
13192
shlibpath_overrides_runpath=unknown
13194
dynamic_linker="$host_os ld.so"
13195
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13196
if test "$GCC" = yes; then
13197
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13198
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13199
# if the path contains ";" then we assume it to be the separator
13200
# otherwise default to the standard path separator (i.e. ":") - it is
13201
# assumed that no part of a normal pathname contains ";" but that should
13202
# okay in the real world where ";" in dirpaths is itself problematic.
13203
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13205
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13208
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13210
need_lib_prefix=unknown
13211
hardcode_into_libs=no
13213
# when you set need_version to no, make sure it does not cause -set_version
13214
# flags to be left without arguments
13215
need_version=unknown
13220
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13221
shlibpath_var=LIBPATH
13223
# AIX 3 has no versioning support, so we append a major version to the name.
13224
soname_spec='${libname}${release}${shared_ext}$major'
13231
hardcode_into_libs=yes
13232
if test "$host_cpu" = ia64; then
13233
# AIX 5 supports IA64
13234
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13235
shlibpath_var=LD_LIBRARY_PATH
13237
# With GCC up to 2.95.x, collect2 would create an import file
13238
# for dependence libraries. The import file would start with
13239
# the line `#! .'. This would cause the generated library to
13240
# depend on `.', always an invalid library. This was fixed in
13241
# development snapshots of GCC prior to 3.0.
13243
aix4 | aix4.[01] | aix4.[01].*)
13244
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13246
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13249
can_build_shared=no
13253
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13254
# soname into executable. Probably we can add versioning support to
13255
# collect2, so additional links can be useful in future.
13256
if test "$aix_use_runtimelinking" = yes; then
13257
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13258
# instead of lib<name>.a to let people know that these are not
13259
# typical AIX shared libraries.
13260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13262
# We preserve .a as extension for shared libraries through AIX4.2
13263
# and later when we are not doing run time linking.
13264
library_names_spec='${libname}${release}.a $libname.a'
13265
soname_spec='${libname}${release}${shared_ext}$major'
13267
shlibpath_var=LIBPATH
13272
library_names_spec='$libname.ixlibrary $libname.a'
13273
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13274
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'
13278
library_names_spec='${libname}${shared_ext}'
13279
dynamic_linker="$host_os ld.so"
13280
shlibpath_var=LIBRARY_PATH
13286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287
soname_spec='${libname}${release}${shared_ext}$major'
13288
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13289
shlibpath_var=LD_LIBRARY_PATH
13290
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13291
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13292
# the default ld.so.conf also contains /usr/contrib/lib and
13293
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13294
# libtool to hard-code these into programs
13297
cygwin* | mingw* | pw32*)
13298
version_type=windows
13303
case $GCC,$host_os in
13304
yes,cygwin* | yes,mingw* | yes,pw32*)
13305
library_names_spec='$libname.dll.a'
13306
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13307
postinstall_cmds='base_file=`basename \${file}`~
13308
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13309
dldir=$destdir/`dirname \$dlpath`~
13310
test -d \$dldir || mkdir -p \$dldir~
13311
$install_prog $dir/$dlname \$dldir/$dlname'
13312
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13313
dlpath=$dir/\$dldll~
13315
shlibpath_overrides_runpath=yes
13319
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13320
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13321
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13324
# MinGW DLLs use traditional 'lib' prefix
13325
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13326
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13327
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13328
# It is most probably a Windows format PATH printed by
13329
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13330
# path with ; separators, and with drive letters. We can handle the
13331
# drive letters (cygwin fileutils understands them), so leave them,
13332
# especially as we might pass files found there to a mingw objdump,
13333
# which wouldn't understand a cygwinified path. Ahh.
13334
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13336
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13340
# pw32 DLLs use 'pw' prefix rather than 'lib'
13341
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13347
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13350
dynamic_linker='Win32 ld.exe'
13351
# FIXME: first we should search . and the directory the executable is in
13355
darwin* | rhapsody*)
13356
dynamic_linker="$host_os dyld"
13357
version_type=darwin
13360
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13361
soname_spec='${libname}${release}${major}$shared_ext'
13362
shlibpath_overrides_runpath=yes
13363
shlibpath_var=DYLD_LIBRARY_PATH
13364
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13365
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13366
if test "$GCC" = yes; then
13367
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"`
13369
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13371
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13379
soname_spec='${libname}${release}${shared_ext}$major'
13380
shlibpath_var=LD_LIBRARY_PATH
13391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13392
soname_spec='${libname}${release}${shared_ext}$major'
13393
shlibpath_var=LD_LIBRARY_PATH
13394
shlibpath_overrides_runpath=no
13395
hardcode_into_libs=yes
13396
dynamic_linker='GNU ld.so'
13400
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13401
version_type=freebsd-$objformat
13402
case $version_type in
13404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13409
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13413
shlibpath_var=LD_LIBRARY_PATH
13416
shlibpath_overrides_runpath=yes
13418
freebsd3.01* | freebsdelf3.01*)
13419
shlibpath_overrides_runpath=yes
13420
hardcode_into_libs=yes
13423
shlibpath_overrides_runpath=no
13424
hardcode_into_libs=yes
13433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13434
soname_spec='${libname}${release}${shared_ext}$major'
13435
shlibpath_var=LD_LIBRARY_PATH
13436
hardcode_into_libs=yes
13439
hpux9* | hpux10* | hpux11*)
13440
# Give a soname corresponding to the major version so that dld.sl refuses to
13441
# link against other versions.
13445
case "$host_cpu" in
13448
hardcode_into_libs=yes
13449
dynamic_linker="$host_os dld.so"
13450
shlibpath_var=LD_LIBRARY_PATH
13451
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13452
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453
soname_spec='${libname}${release}${shared_ext}$major'
13454
if test "X$HPUX_IA64_MODE" = X32; then
13455
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13457
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13459
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13463
hardcode_into_libs=yes
13464
dynamic_linker="$host_os dld.sl"
13465
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13466
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13468
soname_spec='${libname}${release}${shared_ext}$major'
13469
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13470
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13474
dynamic_linker="$host_os dld.sl"
13475
shlibpath_var=SHLIB_PATH
13476
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13478
soname_spec='${libname}${release}${shared_ext}$major'
13481
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13482
postinstall_cmds='chmod 555 $lib'
13485
irix5* | irix6* | nonstopux*)
13487
nonstopux*) version_type=nonstopux ;;
13489
if test "$lt_cv_prog_gnu_ld" = yes; then
13497
soname_spec='${libname}${release}${shared_ext}$major'
13498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13500
irix5* | nonstopux*)
13501
libsuff= shlibsuff=
13504
case $LD in # libtool.m4 will add one of these switches to LD
13505
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13506
libsuff= shlibsuff= libmagic=32-bit;;
13507
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13508
libsuff=32 shlibsuff=N32 libmagic=N32;;
13509
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13510
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13511
*) libsuff= shlibsuff= libmagic=never-match;;
13515
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13516
shlibpath_overrides_runpath=no
13517
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13518
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13519
hardcode_into_libs=yes
13522
# No shared lib support for Linux oldld, aout, or coff.
13523
linux*oldld* | linux*aout* | linux*coff*)
13527
# This must be Linux ELF.
13532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533
soname_spec='${libname}${release}${shared_ext}$major'
13534
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13535
shlibpath_var=LD_LIBRARY_PATH
13536
shlibpath_overrides_runpath=no
13537
# This implies no fast_install, which is unacceptable.
13538
# Some rework will be needed to allow for fast_install
13539
# before this can be enabled.
13540
hardcode_into_libs=yes
13542
# Append ld.so.conf contents to the search path
13543
if test -f /etc/ld.so.conf; then
13544
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13545
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13548
# We used to test for /lib/ld.so.1 and disable shared libraries on
13549
# powerpc, because MkLinux only supported shared libraries with the
13550
# GNU dynamic linker. Since this was broken with cross compilers,
13551
# most powerpc-linux boxes support dynamic linking these days and
13552
# people can always --disable-shared, the test was removed, and we
13553
# assume the GNU/Linux dynamic linker is in use.
13554
dynamic_linker='GNU/Linux ld.so'
13561
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13562
soname_spec='${libname}${release}${shared_ext}$major'
13563
shlibpath_var=LD_LIBRARY_PATH
13564
shlibpath_overrides_runpath=no
13565
hardcode_into_libs=yes
13566
dynamic_linker='NetBSD ld.elf_so'
13573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13574
soname_spec='${libname}${release}${shared_ext}$major'
13575
shlibpath_var=LD_LIBRARY_PATH
13576
shlibpath_overrides_runpath=no
13577
hardcode_into_libs=yes
13578
dynamic_linker='GNU ld.so'
13585
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13587
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13588
dynamic_linker='NetBSD (a.out) ld.so'
13590
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13591
soname_spec='${libname}${release}${shared_ext}$major'
13592
dynamic_linker='NetBSD ld.elf_so'
13594
shlibpath_var=LD_LIBRARY_PATH
13595
shlibpath_overrides_runpath=yes
13596
hardcode_into_libs=yes
13601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602
shlibpath_var=LD_LIBRARY_PATH
13603
shlibpath_overrides_runpath=yes
13610
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611
soname_spec='${libname}${release}${shared_ext}$major'
13612
shlibpath_var=LD_LIBRARY_PATH
13613
shlibpath_overrides_runpath=yes
13620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13621
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13622
shlibpath_var=LD_LIBRARY_PATH
13623
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13625
openbsd2.[89] | openbsd2.[89].*)
13626
shlibpath_overrides_runpath=no
13629
shlibpath_overrides_runpath=yes
13633
shlibpath_overrides_runpath=yes
13638
libname_spec='$name'
13641
library_names_spec='$libname${shared_ext} $libname.a'
13642
dynamic_linker='OS/2 ld.exe'
13643
shlibpath_var=LIBPATH
13646
osf3* | osf4* | osf5*)
13650
soname_spec='${libname}${release}${shared_ext}$major'
13651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652
shlibpath_var=LD_LIBRARY_PATH
13653
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13654
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13659
soname_spec='${libname}${release}${shared_ext}$major'
13660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661
shlibpath_var=LD_LIBRARY_PATH
13668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669
soname_spec='${libname}${release}${shared_ext}$major'
13670
shlibpath_var=LD_LIBRARY_PATH
13671
shlibpath_overrides_runpath=yes
13672
hardcode_into_libs=yes
13673
# ldd complains unless libraries are executable
13674
postinstall_cmds='chmod +x $lib'
13679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13680
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13681
shlibpath_var=LD_LIBRARY_PATH
13682
shlibpath_overrides_runpath=yes
13683
if test "$with_gnu_ld" = yes; then
13689
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692
soname_spec='${libname}${release}${shared_ext}$major'
13693
shlibpath_var=LD_LIBRARY_PATH
13694
case $host_vendor in
13696
shlibpath_overrides_runpath=no
13698
export_dynamic_flag_spec='${wl}-Blargedynsym'
13699
runpath_var=LD_RUN_PATH
13707
shlibpath_overrides_runpath=no
13708
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13714
if test -d /usr/nec ;then
13716
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13717
soname_spec='$libname${shared_ext}.$major'
13718
shlibpath_var=LD_LIBRARY_PATH
13724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725
soname_spec='${libname}${release}${shared_ext}$major'
13726
shlibpath_var=LD_LIBRARY_PATH
13733
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13734
echo "${ECHO_T}$dynamic_linker" >&6
13735
test "$dynamic_linker" = no && can_build_shared=no
13737
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13738
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13739
hardcode_action_CXX=
13740
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13741
test -n "$runpath_var CXX" || \
13742
test "X$hardcode_automatic_CXX"="Xyes" ; then
13744
# We can hardcode non-existant directories.
13745
if test "$hardcode_direct_CXX" != no &&
13746
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13747
# have to relink, otherwise we might link with an installed library
13748
# when we should be linking with a yet-to-be-installed one
13749
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13750
test "$hardcode_minus_L_CXX" != no; then
13751
# Linking always hardcodes the temporary library directory.
13752
hardcode_action_CXX=relink
13754
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13755
hardcode_action_CXX=immediate
13758
# We cannot hardcode anything, or else we can only hardcode existing
13760
hardcode_action_CXX=unsupported
13762
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13763
echo "${ECHO_T}$hardcode_action_CXX" >&6
13765
if test "$hardcode_action_CXX" = relink; then
13766
# Fast installation is not supported
13767
enable_fast_install=no
13768
elif test "$shlibpath_overrides_runpath" = yes ||
13769
test "$enable_shared" = no; then
13770
# Fast installation is not necessary
13771
enable_fast_install=needless
13776
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13777
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13778
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13779
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13780
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13781
echo "$as_me:$LINENO: result: yes" >&5
13782
echo "${ECHO_T}yes" >&6
13784
# FIXME - insert some real tests, host_os isn't really good enough
13787
if test -n "$STRIP" ; then
13788
striplib="$STRIP -x"
13789
echo "$as_me:$LINENO: result: yes" >&5
13790
echo "${ECHO_T}yes" >&6
13792
echo "$as_me:$LINENO: result: no" >&5
13793
echo "${ECHO_T}no" >&6
13797
echo "$as_me:$LINENO: result: no" >&5
13798
echo "${ECHO_T}no" >&6
13803
if test "x$enable_dlopen" != xyes; then
13804
enable_dlopen=unknown
13805
enable_dlopen_self=unknown
13806
enable_dlopen_self_static=unknown
13813
lt_cv_dlopen="load_add_on"
13815
lt_cv_dlopen_self=yes
13819
lt_cv_dlopen="LoadLibrary"
13824
lt_cv_dlopen="dlopen"
13829
# if libdl is installed we need to link against it
13830
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13831
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13832
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13833
echo $ECHO_N "(cached) $ECHO_C" >&6
13835
ac_check_lib_save_LIBS=$LIBS
13837
cat >conftest.$ac_ext <<_ACEOF
13840
cat confdefs.h >>conftest.$ac_ext
13841
cat >>conftest.$ac_ext <<_ACEOF
13842
/* end confdefs.h. */
13844
/* Override any gcc2 internal prototype to avoid an error. */
13848
/* We use char because int might match the return type of a gcc2
13849
builtin and then its argument prototype would still apply. */
13859
rm -f conftest.$ac_objext conftest$ac_exeext
13860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13861
(eval $ac_link) 2>conftest.er1
13863
grep -v '^ *+' conftest.er1 >conftest.err
13865
cat conftest.err >&5
13866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867
(exit $ac_status); } &&
13868
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13869
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870
(eval $ac_try) 2>&5
13872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873
(exit $ac_status); }; } &&
13874
{ ac_try='test -s conftest$ac_exeext'
13875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876
(eval $ac_try) 2>&5
13878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879
(exit $ac_status); }; }; then
13880
ac_cv_lib_dl_dlopen=yes
13882
echo "$as_me: failed program was:" >&5
13883
sed 's/^/| /' conftest.$ac_ext >&5
13885
ac_cv_lib_dl_dlopen=no
13887
rm -f conftest.err conftest.$ac_objext \
13888
conftest$ac_exeext conftest.$ac_ext
13889
LIBS=$ac_check_lib_save_LIBS
13891
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13892
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13893
if test $ac_cv_lib_dl_dlopen = yes; then
13894
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13897
lt_cv_dlopen="dyld"
13899
lt_cv_dlopen_self=yes
13906
echo "$as_me:$LINENO: checking for shl_load" >&5
13907
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13908
if test "${ac_cv_func_shl_load+set}" = set; then
13909
echo $ECHO_N "(cached) $ECHO_C" >&6
13911
cat >conftest.$ac_ext <<_ACEOF
13914
cat confdefs.h >>conftest.$ac_ext
13915
cat >>conftest.$ac_ext <<_ACEOF
13916
/* end confdefs.h. */
13917
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13918
For example, HP-UX 11i <limits.h> declares gettimeofday. */
13919
#define shl_load innocuous_shl_load
13921
/* System header to define __stub macros and hopefully few prototypes,
13922
which can conflict with char shl_load (); below.
13923
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13924
<limits.h> exists even on freestanding compilers. */
13927
# include <limits.h>
13929
# include <assert.h>
13934
/* Override any gcc2 internal prototype to avoid an error. */
13939
/* We use char because int might match the return type of a gcc2
13940
builtin and then its argument prototype would still apply. */
13942
/* The GNU C library defines this for functions which it implements
13943
to always fail with ENOSYS. Some functions are actually named
13944
something starting with __ and the normal name is an alias. */
13945
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13948
char (*f) () = shl_load;
13957
return f != shl_load;
13962
rm -f conftest.$ac_objext conftest$ac_exeext
13963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13964
(eval $ac_link) 2>conftest.er1
13966
grep -v '^ *+' conftest.er1 >conftest.err
13968
cat conftest.err >&5
13969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970
(exit $ac_status); } &&
13971
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973
(eval $ac_try) 2>&5
13975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976
(exit $ac_status); }; } &&
13977
{ ac_try='test -s conftest$ac_exeext'
13978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979
(eval $ac_try) 2>&5
13981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982
(exit $ac_status); }; }; then
13983
ac_cv_func_shl_load=yes
13985
echo "$as_me: failed program was:" >&5
13986
sed 's/^/| /' conftest.$ac_ext >&5
13988
ac_cv_func_shl_load=no
13990
rm -f conftest.err conftest.$ac_objext \
13991
conftest$ac_exeext conftest.$ac_ext
13993
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13994
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13995
if test $ac_cv_func_shl_load = yes; then
13996
lt_cv_dlopen="shl_load"
13998
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13999
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14000
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14001
echo $ECHO_N "(cached) $ECHO_C" >&6
14003
ac_check_lib_save_LIBS=$LIBS
14005
cat >conftest.$ac_ext <<_ACEOF
14008
cat confdefs.h >>conftest.$ac_ext
14009
cat >>conftest.$ac_ext <<_ACEOF
14010
/* end confdefs.h. */
14012
/* Override any gcc2 internal prototype to avoid an error. */
14016
/* We use char because int might match the return type of a gcc2
14017
builtin and then its argument prototype would still apply. */
14027
rm -f conftest.$ac_objext conftest$ac_exeext
14028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14029
(eval $ac_link) 2>conftest.er1
14031
grep -v '^ *+' conftest.er1 >conftest.err
14033
cat conftest.err >&5
14034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035
(exit $ac_status); } &&
14036
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038
(eval $ac_try) 2>&5
14040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041
(exit $ac_status); }; } &&
14042
{ ac_try='test -s conftest$ac_exeext'
14043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044
(eval $ac_try) 2>&5
14046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047
(exit $ac_status); }; }; then
14048
ac_cv_lib_dld_shl_load=yes
14050
echo "$as_me: failed program was:" >&5
14051
sed 's/^/| /' conftest.$ac_ext >&5
14053
ac_cv_lib_dld_shl_load=no
14055
rm -f conftest.err conftest.$ac_objext \
14056
conftest$ac_exeext conftest.$ac_ext
14057
LIBS=$ac_check_lib_save_LIBS
14059
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14060
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14061
if test $ac_cv_lib_dld_shl_load = yes; then
14062
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14064
echo "$as_me:$LINENO: checking for dlopen" >&5
14065
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14066
if test "${ac_cv_func_dlopen+set}" = set; then
14067
echo $ECHO_N "(cached) $ECHO_C" >&6
14069
cat >conftest.$ac_ext <<_ACEOF
14072
cat confdefs.h >>conftest.$ac_ext
14073
cat >>conftest.$ac_ext <<_ACEOF
14074
/* end confdefs.h. */
14075
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14076
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14077
#define dlopen innocuous_dlopen
14079
/* System header to define __stub macros and hopefully few prototypes,
14080
which can conflict with char dlopen (); below.
14081
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14082
<limits.h> exists even on freestanding compilers. */
14085
# include <limits.h>
14087
# include <assert.h>
14092
/* Override any gcc2 internal prototype to avoid an error. */
14097
/* We use char because int might match the return type of a gcc2
14098
builtin and then its argument prototype would still apply. */
14100
/* The GNU C library defines this for functions which it implements
14101
to always fail with ENOSYS. Some functions are actually named
14102
something starting with __ and the normal name is an alias. */
14103
#if defined (__stub_dlopen) || defined (__stub___dlopen)
14106
char (*f) () = dlopen;
14115
return f != dlopen;
14120
rm -f conftest.$ac_objext conftest$ac_exeext
14121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14122
(eval $ac_link) 2>conftest.er1
14124
grep -v '^ *+' conftest.er1 >conftest.err
14126
cat conftest.err >&5
14127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128
(exit $ac_status); } &&
14129
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131
(eval $ac_try) 2>&5
14133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134
(exit $ac_status); }; } &&
14135
{ ac_try='test -s conftest$ac_exeext'
14136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137
(eval $ac_try) 2>&5
14139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140
(exit $ac_status); }; }; then
14141
ac_cv_func_dlopen=yes
14143
echo "$as_me: failed program was:" >&5
14144
sed 's/^/| /' conftest.$ac_ext >&5
14146
ac_cv_func_dlopen=no
14148
rm -f conftest.err conftest.$ac_objext \
14149
conftest$ac_exeext conftest.$ac_ext
14151
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14152
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14153
if test $ac_cv_func_dlopen = yes; then
14154
lt_cv_dlopen="dlopen"
14156
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14157
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14158
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14159
echo $ECHO_N "(cached) $ECHO_C" >&6
14161
ac_check_lib_save_LIBS=$LIBS
14163
cat >conftest.$ac_ext <<_ACEOF
14166
cat confdefs.h >>conftest.$ac_ext
14167
cat >>conftest.$ac_ext <<_ACEOF
14168
/* end confdefs.h. */
14170
/* Override any gcc2 internal prototype to avoid an error. */
14174
/* We use char because int might match the return type of a gcc2
14175
builtin and then its argument prototype would still apply. */
14185
rm -f conftest.$ac_objext conftest$ac_exeext
14186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14187
(eval $ac_link) 2>conftest.er1
14189
grep -v '^ *+' conftest.er1 >conftest.err
14191
cat conftest.err >&5
14192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193
(exit $ac_status); } &&
14194
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196
(eval $ac_try) 2>&5
14198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199
(exit $ac_status); }; } &&
14200
{ ac_try='test -s conftest$ac_exeext'
14201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202
(eval $ac_try) 2>&5
14204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205
(exit $ac_status); }; }; then
14206
ac_cv_lib_dl_dlopen=yes
14208
echo "$as_me: failed program was:" >&5
14209
sed 's/^/| /' conftest.$ac_ext >&5
14211
ac_cv_lib_dl_dlopen=no
14213
rm -f conftest.err conftest.$ac_objext \
14214
conftest$ac_exeext conftest.$ac_ext
14215
LIBS=$ac_check_lib_save_LIBS
14217
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14218
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14219
if test $ac_cv_lib_dl_dlopen = yes; then
14220
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14222
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14223
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14224
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14225
echo $ECHO_N "(cached) $ECHO_C" >&6
14227
ac_check_lib_save_LIBS=$LIBS
14228
LIBS="-lsvld $LIBS"
14229
cat >conftest.$ac_ext <<_ACEOF
14232
cat confdefs.h >>conftest.$ac_ext
14233
cat >>conftest.$ac_ext <<_ACEOF
14234
/* end confdefs.h. */
14236
/* Override any gcc2 internal prototype to avoid an error. */
14240
/* We use char because int might match the return type of a gcc2
14241
builtin and then its argument prototype would still apply. */
14251
rm -f conftest.$ac_objext conftest$ac_exeext
14252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14253
(eval $ac_link) 2>conftest.er1
14255
grep -v '^ *+' conftest.er1 >conftest.err
14257
cat conftest.err >&5
14258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259
(exit $ac_status); } &&
14260
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262
(eval $ac_try) 2>&5
14264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265
(exit $ac_status); }; } &&
14266
{ ac_try='test -s conftest$ac_exeext'
14267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268
(eval $ac_try) 2>&5
14270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271
(exit $ac_status); }; }; then
14272
ac_cv_lib_svld_dlopen=yes
14274
echo "$as_me: failed program was:" >&5
14275
sed 's/^/| /' conftest.$ac_ext >&5
14277
ac_cv_lib_svld_dlopen=no
14279
rm -f conftest.err conftest.$ac_objext \
14280
conftest$ac_exeext conftest.$ac_ext
14281
LIBS=$ac_check_lib_save_LIBS
14283
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14284
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14285
if test $ac_cv_lib_svld_dlopen = yes; then
14286
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14288
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14289
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14290
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14291
echo $ECHO_N "(cached) $ECHO_C" >&6
14293
ac_check_lib_save_LIBS=$LIBS
14295
cat >conftest.$ac_ext <<_ACEOF
14298
cat confdefs.h >>conftest.$ac_ext
14299
cat >>conftest.$ac_ext <<_ACEOF
14300
/* end confdefs.h. */
14302
/* Override any gcc2 internal prototype to avoid an error. */
14306
/* We use char because int might match the return type of a gcc2
14307
builtin and then its argument prototype would still apply. */
14317
rm -f conftest.$ac_objext conftest$ac_exeext
14318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14319
(eval $ac_link) 2>conftest.er1
14321
grep -v '^ *+' conftest.er1 >conftest.err
14323
cat conftest.err >&5
14324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325
(exit $ac_status); } &&
14326
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328
(eval $ac_try) 2>&5
14330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331
(exit $ac_status); }; } &&
14332
{ ac_try='test -s conftest$ac_exeext'
14333
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334
(eval $ac_try) 2>&5
14336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337
(exit $ac_status); }; }; then
14338
ac_cv_lib_dld_dld_link=yes
14340
echo "$as_me: failed program was:" >&5
14341
sed 's/^/| /' conftest.$ac_ext >&5
14343
ac_cv_lib_dld_dld_link=no
14345
rm -f conftest.err conftest.$ac_objext \
14346
conftest$ac_exeext conftest.$ac_ext
14347
LIBS=$ac_check_lib_save_LIBS
14349
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14350
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14351
if test $ac_cv_lib_dld_dld_link = yes; then
14352
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14373
if test "x$lt_cv_dlopen" != xno; then
14379
case $lt_cv_dlopen in
14381
save_CPPFLAGS="$CPPFLAGS"
14382
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14384
save_LDFLAGS="$LDFLAGS"
14385
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14388
LIBS="$lt_cv_dlopen_libs $LIBS"
14390
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14391
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14392
if test "${lt_cv_dlopen_self+set}" = set; then
14393
echo $ECHO_N "(cached) $ECHO_C" >&6
14395
if test "$cross_compiling" = yes; then :
14396
lt_cv_dlopen_self=cross
14398
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14399
lt_status=$lt_dlunknown
14400
cat > conftest.$ac_ext <<EOF
14401
#line 14401 "configure"
14402
#include "confdefs.h"
14411
# define LT_DLGLOBAL RTLD_GLOBAL
14414
# define LT_DLGLOBAL DL_GLOBAL
14416
# define LT_DLGLOBAL 0
14420
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14421
find out it does not work in some platform. */
14422
#ifndef LT_DLLAZY_OR_NOW
14424
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14427
# define LT_DLLAZY_OR_NOW DL_LAZY
14430
# define LT_DLLAZY_OR_NOW RTLD_NOW
14433
# define LT_DLLAZY_OR_NOW DL_NOW
14435
# define LT_DLLAZY_OR_NOW 0
14443
extern "C" void exit (int);
14446
void fnord() { int i=42;}
14449
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14450
int status = $lt_dlunknown;
14454
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14455
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14456
/* dlclose (self); */
14462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463
(eval $ac_link) 2>&5
14465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14467
(./conftest; exit; ) 2>/dev/null
14469
case x$lt_status in
14470
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14471
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14472
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14475
# compilation failed
14476
lt_cv_dlopen_self=no
14483
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14484
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14486
if test "x$lt_cv_dlopen_self" = xyes; then
14487
LDFLAGS="$LDFLAGS $link_static_flag"
14488
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14489
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14490
if test "${lt_cv_dlopen_self_static+set}" = set; then
14491
echo $ECHO_N "(cached) $ECHO_C" >&6
14493
if test "$cross_compiling" = yes; then :
14494
lt_cv_dlopen_self_static=cross
14496
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14497
lt_status=$lt_dlunknown
14498
cat > conftest.$ac_ext <<EOF
14499
#line 14499 "configure"
14500
#include "confdefs.h"
14509
# define LT_DLGLOBAL RTLD_GLOBAL
14512
# define LT_DLGLOBAL DL_GLOBAL
14514
# define LT_DLGLOBAL 0
14518
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14519
find out it does not work in some platform. */
14520
#ifndef LT_DLLAZY_OR_NOW
14522
# define LT_DLLAZY_OR_NOW RTLD_LAZY
14525
# define LT_DLLAZY_OR_NOW DL_LAZY
14528
# define LT_DLLAZY_OR_NOW RTLD_NOW
14531
# define LT_DLLAZY_OR_NOW DL_NOW
14533
# define LT_DLLAZY_OR_NOW 0
14541
extern "C" void exit (int);
14544
void fnord() { int i=42;}
14547
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14548
int status = $lt_dlunknown;
14552
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14553
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14554
/* dlclose (self); */
14560
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561
(eval $ac_link) 2>&5
14563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14565
(./conftest; exit; ) 2>/dev/null
14567
case x$lt_status in
14568
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14569
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14570
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14573
# compilation failed
14574
lt_cv_dlopen_self_static=no
14581
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14582
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14585
CPPFLAGS="$save_CPPFLAGS"
14586
LDFLAGS="$save_LDFLAGS"
14591
case $lt_cv_dlopen_self in
14592
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14593
*) enable_dlopen_self=unknown ;;
14596
case $lt_cv_dlopen_self_static in
14597
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14598
*) enable_dlopen_self_static=unknown ;;
14603
# The else clause should only fire when bootstrapping the
14604
# libtool distribution, otherwise you forgot to ship ltmain.sh
14605
# with your package, and you will get complaints that there are
14606
# no rules to generate ltmain.sh.
14607
if test -f "$ltmain"; then
14608
# See if we are running on zsh, and set the options which allow our commands through
14609
# without removal of \ escapes.
14610
if test -n "${ZSH_VERSION+set}" ; then
14611
setopt NO_GLOB_SUBST
14613
# Now quote all the things that may contain metacharacters while being
14614
# careful not to overquote the AC_SUBSTed values. We take copies of the
14615
# variables and quote the copies for generation of the libtool script.
14616
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14618
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14619
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14620
deplibs_check_method reload_flag reload_cmds need_locks \
14621
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14622
lt_cv_sys_global_symbol_to_c_name_address \
14623
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14624
old_postinstall_cmds old_postuninstall_cmds \
14628
lt_prog_compiler_wl_CXX \
14629
lt_prog_compiler_pic_CXX \
14630
lt_prog_compiler_static_CXX \
14631
lt_prog_compiler_no_builtin_flag_CXX \
14632
export_dynamic_flag_spec_CXX \
14633
thread_safe_flag_spec_CXX \
14634
whole_archive_flag_spec_CXX \
14635
enable_shared_with_static_runtimes_CXX \
14636
old_archive_cmds_CXX \
14637
old_archive_from_new_cmds_CXX \
14638
predep_objects_CXX \
14639
postdep_objects_CXX \
14642
compiler_lib_search_path_CXX \
14644
archive_expsym_cmds_CXX \
14645
postinstall_cmds_CXX \
14646
postuninstall_cmds_CXX \
14647
old_archive_from_expsyms_cmds_CXX \
14648
allow_undefined_flag_CXX \
14649
no_undefined_flag_CXX \
14650
export_symbols_cmds_CXX \
14651
hardcode_libdir_flag_spec_CXX \
14652
hardcode_libdir_flag_spec_ld_CXX \
14653
hardcode_libdir_separator_CXX \
14654
hardcode_automatic_CXX \
14656
module_expsym_cmds_CXX \
14657
lt_cv_prog_compiler_c_o_CXX \
14658
exclude_expsyms_CXX \
14659
include_expsyms_CXX; do
14662
old_archive_cmds_CXX | \
14663
old_archive_from_new_cmds_CXX | \
14664
archive_cmds_CXX | \
14665
archive_expsym_cmds_CXX | \
14666
module_cmds_CXX | \
14667
module_expsym_cmds_CXX | \
14668
old_archive_from_expsyms_cmds_CXX | \
14669
export_symbols_cmds_CXX | \
14670
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14671
postinstall_cmds | postuninstall_cmds | \
14672
old_postinstall_cmds | old_postuninstall_cmds | \
14673
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14674
# Double-quote double-evaled strings.
14675
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14678
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14684
*'\$0 --fallback-echo"')
14685
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14691
cat <<__EOF__ >> "$cfgfile"
14692
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14694
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14696
# Shell to use when invoking shell scripts.
14699
# Whether or not to build shared libraries.
14700
build_libtool_libs=$enable_shared
14702
# Whether or not to build static libraries.
14703
build_old_libs=$enable_static
14705
# Whether or not to add -lc for building shared libraries.
14706
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14708
# Whether or not to disallow shared libs when runtime libs are static
14709
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14711
# Whether or not to optimize for fast installation.
14712
fast_install=$enable_fast_install
14715
host_alias=$host_alias
14718
# An echo program that does not interpret backslashes.
14723
AR_FLAGS=$lt_AR_FLAGS
14728
# A language-specific compiler.
14729
CC=$lt_compiler_CXX
14731
# Is the compiler the GNU C compiler?
14737
# The linker used to build libraries.
14740
# Whether we need hard or soft links.
14743
# A BSD-compatible nm program.
14746
# A symbol stripping program
14749
# Used to examine libraries when file_magic_cmd begins "file"
14750
MAGIC_CMD=$MAGIC_CMD
14752
# Used on cygwin: DLL creation program.
14755
# Used on cygwin: object dumper.
14758
# Used on cygwin: assembler.
14761
# The name of the directory that contains temporary libtool files.
14764
# How to create reloadable object files.
14765
reload_flag=$lt_reload_flag
14766
reload_cmds=$lt_reload_cmds
14768
# How to pass a linker flag through the compiler.
14769
wl=$lt_lt_prog_compiler_wl_CXX
14771
# Object file suffix (normally "o").
14772
objext="$ac_objext"
14774
# Old archive suffix (normally "a").
14777
# Shared library suffix (normally ".so").
14778
shrext_cmds='$shrext_cmds'
14780
# Executable file suffix (normally "").
14783
# Additional compiler flags for building library objects.
14784
pic_flag=$lt_lt_prog_compiler_pic_CXX
14787
# What is the maximum length of a command?
14788
max_cmd_len=$lt_cv_sys_max_cmd_len
14790
# Does compiler simultaneously support -c and -o options?
14791
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14793
# Must we lock files when doing compilation ?
14794
need_locks=$lt_need_locks
14796
# Do we need the lib prefix for modules?
14797
need_lib_prefix=$need_lib_prefix
14799
# Do we need a version for libraries?
14800
need_version=$need_version
14802
# Whether dlopen is supported.
14803
dlopen_support=$enable_dlopen
14805
# Whether dlopen of programs is supported.
14806
dlopen_self=$enable_dlopen_self
14808
# Whether dlopen of statically linked programs is supported.
14809
dlopen_self_static=$enable_dlopen_self_static
14811
# Compiler flag to prevent dynamic linking.
14812
link_static_flag=$lt_lt_prog_compiler_static_CXX
14814
# Compiler flag to turn off builtin functions.
14815
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14817
# Compiler flag to allow reflexive dlopens.
14818
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14820
# Compiler flag to generate shared objects directly from archives.
14821
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14823
# Compiler flag to generate thread-safe objects.
14824
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14826
# Library versioning type.
14827
version_type=$version_type
14829
# Format of library name prefix.
14830
libname_spec=$lt_libname_spec
14832
# List of archive names. First name is the real one, the rest are links.
14833
# The last name is the one that the linker finds with -lNAME.
14834
library_names_spec=$lt_library_names_spec
14836
# The coded name of the library, if different from the real name.
14837
soname_spec=$lt_soname_spec
14839
# Commands used to build and install an old-style archive.
14841
old_archive_cmds=$lt_old_archive_cmds_CXX
14842
old_postinstall_cmds=$lt_old_postinstall_cmds
14843
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14845
# Create an old-style archive from a shared archive.
14846
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14848
# Create a temporary old-style archive to link instead of a shared archive.
14849
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14851
# Commands used to build and install a shared archive.
14852
archive_cmds=$lt_archive_cmds_CXX
14853
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14854
postinstall_cmds=$lt_postinstall_cmds
14855
postuninstall_cmds=$lt_postuninstall_cmds
14857
# Commands used to build a loadable module (assumed same as above if empty)
14858
module_cmds=$lt_module_cmds_CXX
14859
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14861
# Commands to strip libraries.
14862
old_striplib=$lt_old_striplib
14863
striplib=$lt_striplib
14865
# Dependencies to place before the objects being linked to create a
14867
predep_objects=$lt_predep_objects_CXX
14869
# Dependencies to place after the objects being linked to create a
14871
postdep_objects=$lt_postdep_objects_CXX
14873
# Dependencies to place before the objects being linked to create a
14875
predeps=$lt_predeps_CXX
14877
# Dependencies to place after the objects being linked to create a
14879
postdeps=$lt_postdeps_CXX
14881
# The library search path used internally by the compiler when linking
14882
# a shared library.
14883
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14885
# Method to check whether dependent libraries are shared objects.
14886
deplibs_check_method=$lt_deplibs_check_method
14888
# Command to use when deplibs_check_method == file_magic.
14889
file_magic_cmd=$lt_file_magic_cmd
14891
# Flag that allows shared libraries with undefined symbols to be built.
14892
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14894
# Flag that forces no undefined symbols.
14895
no_undefined_flag=$lt_no_undefined_flag_CXX
14897
# Commands used to finish a libtool library installation in a directory.
14898
finish_cmds=$lt_finish_cmds
14900
# Same as above, but a single script fragment to be evaled but not shown.
14901
finish_eval=$lt_finish_eval
14903
# Take the output of nm and produce a listing of raw symbols and C names.
14904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14906
# Transform the output of nm in a proper C declaration
14907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14909
# Transform the output of nm in a C name address pair
14910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14912
# This is the shared library runtime path variable.
14913
runpath_var=$runpath_var
14915
# This is the shared library path variable.
14916
shlibpath_var=$shlibpath_var
14918
# Is shlibpath searched before the hard-coded library search path?
14919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14921
# How to hardcode a shared library path into an executable.
14922
hardcode_action=$hardcode_action_CXX
14924
# Whether we should hardcode library paths into libraries.
14925
hardcode_into_libs=$hardcode_into_libs
14927
# Flag to hardcode \$libdir into a binary during linking.
14928
# This must work even if \$libdir does not exist.
14929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14931
# If ld is used when linking, flag to hardcode \$libdir into
14932
# a binary during linking. This must work even if \$libdir does
14934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14936
# Whether we need a single -rpath flag with a separated argument.
14937
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14940
# resulting binary.
14941
hardcode_direct=$hardcode_direct_CXX
14943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14944
# resulting binary.
14945
hardcode_minus_L=$hardcode_minus_L_CXX
14947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14948
# the resulting binary.
14949
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14951
# Set to yes if building a shared library automatically hardcodes DIR into the library
14952
# and all subsequent libraries and executables linked against it.
14953
hardcode_automatic=$hardcode_automatic_CXX
14955
# Variables whose values should be saved in libtool wrapper scripts and
14956
# restored at relink time.
14957
variables_saved_for_relink="$variables_saved_for_relink"
14959
# Whether libtool must link a program against all its dependency libraries.
14960
link_all_deplibs=$link_all_deplibs_CXX
14962
# Compile-time system search path for libraries
14963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14965
# Run-time system search path for libraries
14966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14968
# Fix the shell variable \$srcfile for the compiler.
14969
fix_srcfile_path="$fix_srcfile_path_CXX"
14971
# Set to yes if exported symbols are required.
14972
always_export_symbols=$always_export_symbols_CXX
14974
# The commands to list exported symbols.
14975
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14977
# The commands to extract the exported symbol list from a shared archive.
14978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14980
# Symbols that should not be listed in the preloaded symbols.
14981
exclude_expsyms=$lt_exclude_expsyms_CXX
14983
# Symbols that must always be exported.
14984
include_expsyms=$lt_include_expsyms_CXX
14986
# ### END LIBTOOL TAG CONFIG: $tagname
14992
# If there is no Makefile yet, we rely on a make rule to execute
14993
# `config.status --recheck' to rerun these tests and create the
14994
# libtool script then.
14995
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14996
if test -f "$ltmain_in"; then
14997
test -f Makefile && make "$ltmain"
15003
ac_cpp='$CPP $CPPFLAGS'
15004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15012
with_gnu_ldcxx=$with_gnu_ld
15013
with_gnu_ld=$lt_save_with_gnu_ld
15014
lt_cv_path_LDCXX=$lt_cv_path_LD
15015
lt_cv_path_LD=$lt_save_path_LD
15016
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15017
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15025
if test -n "$F77" && test "X$F77" != "Xno"; then
15028
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15029
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15033
archive_cmds_need_lc_F77=no
15034
allow_undefined_flag_F77=
15035
always_export_symbols_F77=no
15036
archive_expsym_cmds_F77=
15037
export_dynamic_flag_spec_F77=
15038
hardcode_direct_F77=no
15039
hardcode_libdir_flag_spec_F77=
15040
hardcode_libdir_flag_spec_ld_F77=
15041
hardcode_libdir_separator_F77=
15042
hardcode_minus_L_F77=no
15043
hardcode_automatic_F77=no
15045
module_expsym_cmds_F77=
15046
link_all_deplibs_F77=unknown
15047
old_archive_cmds_F77=$old_archive_cmds
15048
no_undefined_flag_F77=
15049
whole_archive_flag_spec_F77=
15050
enable_shared_with_static_runtimes_F77=no
15052
# Source file extension for f77 test sources.
15055
# Object file extension for compiled f77 test sources.
15059
# Code to be used in simple compile tests
15060
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15062
# Code to be used in simple link tests
15063
lt_simple_link_test_code=" program t\n end\n"
15065
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15067
# If no C compiler was specified, use CC.
15070
# Allow CC to be a program name with arguments.
15074
# Allow CC to be a program name with arguments.
15079
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15081
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15082
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15083
echo "$as_me:$LINENO: result: $can_build_shared" >&5
15084
echo "${ECHO_T}$can_build_shared" >&6
15086
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15087
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15088
test "$can_build_shared" = "no" && enable_shared=no
15090
# On AIX, shared libraries and static libraries use the same namespace, and
15091
# are all built from PIC.
15094
test "$enable_shared" = yes && enable_static=no
15095
if test -n "$RANLIB"; then
15096
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15097
postinstall_cmds='$RANLIB $lib'
15101
test "$enable_shared" = yes && enable_static=no
15104
echo "$as_me:$LINENO: result: $enable_shared" >&5
15105
echo "${ECHO_T}$enable_shared" >&6
15107
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15108
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15109
# Make sure either enable_shared or enable_static is yes.
15110
test "$enable_shared" = yes || enable_static=yes
15111
echo "$as_me:$LINENO: result: $enable_static" >&5
15112
echo "${ECHO_T}$enable_static" >&6
15114
test "$ld_shlibs_F77" = no && can_build_shared=no
15119
lt_prog_compiler_wl_F77=
15120
lt_prog_compiler_pic_F77=
15121
lt_prog_compiler_static_F77=
15123
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15124
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15126
if test "$GCC" = yes; then
15127
lt_prog_compiler_wl_F77='-Wl,'
15128
lt_prog_compiler_static_F77='-static'
15132
# All AIX code is PIC.
15133
if test "$host_cpu" = ia64; then
15134
# AIX 5 now supports IA64 processor
15135
lt_prog_compiler_static_F77='-Bstatic'
15140
# FIXME: we need at least 68020 code to build shared libraries, but
15141
# adding the `-m68020' flag to GCC prevents building anything better,
15143
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15146
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15147
# PIC is the default for these OSes.
15150
mingw* | pw32* | os2*)
15151
# This hack is so that the source file can tell whether it is being
15152
# built for inclusion in a dll (and should export symbols for example).
15153
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15156
darwin* | rhapsody*)
15157
# PIC is the default on this platform
15158
# Common symbols not allowed in MH_DYLIB files
15159
lt_prog_compiler_pic_F77='-fno-common'
15163
# Just because we use GCC doesn't mean we suddenly get shared libraries
15164
# on systems that don't support them.
15165
lt_prog_compiler_can_build_shared_F77=no
15170
if test -d /usr/nec; then
15171
lt_prog_compiler_pic_F77=-Kconform_pic
15176
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15177
# not for PA HP-UX.
15178
case "$host_cpu" in
15183
lt_prog_compiler_pic_F77='-fPIC'
15189
lt_prog_compiler_pic_F77='-fPIC'
15193
# PORTME Check for flag to pass linker flags through the system compiler.
15196
lt_prog_compiler_wl_F77='-Wl,'
15197
if test "$host_cpu" = ia64; then
15198
# AIX 5 now supports IA64 processor
15199
lt_prog_compiler_static_F77='-Bstatic'
15201
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15205
mingw* | pw32* | os2*)
15206
# This hack is so that the source file can tell whether it is being
15207
# built for inclusion in a dll (and should export symbols for example).
15208
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15211
hpux9* | hpux10* | hpux11*)
15212
lt_prog_compiler_wl_F77='-Wl,'
15213
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15214
# not for PA HP-UX.
15215
case "$host_cpu" in
15220
lt_prog_compiler_pic_F77='+Z'
15223
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15224
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15227
irix5* | irix6* | nonstopux*)
15228
lt_prog_compiler_wl_F77='-Wl,'
15229
# PIC (with -KPIC) is the default.
15230
lt_prog_compiler_static_F77='-non_shared'
15234
lt_prog_compiler_pic_F77='-KPIC'
15235
lt_prog_compiler_static_F77='-Bstatic'
15241
lt_prog_compiler_wl_F77='-Wl,'
15242
lt_prog_compiler_pic_F77='-KPIC'
15243
lt_prog_compiler_static_F77='-static'
15246
lt_prog_compiler_wl_F77='-Wl,'
15247
# All Alpha code is PIC.
15248
lt_prog_compiler_static_F77='-non_shared'
15253
osf3* | osf4* | osf5*)
15254
lt_prog_compiler_wl_F77='-Wl,'
15255
# All OSF/1 code is PIC.
15256
lt_prog_compiler_static_F77='-non_shared'
15260
lt_prog_compiler_pic_F77='-Kpic'
15261
lt_prog_compiler_static_F77='-dn'
15265
lt_prog_compiler_wl_F77='-Wl,'
15266
lt_prog_compiler_pic_F77='-KPIC'
15267
lt_prog_compiler_static_F77='-Bstatic'
15271
lt_prog_compiler_wl_F77='-Qoption ld '
15272
lt_prog_compiler_pic_F77='-PIC'
15273
lt_prog_compiler_static_F77='-Bstatic'
15276
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15277
lt_prog_compiler_wl_F77='-Wl,'
15278
lt_prog_compiler_pic_F77='-KPIC'
15279
lt_prog_compiler_static_F77='-Bstatic'
15283
if test -d /usr/nec ;then
15284
lt_prog_compiler_pic_F77='-Kconform_pic'
15285
lt_prog_compiler_static_F77='-Bstatic'
15290
lt_prog_compiler_pic_F77='-pic'
15291
lt_prog_compiler_static_F77='-Bstatic'
15295
lt_prog_compiler_can_build_shared_F77=no
15300
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15301
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15304
# Check to make sure the PIC flag actually works.
15306
if test -n "$lt_prog_compiler_pic_F77"; then
15308
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15309
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15310
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15311
echo $ECHO_N "(cached) $ECHO_C" >&6
15313
lt_prog_compiler_pic_works_F77=no
15314
ac_outfile=conftest.$ac_objext
15315
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15316
lt_compiler_flag="$lt_prog_compiler_pic_F77"
15317
# Insert the option either (1) after the last *FLAGS variable, or
15318
# (2) before a word containing "conftest.", or (3) at the end.
15319
# Note that $ac_compile itself does not contain backslashes and begins
15320
# with a dollar sign (not a hyphen), so the echo should work correctly.
15321
# The option is referenced via a variable to avoid confusing sed.
15322
lt_compile=`echo "$ac_compile" | $SED \
15323
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15324
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15325
-e 's:$: $lt_compiler_flag:'`
15326
(eval echo "\"\$as_me:15326: $lt_compile\"" >&5)
15327
(eval "$lt_compile" 2>conftest.err)
15329
cat conftest.err >&5
15330
echo "$as_me:15330: \$? = $ac_status" >&5
15331
if (exit $ac_status) && test -s "$ac_outfile"; then
15332
# The compiler can only warn and ignore the option if not recognized
15333
# So say no if there are warnings
15334
if test ! -s conftest.err; then
15335
lt_prog_compiler_pic_works_F77=yes
15341
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15342
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15344
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15345
case $lt_prog_compiler_pic_F77 in
15347
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15350
lt_prog_compiler_pic_F77=
15351
lt_prog_compiler_can_build_shared_F77=no
15356
# For platforms which do not support PIC, -DPIC is meaningless:
15358
lt_prog_compiler_pic_F77=
15361
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15365
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15366
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15367
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15368
echo $ECHO_N "(cached) $ECHO_C" >&6
15370
lt_cv_prog_compiler_c_o_F77=no
15371
$rm -r conftest 2>/dev/null
15375
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15377
lt_compiler_flag="-o out/conftest2.$ac_objext"
15378
# Insert the option either (1) after the last *FLAGS variable, or
15379
# (2) before a word containing "conftest.", or (3) at the end.
15380
# Note that $ac_compile itself does not contain backslashes and begins
15381
# with a dollar sign (not a hyphen), so the echo should work correctly.
15382
lt_compile=`echo "$ac_compile" | $SED \
15383
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15384
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15385
-e 's:$: $lt_compiler_flag:'`
15386
(eval echo "\"\$as_me:15386: $lt_compile\"" >&5)
15387
(eval "$lt_compile" 2>out/conftest.err)
15389
cat out/conftest.err >&5
15390
echo "$as_me:15390: \$? = $ac_status" >&5
15391
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15393
# The compiler can only warn and ignore the option if not recognized
15394
# So say no if there are warnings
15395
if test ! -s out/conftest.err; then
15396
lt_cv_prog_compiler_c_o_F77=yes
15401
# SGI C++ compiler will create directory out/ii_files/ for
15402
# template instantiation
15403
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15404
$rm out/* && rmdir out
15410
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15411
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15414
hard_links="nottested"
15415
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15416
# do not overwrite the value of need_locks provided by the user
15417
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15418
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15421
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15423
ln conftest.a conftest.b 2>&5 || hard_links=no
15424
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15425
echo "$as_me:$LINENO: result: $hard_links" >&5
15426
echo "${ECHO_T}$hard_links" >&6
15427
if test "$hard_links" = no; then
15428
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15429
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15436
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15437
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15440
allow_undefined_flag_F77=
15441
enable_shared_with_static_runtimes_F77=no
15443
archive_expsym_cmds_F77=
15444
old_archive_From_new_cmds_F77=
15445
old_archive_from_expsyms_cmds_F77=
15446
export_dynamic_flag_spec_F77=
15447
whole_archive_flag_spec_F77=
15448
thread_safe_flag_spec_F77=
15449
hardcode_libdir_flag_spec_F77=
15450
hardcode_libdir_flag_spec_ld_F77=
15451
hardcode_libdir_separator_F77=
15452
hardcode_direct_F77=no
15453
hardcode_minus_L_F77=no
15454
hardcode_shlibpath_var_F77=unsupported
15455
link_all_deplibs_F77=unknown
15456
hardcode_automatic_F77=no
15458
module_expsym_cmds_F77=
15459
always_export_symbols_F77=no
15460
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15461
# include_expsyms should be a list of space-separated symbols to be *always*
15462
# included in the symbol list
15463
include_expsyms_F77=
15464
# exclude_expsyms can be an extended regexp of symbols to exclude
15465
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15466
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15467
# as well as any symbol that contains `d'.
15468
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15469
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15470
# platforms (ab)use it in PIC code, but their linkers get confused if
15471
# the symbol is explicitly referenced. Since portable code cannot
15472
# rely on this symbol name, it's probably fine to never include it in
15473
# preloaded symbol tables.
15474
extract_expsyms_cmds=
15477
cygwin* | mingw* | pw32*)
15478
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15479
# When not using gcc, we currently assume that we are using
15480
# Microsoft Visual C++.
15481
if test "$GCC" != yes; then
15491
if test "$with_gnu_ld" = yes; then
15492
# If archive_cmds runs LD, not CC, wlarc should be empty
15495
# See if GNU ld supports shared libraries.
15497
aix3* | aix4* | aix5*)
15498
# On AIX/PPC, the GNU linker is very broken
15499
if test "$host_cpu" != ia64; then
15503
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15504
*** to be unable to reliably create shared libraries on AIX.
15505
*** Therefore, libtool is disabling shared libraries support. If you
15506
*** really care for shared libraries, you may want to modify your PATH
15507
*** so that a non-GNU linker is found, and then restart.
15514
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)'
15515
hardcode_libdir_flag_spec_F77='-L$libdir'
15516
hardcode_minus_L_F77=yes
15518
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15519
# that the semantics of dynamic libraries on AmigaOS, at least up
15520
# to version 4, is to share data among multiple programs linked
15521
# with the same dynamic library. Since this doesn't match the
15522
# behavior of shared libraries on other platforms, we can't use
15528
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15529
allow_undefined_flag_F77=unsupported
15530
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15531
# support --undefined. This deserves some investigation. FIXME
15532
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538
cygwin* | mingw* | pw32*)
15539
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15540
# as there is no search path for DLLs.
15541
hardcode_libdir_flag_spec_F77='-L$libdir'
15542
allow_undefined_flag_F77=unsupported
15543
always_export_symbols_F77=no
15544
enable_shared_with_static_runtimes_F77=yes
15545
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15547
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15548
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15549
# If the export-symbols file already is a .def file (1st line
15550
# is EXPORTS), use it as is; otherwise, prepend...
15551
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15552
cp $export_symbols $output_objdir/$soname.def;
15554
echo EXPORTS > $output_objdir/$soname.def;
15555
cat $export_symbols >> $output_objdir/$soname.def;
15557
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15563
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15564
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15565
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15568
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15569
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15574
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15578
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15579
*** create shared libraries on Solaris systems. Therefore, libtool
15580
*** is disabling shared libraries support. We urge you to upgrade GNU
15581
*** binutils to release 2.9.1 or newer. Another option is to modify
15582
*** your PATH or compiler configuration so that the native linker is
15583
*** used, and then restart.
15586
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15587
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15588
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15595
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15597
hardcode_direct_F77=yes
15598
hardcode_shlibpath_var_F77=no
15602
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15603
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15604
archive_cmds_F77="$tmp_archive_cmds"
15605
supports_anon_versioning=no
15606
case `$LD -v 2>/dev/null` in
15607
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15608
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15609
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15610
*\ 2.11.*) ;; # other 2.11 versions
15611
*) supports_anon_versioning=yes ;;
15613
if test $supports_anon_versioning = yes; then
15614
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15615
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15616
$echo "local: *; };" >> $output_objdir/$libname.ver~
15617
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15619
archive_expsym_cmds_F77="$tmp_archive_cmds"
15621
link_all_deplibs_F77=no
15628
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15629
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15630
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15637
if test "$ld_shlibs_F77" = yes; then
15638
runpath_var=LD_RUN_PATH
15639
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15640
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15641
# ancient GNU ld didn't support --whole-archive et. al.
15642
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15643
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15645
whole_archive_flag_spec_F77=
15649
# PORTME fill in a description of your system's linker (not GNU ld)
15652
allow_undefined_flag_F77=unsupported
15653
always_export_symbols_F77=yes
15654
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'
15655
# Note: this linker hardcodes the directories in LIBPATH if there
15656
# are no directories specified by -L.
15657
hardcode_minus_L_F77=yes
15658
if test "$GCC" = yes && test -z "$link_static_flag"; then
15659
# Neither direct hardcoding nor static linking is supported with a
15661
hardcode_direct_F77=unsupported
15666
if test "$host_cpu" = ia64; then
15667
# On IA64, the linker does run time linking by default, so we don't
15668
# have to do anything special.
15669
aix_use_runtimelinking=no
15670
exp_sym_flag='-Bexport'
15673
# If we're using GNU nm, then we don't want the "-C" option.
15674
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15675
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15676
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'
15678
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'
15680
aix_use_runtimelinking=no
15682
# Test if we are trying to use run time linking or normal
15683
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15684
# need to do runtime linking.
15685
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15686
for ld_flag in $LDFLAGS; do
15687
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15688
aix_use_runtimelinking=yes
15694
exp_sym_flag='-bexport'
15695
no_entry_flag='-bnoentry'
15698
# When large executables or shared objects are built, AIX ld can
15699
# have problems creating the table of contents. If linking a library
15700
# or program results in "error TOC overflow" add -mminimal-toc to
15701
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15702
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15704
archive_cmds_F77=''
15705
hardcode_direct_F77=yes
15706
hardcode_libdir_separator_F77=':'
15707
link_all_deplibs_F77=yes
15709
if test "$GCC" = yes; then
15710
case $host_os in aix4.012|aix4.012.*)
15711
# We only want to do this on AIX 4.2 and lower, the check
15712
# below for broken collect2 doesn't work under 4.3+
15713
collect2name=`${CC} -print-prog-name=collect2`
15714
if test -f "$collect2name" && \
15715
strings "$collect2name" | grep resolve_lib_name >/dev/null
15717
# We have reworked collect2
15718
hardcode_direct_F77=yes
15720
# We have old collect2
15721
hardcode_direct_F77=unsupported
15722
# It fails to find uninstalled libraries when the uninstalled
15723
# path is not listed in the libpath. Setting hardcode_minus_L
15724
# to unsupported forces relinking
15725
hardcode_minus_L_F77=yes
15726
hardcode_libdir_flag_spec_F77='-L$libdir'
15727
hardcode_libdir_separator_F77=
15730
shared_flag='-shared'
15733
if test "$host_cpu" = ia64; then
15734
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15735
# chokes on -Wl,-G. The following line is correct:
15738
if test "$aix_use_runtimelinking" = yes; then
15739
shared_flag='${wl}-G'
15741
shared_flag='${wl}-bM:SRE'
15746
# It seems that -bexpall does not export symbols beginning with
15747
# underscore (_), so it is better to generate a list of symbols to export.
15748
always_export_symbols_F77=yes
15749
if test "$aix_use_runtimelinking" = yes; then
15750
# Warning - without using the other runtime loading flags (-brtl),
15751
# -berok will link without error, but may produce a broken library.
15752
allow_undefined_flag_F77='-berok'
15753
# Determine the default libpath from the value encoded in an empty executable.
15754
cat >conftest.$ac_ext <<_ACEOF
15759
rm -f conftest.$ac_objext conftest$ac_exeext
15760
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15761
(eval $ac_link) 2>conftest.er1
15763
grep -v '^ *+' conftest.er1 >conftest.err
15765
cat conftest.err >&5
15766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767
(exit $ac_status); } &&
15768
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15769
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770
(eval $ac_try) 2>&5
15772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773
(exit $ac_status); }; } &&
15774
{ ac_try='test -s conftest$ac_exeext'
15775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776
(eval $ac_try) 2>&5
15778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779
(exit $ac_status); }; }; then
15781
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15783
# Check for a 64-bit object if we didn't find anything.
15784
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; }
15787
echo "$as_me: failed program was:" >&5
15788
sed 's/^/| /' conftest.$ac_ext >&5
15791
rm -f conftest.err conftest.$ac_objext \
15792
conftest$ac_exeext conftest.$ac_ext
15793
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15795
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15796
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"
15798
if test "$host_cpu" = ia64; then
15799
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15800
allow_undefined_flag_F77="-z nodefs"
15801
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"
15803
# Determine the default libpath from the value encoded in an empty executable.
15804
cat >conftest.$ac_ext <<_ACEOF
15809
rm -f conftest.$ac_objext conftest$ac_exeext
15810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811
(eval $ac_link) 2>conftest.er1
15813
grep -v '^ *+' conftest.er1 >conftest.err
15815
cat conftest.err >&5
15816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817
(exit $ac_status); } &&
15818
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820
(eval $ac_try) 2>&5
15822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823
(exit $ac_status); }; } &&
15824
{ ac_try='test -s conftest$ac_exeext'
15825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826
(eval $ac_try) 2>&5
15828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829
(exit $ac_status); }; }; then
15831
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15833
# Check for a 64-bit object if we didn't find anything.
15834
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; }
15837
echo "$as_me: failed program was:" >&5
15838
sed 's/^/| /' conftest.$ac_ext >&5
15841
rm -f conftest.err conftest.$ac_objext \
15842
conftest$ac_exeext conftest.$ac_ext
15843
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15845
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15846
# Warning - without using the other run time loading flags,
15847
# -berok will link without error, but may produce a broken library.
15848
no_undefined_flag_F77=' ${wl}-bernotok'
15849
allow_undefined_flag_F77=' ${wl}-berok'
15850
# -bexpall does not export symbols beginning with underscore (_)
15851
always_export_symbols_F77=yes
15852
# Exported symbols can be pulled into shared objects from archives
15853
whole_archive_flag_spec_F77=' '
15854
archive_cmds_need_lc_F77=yes
15855
# This is similar to how AIX traditionally builds it's shared libraries.
15856
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'
15862
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)'
15863
hardcode_libdir_flag_spec_F77='-L$libdir'
15864
hardcode_minus_L_F77=yes
15865
# see comment about different semantics on the GNU ld section
15870
export_dynamic_flag_spec_F77=-rdynamic
15873
cygwin* | mingw* | pw32*)
15874
# When not using gcc, we currently assume that we are using
15875
# Microsoft Visual C++.
15876
# hardcode_libdir_flag_spec is actually meaningless, as there is
15877
# no search path for DLLs.
15878
hardcode_libdir_flag_spec_F77=' '
15879
allow_undefined_flag_F77=unsupported
15880
# Tell ltmain to make .lib files, not .a files.
15882
# Tell ltmain to make .dll files, not .so files.
15884
# FIXME: Setting linknames here is a bad hack.
15885
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15886
# The linker will automatically build a .lib file if we build a DLL.
15887
old_archive_From_new_cmds_F77='true'
15888
# FIXME: Should let the user specify the lib program.
15889
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15890
fix_srcfile_path='`cygpath -w "$srcfile"`'
15891
enable_shared_with_static_runtimes_F77=yes
15894
darwin* | rhapsody*)
15895
if test "$GXX" = yes ; then
15896
archive_cmds_need_lc_F77=no
15898
rhapsody* | darwin1.[012])
15899
allow_undefined_flag_F77='-undefined suppress'
15902
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15903
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15905
case ${MACOSX_DEPLOYMENT_TARGET} in
15907
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15910
allow_undefined_flag_F77='-undefined dynamic_lookup'
15916
lt_int_apple_cc_single_mod=no
15917
output_verbose_link_cmd='echo'
15918
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15919
lt_int_apple_cc_single_mod=yes
15921
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15922
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15924
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15926
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15927
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15928
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15929
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15931
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15933
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}'
15934
hardcode_direct_F77=no
15935
hardcode_automatic_F77=yes
15936
hardcode_shlibpath_var_F77=unsupported
15937
whole_archive_flag_spec_F77='-all_load $convenience'
15938
link_all_deplibs_F77=yes
15945
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15946
hardcode_libdir_flag_spec_F77='-L$libdir'
15947
hardcode_shlibpath_var_F77=no
15954
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15955
# support. Future versions do this automatically, but an explicit c++rt0.o
15956
# does not break anything, and helps significantly (at the cost of a little
15959
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15960
hardcode_libdir_flag_spec_F77='-R$libdir'
15961
hardcode_direct_F77=yes
15962
hardcode_shlibpath_var_F77=no
15965
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15967
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15968
hardcode_direct_F77=yes
15969
hardcode_minus_L_F77=yes
15970
hardcode_shlibpath_var_F77=no
15973
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15974
freebsd* | kfreebsd*-gnu)
15975
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15976
hardcode_libdir_flag_spec_F77='-R$libdir'
15977
hardcode_direct_F77=yes
15978
hardcode_shlibpath_var_F77=no
15982
if test "$GCC" = yes; then
15983
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'
15985
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'
15987
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15988
hardcode_libdir_separator_F77=:
15989
hardcode_direct_F77=yes
15991
# hardcode_minus_L: Not really in the search PATH,
15992
# but as the default location of the library.
15993
hardcode_minus_L_F77=yes
15994
export_dynamic_flag_spec_F77='${wl}-E'
15998
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15999
case "$host_cpu" in
16001
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16008
case "$host_cpu" in
16010
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16013
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16017
if test "$with_gnu_ld" = no; then
16018
case "$host_cpu" in
16020
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16021
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16022
hardcode_libdir_separator_F77=:
16023
hardcode_direct_F77=no
16024
hardcode_shlibpath_var_F77=no
16027
hardcode_libdir_flag_spec_F77='-L$libdir'
16028
hardcode_direct_F77=no
16029
hardcode_shlibpath_var_F77=no
16031
# hardcode_minus_L: Not really in the search PATH,
16032
# but as the default location of the library.
16033
hardcode_minus_L_F77=yes
16036
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16037
hardcode_libdir_separator_F77=:
16038
hardcode_direct_F77=yes
16039
export_dynamic_flag_spec_F77='${wl}-E'
16041
# hardcode_minus_L: Not really in the search PATH,
16042
# but as the default location of the library.
16043
hardcode_minus_L_F77=yes
16049
irix5* | irix6* | nonstopux*)
16050
if test "$GCC" = yes; then
16051
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'
16053
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'
16054
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16056
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16057
hardcode_libdir_separator_F77=:
16058
link_all_deplibs_F77=yes
16061
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16062
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16063
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16065
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16067
hardcode_libdir_flag_spec_F77='-R$libdir'
16068
hardcode_direct_F77=yes
16069
hardcode_shlibpath_var_F77=no
16073
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074
hardcode_direct_F77=yes
16075
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16076
hardcode_libdir_separator_F77=:
16077
hardcode_shlibpath_var_F77=no
16081
hardcode_direct_F77=yes
16082
hardcode_shlibpath_var_F77=no
16083
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16084
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16085
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16086
export_dynamic_flag_spec_F77='${wl}-E'
16089
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16090
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16091
hardcode_libdir_flag_spec_F77='-R$libdir'
16094
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16095
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16102
hardcode_libdir_flag_spec_F77='-L$libdir'
16103
hardcode_minus_L_F77=yes
16104
allow_undefined_flag_F77=unsupported
16105
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'
16106
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16110
if test "$GCC" = yes; then
16111
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16112
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'
16114
allow_undefined_flag_F77=' -expect_unresolved \*'
16115
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'
16117
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16118
hardcode_libdir_separator_F77=:
16121
osf4* | osf5*) # as osf3* with the addition of -msym flag
16122
if test "$GCC" = yes; then
16123
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16124
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'
16125
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16127
allow_undefined_flag_F77=' -expect_unresolved \*'
16128
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'
16129
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~
16130
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16132
# Both c and cxx compiler support -rpath directly
16133
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16135
hardcode_libdir_separator_F77=:
16139
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16140
hardcode_shlibpath_var_F77=no
16141
export_dynamic_flag_spec_F77='${wl}-Bexport'
16142
runpath_var=LD_RUN_PATH
16143
hardcode_runpath_var=yes
16147
no_undefined_flag_F77=' -z text'
16148
if test "$GCC" = yes; then
16149
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16150
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16151
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16153
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16154
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16155
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16157
hardcode_libdir_flag_spec_F77='-R$libdir'
16158
hardcode_shlibpath_var_F77=no
16160
solaris2.[0-5] | solaris2.[0-5].*) ;;
16161
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16162
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16164
link_all_deplibs_F77=yes
16168
if test "x$host_vendor" = xsequent; then
16169
# Use $CC to link under sequent, because it throws in some extra .o
16170
# files that make .init and .fini sections work.
16171
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16173
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16175
hardcode_libdir_flag_spec_F77='-L$libdir'
16176
hardcode_direct_F77=yes
16177
hardcode_minus_L_F77=yes
16178
hardcode_shlibpath_var_F77=no
16182
case $host_vendor in
16184
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16185
hardcode_direct_F77=yes # is this really true???
16188
## LD is ld it makes a PLAMLIB
16189
## CC just makes a GrossModule.
16190
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16191
reload_cmds_F77='$CC -r -o $output$reload_objs'
16192
hardcode_direct_F77=no
16195
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16199
runpath_var='LD_RUN_PATH'
16200
hardcode_shlibpath_var_F77=no
16204
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205
hardcode_shlibpath_var_F77=no
16206
export_dynamic_flag_spec_F77='-Bexport'
16210
if test -d /usr/nec; then
16211
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212
hardcode_shlibpath_var_F77=no
16213
runpath_var=LD_RUN_PATH
16214
hardcode_runpath_var=yes
16220
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16221
hardcode_direct_F77=yes
16222
hardcode_minus_L_F77=no
16223
hardcode_shlibpath_var_F77=no
16224
hardcode_runpath_var=yes
16225
runpath_var=LD_RUN_PATH
16228
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16229
no_undefined_flag_F77='${wl}-z ${wl}text'
16230
if test "$GCC" = yes; then
16231
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16233
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16235
runpath_var='LD_RUN_PATH'
16236
hardcode_shlibpath_var_F77=no
16240
no_undefined_flag_F77=' -z text'
16241
# $CC -shared without GNU ld will not create a library from C++
16242
# object files and a static libstdc++, better avoid it by now
16243
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16244
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16245
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16246
hardcode_libdir_flag_spec_F77=
16247
hardcode_shlibpath_var_F77=no
16248
runpath_var='LD_RUN_PATH'
16252
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16253
hardcode_libdir_flag_spec_F77='-L$libdir'
16254
hardcode_shlibpath_var_F77=no
16263
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16264
echo "${ECHO_T}$ld_shlibs_F77" >&6
16265
test "$ld_shlibs_F77" = no && can_build_shared=no
16267
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16268
if test "$GCC" = yes; then
16269
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16273
# Do we need to explicitly link libc?
16275
case "x$archive_cmds_need_lc_F77" in
16277
# Assume -lc should be added
16278
archive_cmds_need_lc_F77=yes
16280
if test "$enable_shared" = yes && test "$GCC" = yes; then
16281
case $archive_cmds_F77 in
16283
# FIXME: we may have to deal with multi-command sequences.
16286
# Test whether the compiler implicitly links with -lc since on some
16287
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16288
# to ld, don't add -lc before -lgcc.
16289
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16290
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16292
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16294
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16295
(eval $ac_compile) 2>&5
16297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298
(exit $ac_status); } 2>conftest.err; then
16301
libobjs=conftest.$ac_objext
16303
wl=$lt_prog_compiler_wl_F77
16309
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16310
allow_undefined_flag_F77=
16311
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16312
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315
(exit $ac_status); }
16317
archive_cmds_need_lc_F77=no
16319
archive_cmds_need_lc_F77=yes
16321
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16323
cat conftest.err 1>&5
16326
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16327
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16334
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16335
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16336
library_names_spec=
16337
libname_spec='lib$name'
16341
postuninstall_cmds=
16345
shlibpath_overrides_runpath=unknown
16347
dynamic_linker="$host_os ld.so"
16348
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16349
if test "$GCC" = yes; then
16350
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16351
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16352
# if the path contains ";" then we assume it to be the separator
16353
# otherwise default to the standard path separator (i.e. ":") - it is
16354
# assumed that no part of a normal pathname contains ";" but that should
16355
# okay in the real world where ";" in dirpaths is itself problematic.
16356
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16358
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16361
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16363
need_lib_prefix=unknown
16364
hardcode_into_libs=no
16366
# when you set need_version to no, make sure it does not cause -set_version
16367
# flags to be left without arguments
16368
need_version=unknown
16373
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16374
shlibpath_var=LIBPATH
16376
# AIX 3 has no versioning support, so we append a major version to the name.
16377
soname_spec='${libname}${release}${shared_ext}$major'
16384
hardcode_into_libs=yes
16385
if test "$host_cpu" = ia64; then
16386
# AIX 5 supports IA64
16387
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16388
shlibpath_var=LD_LIBRARY_PATH
16390
# With GCC up to 2.95.x, collect2 would create an import file
16391
# for dependence libraries. The import file would start with
16392
# the line `#! .'. This would cause the generated library to
16393
# depend on `.', always an invalid library. This was fixed in
16394
# development snapshots of GCC prior to 3.0.
16396
aix4 | aix4.[01] | aix4.[01].*)
16397
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16399
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16402
can_build_shared=no
16406
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16407
# soname into executable. Probably we can add versioning support to
16408
# collect2, so additional links can be useful in future.
16409
if test "$aix_use_runtimelinking" = yes; then
16410
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16411
# instead of lib<name>.a to let people know that these are not
16412
# typical AIX shared libraries.
16413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415
# We preserve .a as extension for shared libraries through AIX4.2
16416
# and later when we are not doing run time linking.
16417
library_names_spec='${libname}${release}.a $libname.a'
16418
soname_spec='${libname}${release}${shared_ext}$major'
16420
shlibpath_var=LIBPATH
16425
library_names_spec='$libname.ixlibrary $libname.a'
16426
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16427
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'
16431
library_names_spec='${libname}${shared_ext}'
16432
dynamic_linker="$host_os ld.so"
16433
shlibpath_var=LIBRARY_PATH
16439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440
soname_spec='${libname}${release}${shared_ext}$major'
16441
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16442
shlibpath_var=LD_LIBRARY_PATH
16443
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16444
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16445
# the default ld.so.conf also contains /usr/contrib/lib and
16446
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16447
# libtool to hard-code these into programs
16450
cygwin* | mingw* | pw32*)
16451
version_type=windows
16456
case $GCC,$host_os in
16457
yes,cygwin* | yes,mingw* | yes,pw32*)
16458
library_names_spec='$libname.dll.a'
16459
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16460
postinstall_cmds='base_file=`basename \${file}`~
16461
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16462
dldir=$destdir/`dirname \$dlpath`~
16463
test -d \$dldir || mkdir -p \$dldir~
16464
$install_prog $dir/$dlname \$dldir/$dlname'
16465
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16466
dlpath=$dir/\$dldll~
16468
shlibpath_overrides_runpath=yes
16472
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16473
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16474
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16477
# MinGW DLLs use traditional 'lib' prefix
16478
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16479
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16480
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16481
# It is most probably a Windows format PATH printed by
16482
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16483
# path with ; separators, and with drive letters. We can handle the
16484
# drive letters (cygwin fileutils understands them), so leave them,
16485
# especially as we might pass files found there to a mingw objdump,
16486
# which wouldn't understand a cygwinified path. Ahh.
16487
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16489
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16493
# pw32 DLLs use 'pw' prefix rather than 'lib'
16494
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16500
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16503
dynamic_linker='Win32 ld.exe'
16504
# FIXME: first we should search . and the directory the executable is in
16508
darwin* | rhapsody*)
16509
dynamic_linker="$host_os dyld"
16510
version_type=darwin
16513
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16514
soname_spec='${libname}${release}${major}$shared_ext'
16515
shlibpath_overrides_runpath=yes
16516
shlibpath_var=DYLD_LIBRARY_PATH
16517
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16518
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16519
if test "$GCC" = yes; then
16520
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"`
16522
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16524
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16532
soname_spec='${libname}${release}${shared_ext}$major'
16533
shlibpath_var=LD_LIBRARY_PATH
16544
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16545
soname_spec='${libname}${release}${shared_ext}$major'
16546
shlibpath_var=LD_LIBRARY_PATH
16547
shlibpath_overrides_runpath=no
16548
hardcode_into_libs=yes
16549
dynamic_linker='GNU ld.so'
16553
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16554
version_type=freebsd-$objformat
16555
case $version_type in
16557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16562
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16566
shlibpath_var=LD_LIBRARY_PATH
16569
shlibpath_overrides_runpath=yes
16571
freebsd3.01* | freebsdelf3.01*)
16572
shlibpath_overrides_runpath=yes
16573
hardcode_into_libs=yes
16576
shlibpath_overrides_runpath=no
16577
hardcode_into_libs=yes
16586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16587
soname_spec='${libname}${release}${shared_ext}$major'
16588
shlibpath_var=LD_LIBRARY_PATH
16589
hardcode_into_libs=yes
16592
hpux9* | hpux10* | hpux11*)
16593
# Give a soname corresponding to the major version so that dld.sl refuses to
16594
# link against other versions.
16598
case "$host_cpu" in
16601
hardcode_into_libs=yes
16602
dynamic_linker="$host_os dld.so"
16603
shlibpath_var=LD_LIBRARY_PATH
16604
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16605
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606
soname_spec='${libname}${release}${shared_ext}$major'
16607
if test "X$HPUX_IA64_MODE" = X32; then
16608
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16610
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16612
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16616
hardcode_into_libs=yes
16617
dynamic_linker="$host_os dld.sl"
16618
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16619
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16621
soname_spec='${libname}${release}${shared_ext}$major'
16622
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16623
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16627
dynamic_linker="$host_os dld.sl"
16628
shlibpath_var=SHLIB_PATH
16629
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631
soname_spec='${libname}${release}${shared_ext}$major'
16634
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16635
postinstall_cmds='chmod 555 $lib'
16638
irix5* | irix6* | nonstopux*)
16640
nonstopux*) version_type=nonstopux ;;
16642
if test "$lt_cv_prog_gnu_ld" = yes; then
16650
soname_spec='${libname}${release}${shared_ext}$major'
16651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16653
irix5* | nonstopux*)
16654
libsuff= shlibsuff=
16657
case $LD in # libtool.m4 will add one of these switches to LD
16658
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16659
libsuff= shlibsuff= libmagic=32-bit;;
16660
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16661
libsuff=32 shlibsuff=N32 libmagic=N32;;
16662
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16663
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16664
*) libsuff= shlibsuff= libmagic=never-match;;
16668
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16669
shlibpath_overrides_runpath=no
16670
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16671
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16672
hardcode_into_libs=yes
16675
# No shared lib support for Linux oldld, aout, or coff.
16676
linux*oldld* | linux*aout* | linux*coff*)
16680
# This must be Linux ELF.
16685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16686
soname_spec='${libname}${release}${shared_ext}$major'
16687
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16688
shlibpath_var=LD_LIBRARY_PATH
16689
shlibpath_overrides_runpath=no
16690
# This implies no fast_install, which is unacceptable.
16691
# Some rework will be needed to allow for fast_install
16692
# before this can be enabled.
16693
hardcode_into_libs=yes
16695
# Append ld.so.conf contents to the search path
16696
if test -f /etc/ld.so.conf; then
16697
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16698
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16701
# We used to test for /lib/ld.so.1 and disable shared libraries on
16702
# powerpc, because MkLinux only supported shared libraries with the
16703
# GNU dynamic linker. Since this was broken with cross compilers,
16704
# most powerpc-linux boxes support dynamic linking these days and
16705
# people can always --disable-shared, the test was removed, and we
16706
# assume the GNU/Linux dynamic linker is in use.
16707
dynamic_linker='GNU/Linux ld.so'
16714
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16715
soname_spec='${libname}${release}${shared_ext}$major'
16716
shlibpath_var=LD_LIBRARY_PATH
16717
shlibpath_overrides_runpath=no
16718
hardcode_into_libs=yes
16719
dynamic_linker='NetBSD ld.elf_so'
16726
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16727
soname_spec='${libname}${release}${shared_ext}$major'
16728
shlibpath_var=LD_LIBRARY_PATH
16729
shlibpath_overrides_runpath=no
16730
hardcode_into_libs=yes
16731
dynamic_linker='GNU ld.so'
16738
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16739
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16740
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16741
dynamic_linker='NetBSD (a.out) ld.so'
16743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16744
soname_spec='${libname}${release}${shared_ext}$major'
16745
dynamic_linker='NetBSD ld.elf_so'
16747
shlibpath_var=LD_LIBRARY_PATH
16748
shlibpath_overrides_runpath=yes
16749
hardcode_into_libs=yes
16754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16755
shlibpath_var=LD_LIBRARY_PATH
16756
shlibpath_overrides_runpath=yes
16763
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764
soname_spec='${libname}${release}${shared_ext}$major'
16765
shlibpath_var=LD_LIBRARY_PATH
16766
shlibpath_overrides_runpath=yes
16773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16774
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16775
shlibpath_var=LD_LIBRARY_PATH
16776
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16778
openbsd2.[89] | openbsd2.[89].*)
16779
shlibpath_overrides_runpath=no
16782
shlibpath_overrides_runpath=yes
16786
shlibpath_overrides_runpath=yes
16791
libname_spec='$name'
16794
library_names_spec='$libname${shared_ext} $libname.a'
16795
dynamic_linker='OS/2 ld.exe'
16796
shlibpath_var=LIBPATH
16799
osf3* | osf4* | osf5*)
16803
soname_spec='${libname}${release}${shared_ext}$major'
16804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16805
shlibpath_var=LD_LIBRARY_PATH
16806
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16807
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16812
soname_spec='${libname}${release}${shared_ext}$major'
16813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814
shlibpath_var=LD_LIBRARY_PATH
16821
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822
soname_spec='${libname}${release}${shared_ext}$major'
16823
shlibpath_var=LD_LIBRARY_PATH
16824
shlibpath_overrides_runpath=yes
16825
hardcode_into_libs=yes
16826
# ldd complains unless libraries are executable
16827
postinstall_cmds='chmod +x $lib'
16832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16833
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16834
shlibpath_var=LD_LIBRARY_PATH
16835
shlibpath_overrides_runpath=yes
16836
if test "$with_gnu_ld" = yes; then
16842
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845
soname_spec='${libname}${release}${shared_ext}$major'
16846
shlibpath_var=LD_LIBRARY_PATH
16847
case $host_vendor in
16849
shlibpath_overrides_runpath=no
16851
export_dynamic_flag_spec='${wl}-Blargedynsym'
16852
runpath_var=LD_RUN_PATH
16860
shlibpath_overrides_runpath=no
16861
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16867
if test -d /usr/nec ;then
16869
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16870
soname_spec='$libname${shared_ext}.$major'
16871
shlibpath_var=LD_LIBRARY_PATH
16877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878
soname_spec='${libname}${release}${shared_ext}$major'
16879
shlibpath_var=LD_LIBRARY_PATH
16886
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16887
echo "${ECHO_T}$dynamic_linker" >&6
16888
test "$dynamic_linker" = no && can_build_shared=no
16890
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16891
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16892
hardcode_action_F77=
16893
if test -n "$hardcode_libdir_flag_spec_F77" || \
16894
test -n "$runpath_var F77" || \
16895
test "X$hardcode_automatic_F77"="Xyes" ; then
16897
# We can hardcode non-existant directories.
16898
if test "$hardcode_direct_F77" != no &&
16899
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16900
# have to relink, otherwise we might link with an installed library
16901
# when we should be linking with a yet-to-be-installed one
16902
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16903
test "$hardcode_minus_L_F77" != no; then
16904
# Linking always hardcodes the temporary library directory.
16905
hardcode_action_F77=relink
16907
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16908
hardcode_action_F77=immediate
16911
# We cannot hardcode anything, or else we can only hardcode existing
16913
hardcode_action_F77=unsupported
16915
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16916
echo "${ECHO_T}$hardcode_action_F77" >&6
16918
if test "$hardcode_action_F77" = relink; then
16919
# Fast installation is not supported
16920
enable_fast_install=no
16921
elif test "$shlibpath_overrides_runpath" = yes ||
16922
test "$enable_shared" = no; then
16923
# Fast installation is not necessary
16924
enable_fast_install=needless
16929
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16930
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16931
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16932
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16933
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16934
echo "$as_me:$LINENO: result: yes" >&5
16935
echo "${ECHO_T}yes" >&6
16937
# FIXME - insert some real tests, host_os isn't really good enough
16940
if test -n "$STRIP" ; then
16941
striplib="$STRIP -x"
16942
echo "$as_me:$LINENO: result: yes" >&5
16943
echo "${ECHO_T}yes" >&6
16945
echo "$as_me:$LINENO: result: no" >&5
16946
echo "${ECHO_T}no" >&6
16950
echo "$as_me:$LINENO: result: no" >&5
16951
echo "${ECHO_T}no" >&6
16958
# The else clause should only fire when bootstrapping the
16959
# libtool distribution, otherwise you forgot to ship ltmain.sh
16960
# with your package, and you will get complaints that there are
16961
# no rules to generate ltmain.sh.
16962
if test -f "$ltmain"; then
16963
# See if we are running on zsh, and set the options which allow our commands through
16964
# without removal of \ escapes.
16965
if test -n "${ZSH_VERSION+set}" ; then
16966
setopt NO_GLOB_SUBST
16968
# Now quote all the things that may contain metacharacters while being
16969
# careful not to overquote the AC_SUBSTed values. We take copies of the
16970
# variables and quote the copies for generation of the libtool script.
16971
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16973
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16974
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16975
deplibs_check_method reload_flag reload_cmds need_locks \
16976
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16977
lt_cv_sys_global_symbol_to_c_name_address \
16978
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16979
old_postinstall_cmds old_postuninstall_cmds \
16983
lt_prog_compiler_wl_F77 \
16984
lt_prog_compiler_pic_F77 \
16985
lt_prog_compiler_static_F77 \
16986
lt_prog_compiler_no_builtin_flag_F77 \
16987
export_dynamic_flag_spec_F77 \
16988
thread_safe_flag_spec_F77 \
16989
whole_archive_flag_spec_F77 \
16990
enable_shared_with_static_runtimes_F77 \
16991
old_archive_cmds_F77 \
16992
old_archive_from_new_cmds_F77 \
16993
predep_objects_F77 \
16994
postdep_objects_F77 \
16997
compiler_lib_search_path_F77 \
16999
archive_expsym_cmds_F77 \
17000
postinstall_cmds_F77 \
17001
postuninstall_cmds_F77 \
17002
old_archive_from_expsyms_cmds_F77 \
17003
allow_undefined_flag_F77 \
17004
no_undefined_flag_F77 \
17005
export_symbols_cmds_F77 \
17006
hardcode_libdir_flag_spec_F77 \
17007
hardcode_libdir_flag_spec_ld_F77 \
17008
hardcode_libdir_separator_F77 \
17009
hardcode_automatic_F77 \
17011
module_expsym_cmds_F77 \
17012
lt_cv_prog_compiler_c_o_F77 \
17013
exclude_expsyms_F77 \
17014
include_expsyms_F77; do
17017
old_archive_cmds_F77 | \
17018
old_archive_from_new_cmds_F77 | \
17019
archive_cmds_F77 | \
17020
archive_expsym_cmds_F77 | \
17021
module_cmds_F77 | \
17022
module_expsym_cmds_F77 | \
17023
old_archive_from_expsyms_cmds_F77 | \
17024
export_symbols_cmds_F77 | \
17025
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17026
postinstall_cmds | postuninstall_cmds | \
17027
old_postinstall_cmds | old_postuninstall_cmds | \
17028
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17029
# Double-quote double-evaled strings.
17030
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17033
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17039
*'\$0 --fallback-echo"')
17040
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17046
cat <<__EOF__ >> "$cfgfile"
17047
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17049
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17051
# Shell to use when invoking shell scripts.
17054
# Whether or not to build shared libraries.
17055
build_libtool_libs=$enable_shared
17057
# Whether or not to build static libraries.
17058
build_old_libs=$enable_static
17060
# Whether or not to add -lc for building shared libraries.
17061
build_libtool_need_lc=$archive_cmds_need_lc_F77
17063
# Whether or not to disallow shared libs when runtime libs are static
17064
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17066
# Whether or not to optimize for fast installation.
17067
fast_install=$enable_fast_install
17070
host_alias=$host_alias
17073
# An echo program that does not interpret backslashes.
17078
AR_FLAGS=$lt_AR_FLAGS
17083
# A language-specific compiler.
17084
CC=$lt_compiler_F77
17086
# Is the compiler the GNU C compiler?
17092
# The linker used to build libraries.
17095
# Whether we need hard or soft links.
17098
# A BSD-compatible nm program.
17101
# A symbol stripping program
17104
# Used to examine libraries when file_magic_cmd begins "file"
17105
MAGIC_CMD=$MAGIC_CMD
17107
# Used on cygwin: DLL creation program.
17110
# Used on cygwin: object dumper.
17113
# Used on cygwin: assembler.
17116
# The name of the directory that contains temporary libtool files.
17119
# How to create reloadable object files.
17120
reload_flag=$lt_reload_flag
17121
reload_cmds=$lt_reload_cmds
17123
# How to pass a linker flag through the compiler.
17124
wl=$lt_lt_prog_compiler_wl_F77
17126
# Object file suffix (normally "o").
17127
objext="$ac_objext"
17129
# Old archive suffix (normally "a").
17132
# Shared library suffix (normally ".so").
17133
shrext_cmds='$shrext_cmds'
17135
# Executable file suffix (normally "").
17138
# Additional compiler flags for building library objects.
17139
pic_flag=$lt_lt_prog_compiler_pic_F77
17142
# What is the maximum length of a command?
17143
max_cmd_len=$lt_cv_sys_max_cmd_len
17145
# Does compiler simultaneously support -c and -o options?
17146
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17148
# Must we lock files when doing compilation ?
17149
need_locks=$lt_need_locks
17151
# Do we need the lib prefix for modules?
17152
need_lib_prefix=$need_lib_prefix
17154
# Do we need a version for libraries?
17155
need_version=$need_version
17157
# Whether dlopen is supported.
17158
dlopen_support=$enable_dlopen
17160
# Whether dlopen of programs is supported.
17161
dlopen_self=$enable_dlopen_self
17163
# Whether dlopen of statically linked programs is supported.
17164
dlopen_self_static=$enable_dlopen_self_static
17166
# Compiler flag to prevent dynamic linking.
17167
link_static_flag=$lt_lt_prog_compiler_static_F77
17169
# Compiler flag to turn off builtin functions.
17170
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17172
# Compiler flag to allow reflexive dlopens.
17173
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17175
# Compiler flag to generate shared objects directly from archives.
17176
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17178
# Compiler flag to generate thread-safe objects.
17179
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17181
# Library versioning type.
17182
version_type=$version_type
17184
# Format of library name prefix.
17185
libname_spec=$lt_libname_spec
17187
# List of archive names. First name is the real one, the rest are links.
17188
# The last name is the one that the linker finds with -lNAME.
17189
library_names_spec=$lt_library_names_spec
17191
# The coded name of the library, if different from the real name.
17192
soname_spec=$lt_soname_spec
17194
# Commands used to build and install an old-style archive.
17196
old_archive_cmds=$lt_old_archive_cmds_F77
17197
old_postinstall_cmds=$lt_old_postinstall_cmds
17198
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17200
# Create an old-style archive from a shared archive.
17201
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17203
# Create a temporary old-style archive to link instead of a shared archive.
17204
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17206
# Commands used to build and install a shared archive.
17207
archive_cmds=$lt_archive_cmds_F77
17208
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17209
postinstall_cmds=$lt_postinstall_cmds
17210
postuninstall_cmds=$lt_postuninstall_cmds
17212
# Commands used to build a loadable module (assumed same as above if empty)
17213
module_cmds=$lt_module_cmds_F77
17214
module_expsym_cmds=$lt_module_expsym_cmds_F77
17216
# Commands to strip libraries.
17217
old_striplib=$lt_old_striplib
17218
striplib=$lt_striplib
17220
# Dependencies to place before the objects being linked to create a
17222
predep_objects=$lt_predep_objects_F77
17224
# Dependencies to place after the objects being linked to create a
17226
postdep_objects=$lt_postdep_objects_F77
17228
# Dependencies to place before the objects being linked to create a
17230
predeps=$lt_predeps_F77
17232
# Dependencies to place after the objects being linked to create a
17234
postdeps=$lt_postdeps_F77
17236
# The library search path used internally by the compiler when linking
17237
# a shared library.
17238
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17240
# Method to check whether dependent libraries are shared objects.
17241
deplibs_check_method=$lt_deplibs_check_method
17243
# Command to use when deplibs_check_method == file_magic.
17244
file_magic_cmd=$lt_file_magic_cmd
17246
# Flag that allows shared libraries with undefined symbols to be built.
17247
allow_undefined_flag=$lt_allow_undefined_flag_F77
17249
# Flag that forces no undefined symbols.
17250
no_undefined_flag=$lt_no_undefined_flag_F77
17252
# Commands used to finish a libtool library installation in a directory.
17253
finish_cmds=$lt_finish_cmds
17255
# Same as above, but a single script fragment to be evaled but not shown.
17256
finish_eval=$lt_finish_eval
17258
# Take the output of nm and produce a listing of raw symbols and C names.
17259
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17261
# Transform the output of nm in a proper C declaration
17262
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17264
# Transform the output of nm in a C name address pair
17265
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17267
# This is the shared library runtime path variable.
17268
runpath_var=$runpath_var
17270
# This is the shared library path variable.
17271
shlibpath_var=$shlibpath_var
17273
# Is shlibpath searched before the hard-coded library search path?
17274
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17276
# How to hardcode a shared library path into an executable.
17277
hardcode_action=$hardcode_action_F77
17279
# Whether we should hardcode library paths into libraries.
17280
hardcode_into_libs=$hardcode_into_libs
17282
# Flag to hardcode \$libdir into a binary during linking.
17283
# This must work even if \$libdir does not exist.
17284
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17286
# If ld is used when linking, flag to hardcode \$libdir into
17287
# a binary during linking. This must work even if \$libdir does
17289
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17291
# Whether we need a single -rpath flag with a separated argument.
17292
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17294
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17295
# resulting binary.
17296
hardcode_direct=$hardcode_direct_F77
17298
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17299
# resulting binary.
17300
hardcode_minus_L=$hardcode_minus_L_F77
17302
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17303
# the resulting binary.
17304
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17306
# Set to yes if building a shared library automatically hardcodes DIR into the library
17307
# and all subsequent libraries and executables linked against it.
17308
hardcode_automatic=$hardcode_automatic_F77
17310
# Variables whose values should be saved in libtool wrapper scripts and
17311
# restored at relink time.
17312
variables_saved_for_relink="$variables_saved_for_relink"
17314
# Whether libtool must link a program against all its dependency libraries.
17315
link_all_deplibs=$link_all_deplibs_F77
17317
# Compile-time system search path for libraries
17318
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17320
# Run-time system search path for libraries
17321
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17323
# Fix the shell variable \$srcfile for the compiler.
17324
fix_srcfile_path="$fix_srcfile_path_F77"
17326
# Set to yes if exported symbols are required.
17327
always_export_symbols=$always_export_symbols_F77
17329
# The commands to list exported symbols.
17330
export_symbols_cmds=$lt_export_symbols_cmds_F77
17332
# The commands to extract the exported symbol list from a shared archive.
17333
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17335
# Symbols that should not be listed in the preloaded symbols.
17336
exclude_expsyms=$lt_exclude_expsyms_F77
17338
# Symbols that must always be exported.
17339
include_expsyms=$lt_include_expsyms_F77
17341
# ### END LIBTOOL TAG CONFIG: $tagname
17347
# If there is no Makefile yet, we rely on a make rule to execute
17348
# `config.status --recheck' to rerun these tests and create the
17349
# libtool script then.
17350
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17351
if test -f "$ltmain_in"; then
17352
test -f Makefile && make "$ltmain"
17358
ac_cpp='$CPP $CPPFLAGS'
17359
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17360
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17361
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17371
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17375
# Source file extension for Java test sources.
17378
# Object file extension for compiled Java test sources.
17382
# Code to be used in simple compile tests
17383
lt_simple_compile_test_code="class foo {}\n"
17385
# Code to be used in simple link tests
17386
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17388
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17390
# If no C compiler was specified, use CC.
17393
# Allow CC to be a program name with arguments.
17397
# Allow CC to be a program name with arguments.
17403
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17404
archive_cmds_need_lc_GCJ=no
17407
lt_prog_compiler_no_builtin_flag_GCJ=
17409
if test "$GCC" = yes; then
17410
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17413
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17414
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17415
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17416
echo $ECHO_N "(cached) $ECHO_C" >&6
17418
lt_cv_prog_compiler_rtti_exceptions=no
17419
ac_outfile=conftest.$ac_objext
17420
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17421
lt_compiler_flag="-fno-rtti -fno-exceptions"
17422
# Insert the option either (1) after the last *FLAGS variable, or
17423
# (2) before a word containing "conftest.", or (3) at the end.
17424
# Note that $ac_compile itself does not contain backslashes and begins
17425
# with a dollar sign (not a hyphen), so the echo should work correctly.
17426
# The option is referenced via a variable to avoid confusing sed.
17427
lt_compile=`echo "$ac_compile" | $SED \
17428
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17429
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17430
-e 's:$: $lt_compiler_flag:'`
17431
(eval echo "\"\$as_me:17431: $lt_compile\"" >&5)
17432
(eval "$lt_compile" 2>conftest.err)
17434
cat conftest.err >&5
17435
echo "$as_me:17435: \$? = $ac_status" >&5
17436
if (exit $ac_status) && test -s "$ac_outfile"; then
17437
# The compiler can only warn and ignore the option if not recognized
17438
# So say no if there are warnings
17439
if test ! -s conftest.err; then
17440
lt_cv_prog_compiler_rtti_exceptions=yes
17446
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17447
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17449
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17450
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17457
lt_prog_compiler_wl_GCJ=
17458
lt_prog_compiler_pic_GCJ=
17459
lt_prog_compiler_static_GCJ=
17461
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17462
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17464
if test "$GCC" = yes; then
17465
lt_prog_compiler_wl_GCJ='-Wl,'
17466
lt_prog_compiler_static_GCJ='-static'
17470
# All AIX code is PIC.
17471
if test "$host_cpu" = ia64; then
17472
# AIX 5 now supports IA64 processor
17473
lt_prog_compiler_static_GCJ='-Bstatic'
17478
# FIXME: we need at least 68020 code to build shared libraries, but
17479
# adding the `-m68020' flag to GCC prevents building anything better,
17481
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17484
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17485
# PIC is the default for these OSes.
17488
mingw* | pw32* | os2*)
17489
# This hack is so that the source file can tell whether it is being
17490
# built for inclusion in a dll (and should export symbols for example).
17491
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17494
darwin* | rhapsody*)
17495
# PIC is the default on this platform
17496
# Common symbols not allowed in MH_DYLIB files
17497
lt_prog_compiler_pic_GCJ='-fno-common'
17501
# Just because we use GCC doesn't mean we suddenly get shared libraries
17502
# on systems that don't support them.
17503
lt_prog_compiler_can_build_shared_GCJ=no
17508
if test -d /usr/nec; then
17509
lt_prog_compiler_pic_GCJ=-Kconform_pic
17514
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17515
# not for PA HP-UX.
17516
case "$host_cpu" in
17521
lt_prog_compiler_pic_GCJ='-fPIC'
17527
lt_prog_compiler_pic_GCJ='-fPIC'
17531
# PORTME Check for flag to pass linker flags through the system compiler.
17534
lt_prog_compiler_wl_GCJ='-Wl,'
17535
if test "$host_cpu" = ia64; then
17536
# AIX 5 now supports IA64 processor
17537
lt_prog_compiler_static_GCJ='-Bstatic'
17539
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17543
mingw* | pw32* | os2*)
17544
# This hack is so that the source file can tell whether it is being
17545
# built for inclusion in a dll (and should export symbols for example).
17546
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17549
hpux9* | hpux10* | hpux11*)
17550
lt_prog_compiler_wl_GCJ='-Wl,'
17551
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17552
# not for PA HP-UX.
17553
case "$host_cpu" in
17558
lt_prog_compiler_pic_GCJ='+Z'
17561
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17562
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17565
irix5* | irix6* | nonstopux*)
17566
lt_prog_compiler_wl_GCJ='-Wl,'
17567
# PIC (with -KPIC) is the default.
17568
lt_prog_compiler_static_GCJ='-non_shared'
17572
lt_prog_compiler_pic_GCJ='-KPIC'
17573
lt_prog_compiler_static_GCJ='-Bstatic'
17579
lt_prog_compiler_wl_GCJ='-Wl,'
17580
lt_prog_compiler_pic_GCJ='-KPIC'
17581
lt_prog_compiler_static_GCJ='-static'
17584
lt_prog_compiler_wl_GCJ='-Wl,'
17585
# All Alpha code is PIC.
17586
lt_prog_compiler_static_GCJ='-non_shared'
17591
osf3* | osf4* | osf5*)
17592
lt_prog_compiler_wl_GCJ='-Wl,'
17593
# All OSF/1 code is PIC.
17594
lt_prog_compiler_static_GCJ='-non_shared'
17598
lt_prog_compiler_pic_GCJ='-Kpic'
17599
lt_prog_compiler_static_GCJ='-dn'
17603
lt_prog_compiler_wl_GCJ='-Wl,'
17604
lt_prog_compiler_pic_GCJ='-KPIC'
17605
lt_prog_compiler_static_GCJ='-Bstatic'
17609
lt_prog_compiler_wl_GCJ='-Qoption ld '
17610
lt_prog_compiler_pic_GCJ='-PIC'
17611
lt_prog_compiler_static_GCJ='-Bstatic'
17614
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17615
lt_prog_compiler_wl_GCJ='-Wl,'
17616
lt_prog_compiler_pic_GCJ='-KPIC'
17617
lt_prog_compiler_static_GCJ='-Bstatic'
17621
if test -d /usr/nec ;then
17622
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17623
lt_prog_compiler_static_GCJ='-Bstatic'
17628
lt_prog_compiler_pic_GCJ='-pic'
17629
lt_prog_compiler_static_GCJ='-Bstatic'
17633
lt_prog_compiler_can_build_shared_GCJ=no
17638
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17639
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17642
# Check to make sure the PIC flag actually works.
17644
if test -n "$lt_prog_compiler_pic_GCJ"; then
17646
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17647
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17648
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17649
echo $ECHO_N "(cached) $ECHO_C" >&6
17651
lt_prog_compiler_pic_works_GCJ=no
17652
ac_outfile=conftest.$ac_objext
17653
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17654
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17655
# Insert the option either (1) after the last *FLAGS variable, or
17656
# (2) before a word containing "conftest.", or (3) at the end.
17657
# Note that $ac_compile itself does not contain backslashes and begins
17658
# with a dollar sign (not a hyphen), so the echo should work correctly.
17659
# The option is referenced via a variable to avoid confusing sed.
17660
lt_compile=`echo "$ac_compile" | $SED \
17661
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17662
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17663
-e 's:$: $lt_compiler_flag:'`
17664
(eval echo "\"\$as_me:17664: $lt_compile\"" >&5)
17665
(eval "$lt_compile" 2>conftest.err)
17667
cat conftest.err >&5
17668
echo "$as_me:17668: \$? = $ac_status" >&5
17669
if (exit $ac_status) && test -s "$ac_outfile"; then
17670
# The compiler can only warn and ignore the option if not recognized
17671
# So say no if there are warnings
17672
if test ! -s conftest.err; then
17673
lt_prog_compiler_pic_works_GCJ=yes
17679
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17680
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17682
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17683
case $lt_prog_compiler_pic_GCJ in
17685
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17688
lt_prog_compiler_pic_GCJ=
17689
lt_prog_compiler_can_build_shared_GCJ=no
17694
# For platforms which do not support PIC, -DPIC is meaningless:
17696
lt_prog_compiler_pic_GCJ=
17699
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17703
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17704
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17705
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17706
echo $ECHO_N "(cached) $ECHO_C" >&6
17708
lt_cv_prog_compiler_c_o_GCJ=no
17709
$rm -r conftest 2>/dev/null
17713
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17715
lt_compiler_flag="-o out/conftest2.$ac_objext"
17716
# Insert the option either (1) after the last *FLAGS variable, or
17717
# (2) before a word containing "conftest.", or (3) at the end.
17718
# Note that $ac_compile itself does not contain backslashes and begins
17719
# with a dollar sign (not a hyphen), so the echo should work correctly.
17720
lt_compile=`echo "$ac_compile" | $SED \
17721
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17722
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17723
-e 's:$: $lt_compiler_flag:'`
17724
(eval echo "\"\$as_me:17724: $lt_compile\"" >&5)
17725
(eval "$lt_compile" 2>out/conftest.err)
17727
cat out/conftest.err >&5
17728
echo "$as_me:17728: \$? = $ac_status" >&5
17729
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17731
# The compiler can only warn and ignore the option if not recognized
17732
# So say no if there are warnings
17733
if test ! -s out/conftest.err; then
17734
lt_cv_prog_compiler_c_o_GCJ=yes
17739
# SGI C++ compiler will create directory out/ii_files/ for
17740
# template instantiation
17741
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17742
$rm out/* && rmdir out
17748
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17749
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17752
hard_links="nottested"
17753
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17754
# do not overwrite the value of need_locks provided by the user
17755
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17756
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17759
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17761
ln conftest.a conftest.b 2>&5 || hard_links=no
17762
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17763
echo "$as_me:$LINENO: result: $hard_links" >&5
17764
echo "${ECHO_T}$hard_links" >&6
17765
if test "$hard_links" = no; then
17766
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17767
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17774
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17775
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17778
allow_undefined_flag_GCJ=
17779
enable_shared_with_static_runtimes_GCJ=no
17781
archive_expsym_cmds_GCJ=
17782
old_archive_From_new_cmds_GCJ=
17783
old_archive_from_expsyms_cmds_GCJ=
17784
export_dynamic_flag_spec_GCJ=
17785
whole_archive_flag_spec_GCJ=
17786
thread_safe_flag_spec_GCJ=
17787
hardcode_libdir_flag_spec_GCJ=
17788
hardcode_libdir_flag_spec_ld_GCJ=
17789
hardcode_libdir_separator_GCJ=
17790
hardcode_direct_GCJ=no
17791
hardcode_minus_L_GCJ=no
17792
hardcode_shlibpath_var_GCJ=unsupported
17793
link_all_deplibs_GCJ=unknown
17794
hardcode_automatic_GCJ=no
17796
module_expsym_cmds_GCJ=
17797
always_export_symbols_GCJ=no
17798
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17799
# include_expsyms should be a list of space-separated symbols to be *always*
17800
# included in the symbol list
17801
include_expsyms_GCJ=
17802
# exclude_expsyms can be an extended regexp of symbols to exclude
17803
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17804
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17805
# as well as any symbol that contains `d'.
17806
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17807
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17808
# platforms (ab)use it in PIC code, but their linkers get confused if
17809
# the symbol is explicitly referenced. Since portable code cannot
17810
# rely on this symbol name, it's probably fine to never include it in
17811
# preloaded symbol tables.
17812
extract_expsyms_cmds=
17815
cygwin* | mingw* | pw32*)
17816
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17817
# When not using gcc, we currently assume that we are using
17818
# Microsoft Visual C++.
17819
if test "$GCC" != yes; then
17829
if test "$with_gnu_ld" = yes; then
17830
# If archive_cmds runs LD, not CC, wlarc should be empty
17833
# See if GNU ld supports shared libraries.
17835
aix3* | aix4* | aix5*)
17836
# On AIX/PPC, the GNU linker is very broken
17837
if test "$host_cpu" != ia64; then
17841
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17842
*** to be unable to reliably create shared libraries on AIX.
17843
*** Therefore, libtool is disabling shared libraries support. If you
17844
*** really care for shared libraries, you may want to modify your PATH
17845
*** so that a non-GNU linker is found, and then restart.
17852
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)'
17853
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17854
hardcode_minus_L_GCJ=yes
17856
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17857
# that the semantics of dynamic libraries on AmigaOS, at least up
17858
# to version 4, is to share data among multiple programs linked
17859
# with the same dynamic library. Since this doesn't match the
17860
# behavior of shared libraries on other platforms, we can't use
17866
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17867
allow_undefined_flag_GCJ=unsupported
17868
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17869
# support --undefined. This deserves some investigation. FIXME
17870
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17876
cygwin* | mingw* | pw32*)
17877
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17878
# as there is no search path for DLLs.
17879
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17880
allow_undefined_flag_GCJ=unsupported
17881
always_export_symbols_GCJ=no
17882
enable_shared_with_static_runtimes_GCJ=yes
17883
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17885
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17886
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17887
# If the export-symbols file already is a .def file (1st line
17888
# is EXPORTS), use it as is; otherwise, prepend...
17889
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17890
cp $export_symbols $output_objdir/$soname.def;
17892
echo EXPORTS > $output_objdir/$soname.def;
17893
cat $export_symbols >> $output_objdir/$soname.def;
17895
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17901
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17902
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17903
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17906
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17907
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17912
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17916
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17917
*** create shared libraries on Solaris systems. Therefore, libtool
17918
*** is disabling shared libraries support. We urge you to upgrade GNU
17919
*** binutils to release 2.9.1 or newer. Another option is to modify
17920
*** your PATH or compiler configuration so that the native linker is
17921
*** used, and then restart.
17924
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17925
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17926
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17933
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17935
hardcode_direct_GCJ=yes
17936
hardcode_shlibpath_var_GCJ=no
17940
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17941
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17942
archive_cmds_GCJ="$tmp_archive_cmds"
17943
supports_anon_versioning=no
17944
case `$LD -v 2>/dev/null` in
17945
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17946
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17947
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17948
*\ 2.11.*) ;; # other 2.11 versions
17949
*) supports_anon_versioning=yes ;;
17951
if test $supports_anon_versioning = yes; then
17952
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17953
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17954
$echo "local: *; };" >> $output_objdir/$libname.ver~
17955
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17957
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17959
link_all_deplibs_GCJ=no
17966
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17967
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17968
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17975
if test "$ld_shlibs_GCJ" = yes; then
17976
runpath_var=LD_RUN_PATH
17977
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17978
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17979
# ancient GNU ld didn't support --whole-archive et. al.
17980
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17981
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17983
whole_archive_flag_spec_GCJ=
17987
# PORTME fill in a description of your system's linker (not GNU ld)
17990
allow_undefined_flag_GCJ=unsupported
17991
always_export_symbols_GCJ=yes
17992
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'
17993
# Note: this linker hardcodes the directories in LIBPATH if there
17994
# are no directories specified by -L.
17995
hardcode_minus_L_GCJ=yes
17996
if test "$GCC" = yes && test -z "$link_static_flag"; then
17997
# Neither direct hardcoding nor static linking is supported with a
17999
hardcode_direct_GCJ=unsupported
18004
if test "$host_cpu" = ia64; then
18005
# On IA64, the linker does run time linking by default, so we don't
18006
# have to do anything special.
18007
aix_use_runtimelinking=no
18008
exp_sym_flag='-Bexport'
18011
# If we're using GNU nm, then we don't want the "-C" option.
18012
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18013
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18014
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'
18016
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'
18018
aix_use_runtimelinking=no
18020
# Test if we are trying to use run time linking or normal
18021
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18022
# need to do runtime linking.
18023
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18024
for ld_flag in $LDFLAGS; do
18025
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18026
aix_use_runtimelinking=yes
18032
exp_sym_flag='-bexport'
18033
no_entry_flag='-bnoentry'
18036
# When large executables or shared objects are built, AIX ld can
18037
# have problems creating the table of contents. If linking a library
18038
# or program results in "error TOC overflow" add -mminimal-toc to
18039
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18040
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18042
archive_cmds_GCJ=''
18043
hardcode_direct_GCJ=yes
18044
hardcode_libdir_separator_GCJ=':'
18045
link_all_deplibs_GCJ=yes
18047
if test "$GCC" = yes; then
18048
case $host_os in aix4.012|aix4.012.*)
18049
# We only want to do this on AIX 4.2 and lower, the check
18050
# below for broken collect2 doesn't work under 4.3+
18051
collect2name=`${CC} -print-prog-name=collect2`
18052
if test -f "$collect2name" && \
18053
strings "$collect2name" | grep resolve_lib_name >/dev/null
18055
# We have reworked collect2
18056
hardcode_direct_GCJ=yes
18058
# We have old collect2
18059
hardcode_direct_GCJ=unsupported
18060
# It fails to find uninstalled libraries when the uninstalled
18061
# path is not listed in the libpath. Setting hardcode_minus_L
18062
# to unsupported forces relinking
18063
hardcode_minus_L_GCJ=yes
18064
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065
hardcode_libdir_separator_GCJ=
18068
shared_flag='-shared'
18071
if test "$host_cpu" = ia64; then
18072
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18073
# chokes on -Wl,-G. The following line is correct:
18076
if test "$aix_use_runtimelinking" = yes; then
18077
shared_flag='${wl}-G'
18079
shared_flag='${wl}-bM:SRE'
18084
# It seems that -bexpall does not export symbols beginning with
18085
# underscore (_), so it is better to generate a list of symbols to export.
18086
always_export_symbols_GCJ=yes
18087
if test "$aix_use_runtimelinking" = yes; then
18088
# Warning - without using the other runtime loading flags (-brtl),
18089
# -berok will link without error, but may produce a broken library.
18090
allow_undefined_flag_GCJ='-berok'
18091
# Determine the default libpath from the value encoded in an empty executable.
18092
cat >conftest.$ac_ext <<_ACEOF
18095
cat confdefs.h >>conftest.$ac_ext
18096
cat >>conftest.$ac_ext <<_ACEOF
18097
/* end confdefs.h. */
18107
rm -f conftest.$ac_objext conftest$ac_exeext
18108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18109
(eval $ac_link) 2>conftest.er1
18111
grep -v '^ *+' conftest.er1 >conftest.err
18113
cat conftest.err >&5
18114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115
(exit $ac_status); } &&
18116
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18117
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118
(eval $ac_try) 2>&5
18120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121
(exit $ac_status); }; } &&
18122
{ ac_try='test -s conftest$ac_exeext'
18123
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124
(eval $ac_try) 2>&5
18126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127
(exit $ac_status); }; }; then
18129
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18131
# Check for a 64-bit object if we didn't find anything.
18132
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; }
18135
echo "$as_me: failed program was:" >&5
18136
sed 's/^/| /' conftest.$ac_ext >&5
18139
rm -f conftest.err conftest.$ac_objext \
18140
conftest$ac_exeext conftest.$ac_ext
18141
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18143
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18144
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"
18146
if test "$host_cpu" = ia64; then
18147
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18148
allow_undefined_flag_GCJ="-z nodefs"
18149
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"
18151
# Determine the default libpath from the value encoded in an empty executable.
18152
cat >conftest.$ac_ext <<_ACEOF
18155
cat confdefs.h >>conftest.$ac_ext
18156
cat >>conftest.$ac_ext <<_ACEOF
18157
/* end confdefs.h. */
18167
rm -f conftest.$ac_objext conftest$ac_exeext
18168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18169
(eval $ac_link) 2>conftest.er1
18171
grep -v '^ *+' conftest.er1 >conftest.err
18173
cat conftest.err >&5
18174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175
(exit $ac_status); } &&
18176
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18177
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178
(eval $ac_try) 2>&5
18180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181
(exit $ac_status); }; } &&
18182
{ ac_try='test -s conftest$ac_exeext'
18183
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184
(eval $ac_try) 2>&5
18186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187
(exit $ac_status); }; }; then
18189
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18191
# Check for a 64-bit object if we didn't find anything.
18192
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; }
18195
echo "$as_me: failed program was:" >&5
18196
sed 's/^/| /' conftest.$ac_ext >&5
18199
rm -f conftest.err conftest.$ac_objext \
18200
conftest$ac_exeext conftest.$ac_ext
18201
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18203
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18204
# Warning - without using the other run time loading flags,
18205
# -berok will link without error, but may produce a broken library.
18206
no_undefined_flag_GCJ=' ${wl}-bernotok'
18207
allow_undefined_flag_GCJ=' ${wl}-berok'
18208
# -bexpall does not export symbols beginning with underscore (_)
18209
always_export_symbols_GCJ=yes
18210
# Exported symbols can be pulled into shared objects from archives
18211
whole_archive_flag_spec_GCJ=' '
18212
archive_cmds_need_lc_GCJ=yes
18213
# This is similar to how AIX traditionally builds it's shared libraries.
18214
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'
18220
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)'
18221
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18222
hardcode_minus_L_GCJ=yes
18223
# see comment about different semantics on the GNU ld section
18228
export_dynamic_flag_spec_GCJ=-rdynamic
18231
cygwin* | mingw* | pw32*)
18232
# When not using gcc, we currently assume that we are using
18233
# Microsoft Visual C++.
18234
# hardcode_libdir_flag_spec is actually meaningless, as there is
18235
# no search path for DLLs.
18236
hardcode_libdir_flag_spec_GCJ=' '
18237
allow_undefined_flag_GCJ=unsupported
18238
# Tell ltmain to make .lib files, not .a files.
18240
# Tell ltmain to make .dll files, not .so files.
18242
# FIXME: Setting linknames here is a bad hack.
18243
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18244
# The linker will automatically build a .lib file if we build a DLL.
18245
old_archive_From_new_cmds_GCJ='true'
18246
# FIXME: Should let the user specify the lib program.
18247
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18248
fix_srcfile_path='`cygpath -w "$srcfile"`'
18249
enable_shared_with_static_runtimes_GCJ=yes
18252
darwin* | rhapsody*)
18253
if test "$GXX" = yes ; then
18254
archive_cmds_need_lc_GCJ=no
18256
rhapsody* | darwin1.[012])
18257
allow_undefined_flag_GCJ='-undefined suppress'
18260
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18261
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18263
case ${MACOSX_DEPLOYMENT_TARGET} in
18265
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18268
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18274
lt_int_apple_cc_single_mod=no
18275
output_verbose_link_cmd='echo'
18276
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18277
lt_int_apple_cc_single_mod=yes
18279
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18280
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18282
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18284
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18285
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18286
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18287
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18289
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18291
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}'
18292
hardcode_direct_GCJ=no
18293
hardcode_automatic_GCJ=yes
18294
hardcode_shlibpath_var_GCJ=unsupported
18295
whole_archive_flag_spec_GCJ='-all_load $convenience'
18296
link_all_deplibs_GCJ=yes
18303
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18304
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18305
hardcode_shlibpath_var_GCJ=no
18312
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18313
# support. Future versions do this automatically, but an explicit c++rt0.o
18314
# does not break anything, and helps significantly (at the cost of a little
18317
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18318
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18319
hardcode_direct_GCJ=yes
18320
hardcode_shlibpath_var_GCJ=no
18323
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18325
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18326
hardcode_direct_GCJ=yes
18327
hardcode_minus_L_GCJ=yes
18328
hardcode_shlibpath_var_GCJ=no
18331
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18332
freebsd* | kfreebsd*-gnu)
18333
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18334
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18335
hardcode_direct_GCJ=yes
18336
hardcode_shlibpath_var_GCJ=no
18340
if test "$GCC" = yes; then
18341
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'
18343
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'
18345
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18346
hardcode_libdir_separator_GCJ=:
18347
hardcode_direct_GCJ=yes
18349
# hardcode_minus_L: Not really in the search PATH,
18350
# but as the default location of the library.
18351
hardcode_minus_L_GCJ=yes
18352
export_dynamic_flag_spec_GCJ='${wl}-E'
18356
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18357
case "$host_cpu" in
18359
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18362
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18366
case "$host_cpu" in
18368
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18371
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18375
if test "$with_gnu_ld" = no; then
18376
case "$host_cpu" in
18378
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18379
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18380
hardcode_libdir_separator_GCJ=:
18381
hardcode_direct_GCJ=no
18382
hardcode_shlibpath_var_GCJ=no
18385
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18386
hardcode_direct_GCJ=no
18387
hardcode_shlibpath_var_GCJ=no
18389
# hardcode_minus_L: Not really in the search PATH,
18390
# but as the default location of the library.
18391
hardcode_minus_L_GCJ=yes
18394
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18395
hardcode_libdir_separator_GCJ=:
18396
hardcode_direct_GCJ=yes
18397
export_dynamic_flag_spec_GCJ='${wl}-E'
18399
# hardcode_minus_L: Not really in the search PATH,
18400
# but as the default location of the library.
18401
hardcode_minus_L_GCJ=yes
18407
irix5* | irix6* | nonstopux*)
18408
if test "$GCC" = yes; then
18409
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'
18411
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'
18412
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18414
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18415
hardcode_libdir_separator_GCJ=:
18416
link_all_deplibs_GCJ=yes
18419
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18420
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18421
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18423
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18425
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18426
hardcode_direct_GCJ=yes
18427
hardcode_shlibpath_var_GCJ=no
18431
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18432
hardcode_direct_GCJ=yes
18433
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18434
hardcode_libdir_separator_GCJ=:
18435
hardcode_shlibpath_var_GCJ=no
18439
hardcode_direct_GCJ=yes
18440
hardcode_shlibpath_var_GCJ=no
18441
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18442
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18443
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18444
export_dynamic_flag_spec_GCJ='${wl}-E'
18447
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18448
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18449
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18452
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18453
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18460
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18461
hardcode_minus_L_GCJ=yes
18462
allow_undefined_flag_GCJ=unsupported
18463
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'
18464
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18468
if test "$GCC" = yes; then
18469
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18470
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'
18472
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18473
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'
18475
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18476
hardcode_libdir_separator_GCJ=:
18479
osf4* | osf5*) # as osf3* with the addition of -msym flag
18480
if test "$GCC" = yes; then
18481
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18482
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'
18483
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18485
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18486
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'
18487
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~
18488
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18490
# Both c and cxx compiler support -rpath directly
18491
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18493
hardcode_libdir_separator_GCJ=:
18497
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18498
hardcode_shlibpath_var_GCJ=no
18499
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18500
runpath_var=LD_RUN_PATH
18501
hardcode_runpath_var=yes
18505
no_undefined_flag_GCJ=' -z text'
18506
if test "$GCC" = yes; then
18507
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18508
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18509
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18511
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18512
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18513
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18515
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18516
hardcode_shlibpath_var_GCJ=no
18518
solaris2.[0-5] | solaris2.[0-5].*) ;;
18519
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
18520
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18522
link_all_deplibs_GCJ=yes
18526
if test "x$host_vendor" = xsequent; then
18527
# Use $CC to link under sequent, because it throws in some extra .o
18528
# files that make .init and .fini sections work.
18529
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18531
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18533
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18534
hardcode_direct_GCJ=yes
18535
hardcode_minus_L_GCJ=yes
18536
hardcode_shlibpath_var_GCJ=no
18540
case $host_vendor in
18542
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18543
hardcode_direct_GCJ=yes # is this really true???
18546
## LD is ld it makes a PLAMLIB
18547
## CC just makes a GrossModule.
18548
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18549
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18550
hardcode_direct_GCJ=no
18553
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18554
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18557
runpath_var='LD_RUN_PATH'
18558
hardcode_shlibpath_var_GCJ=no
18562
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18563
hardcode_shlibpath_var_GCJ=no
18564
export_dynamic_flag_spec_GCJ='-Bexport'
18568
if test -d /usr/nec; then
18569
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18570
hardcode_shlibpath_var_GCJ=no
18571
runpath_var=LD_RUN_PATH
18572
hardcode_runpath_var=yes
18578
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18579
hardcode_direct_GCJ=yes
18580
hardcode_minus_L_GCJ=no
18581
hardcode_shlibpath_var_GCJ=no
18582
hardcode_runpath_var=yes
18583
runpath_var=LD_RUN_PATH
18586
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18587
no_undefined_flag_GCJ='${wl}-z ${wl}text'
18588
if test "$GCC" = yes; then
18589
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18591
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18593
runpath_var='LD_RUN_PATH'
18594
hardcode_shlibpath_var_GCJ=no
18598
no_undefined_flag_GCJ=' -z text'
18599
# $CC -shared without GNU ld will not create a library from C++
18600
# object files and a static libstdc++, better avoid it by now
18601
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18602
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18603
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18604
hardcode_libdir_flag_spec_GCJ=
18605
hardcode_shlibpath_var_GCJ=no
18606
runpath_var='LD_RUN_PATH'
18610
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18611
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18612
hardcode_shlibpath_var_GCJ=no
18621
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18622
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18623
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18625
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18626
if test "$GCC" = yes; then
18627
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18631
# Do we need to explicitly link libc?
18633
case "x$archive_cmds_need_lc_GCJ" in
18635
# Assume -lc should be added
18636
archive_cmds_need_lc_GCJ=yes
18638
if test "$enable_shared" = yes && test "$GCC" = yes; then
18639
case $archive_cmds_GCJ in
18641
# FIXME: we may have to deal with multi-command sequences.
18644
# Test whether the compiler implicitly links with -lc since on some
18645
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18646
# to ld, don't add -lc before -lgcc.
18647
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18648
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18650
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18653
(eval $ac_compile) 2>&5
18655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656
(exit $ac_status); } 2>conftest.err; then
18659
libobjs=conftest.$ac_objext
18661
wl=$lt_prog_compiler_wl_GCJ
18667
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18668
allow_undefined_flag_GCJ=
18669
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18670
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673
(exit $ac_status); }
18675
archive_cmds_need_lc_GCJ=no
18677
archive_cmds_need_lc_GCJ=yes
18679
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18681
cat conftest.err 1>&5
18684
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18685
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18692
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18693
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18694
library_names_spec=
18695
libname_spec='lib$name'
18699
postuninstall_cmds=
18703
shlibpath_overrides_runpath=unknown
18705
dynamic_linker="$host_os ld.so"
18706
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18707
if test "$GCC" = yes; then
18708
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18709
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18710
# if the path contains ";" then we assume it to be the separator
18711
# otherwise default to the standard path separator (i.e. ":") - it is
18712
# assumed that no part of a normal pathname contains ";" but that should
18713
# okay in the real world where ";" in dirpaths is itself problematic.
18714
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18716
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18719
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18721
need_lib_prefix=unknown
18722
hardcode_into_libs=no
18724
# when you set need_version to no, make sure it does not cause -set_version
18725
# flags to be left without arguments
18726
need_version=unknown
18731
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18732
shlibpath_var=LIBPATH
18734
# AIX 3 has no versioning support, so we append a major version to the name.
18735
soname_spec='${libname}${release}${shared_ext}$major'
18742
hardcode_into_libs=yes
18743
if test "$host_cpu" = ia64; then
18744
# AIX 5 supports IA64
18745
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18746
shlibpath_var=LD_LIBRARY_PATH
18748
# With GCC up to 2.95.x, collect2 would create an import file
18749
# for dependence libraries. The import file would start with
18750
# the line `#! .'. This would cause the generated library to
18751
# depend on `.', always an invalid library. This was fixed in
18752
# development snapshots of GCC prior to 3.0.
18754
aix4 | aix4.[01] | aix4.[01].*)
18755
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18757
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18760
can_build_shared=no
18764
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18765
# soname into executable. Probably we can add versioning support to
18766
# collect2, so additional links can be useful in future.
18767
if test "$aix_use_runtimelinking" = yes; then
18768
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18769
# instead of lib<name>.a to let people know that these are not
18770
# typical AIX shared libraries.
18771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18773
# We preserve .a as extension for shared libraries through AIX4.2
18774
# and later when we are not doing run time linking.
18775
library_names_spec='${libname}${release}.a $libname.a'
18776
soname_spec='${libname}${release}${shared_ext}$major'
18778
shlibpath_var=LIBPATH
18783
library_names_spec='$libname.ixlibrary $libname.a'
18784
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18785
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'
18789
library_names_spec='${libname}${shared_ext}'
18790
dynamic_linker="$host_os ld.so"
18791
shlibpath_var=LIBRARY_PATH
18797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18798
soname_spec='${libname}${release}${shared_ext}$major'
18799
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18800
shlibpath_var=LD_LIBRARY_PATH
18801
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18802
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18803
# the default ld.so.conf also contains /usr/contrib/lib and
18804
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18805
# libtool to hard-code these into programs
18808
cygwin* | mingw* | pw32*)
18809
version_type=windows
18814
case $GCC,$host_os in
18815
yes,cygwin* | yes,mingw* | yes,pw32*)
18816
library_names_spec='$libname.dll.a'
18817
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18818
postinstall_cmds='base_file=`basename \${file}`~
18819
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18820
dldir=$destdir/`dirname \$dlpath`~
18821
test -d \$dldir || mkdir -p \$dldir~
18822
$install_prog $dir/$dlname \$dldir/$dlname'
18823
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18824
dlpath=$dir/\$dldll~
18826
shlibpath_overrides_runpath=yes
18830
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18831
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18832
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18835
# MinGW DLLs use traditional 'lib' prefix
18836
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18837
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18838
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18839
# It is most probably a Windows format PATH printed by
18840
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18841
# path with ; separators, and with drive letters. We can handle the
18842
# drive letters (cygwin fileutils understands them), so leave them,
18843
# especially as we might pass files found there to a mingw objdump,
18844
# which wouldn't understand a cygwinified path. Ahh.
18845
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18847
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18851
# pw32 DLLs use 'pw' prefix rather than 'lib'
18852
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18858
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18861
dynamic_linker='Win32 ld.exe'
18862
# FIXME: first we should search . and the directory the executable is in
18866
darwin* | rhapsody*)
18867
dynamic_linker="$host_os dyld"
18868
version_type=darwin
18871
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18872
soname_spec='${libname}${release}${major}$shared_ext'
18873
shlibpath_overrides_runpath=yes
18874
shlibpath_var=DYLD_LIBRARY_PATH
18875
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18876
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18877
if test "$GCC" = yes; then
18878
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"`
18880
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18882
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18890
soname_spec='${libname}${release}${shared_ext}$major'
18891
shlibpath_var=LD_LIBRARY_PATH
18902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18903
soname_spec='${libname}${release}${shared_ext}$major'
18904
shlibpath_var=LD_LIBRARY_PATH
18905
shlibpath_overrides_runpath=no
18906
hardcode_into_libs=yes
18907
dynamic_linker='GNU ld.so'
18911
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18912
version_type=freebsd-$objformat
18913
case $version_type in
18915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18920
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18924
shlibpath_var=LD_LIBRARY_PATH
18927
shlibpath_overrides_runpath=yes
18929
freebsd3.01* | freebsdelf3.01*)
18930
shlibpath_overrides_runpath=yes
18931
hardcode_into_libs=yes
18934
shlibpath_overrides_runpath=no
18935
hardcode_into_libs=yes
18944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18945
soname_spec='${libname}${release}${shared_ext}$major'
18946
shlibpath_var=LD_LIBRARY_PATH
18947
hardcode_into_libs=yes
18950
hpux9* | hpux10* | hpux11*)
18951
# Give a soname corresponding to the major version so that dld.sl refuses to
18952
# link against other versions.
18956
case "$host_cpu" in
18959
hardcode_into_libs=yes
18960
dynamic_linker="$host_os dld.so"
18961
shlibpath_var=LD_LIBRARY_PATH
18962
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18964
soname_spec='${libname}${release}${shared_ext}$major'
18965
if test "X$HPUX_IA64_MODE" = X32; then
18966
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18968
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18970
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18974
hardcode_into_libs=yes
18975
dynamic_linker="$host_os dld.sl"
18976
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18977
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18979
soname_spec='${libname}${release}${shared_ext}$major'
18980
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18981
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18985
dynamic_linker="$host_os dld.sl"
18986
shlibpath_var=SHLIB_PATH
18987
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989
soname_spec='${libname}${release}${shared_ext}$major'
18992
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18993
postinstall_cmds='chmod 555 $lib'
18996
irix5* | irix6* | nonstopux*)
18998
nonstopux*) version_type=nonstopux ;;
19000
if test "$lt_cv_prog_gnu_ld" = yes; then
19008
soname_spec='${libname}${release}${shared_ext}$major'
19009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19011
irix5* | nonstopux*)
19012
libsuff= shlibsuff=
19015
case $LD in # libtool.m4 will add one of these switches to LD
19016
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19017
libsuff= shlibsuff= libmagic=32-bit;;
19018
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19019
libsuff=32 shlibsuff=N32 libmagic=N32;;
19020
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19021
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19022
*) libsuff= shlibsuff= libmagic=never-match;;
19026
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19027
shlibpath_overrides_runpath=no
19028
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19029
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19030
hardcode_into_libs=yes
19033
# No shared lib support for Linux oldld, aout, or coff.
19034
linux*oldld* | linux*aout* | linux*coff*)
19038
# This must be Linux ELF.
19043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19044
soname_spec='${libname}${release}${shared_ext}$major'
19045
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19046
shlibpath_var=LD_LIBRARY_PATH
19047
shlibpath_overrides_runpath=no
19048
# This implies no fast_install, which is unacceptable.
19049
# Some rework will be needed to allow for fast_install
19050
# before this can be enabled.
19051
hardcode_into_libs=yes
19053
# Append ld.so.conf contents to the search path
19054
if test -f /etc/ld.so.conf; then
19055
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19056
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19059
# We used to test for /lib/ld.so.1 and disable shared libraries on
19060
# powerpc, because MkLinux only supported shared libraries with the
19061
# GNU dynamic linker. Since this was broken with cross compilers,
19062
# most powerpc-linux boxes support dynamic linking these days and
19063
# people can always --disable-shared, the test was removed, and we
19064
# assume the GNU/Linux dynamic linker is in use.
19065
dynamic_linker='GNU/Linux ld.so'
19072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19073
soname_spec='${libname}${release}${shared_ext}$major'
19074
shlibpath_var=LD_LIBRARY_PATH
19075
shlibpath_overrides_runpath=no
19076
hardcode_into_libs=yes
19077
dynamic_linker='NetBSD ld.elf_so'
19084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19085
soname_spec='${libname}${release}${shared_ext}$major'
19086
shlibpath_var=LD_LIBRARY_PATH
19087
shlibpath_overrides_runpath=no
19088
hardcode_into_libs=yes
19089
dynamic_linker='GNU ld.so'
19096
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19097
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19098
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19099
dynamic_linker='NetBSD (a.out) ld.so'
19101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19102
soname_spec='${libname}${release}${shared_ext}$major'
19103
dynamic_linker='NetBSD ld.elf_so'
19105
shlibpath_var=LD_LIBRARY_PATH
19106
shlibpath_overrides_runpath=yes
19107
hardcode_into_libs=yes
19112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19113
shlibpath_var=LD_LIBRARY_PATH
19114
shlibpath_overrides_runpath=yes
19121
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19122
soname_spec='${libname}${release}${shared_ext}$major'
19123
shlibpath_var=LD_LIBRARY_PATH
19124
shlibpath_overrides_runpath=yes
19131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19132
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19133
shlibpath_var=LD_LIBRARY_PATH
19134
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19136
openbsd2.[89] | openbsd2.[89].*)
19137
shlibpath_overrides_runpath=no
19140
shlibpath_overrides_runpath=yes
19144
shlibpath_overrides_runpath=yes
19149
libname_spec='$name'
19152
library_names_spec='$libname${shared_ext} $libname.a'
19153
dynamic_linker='OS/2 ld.exe'
19154
shlibpath_var=LIBPATH
19157
osf3* | osf4* | osf5*)
19161
soname_spec='${libname}${release}${shared_ext}$major'
19162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163
shlibpath_var=LD_LIBRARY_PATH
19164
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19165
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19170
soname_spec='${libname}${release}${shared_ext}$major'
19171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19172
shlibpath_var=LD_LIBRARY_PATH
19179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19180
soname_spec='${libname}${release}${shared_ext}$major'
19181
shlibpath_var=LD_LIBRARY_PATH
19182
shlibpath_overrides_runpath=yes
19183
hardcode_into_libs=yes
19184
# ldd complains unless libraries are executable
19185
postinstall_cmds='chmod +x $lib'
19190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19191
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19192
shlibpath_var=LD_LIBRARY_PATH
19193
shlibpath_overrides_runpath=yes
19194
if test "$with_gnu_ld" = yes; then
19200
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19203
soname_spec='${libname}${release}${shared_ext}$major'
19204
shlibpath_var=LD_LIBRARY_PATH
19205
case $host_vendor in
19207
shlibpath_overrides_runpath=no
19209
export_dynamic_flag_spec='${wl}-Blargedynsym'
19210
runpath_var=LD_RUN_PATH
19218
shlibpath_overrides_runpath=no
19219
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19225
if test -d /usr/nec ;then
19227
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19228
soname_spec='$libname${shared_ext}.$major'
19229
shlibpath_var=LD_LIBRARY_PATH
19235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19236
soname_spec='${libname}${release}${shared_ext}$major'
19237
shlibpath_var=LD_LIBRARY_PATH
19244
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19245
echo "${ECHO_T}$dynamic_linker" >&6
19246
test "$dynamic_linker" = no && can_build_shared=no
19248
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19249
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19250
hardcode_action_GCJ=
19251
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19252
test -n "$runpath_var GCJ" || \
19253
test "X$hardcode_automatic_GCJ"="Xyes" ; then
19255
# We can hardcode non-existant directories.
19256
if test "$hardcode_direct_GCJ" != no &&
19257
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19258
# have to relink, otherwise we might link with an installed library
19259
# when we should be linking with a yet-to-be-installed one
19260
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19261
test "$hardcode_minus_L_GCJ" != no; then
19262
# Linking always hardcodes the temporary library directory.
19263
hardcode_action_GCJ=relink
19265
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19266
hardcode_action_GCJ=immediate
19269
# We cannot hardcode anything, or else we can only hardcode existing
19271
hardcode_action_GCJ=unsupported
19273
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19274
echo "${ECHO_T}$hardcode_action_GCJ" >&6
19276
if test "$hardcode_action_GCJ" = relink; then
19277
# Fast installation is not supported
19278
enable_fast_install=no
19279
elif test "$shlibpath_overrides_runpath" = yes ||
19280
test "$enable_shared" = no; then
19281
# Fast installation is not necessary
19282
enable_fast_install=needless
19287
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19288
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19289
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19290
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19291
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19292
echo "$as_me:$LINENO: result: yes" >&5
19293
echo "${ECHO_T}yes" >&6
19295
# FIXME - insert some real tests, host_os isn't really good enough
19298
if test -n "$STRIP" ; then
19299
striplib="$STRIP -x"
19300
echo "$as_me:$LINENO: result: yes" >&5
19301
echo "${ECHO_T}yes" >&6
19303
echo "$as_me:$LINENO: result: no" >&5
19304
echo "${ECHO_T}no" >&6
19308
echo "$as_me:$LINENO: result: no" >&5
19309
echo "${ECHO_T}no" >&6
19314
if test "x$enable_dlopen" != xyes; then
19315
enable_dlopen=unknown
19316
enable_dlopen_self=unknown
19317
enable_dlopen_self_static=unknown
19324
lt_cv_dlopen="load_add_on"
19326
lt_cv_dlopen_self=yes
19330
lt_cv_dlopen="LoadLibrary"
19335
lt_cv_dlopen="dlopen"
19340
# if libdl is installed we need to link against it
19341
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19342
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19343
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19344
echo $ECHO_N "(cached) $ECHO_C" >&6
19346
ac_check_lib_save_LIBS=$LIBS
19348
cat >conftest.$ac_ext <<_ACEOF
19351
cat confdefs.h >>conftest.$ac_ext
19352
cat >>conftest.$ac_ext <<_ACEOF
19353
/* end confdefs.h. */
19355
/* Override any gcc2 internal prototype to avoid an error. */
19359
/* We use char because int might match the return type of a gcc2
19360
builtin and then its argument prototype would still apply. */
19370
rm -f conftest.$ac_objext conftest$ac_exeext
19371
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372
(eval $ac_link) 2>conftest.er1
19374
grep -v '^ *+' conftest.er1 >conftest.err
19376
cat conftest.err >&5
19377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378
(exit $ac_status); } &&
19379
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19380
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381
(eval $ac_try) 2>&5
19383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384
(exit $ac_status); }; } &&
19385
{ ac_try='test -s conftest$ac_exeext'
19386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387
(eval $ac_try) 2>&5
19389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390
(exit $ac_status); }; }; then
19391
ac_cv_lib_dl_dlopen=yes
19393
echo "$as_me: failed program was:" >&5
19394
sed 's/^/| /' conftest.$ac_ext >&5
19396
ac_cv_lib_dl_dlopen=no
19398
rm -f conftest.err conftest.$ac_objext \
19399
conftest$ac_exeext conftest.$ac_ext
19400
LIBS=$ac_check_lib_save_LIBS
19402
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19403
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19404
if test $ac_cv_lib_dl_dlopen = yes; then
19405
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19408
lt_cv_dlopen="dyld"
19410
lt_cv_dlopen_self=yes
19417
echo "$as_me:$LINENO: checking for shl_load" >&5
19418
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19419
if test "${ac_cv_func_shl_load+set}" = set; then
19420
echo $ECHO_N "(cached) $ECHO_C" >&6
19422
cat >conftest.$ac_ext <<_ACEOF
19425
cat confdefs.h >>conftest.$ac_ext
19426
cat >>conftest.$ac_ext <<_ACEOF
19427
/* end confdefs.h. */
19428
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19429
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19430
#define shl_load innocuous_shl_load
19432
/* System header to define __stub macros and hopefully few prototypes,
19433
which can conflict with char shl_load (); below.
19434
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19435
<limits.h> exists even on freestanding compilers. */
19438
# include <limits.h>
19440
# include <assert.h>
19445
/* Override any gcc2 internal prototype to avoid an error. */
19450
/* We use char because int might match the return type of a gcc2
19451
builtin and then its argument prototype would still apply. */
19453
/* The GNU C library defines this for functions which it implements
19454
to always fail with ENOSYS. Some functions are actually named
19455
something starting with __ and the normal name is an alias. */
19456
#if defined (__stub_shl_load) || defined (__stub___shl_load)
19459
char (*f) () = shl_load;
19468
return f != shl_load;
19473
rm -f conftest.$ac_objext conftest$ac_exeext
19474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19475
(eval $ac_link) 2>conftest.er1
19477
grep -v '^ *+' conftest.er1 >conftest.err
19479
cat conftest.err >&5
19480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481
(exit $ac_status); } &&
19482
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19483
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484
(eval $ac_try) 2>&5
19486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487
(exit $ac_status); }; } &&
19488
{ ac_try='test -s conftest$ac_exeext'
19489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490
(eval $ac_try) 2>&5
19492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493
(exit $ac_status); }; }; then
19494
ac_cv_func_shl_load=yes
19496
echo "$as_me: failed program was:" >&5
19497
sed 's/^/| /' conftest.$ac_ext >&5
19499
ac_cv_func_shl_load=no
19501
rm -f conftest.err conftest.$ac_objext \
19502
conftest$ac_exeext conftest.$ac_ext
19504
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19505
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19506
if test $ac_cv_func_shl_load = yes; then
19507
lt_cv_dlopen="shl_load"
19509
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19510
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19511
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19512
echo $ECHO_N "(cached) $ECHO_C" >&6
19514
ac_check_lib_save_LIBS=$LIBS
19516
cat >conftest.$ac_ext <<_ACEOF
19519
cat confdefs.h >>conftest.$ac_ext
19520
cat >>conftest.$ac_ext <<_ACEOF
19521
/* end confdefs.h. */
19523
/* Override any gcc2 internal prototype to avoid an error. */
19527
/* We use char because int might match the return type of a gcc2
19528
builtin and then its argument prototype would still apply. */
19538
rm -f conftest.$ac_objext conftest$ac_exeext
19539
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540
(eval $ac_link) 2>conftest.er1
19542
grep -v '^ *+' conftest.er1 >conftest.err
19544
cat conftest.err >&5
19545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546
(exit $ac_status); } &&
19547
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19548
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549
(eval $ac_try) 2>&5
19551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552
(exit $ac_status); }; } &&
19553
{ ac_try='test -s conftest$ac_exeext'
19554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555
(eval $ac_try) 2>&5
19557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558
(exit $ac_status); }; }; then
19559
ac_cv_lib_dld_shl_load=yes
19561
echo "$as_me: failed program was:" >&5
19562
sed 's/^/| /' conftest.$ac_ext >&5
19564
ac_cv_lib_dld_shl_load=no
19566
rm -f conftest.err conftest.$ac_objext \
19567
conftest$ac_exeext conftest.$ac_ext
19568
LIBS=$ac_check_lib_save_LIBS
19570
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19571
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19572
if test $ac_cv_lib_dld_shl_load = yes; then
19573
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19575
echo "$as_me:$LINENO: checking for dlopen" >&5
19576
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19577
if test "${ac_cv_func_dlopen+set}" = set; then
19578
echo $ECHO_N "(cached) $ECHO_C" >&6
19580
cat >conftest.$ac_ext <<_ACEOF
19583
cat confdefs.h >>conftest.$ac_ext
19584
cat >>conftest.$ac_ext <<_ACEOF
19585
/* end confdefs.h. */
19586
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19587
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19588
#define dlopen innocuous_dlopen
19590
/* System header to define __stub macros and hopefully few prototypes,
19591
which can conflict with char dlopen (); below.
19592
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19593
<limits.h> exists even on freestanding compilers. */
19596
# include <limits.h>
19598
# include <assert.h>
19603
/* Override any gcc2 internal prototype to avoid an error. */
19608
/* We use char because int might match the return type of a gcc2
19609
builtin and then its argument prototype would still apply. */
19611
/* The GNU C library defines this for functions which it implements
19612
to always fail with ENOSYS. Some functions are actually named
19613
something starting with __ and the normal name is an alias. */
19614
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19617
char (*f) () = dlopen;
19626
return f != dlopen;
19631
rm -f conftest.$ac_objext conftest$ac_exeext
19632
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19633
(eval $ac_link) 2>conftest.er1
19635
grep -v '^ *+' conftest.er1 >conftest.err
19637
cat conftest.err >&5
19638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639
(exit $ac_status); } &&
19640
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642
(eval $ac_try) 2>&5
19644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645
(exit $ac_status); }; } &&
19646
{ ac_try='test -s conftest$ac_exeext'
19647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648
(eval $ac_try) 2>&5
19650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651
(exit $ac_status); }; }; then
19652
ac_cv_func_dlopen=yes
19654
echo "$as_me: failed program was:" >&5
19655
sed 's/^/| /' conftest.$ac_ext >&5
19657
ac_cv_func_dlopen=no
19659
rm -f conftest.err conftest.$ac_objext \
19660
conftest$ac_exeext conftest.$ac_ext
19662
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19663
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19664
if test $ac_cv_func_dlopen = yes; then
19665
lt_cv_dlopen="dlopen"
19667
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19668
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19669
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19670
echo $ECHO_N "(cached) $ECHO_C" >&6
19672
ac_check_lib_save_LIBS=$LIBS
19674
cat >conftest.$ac_ext <<_ACEOF
19677
cat confdefs.h >>conftest.$ac_ext
19678
cat >>conftest.$ac_ext <<_ACEOF
19679
/* end confdefs.h. */
19681
/* Override any gcc2 internal prototype to avoid an error. */
19685
/* We use char because int might match the return type of a gcc2
19686
builtin and then its argument prototype would still apply. */
19696
rm -f conftest.$ac_objext conftest$ac_exeext
19697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19698
(eval $ac_link) 2>conftest.er1
19700
grep -v '^ *+' conftest.er1 >conftest.err
19702
cat conftest.err >&5
19703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704
(exit $ac_status); } &&
19705
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707
(eval $ac_try) 2>&5
19709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710
(exit $ac_status); }; } &&
19711
{ ac_try='test -s conftest$ac_exeext'
19712
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713
(eval $ac_try) 2>&5
19715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716
(exit $ac_status); }; }; then
19717
ac_cv_lib_dl_dlopen=yes
19719
echo "$as_me: failed program was:" >&5
19720
sed 's/^/| /' conftest.$ac_ext >&5
19722
ac_cv_lib_dl_dlopen=no
19724
rm -f conftest.err conftest.$ac_objext \
19725
conftest$ac_exeext conftest.$ac_ext
19726
LIBS=$ac_check_lib_save_LIBS
19728
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19729
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19730
if test $ac_cv_lib_dl_dlopen = yes; then
19731
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19733
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19734
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19735
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19736
echo $ECHO_N "(cached) $ECHO_C" >&6
19738
ac_check_lib_save_LIBS=$LIBS
19739
LIBS="-lsvld $LIBS"
19740
cat >conftest.$ac_ext <<_ACEOF
19743
cat confdefs.h >>conftest.$ac_ext
19744
cat >>conftest.$ac_ext <<_ACEOF
19745
/* end confdefs.h. */
19747
/* Override any gcc2 internal prototype to avoid an error. */
19751
/* We use char because int might match the return type of a gcc2
19752
builtin and then its argument prototype would still apply. */
19762
rm -f conftest.$ac_objext conftest$ac_exeext
19763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19764
(eval $ac_link) 2>conftest.er1
19766
grep -v '^ *+' conftest.er1 >conftest.err
19768
cat conftest.err >&5
19769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770
(exit $ac_status); } &&
19771
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773
(eval $ac_try) 2>&5
19775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776
(exit $ac_status); }; } &&
19777
{ ac_try='test -s conftest$ac_exeext'
19778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779
(eval $ac_try) 2>&5
19781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782
(exit $ac_status); }; }; then
19783
ac_cv_lib_svld_dlopen=yes
19785
echo "$as_me: failed program was:" >&5
19786
sed 's/^/| /' conftest.$ac_ext >&5
19788
ac_cv_lib_svld_dlopen=no
19790
rm -f conftest.err conftest.$ac_objext \
19791
conftest$ac_exeext conftest.$ac_ext
19792
LIBS=$ac_check_lib_save_LIBS
19794
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19795
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19796
if test $ac_cv_lib_svld_dlopen = yes; then
19797
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19799
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19800
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19801
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19802
echo $ECHO_N "(cached) $ECHO_C" >&6
19804
ac_check_lib_save_LIBS=$LIBS
19806
cat >conftest.$ac_ext <<_ACEOF
19809
cat confdefs.h >>conftest.$ac_ext
19810
cat >>conftest.$ac_ext <<_ACEOF
19811
/* end confdefs.h. */
19813
/* Override any gcc2 internal prototype to avoid an error. */
19817
/* We use char because int might match the return type of a gcc2
19818
builtin and then its argument prototype would still apply. */
19828
rm -f conftest.$ac_objext conftest$ac_exeext
19829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19830
(eval $ac_link) 2>conftest.er1
19832
grep -v '^ *+' conftest.er1 >conftest.err
19834
cat conftest.err >&5
19835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836
(exit $ac_status); } &&
19837
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839
(eval $ac_try) 2>&5
19841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842
(exit $ac_status); }; } &&
19843
{ ac_try='test -s conftest$ac_exeext'
19844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845
(eval $ac_try) 2>&5
19847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848
(exit $ac_status); }; }; then
19849
ac_cv_lib_dld_dld_link=yes
19851
echo "$as_me: failed program was:" >&5
19852
sed 's/^/| /' conftest.$ac_ext >&5
19854
ac_cv_lib_dld_dld_link=no
19856
rm -f conftest.err conftest.$ac_objext \
19857
conftest$ac_exeext conftest.$ac_ext
19858
LIBS=$ac_check_lib_save_LIBS
19860
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19861
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19862
if test $ac_cv_lib_dld_dld_link = yes; then
19863
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19884
if test "x$lt_cv_dlopen" != xno; then
19890
case $lt_cv_dlopen in
19892
save_CPPFLAGS="$CPPFLAGS"
19893
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19895
save_LDFLAGS="$LDFLAGS"
19896
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19899
LIBS="$lt_cv_dlopen_libs $LIBS"
19901
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19902
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19903
if test "${lt_cv_dlopen_self+set}" = set; then
19904
echo $ECHO_N "(cached) $ECHO_C" >&6
19906
if test "$cross_compiling" = yes; then :
19907
lt_cv_dlopen_self=cross
19909
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19910
lt_status=$lt_dlunknown
19911
cat > conftest.$ac_ext <<EOF
19912
#line 19912 "configure"
19913
#include "confdefs.h"
19922
# define LT_DLGLOBAL RTLD_GLOBAL
19925
# define LT_DLGLOBAL DL_GLOBAL
19927
# define LT_DLGLOBAL 0
19931
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19932
find out it does not work in some platform. */
19933
#ifndef LT_DLLAZY_OR_NOW
19935
# define LT_DLLAZY_OR_NOW RTLD_LAZY
19938
# define LT_DLLAZY_OR_NOW DL_LAZY
19941
# define LT_DLLAZY_OR_NOW RTLD_NOW
19944
# define LT_DLLAZY_OR_NOW DL_NOW
19946
# define LT_DLLAZY_OR_NOW 0
19954
extern "C" void exit (int);
19957
void fnord() { int i=42;}
19960
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19961
int status = $lt_dlunknown;
19965
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19966
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19967
/* dlclose (self); */
19973
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19974
(eval $ac_link) 2>&5
19976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19978
(./conftest; exit; ) 2>/dev/null
19980
case x$lt_status in
19981
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19982
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19983
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19986
# compilation failed
19987
lt_cv_dlopen_self=no
19994
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19995
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19997
if test "x$lt_cv_dlopen_self" = xyes; then
19998
LDFLAGS="$LDFLAGS $link_static_flag"
19999
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20000
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20001
if test "${lt_cv_dlopen_self_static+set}" = set; then
20002
echo $ECHO_N "(cached) $ECHO_C" >&6
20004
if test "$cross_compiling" = yes; then :
20005
lt_cv_dlopen_self_static=cross
20007
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20008
lt_status=$lt_dlunknown
20009
cat > conftest.$ac_ext <<EOF
20010
#line 20010 "configure"
20011
#include "confdefs.h"
20020
# define LT_DLGLOBAL RTLD_GLOBAL
20023
# define LT_DLGLOBAL DL_GLOBAL
20025
# define LT_DLGLOBAL 0
20029
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20030
find out it does not work in some platform. */
20031
#ifndef LT_DLLAZY_OR_NOW
20033
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20036
# define LT_DLLAZY_OR_NOW DL_LAZY
20039
# define LT_DLLAZY_OR_NOW RTLD_NOW
20042
# define LT_DLLAZY_OR_NOW DL_NOW
20044
# define LT_DLLAZY_OR_NOW 0
20052
extern "C" void exit (int);
20055
void fnord() { int i=42;}
20058
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20059
int status = $lt_dlunknown;
20063
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20064
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20065
/* dlclose (self); */
20071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20072
(eval $ac_link) 2>&5
20074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20076
(./conftest; exit; ) 2>/dev/null
20078
case x$lt_status in
20079
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20080
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20081
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20084
# compilation failed
20085
lt_cv_dlopen_self_static=no
20092
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20093
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20096
CPPFLAGS="$save_CPPFLAGS"
20097
LDFLAGS="$save_LDFLAGS"
20102
case $lt_cv_dlopen_self in
20103
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20104
*) enable_dlopen_self=unknown ;;
20107
case $lt_cv_dlopen_self_static in
20108
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20109
*) enable_dlopen_self_static=unknown ;;
20114
# The else clause should only fire when bootstrapping the
20115
# libtool distribution, otherwise you forgot to ship ltmain.sh
20116
# with your package, and you will get complaints that there are
20117
# no rules to generate ltmain.sh.
20118
if test -f "$ltmain"; then
20119
# See if we are running on zsh, and set the options which allow our commands through
20120
# without removal of \ escapes.
20121
if test -n "${ZSH_VERSION+set}" ; then
20122
setopt NO_GLOB_SUBST
20124
# Now quote all the things that may contain metacharacters while being
20125
# careful not to overquote the AC_SUBSTed values. We take copies of the
20126
# variables and quote the copies for generation of the libtool script.
20127
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20129
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20130
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20131
deplibs_check_method reload_flag reload_cmds need_locks \
20132
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20133
lt_cv_sys_global_symbol_to_c_name_address \
20134
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20135
old_postinstall_cmds old_postuninstall_cmds \
20139
lt_prog_compiler_wl_GCJ \
20140
lt_prog_compiler_pic_GCJ \
20141
lt_prog_compiler_static_GCJ \
20142
lt_prog_compiler_no_builtin_flag_GCJ \
20143
export_dynamic_flag_spec_GCJ \
20144
thread_safe_flag_spec_GCJ \
20145
whole_archive_flag_spec_GCJ \
20146
enable_shared_with_static_runtimes_GCJ \
20147
old_archive_cmds_GCJ \
20148
old_archive_from_new_cmds_GCJ \
20149
predep_objects_GCJ \
20150
postdep_objects_GCJ \
20153
compiler_lib_search_path_GCJ \
20155
archive_expsym_cmds_GCJ \
20156
postinstall_cmds_GCJ \
20157
postuninstall_cmds_GCJ \
20158
old_archive_from_expsyms_cmds_GCJ \
20159
allow_undefined_flag_GCJ \
20160
no_undefined_flag_GCJ \
20161
export_symbols_cmds_GCJ \
20162
hardcode_libdir_flag_spec_GCJ \
20163
hardcode_libdir_flag_spec_ld_GCJ \
20164
hardcode_libdir_separator_GCJ \
20165
hardcode_automatic_GCJ \
20167
module_expsym_cmds_GCJ \
20168
lt_cv_prog_compiler_c_o_GCJ \
20169
exclude_expsyms_GCJ \
20170
include_expsyms_GCJ; do
20173
old_archive_cmds_GCJ | \
20174
old_archive_from_new_cmds_GCJ | \
20175
archive_cmds_GCJ | \
20176
archive_expsym_cmds_GCJ | \
20177
module_cmds_GCJ | \
20178
module_expsym_cmds_GCJ | \
20179
old_archive_from_expsyms_cmds_GCJ | \
20180
export_symbols_cmds_GCJ | \
20181
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20182
postinstall_cmds | postuninstall_cmds | \
20183
old_postinstall_cmds | old_postuninstall_cmds | \
20184
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20185
# Double-quote double-evaled strings.
20186
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20189
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20195
*'\$0 --fallback-echo"')
20196
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20202
cat <<__EOF__ >> "$cfgfile"
20203
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20205
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20207
# Shell to use when invoking shell scripts.
20210
# Whether or not to build shared libraries.
20211
build_libtool_libs=$enable_shared
20213
# Whether or not to build static libraries.
20214
build_old_libs=$enable_static
20216
# Whether or not to add -lc for building shared libraries.
20217
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20219
# Whether or not to disallow shared libs when runtime libs are static
20220
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20222
# Whether or not to optimize for fast installation.
20223
fast_install=$enable_fast_install
20226
host_alias=$host_alias
20229
# An echo program that does not interpret backslashes.
20234
AR_FLAGS=$lt_AR_FLAGS
20239
# A language-specific compiler.
20240
CC=$lt_compiler_GCJ
20242
# Is the compiler the GNU C compiler?
20248
# The linker used to build libraries.
20251
# Whether we need hard or soft links.
20254
# A BSD-compatible nm program.
20257
# A symbol stripping program
20260
# Used to examine libraries when file_magic_cmd begins "file"
20261
MAGIC_CMD=$MAGIC_CMD
20263
# Used on cygwin: DLL creation program.
20266
# Used on cygwin: object dumper.
20269
# Used on cygwin: assembler.
20272
# The name of the directory that contains temporary libtool files.
20275
# How to create reloadable object files.
20276
reload_flag=$lt_reload_flag
20277
reload_cmds=$lt_reload_cmds
20279
# How to pass a linker flag through the compiler.
20280
wl=$lt_lt_prog_compiler_wl_GCJ
20282
# Object file suffix (normally "o").
20283
objext="$ac_objext"
20285
# Old archive suffix (normally "a").
20288
# Shared library suffix (normally ".so").
20289
shrext_cmds='$shrext_cmds'
20291
# Executable file suffix (normally "").
20294
# Additional compiler flags for building library objects.
20295
pic_flag=$lt_lt_prog_compiler_pic_GCJ
20298
# What is the maximum length of a command?
20299
max_cmd_len=$lt_cv_sys_max_cmd_len
20301
# Does compiler simultaneously support -c and -o options?
20302
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20304
# Must we lock files when doing compilation ?
20305
need_locks=$lt_need_locks
20307
# Do we need the lib prefix for modules?
20308
need_lib_prefix=$need_lib_prefix
20310
# Do we need a version for libraries?
20311
need_version=$need_version
20313
# Whether dlopen is supported.
20314
dlopen_support=$enable_dlopen
20316
# Whether dlopen of programs is supported.
20317
dlopen_self=$enable_dlopen_self
20319
# Whether dlopen of statically linked programs is supported.
20320
dlopen_self_static=$enable_dlopen_self_static
20322
# Compiler flag to prevent dynamic linking.
20323
link_static_flag=$lt_lt_prog_compiler_static_GCJ
20325
# Compiler flag to turn off builtin functions.
20326
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20328
# Compiler flag to allow reflexive dlopens.
20329
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20331
# Compiler flag to generate shared objects directly from archives.
20332
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20334
# Compiler flag to generate thread-safe objects.
20335
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20337
# Library versioning type.
20338
version_type=$version_type
20340
# Format of library name prefix.
20341
libname_spec=$lt_libname_spec
20343
# List of archive names. First name is the real one, the rest are links.
20344
# The last name is the one that the linker finds with -lNAME.
20345
library_names_spec=$lt_library_names_spec
20347
# The coded name of the library, if different from the real name.
20348
soname_spec=$lt_soname_spec
20350
# Commands used to build and install an old-style archive.
20352
old_archive_cmds=$lt_old_archive_cmds_GCJ
20353
old_postinstall_cmds=$lt_old_postinstall_cmds
20354
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20356
# Create an old-style archive from a shared archive.
20357
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20359
# Create a temporary old-style archive to link instead of a shared archive.
20360
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20362
# Commands used to build and install a shared archive.
20363
archive_cmds=$lt_archive_cmds_GCJ
20364
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20365
postinstall_cmds=$lt_postinstall_cmds
20366
postuninstall_cmds=$lt_postuninstall_cmds
20368
# Commands used to build a loadable module (assumed same as above if empty)
20369
module_cmds=$lt_module_cmds_GCJ
20370
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20372
# Commands to strip libraries.
20373
old_striplib=$lt_old_striplib
20374
striplib=$lt_striplib
20376
# Dependencies to place before the objects being linked to create a
20378
predep_objects=$lt_predep_objects_GCJ
20380
# Dependencies to place after the objects being linked to create a
20382
postdep_objects=$lt_postdep_objects_GCJ
20384
# Dependencies to place before the objects being linked to create a
20386
predeps=$lt_predeps_GCJ
20388
# Dependencies to place after the objects being linked to create a
20390
postdeps=$lt_postdeps_GCJ
20392
# The library search path used internally by the compiler when linking
20393
# a shared library.
20394
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20396
# Method to check whether dependent libraries are shared objects.
20397
deplibs_check_method=$lt_deplibs_check_method
20399
# Command to use when deplibs_check_method == file_magic.
20400
file_magic_cmd=$lt_file_magic_cmd
20402
# Flag that allows shared libraries with undefined symbols to be built.
20403
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20405
# Flag that forces no undefined symbols.
20406
no_undefined_flag=$lt_no_undefined_flag_GCJ
20408
# Commands used to finish a libtool library installation in a directory.
20409
finish_cmds=$lt_finish_cmds
20411
# Same as above, but a single script fragment to be evaled but not shown.
20412
finish_eval=$lt_finish_eval
20414
# Take the output of nm and produce a listing of raw symbols and C names.
20415
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20417
# Transform the output of nm in a proper C declaration
20418
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20420
# Transform the output of nm in a C name address pair
20421
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20423
# This is the shared library runtime path variable.
20424
runpath_var=$runpath_var
20426
# This is the shared library path variable.
20427
shlibpath_var=$shlibpath_var
20429
# Is shlibpath searched before the hard-coded library search path?
20430
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20432
# How to hardcode a shared library path into an executable.
20433
hardcode_action=$hardcode_action_GCJ
20435
# Whether we should hardcode library paths into libraries.
20436
hardcode_into_libs=$hardcode_into_libs
20438
# Flag to hardcode \$libdir into a binary during linking.
20439
# This must work even if \$libdir does not exist.
20440
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20442
# If ld is used when linking, flag to hardcode \$libdir into
20443
# a binary during linking. This must work even if \$libdir does
20445
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20447
# Whether we need a single -rpath flag with a separated argument.
20448
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20450
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20451
# resulting binary.
20452
hardcode_direct=$hardcode_direct_GCJ
20454
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20455
# resulting binary.
20456
hardcode_minus_L=$hardcode_minus_L_GCJ
20458
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20459
# the resulting binary.
20460
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20462
# Set to yes if building a shared library automatically hardcodes DIR into the library
20463
# and all subsequent libraries and executables linked against it.
20464
hardcode_automatic=$hardcode_automatic_GCJ
20466
# Variables whose values should be saved in libtool wrapper scripts and
20467
# restored at relink time.
20468
variables_saved_for_relink="$variables_saved_for_relink"
20470
# Whether libtool must link a program against all its dependency libraries.
20471
link_all_deplibs=$link_all_deplibs_GCJ
20473
# Compile-time system search path for libraries
20474
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20476
# Run-time system search path for libraries
20477
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20479
# Fix the shell variable \$srcfile for the compiler.
20480
fix_srcfile_path="$fix_srcfile_path_GCJ"
20482
# Set to yes if exported symbols are required.
20483
always_export_symbols=$always_export_symbols_GCJ
20485
# The commands to list exported symbols.
20486
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20488
# The commands to extract the exported symbol list from a shared archive.
20489
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20491
# Symbols that should not be listed in the preloaded symbols.
20492
exclude_expsyms=$lt_exclude_expsyms_GCJ
20494
# Symbols that must always be exported.
20495
include_expsyms=$lt_include_expsyms_GCJ
20497
# ### END LIBTOOL TAG CONFIG: $tagname
20503
# If there is no Makefile yet, we rely on a make rule to execute
20504
# `config.status --recheck' to rerun these tests and create the
20505
# libtool script then.
20506
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20507
if test -f "$ltmain_in"; then
20508
test -f Makefile && make "$ltmain"
20514
ac_cpp='$CPP $CPPFLAGS'
20515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20530
# Source file extension for RC test sources.
20533
# Object file extension for compiled RC test sources.
20537
# Code to be used in simple compile tests
20538
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20540
# Code to be used in simple link tests
20541
lt_simple_link_test_code="$lt_simple_compile_test_code"
20543
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20545
# If no C compiler was specified, use CC.
20548
# Allow CC to be a program name with arguments.
20552
# Allow CC to be a program name with arguments.
20557
lt_cv_prog_compiler_c_o_RC=yes
20559
# The else clause should only fire when bootstrapping the
20560
# libtool distribution, otherwise you forgot to ship ltmain.sh
20561
# with your package, and you will get complaints that there are
20562
# no rules to generate ltmain.sh.
20563
if test -f "$ltmain"; then
20564
# See if we are running on zsh, and set the options which allow our commands through
20565
# without removal of \ escapes.
20566
if test -n "${ZSH_VERSION+set}" ; then
20567
setopt NO_GLOB_SUBST
20569
# Now quote all the things that may contain metacharacters while being
20570
# careful not to overquote the AC_SUBSTed values. We take copies of the
20571
# variables and quote the copies for generation of the libtool script.
20572
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20574
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20575
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20576
deplibs_check_method reload_flag reload_cmds need_locks \
20577
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20578
lt_cv_sys_global_symbol_to_c_name_address \
20579
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20580
old_postinstall_cmds old_postuninstall_cmds \
20584
lt_prog_compiler_wl_RC \
20585
lt_prog_compiler_pic_RC \
20586
lt_prog_compiler_static_RC \
20587
lt_prog_compiler_no_builtin_flag_RC \
20588
export_dynamic_flag_spec_RC \
20589
thread_safe_flag_spec_RC \
20590
whole_archive_flag_spec_RC \
20591
enable_shared_with_static_runtimes_RC \
20592
old_archive_cmds_RC \
20593
old_archive_from_new_cmds_RC \
20594
predep_objects_RC \
20595
postdep_objects_RC \
20598
compiler_lib_search_path_RC \
20600
archive_expsym_cmds_RC \
20601
postinstall_cmds_RC \
20602
postuninstall_cmds_RC \
20603
old_archive_from_expsyms_cmds_RC \
20604
allow_undefined_flag_RC \
20605
no_undefined_flag_RC \
20606
export_symbols_cmds_RC \
20607
hardcode_libdir_flag_spec_RC \
20608
hardcode_libdir_flag_spec_ld_RC \
20609
hardcode_libdir_separator_RC \
20610
hardcode_automatic_RC \
20612
module_expsym_cmds_RC \
20613
lt_cv_prog_compiler_c_o_RC \
20614
exclude_expsyms_RC \
20615
include_expsyms_RC; do
20618
old_archive_cmds_RC | \
20619
old_archive_from_new_cmds_RC | \
20620
archive_cmds_RC | \
20621
archive_expsym_cmds_RC | \
20623
module_expsym_cmds_RC | \
20624
old_archive_from_expsyms_cmds_RC | \
20625
export_symbols_cmds_RC | \
20626
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20627
postinstall_cmds | postuninstall_cmds | \
20628
old_postinstall_cmds | old_postuninstall_cmds | \
20629
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20630
# Double-quote double-evaled strings.
20631
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20634
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20640
*'\$0 --fallback-echo"')
20641
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20647
cat <<__EOF__ >> "$cfgfile"
20648
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20650
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20652
# Shell to use when invoking shell scripts.
20655
# Whether or not to build shared libraries.
20656
build_libtool_libs=$enable_shared
20658
# Whether or not to build static libraries.
20659
build_old_libs=$enable_static
20661
# Whether or not to add -lc for building shared libraries.
20662
build_libtool_need_lc=$archive_cmds_need_lc_RC
20664
# Whether or not to disallow shared libs when runtime libs are static
20665
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20667
# Whether or not to optimize for fast installation.
20668
fast_install=$enable_fast_install
20671
host_alias=$host_alias
20674
# An echo program that does not interpret backslashes.
20679
AR_FLAGS=$lt_AR_FLAGS
20684
# A language-specific compiler.
20687
# Is the compiler the GNU C compiler?
20693
# The linker used to build libraries.
20696
# Whether we need hard or soft links.
20699
# A BSD-compatible nm program.
20702
# A symbol stripping program
20705
# Used to examine libraries when file_magic_cmd begins "file"
20706
MAGIC_CMD=$MAGIC_CMD
20708
# Used on cygwin: DLL creation program.
20711
# Used on cygwin: object dumper.
20714
# Used on cygwin: assembler.
20717
# The name of the directory that contains temporary libtool files.
20720
# How to create reloadable object files.
20721
reload_flag=$lt_reload_flag
20722
reload_cmds=$lt_reload_cmds
20724
# How to pass a linker flag through the compiler.
20725
wl=$lt_lt_prog_compiler_wl_RC
20727
# Object file suffix (normally "o").
20728
objext="$ac_objext"
20730
# Old archive suffix (normally "a").
20733
# Shared library suffix (normally ".so").
20734
shrext_cmds='$shrext_cmds'
20736
# Executable file suffix (normally "").
20739
# Additional compiler flags for building library objects.
20740
pic_flag=$lt_lt_prog_compiler_pic_RC
20743
# What is the maximum length of a command?
20744
max_cmd_len=$lt_cv_sys_max_cmd_len
20746
# Does compiler simultaneously support -c and -o options?
20747
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20749
# Must we lock files when doing compilation ?
20750
need_locks=$lt_need_locks
20752
# Do we need the lib prefix for modules?
20753
need_lib_prefix=$need_lib_prefix
20755
# Do we need a version for libraries?
20756
need_version=$need_version
20758
# Whether dlopen is supported.
20759
dlopen_support=$enable_dlopen
20761
# Whether dlopen of programs is supported.
20762
dlopen_self=$enable_dlopen_self
20764
# Whether dlopen of statically linked programs is supported.
20765
dlopen_self_static=$enable_dlopen_self_static
20767
# Compiler flag to prevent dynamic linking.
20768
link_static_flag=$lt_lt_prog_compiler_static_RC
20770
# Compiler flag to turn off builtin functions.
20771
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20773
# Compiler flag to allow reflexive dlopens.
20774
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20776
# Compiler flag to generate shared objects directly from archives.
20777
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20779
# Compiler flag to generate thread-safe objects.
20780
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20782
# Library versioning type.
20783
version_type=$version_type
20785
# Format of library name prefix.
20786
libname_spec=$lt_libname_spec
20788
# List of archive names. First name is the real one, the rest are links.
20789
# The last name is the one that the linker finds with -lNAME.
20790
library_names_spec=$lt_library_names_spec
20792
# The coded name of the library, if different from the real name.
20793
soname_spec=$lt_soname_spec
20795
# Commands used to build and install an old-style archive.
20797
old_archive_cmds=$lt_old_archive_cmds_RC
20798
old_postinstall_cmds=$lt_old_postinstall_cmds
20799
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20801
# Create an old-style archive from a shared archive.
20802
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20804
# Create a temporary old-style archive to link instead of a shared archive.
20805
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20807
# Commands used to build and install a shared archive.
20808
archive_cmds=$lt_archive_cmds_RC
20809
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20810
postinstall_cmds=$lt_postinstall_cmds
20811
postuninstall_cmds=$lt_postuninstall_cmds
20813
# Commands used to build a loadable module (assumed same as above if empty)
20814
module_cmds=$lt_module_cmds_RC
20815
module_expsym_cmds=$lt_module_expsym_cmds_RC
20817
# Commands to strip libraries.
20818
old_striplib=$lt_old_striplib
20819
striplib=$lt_striplib
20821
# Dependencies to place before the objects being linked to create a
20823
predep_objects=$lt_predep_objects_RC
20825
# Dependencies to place after the objects being linked to create a
20827
postdep_objects=$lt_postdep_objects_RC
20829
# Dependencies to place before the objects being linked to create a
20831
predeps=$lt_predeps_RC
20833
# Dependencies to place after the objects being linked to create a
20835
postdeps=$lt_postdeps_RC
20837
# The library search path used internally by the compiler when linking
20838
# a shared library.
20839
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20841
# Method to check whether dependent libraries are shared objects.
20842
deplibs_check_method=$lt_deplibs_check_method
20844
# Command to use when deplibs_check_method == file_magic.
20845
file_magic_cmd=$lt_file_magic_cmd
20847
# Flag that allows shared libraries with undefined symbols to be built.
20848
allow_undefined_flag=$lt_allow_undefined_flag_RC
20850
# Flag that forces no undefined symbols.
20851
no_undefined_flag=$lt_no_undefined_flag_RC
20853
# Commands used to finish a libtool library installation in a directory.
20854
finish_cmds=$lt_finish_cmds
20856
# Same as above, but a single script fragment to be evaled but not shown.
20857
finish_eval=$lt_finish_eval
20859
# Take the output of nm and produce a listing of raw symbols and C names.
20860
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20862
# Transform the output of nm in a proper C declaration
20863
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20865
# Transform the output of nm in a C name address pair
20866
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20868
# This is the shared library runtime path variable.
20869
runpath_var=$runpath_var
20871
# This is the shared library path variable.
20872
shlibpath_var=$shlibpath_var
20874
# Is shlibpath searched before the hard-coded library search path?
20875
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20877
# How to hardcode a shared library path into an executable.
20878
hardcode_action=$hardcode_action_RC
20880
# Whether we should hardcode library paths into libraries.
20881
hardcode_into_libs=$hardcode_into_libs
20883
# Flag to hardcode \$libdir into a binary during linking.
20884
# This must work even if \$libdir does not exist.
20885
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20887
# If ld is used when linking, flag to hardcode \$libdir into
20888
# a binary during linking. This must work even if \$libdir does
20890
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20892
# Whether we need a single -rpath flag with a separated argument.
20893
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20895
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20896
# resulting binary.
20897
hardcode_direct=$hardcode_direct_RC
20899
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20900
# resulting binary.
20901
hardcode_minus_L=$hardcode_minus_L_RC
20903
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20904
# the resulting binary.
20905
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20907
# Set to yes if building a shared library automatically hardcodes DIR into the library
20908
# and all subsequent libraries and executables linked against it.
20909
hardcode_automatic=$hardcode_automatic_RC
20911
# Variables whose values should be saved in libtool wrapper scripts and
20912
# restored at relink time.
20913
variables_saved_for_relink="$variables_saved_for_relink"
20915
# Whether libtool must link a program against all its dependency libraries.
20916
link_all_deplibs=$link_all_deplibs_RC
20918
# Compile-time system search path for libraries
20919
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20921
# Run-time system search path for libraries
20922
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20924
# Fix the shell variable \$srcfile for the compiler.
20925
fix_srcfile_path="$fix_srcfile_path_RC"
20927
# Set to yes if exported symbols are required.
20928
always_export_symbols=$always_export_symbols_RC
20930
# The commands to list exported symbols.
20931
export_symbols_cmds=$lt_export_symbols_cmds_RC
20933
# The commands to extract the exported symbol list from a shared archive.
20934
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20936
# Symbols that should not be listed in the preloaded symbols.
20937
exclude_expsyms=$lt_exclude_expsyms_RC
20939
# Symbols that must always be exported.
20940
include_expsyms=$lt_include_expsyms_RC
20942
# ### END LIBTOOL TAG CONFIG: $tagname
20948
# If there is no Makefile yet, we rely on a make rule to execute
20949
# `config.status --recheck' to rerun these tests and create the
20950
# libtool script then.
20951
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20952
if test -f "$ltmain_in"; then
20953
test -f Makefile && make "$ltmain"
20959
ac_cpp='$CPP $CPPFLAGS'
20960
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20961
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20962
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20969
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20970
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20971
{ (exit 1); exit 1; }; }
20975
# Append the new tag name to the list of available tags.
20976
if test -n "$tagname" ; then
20977
available_tags="$available_tags $tagname"
20983
# Now substitute the updated list of available tags.
20984
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20985
mv "${ofile}T" "$ofile"
20989
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20990
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20991
{ (exit 1); exit 1; }; }
20997
# This can be used to rebuild libtool when needed
20998
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21000
# Always use our own libtool.
21001
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21003
# Prevent multiple expansion
21024
LIBTOOL="$LIBTOOL --silent"
21026
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
21027
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
21028
if test "${ac_cv_search_gethostbyname+set}" = set; then
21029
echo $ECHO_N "(cached) $ECHO_C" >&6
21031
ac_func_search_save_LIBS=$LIBS
21032
ac_cv_search_gethostbyname=no
21033
cat >conftest.$ac_ext <<_ACEOF
21036
cat confdefs.h >>conftest.$ac_ext
21037
cat >>conftest.$ac_ext <<_ACEOF
21038
/* end confdefs.h. */
21040
/* Override any gcc2 internal prototype to avoid an error. */
21044
/* We use char because int might match the return type of a gcc2
21045
builtin and then its argument prototype would still apply. */
21046
char gethostbyname ();
21055
rm -f conftest.$ac_objext conftest$ac_exeext
21056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21057
(eval $ac_link) 2>conftest.er1
21059
grep -v '^ *+' conftest.er1 >conftest.err
21061
cat conftest.err >&5
21062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063
(exit $ac_status); } &&
21064
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066
(eval $ac_try) 2>&5
21068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069
(exit $ac_status); }; } &&
21070
{ ac_try='test -s conftest$ac_exeext'
21071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072
(eval $ac_try) 2>&5
21074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075
(exit $ac_status); }; }; then
21076
ac_cv_search_gethostbyname="none required"
21078
echo "$as_me: failed program was:" >&5
21079
sed 's/^/| /' conftest.$ac_ext >&5
21082
rm -f conftest.err conftest.$ac_objext \
21083
conftest$ac_exeext conftest.$ac_ext
21084
if test "$ac_cv_search_gethostbyname" = no; then
21085
for ac_lib in nsl; do
21086
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21087
cat >conftest.$ac_ext <<_ACEOF
21090
cat confdefs.h >>conftest.$ac_ext
21091
cat >>conftest.$ac_ext <<_ACEOF
21092
/* end confdefs.h. */
21094
/* Override any gcc2 internal prototype to avoid an error. */
21098
/* We use char because int might match the return type of a gcc2
21099
builtin and then its argument prototype would still apply. */
21100
char gethostbyname ();
21109
rm -f conftest.$ac_objext conftest$ac_exeext
21110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21111
(eval $ac_link) 2>conftest.er1
21113
grep -v '^ *+' conftest.er1 >conftest.err
21115
cat conftest.err >&5
21116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
(exit $ac_status); } &&
21118
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120
(eval $ac_try) 2>&5
21122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123
(exit $ac_status); }; } &&
21124
{ ac_try='test -s conftest$ac_exeext'
21125
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126
(eval $ac_try) 2>&5
21128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129
(exit $ac_status); }; }; then
21130
ac_cv_search_gethostbyname="-l$ac_lib"
21133
echo "$as_me: failed program was:" >&5
21134
sed 's/^/| /' conftest.$ac_ext >&5
21137
rm -f conftest.err conftest.$ac_objext \
21138
conftest$ac_exeext conftest.$ac_ext
21141
LIBS=$ac_func_search_save_LIBS
21143
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
21144
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
21145
if test "$ac_cv_search_gethostbyname" != no; then
21146
test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
21150
echo "$as_me:$LINENO: checking for library containing socket" >&5
21151
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
21152
if test "${ac_cv_search_socket+set}" = set; then
21153
echo $ECHO_N "(cached) $ECHO_C" >&6
21155
ac_func_search_save_LIBS=$LIBS
21156
ac_cv_search_socket=no
21157
cat >conftest.$ac_ext <<_ACEOF
21160
cat confdefs.h >>conftest.$ac_ext
21161
cat >>conftest.$ac_ext <<_ACEOF
21162
/* end confdefs.h. */
21164
/* Override any gcc2 internal prototype to avoid an error. */
21168
/* We use char because int might match the return type of a gcc2
21169
builtin and then its argument prototype would still apply. */
21179
rm -f conftest.$ac_objext conftest$ac_exeext
21180
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21181
(eval $ac_link) 2>conftest.er1
21183
grep -v '^ *+' conftest.er1 >conftest.err
21185
cat conftest.err >&5
21186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187
(exit $ac_status); } &&
21188
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21189
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190
(eval $ac_try) 2>&5
21192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193
(exit $ac_status); }; } &&
21194
{ ac_try='test -s conftest$ac_exeext'
21195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196
(eval $ac_try) 2>&5
21198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199
(exit $ac_status); }; }; then
21200
ac_cv_search_socket="none required"
21202
echo "$as_me: failed program was:" >&5
21203
sed 's/^/| /' conftest.$ac_ext >&5
21206
rm -f conftest.err conftest.$ac_objext \
21207
conftest$ac_exeext conftest.$ac_ext
21208
if test "$ac_cv_search_socket" = no; then
21209
for ac_lib in socket; do
21210
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21211
cat >conftest.$ac_ext <<_ACEOF
21214
cat confdefs.h >>conftest.$ac_ext
21215
cat >>conftest.$ac_ext <<_ACEOF
21216
/* end confdefs.h. */
21218
/* Override any gcc2 internal prototype to avoid an error. */
21222
/* We use char because int might match the return type of a gcc2
21223
builtin and then its argument prototype would still apply. */
21233
rm -f conftest.$ac_objext conftest$ac_exeext
21234
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21235
(eval $ac_link) 2>conftest.er1
21237
grep -v '^ *+' conftest.er1 >conftest.err
21239
cat conftest.err >&5
21240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241
(exit $ac_status); } &&
21242
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21243
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244
(eval $ac_try) 2>&5
21246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247
(exit $ac_status); }; } &&
21248
{ ac_try='test -s conftest$ac_exeext'
21249
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250
(eval $ac_try) 2>&5
21252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253
(exit $ac_status); }; }; then
21254
ac_cv_search_socket="-l$ac_lib"
21257
echo "$as_me: failed program was:" >&5
21258
sed 's/^/| /' conftest.$ac_ext >&5
21261
rm -f conftest.err conftest.$ac_objext \
21262
conftest$ac_exeext conftest.$ac_ext
21265
LIBS=$ac_func_search_save_LIBS
21267
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
21268
echo "${ECHO_T}$ac_cv_search_socket" >&6
21269
if test "$ac_cv_search_socket" != no; then
21270
test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
21273
echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
21274
echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6
21275
if test "${ac_cv_lib_nsl_socket+set}" = set; then
21276
echo $ECHO_N "(cached) $ECHO_C" >&6
21278
ac_check_lib_save_LIBS=$LIBS
21279
LIBS="-lnsl -lsocket $LIBS"
21280
cat >conftest.$ac_ext <<_ACEOF
21283
cat confdefs.h >>conftest.$ac_ext
21284
cat >>conftest.$ac_ext <<_ACEOF
21285
/* end confdefs.h. */
21287
/* Override any gcc2 internal prototype to avoid an error. */
21291
/* We use char because int might match the return type of a gcc2
21292
builtin and then its argument prototype would still apply. */
21302
rm -f conftest.$ac_objext conftest$ac_exeext
21303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21304
(eval $ac_link) 2>conftest.er1
21306
grep -v '^ *+' conftest.er1 >conftest.err
21308
cat conftest.err >&5
21309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310
(exit $ac_status); } &&
21311
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313
(eval $ac_try) 2>&5
21315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316
(exit $ac_status); }; } &&
21317
{ ac_try='test -s conftest$ac_exeext'
21318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319
(eval $ac_try) 2>&5
21321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322
(exit $ac_status); }; }; then
21323
ac_cv_lib_nsl_socket=yes
21325
echo "$as_me: failed program was:" >&5
21326
sed 's/^/| /' conftest.$ac_ext >&5
21328
ac_cv_lib_nsl_socket=no
21330
rm -f conftest.err conftest.$ac_objext \
21331
conftest$ac_exeext conftest.$ac_ext
21332
LIBS=$ac_check_lib_save_LIBS
21334
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
21335
echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6
21336
if test $ac_cv_lib_nsl_socket = yes; then
21337
LIBS="$LIBS -lsocket -lnsl"
21343
if test "x$prefix" = "xNONE"; then
21344
prefix="$ac_default_prefix"
21347
if test "x$exec_prefix" = "xNONE"; then
21348
exec_prefix="$prefix"
21357
# openssl libs are in /usr/sfw/lib on solaris 10
21358
LIBS="$LIBS -R/usr/sfw/lib"
21359
# disable the linux-specific interfaces
21360
# and bmc on SPARC (there is no bmc driver for SPARC)
21361
if [ `mach -p` = sparc ]; then
21364
enable_intf_bmc=yes
21367
enable_intf_open=no
21369
enable_ipmishell=no
21372
# disable the linux and solaris-specific interfaces
21374
enable_intf_open=no
21375
enable_intf_lipmi=no
21378
enable_ipmishell=no
21381
# disable the linux and solaris-specific interfaces
21383
enable_intf_open=no
21384
enable_intf_lipmi=no
21387
enable_ipmishell=no
21400
# Check whether --enable-internal-md5 or --disable-internal-md5 was given.
21401
if test "${enable_internal_md5+set}" = set; then
21402
enableval="$enable_internal_md5"
21405
enable_internal_md5=no
21408
echo "$as_me:$LINENO: checking for EVP_aes_128_cbc in -lcrypto" >&5
21409
echo $ECHO_N "checking for EVP_aes_128_cbc in -lcrypto... $ECHO_C" >&6
21410
if test "${ac_cv_lib_crypto_EVP_aes_128_cbc+set}" = set; then
21411
echo $ECHO_N "(cached) $ECHO_C" >&6
21413
ac_check_lib_save_LIBS=$LIBS
21414
LIBS="-lcrypto -lcrypto $LIBS"
21415
cat >conftest.$ac_ext <<_ACEOF
21418
cat confdefs.h >>conftest.$ac_ext
21419
cat >>conftest.$ac_ext <<_ACEOF
21420
/* end confdefs.h. */
21422
/* Override any gcc2 internal prototype to avoid an error. */
21426
/* We use char because int might match the return type of a gcc2
21427
builtin and then its argument prototype would still apply. */
21428
char EVP_aes_128_cbc ();
21432
EVP_aes_128_cbc ();
21437
rm -f conftest.$ac_objext conftest$ac_exeext
21438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21439
(eval $ac_link) 2>conftest.er1
21441
grep -v '^ *+' conftest.er1 >conftest.err
21443
cat conftest.err >&5
21444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445
(exit $ac_status); } &&
21446
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448
(eval $ac_try) 2>&5
21450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451
(exit $ac_status); }; } &&
21452
{ ac_try='test -s conftest$ac_exeext'
21453
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454
(eval $ac_try) 2>&5
21456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457
(exit $ac_status); }; }; then
21458
ac_cv_lib_crypto_EVP_aes_128_cbc=yes
21460
echo "$as_me: failed program was:" >&5
21461
sed 's/^/| /' conftest.$ac_ext >&5
21463
ac_cv_lib_crypto_EVP_aes_128_cbc=no
21465
rm -f conftest.err conftest.$ac_objext \
21466
conftest$ac_exeext conftest.$ac_ext
21467
LIBS=$ac_check_lib_save_LIBS
21469
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_aes_128_cbc" >&5
21470
echo "${ECHO_T}$ac_cv_lib_crypto_EVP_aes_128_cbc" >&6
21471
if test $ac_cv_lib_crypto_EVP_aes_128_cbc = yes; then
21472
if test "x$enable_internal_md5" != "xyes"; then
21473
have_crypto=yes; LIBS="$LIBS -lcrypto"
21480
echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5
21481
echo $ECHO_N "checking for MD5_Init in -lcrypto... $ECHO_C" >&6
21482
if test "${ac_cv_lib_crypto_MD5_Init+set}" = set; then
21483
echo $ECHO_N "(cached) $ECHO_C" >&6
21485
ac_check_lib_save_LIBS=$LIBS
21486
LIBS="-lcrypto -lcrypto $LIBS"
21487
cat >conftest.$ac_ext <<_ACEOF
21490
cat confdefs.h >>conftest.$ac_ext
21491
cat >>conftest.$ac_ext <<_ACEOF
21492
/* end confdefs.h. */
21494
/* Override any gcc2 internal prototype to avoid an error. */
21498
/* We use char because int might match the return type of a gcc2
21499
builtin and then its argument prototype would still apply. */
21509
rm -f conftest.$ac_objext conftest$ac_exeext
21510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21511
(eval $ac_link) 2>conftest.er1
21513
grep -v '^ *+' conftest.er1 >conftest.err
21515
cat conftest.err >&5
21516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517
(exit $ac_status); } &&
21518
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21519
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520
(eval $ac_try) 2>&5
21522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523
(exit $ac_status); }; } &&
21524
{ ac_try='test -s conftest$ac_exeext'
21525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526
(eval $ac_try) 2>&5
21528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529
(exit $ac_status); }; }; then
21530
ac_cv_lib_crypto_MD5_Init=yes
21532
echo "$as_me: failed program was:" >&5
21533
sed 's/^/| /' conftest.$ac_ext >&5
21535
ac_cv_lib_crypto_MD5_Init=no
21537
rm -f conftest.err conftest.$ac_objext \
21538
conftest$ac_exeext conftest.$ac_ext
21539
LIBS=$ac_check_lib_save_LIBS
21541
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Init" >&5
21542
echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Init" >&6
21543
if test $ac_cv_lib_crypto_MD5_Init = yes; then
21544
if test "x$enable_internal_md5" != "xyes"; then
21545
if test "x$have_crypto" != "xyes"; then
21546
LIBS="$LIBS -lcrypto"
21550
cat >>confdefs.h <<\_ACEOF
21551
#define HAVE_CRYPTO_MD5 1
21558
echo "$as_me:$LINENO: checking for MD2_Init in -lcrypto" >&5
21559
echo $ECHO_N "checking for MD2_Init in -lcrypto... $ECHO_C" >&6
21560
if test "${ac_cv_lib_crypto_MD2_Init+set}" = set; then
21561
echo $ECHO_N "(cached) $ECHO_C" >&6
21563
ac_check_lib_save_LIBS=$LIBS
21564
LIBS="-lcrypto -lcrypto $LIBS"
21565
cat >conftest.$ac_ext <<_ACEOF
21568
cat confdefs.h >>conftest.$ac_ext
21569
cat >>conftest.$ac_ext <<_ACEOF
21570
/* end confdefs.h. */
21572
/* Override any gcc2 internal prototype to avoid an error. */
21576
/* We use char because int might match the return type of a gcc2
21577
builtin and then its argument prototype would still apply. */
21587
rm -f conftest.$ac_objext conftest$ac_exeext
21588
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21589
(eval $ac_link) 2>conftest.er1
21591
grep -v '^ *+' conftest.er1 >conftest.err
21593
cat conftest.err >&5
21594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595
(exit $ac_status); } &&
21596
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21597
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598
(eval $ac_try) 2>&5
21600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601
(exit $ac_status); }; } &&
21602
{ ac_try='test -s conftest$ac_exeext'
21603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604
(eval $ac_try) 2>&5
21606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607
(exit $ac_status); }; }; then
21608
ac_cv_lib_crypto_MD2_Init=yes
21610
echo "$as_me: failed program was:" >&5
21611
sed 's/^/| /' conftest.$ac_ext >&5
21613
ac_cv_lib_crypto_MD2_Init=no
21615
rm -f conftest.err conftest.$ac_objext \
21616
conftest$ac_exeext conftest.$ac_ext
21617
LIBS=$ac_check_lib_save_LIBS
21619
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD2_Init" >&5
21620
echo "${ECHO_T}$ac_cv_lib_crypto_MD2_Init" >&6
21621
if test $ac_cv_lib_crypto_MD2_Init = yes; then
21622
if test "x$enable_internal_md5" != "xyes"; then
21623
if test "x$have_crypto" != "xyes" && test "x$have_md5" != "xyes"; then
21624
LIBS="$LIBS -lcrypto"
21628
cat >>confdefs.h <<\_ACEOF
21629
#define HAVE_CRYPTO_MD2 1
21636
# Check whether --enable-intf-lan or --disable-intf-lan was given.
21637
if test "${enable_intf_lan+set}" = set; then
21638
enableval="$enable_intf_lan"
21641
enable_intf_lan=yes
21643
if test "x$enable_intf_lan" = "xstatic" || test "x$enable_intf_lan" = "xplugin"; then
21644
enable_intf_lan=yes
21646
if test "x$enable_intf_lan" = "xyes"; then
21648
cat >>confdefs.h <<\_ACEOF
21649
#define IPMI_INTF_LAN 1
21654
INTF_LAN_LIB=libintf_lan.la
21656
IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB lan/libintf_lan.la"
21659
# Check whether --enable-intf-lanplus or --disable-intf-lanplus was given.
21660
if test "${enable_intf_lanplus+set}" = set; then
21661
enableval="$enable_intf_lanplus"
21662
if test "x$enable_intf_lanplus" != "xno" && test "x$have_crypto" != "xyes"; then
21663
echo "** The lanplus interface requires an SSL library with EVP_aes_128_cbc defined."
21664
enable_intf_lanplus=no
21667
enable_intf_lanplus=$have_crypto
21669
if test "x$enable_intf_lanplus" = "xstatic" || test "x$enable_intf_lanplus" = "xplugin"; then
21670
enable_intf_lanplus=yes
21672
if test "x$enable_intf_lanplus" = "xyes"; then
21674
cat >>confdefs.h <<\_ACEOF
21675
#define IPMI_INTF_LANPLUS 1
21678
INTF_LANPLUS=lanplus
21680
INTF_LANPLUS_LIB=libintf_lanplus.la
21682
IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB lanplus/libintf_lanplus.la"
21684
enable_intf_lanplus=no
21688
# Check whether --with-kerneldir or --without-kerneldir was given.
21689
if test "${with_kerneldir+set}" = set; then
21690
withval="$with_kerneldir"
21691
if test "x$with_kerneldir" = "xyes"; then
21692
with_kerneldir="/lib/modules/`uname -r`/build"
21694
CFLAGS="$CFLAGS -I ${with_kerneldir}/include"
21696
if test -s ${with_kerneldir}/include/linux/version.h ; then
21697
kernelver=`grep UTS_RELEASE ${with_kerneldir}/include/linux/version.h | \
21698
sed 's/^\#define UTS_RELEASE \"\(2\.[0-9]\)\..*/\1/'`
21699
if test "x$kernelver" = "x2.6"; then
21700
CPPFLAGS="$CPPFLAGS -D__user="
21705
if test "${ac_cv_header_linux_ipmi_h+set}" = set; then
21706
echo "$as_me:$LINENO: checking for linux/ipmi.h" >&5
21707
echo $ECHO_N "checking for linux/ipmi.h... $ECHO_C" >&6
21708
if test "${ac_cv_header_linux_ipmi_h+set}" = set; then
21709
echo $ECHO_N "(cached) $ECHO_C" >&6
21711
echo "$as_me:$LINENO: result: $ac_cv_header_linux_ipmi_h" >&5
21712
echo "${ECHO_T}$ac_cv_header_linux_ipmi_h" >&6
21714
# Is the header compilable?
21715
echo "$as_me:$LINENO: checking linux/ipmi.h usability" >&5
21716
echo $ECHO_N "checking linux/ipmi.h usability... $ECHO_C" >&6
21717
cat >conftest.$ac_ext <<_ACEOF
21720
cat confdefs.h >>conftest.$ac_ext
21721
cat >>conftest.$ac_ext <<_ACEOF
21722
/* end confdefs.h. */
21723
$ac_includes_default
21724
#include <linux/ipmi.h>
21726
rm -f conftest.$ac_objext
21727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21728
(eval $ac_compile) 2>conftest.er1
21730
grep -v '^ *+' conftest.er1 >conftest.err
21732
cat conftest.err >&5
21733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734
(exit $ac_status); } &&
21735
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737
(eval $ac_try) 2>&5
21739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740
(exit $ac_status); }; } &&
21741
{ ac_try='test -s conftest.$ac_objext'
21742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743
(eval $ac_try) 2>&5
21745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746
(exit $ac_status); }; }; then
21747
ac_header_compiler=yes
21749
echo "$as_me: failed program was:" >&5
21750
sed 's/^/| /' conftest.$ac_ext >&5
21752
ac_header_compiler=no
21754
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21755
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21756
echo "${ECHO_T}$ac_header_compiler" >&6
21758
# Is the header present?
21759
echo "$as_me:$LINENO: checking linux/ipmi.h presence" >&5
21760
echo $ECHO_N "checking linux/ipmi.h presence... $ECHO_C" >&6
21761
cat >conftest.$ac_ext <<_ACEOF
21764
cat confdefs.h >>conftest.$ac_ext
21765
cat >>conftest.$ac_ext <<_ACEOF
21766
/* end confdefs.h. */
21767
#include <linux/ipmi.h>
21769
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21770
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21772
grep -v '^ *+' conftest.er1 >conftest.err
21774
cat conftest.err >&5
21775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776
(exit $ac_status); } >/dev/null; then
21777
if test -s conftest.err; then
21778
ac_cpp_err=$ac_c_preproc_warn_flag
21779
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21786
if test -z "$ac_cpp_err"; then
21787
ac_header_preproc=yes
21789
echo "$as_me: failed program was:" >&5
21790
sed 's/^/| /' conftest.$ac_ext >&5
21792
ac_header_preproc=no
21794
rm -f conftest.err conftest.$ac_ext
21795
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21796
echo "${ECHO_T}$ac_header_preproc" >&6
21798
# So? What about this header?
21799
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21801
{ echo "$as_me:$LINENO: WARNING: linux/ipmi.h: accepted by the compiler, rejected by the preprocessor!" >&5
21802
echo "$as_me: WARNING: linux/ipmi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21803
{ echo "$as_me:$LINENO: WARNING: linux/ipmi.h: proceeding with the compiler's result" >&5
21804
echo "$as_me: WARNING: linux/ipmi.h: proceeding with the compiler's result" >&2;}
21805
ac_header_preproc=yes
21808
{ echo "$as_me:$LINENO: WARNING: linux/ipmi.h: present but cannot be compiled" >&5
21809
echo "$as_me: WARNING: linux/ipmi.h: present but cannot be compiled" >&2;}
21810
{ echo "$as_me:$LINENO: WARNING: linux/ipmi.h: check for missing prerequisite headers?" >&5
21811
echo "$as_me: WARNING: linux/ipmi.h: check for missing prerequisite headers?" >&2;}
21812
{ echo "$as_me:$LINENO: WARNING: linux/ipmi.h: see the Autoconf documentation" >&5
21813
echo "$as_me: WARNING: linux/ipmi.h: see the Autoconf documentation" >&2;}
21814
{ echo "$as_me:$LINENO: WARNING: linux/ipmi.h: section \"Present But Cannot Be Compiled\"" >&5
21815
echo "$as_me: WARNING: linux/ipmi.h: section \"Present But Cannot Be Compiled\"" >&2;}
21816
{ echo "$as_me:$LINENO: WARNING: linux/ipmi.h: proceeding with the preprocessor's result" >&5
21817
echo "$as_me: WARNING: linux/ipmi.h: proceeding with the preprocessor's result" >&2;}
21818
{ echo "$as_me:$LINENO: WARNING: linux/ipmi.h: in the future, the compiler will take precedence" >&5
21819
echo "$as_me: WARNING: linux/ipmi.h: in the future, the compiler will take precedence" >&2;}
21822
## ------------------------------------------ ##
21823
## Report this to the AC_PACKAGE_NAME lists. ##
21824
## ------------------------------------------ ##
21827
sed "s/^/$as_me: WARNING: /" >&2
21830
echo "$as_me:$LINENO: checking for linux/ipmi.h" >&5
21831
echo $ECHO_N "checking for linux/ipmi.h... $ECHO_C" >&6
21832
if test "${ac_cv_header_linux_ipmi_h+set}" = set; then
21833
echo $ECHO_N "(cached) $ECHO_C" >&6
21835
ac_cv_header_linux_ipmi_h=$ac_header_preproc
21837
echo "$as_me:$LINENO: result: $ac_cv_header_linux_ipmi_h" >&5
21838
echo "${ECHO_T}$ac_cv_header_linux_ipmi_h" >&6
21841
if test $ac_cv_header_linux_ipmi_h = yes; then
21843
cat >>confdefs.h <<\_ACEOF
21844
#define HAVE_OPENIPMI_H 1
21848
echo "** Unable to find OpenIPMI header files. Using internal version."
21853
# Check whether --enable-intf-open or --disable-intf-open was given.
21854
if test "${enable_intf_open+set}" = set; then
21855
enableval="$enable_intf_open"
21858
enable_intf_open=yes
21860
if test "x$enable_intf_open" = "xstatic" || test "x$enable_intf_open" = "xplugin"; then
21861
enable_intf_open=yes
21863
if test "x$enable_intf_open" = "xyes"; then
21865
cat >>confdefs.h <<\_ACEOF
21866
#define IPMI_INTF_OPEN 1
21871
INTF_OPEN_LIB=libintf_open.la
21873
IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB open/libintf_open.la"
21876
# Check whether --enable-intf-imb or --disable-intf-imb was given.
21877
if test "${enable_intf_imb+set}" = set; then
21878
enableval="$enable_intf_imb"
21881
enable_intf_imb=yes
21883
if test "x$enable_intf_imb" = "xstatic" || test "x$enable_intf_imb" = "xplugin"; then
21884
enable_intf_imb=yes
21886
if test "x$enable_intf_imb" = "xyes"; then
21888
cat >>confdefs.h <<\_ACEOF
21889
#define IPMI_INTF_IMB 1
21894
INTF_IMB_LIB=libintf_imb.la
21896
IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB imb/libintf_imb.la"
21899
if test "${ac_cv_header_sys_lipmi_lipmi_intf_h+set}" = set; then
21900
echo "$as_me:$LINENO: checking for sys/lipmi/lipmi_intf.h" >&5
21901
echo $ECHO_N "checking for sys/lipmi/lipmi_intf.h... $ECHO_C" >&6
21902
if test "${ac_cv_header_sys_lipmi_lipmi_intf_h+set}" = set; then
21903
echo $ECHO_N "(cached) $ECHO_C" >&6
21905
echo "$as_me:$LINENO: result: $ac_cv_header_sys_lipmi_lipmi_intf_h" >&5
21906
echo "${ECHO_T}$ac_cv_header_sys_lipmi_lipmi_intf_h" >&6
21908
# Is the header compilable?
21909
echo "$as_me:$LINENO: checking sys/lipmi/lipmi_intf.h usability" >&5
21910
echo $ECHO_N "checking sys/lipmi/lipmi_intf.h usability... $ECHO_C" >&6
21911
cat >conftest.$ac_ext <<_ACEOF
21914
cat confdefs.h >>conftest.$ac_ext
21915
cat >>conftest.$ac_ext <<_ACEOF
21916
/* end confdefs.h. */
21917
$ac_includes_default
21918
#include <sys/lipmi/lipmi_intf.h>
21920
rm -f conftest.$ac_objext
21921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21922
(eval $ac_compile) 2>conftest.er1
21924
grep -v '^ *+' conftest.er1 >conftest.err
21926
cat conftest.err >&5
21927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928
(exit $ac_status); } &&
21929
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931
(eval $ac_try) 2>&5
21933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934
(exit $ac_status); }; } &&
21935
{ ac_try='test -s conftest.$ac_objext'
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); }; }; then
21941
ac_header_compiler=yes
21943
echo "$as_me: failed program was:" >&5
21944
sed 's/^/| /' conftest.$ac_ext >&5
21946
ac_header_compiler=no
21948
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21949
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21950
echo "${ECHO_T}$ac_header_compiler" >&6
21952
# Is the header present?
21953
echo "$as_me:$LINENO: checking sys/lipmi/lipmi_intf.h presence" >&5
21954
echo $ECHO_N "checking sys/lipmi/lipmi_intf.h presence... $ECHO_C" >&6
21955
cat >conftest.$ac_ext <<_ACEOF
21958
cat confdefs.h >>conftest.$ac_ext
21959
cat >>conftest.$ac_ext <<_ACEOF
21960
/* end confdefs.h. */
21961
#include <sys/lipmi/lipmi_intf.h>
21963
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21964
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21966
grep -v '^ *+' conftest.er1 >conftest.err
21968
cat conftest.err >&5
21969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970
(exit $ac_status); } >/dev/null; then
21971
if test -s conftest.err; then
21972
ac_cpp_err=$ac_c_preproc_warn_flag
21973
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21980
if test -z "$ac_cpp_err"; then
21981
ac_header_preproc=yes
21983
echo "$as_me: failed program was:" >&5
21984
sed 's/^/| /' conftest.$ac_ext >&5
21986
ac_header_preproc=no
21988
rm -f conftest.err conftest.$ac_ext
21989
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21990
echo "${ECHO_T}$ac_header_preproc" >&6
21992
# So? What about this header?
21993
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21995
{ echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: accepted by the compiler, rejected by the preprocessor!" >&5
21996
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21997
{ echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: proceeding with the compiler's result" >&5
21998
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: proceeding with the compiler's result" >&2;}
21999
ac_header_preproc=yes
22002
{ echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: present but cannot be compiled" >&5
22003
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: present but cannot be compiled" >&2;}
22004
{ echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: check for missing prerequisite headers?" >&5
22005
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: check for missing prerequisite headers?" >&2;}
22006
{ echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: see the Autoconf documentation" >&5
22007
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: see the Autoconf documentation" >&2;}
22008
{ echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: section \"Present But Cannot Be Compiled\"" >&5
22009
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: section \"Present But Cannot Be Compiled\"" >&2;}
22010
{ echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: proceeding with the preprocessor's result" >&5
22011
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: proceeding with the preprocessor's result" >&2;}
22012
{ echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: in the future, the compiler will take precedence" >&5
22013
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: in the future, the compiler will take precedence" >&2;}
22016
## ------------------------------------------ ##
22017
## Report this to the AC_PACKAGE_NAME lists. ##
22018
## ------------------------------------------ ##
22021
sed "s/^/$as_me: WARNING: /" >&2
22024
echo "$as_me:$LINENO: checking for sys/lipmi/lipmi_intf.h" >&5
22025
echo $ECHO_N "checking for sys/lipmi/lipmi_intf.h... $ECHO_C" >&6
22026
if test "${ac_cv_header_sys_lipmi_lipmi_intf_h+set}" = set; then
22027
echo $ECHO_N "(cached) $ECHO_C" >&6
22029
ac_cv_header_sys_lipmi_lipmi_intf_h=$ac_header_preproc
22031
echo "$as_me:$LINENO: result: $ac_cv_header_sys_lipmi_lipmi_intf_h" >&5
22032
echo "${ECHO_T}$ac_cv_header_sys_lipmi_lipmi_intf_h" >&6
22035
if test $ac_cv_header_sys_lipmi_lipmi_intf_h = yes; then
22042
# Check whether --enable-intf-lipmi or --disable-intf-lipmi was given.
22043
if test "${enable_intf_lipmi+set}" = set; then
22044
enableval="$enable_intf_lipmi"
22045
if test "x$enable_intf_lipmi" != "xno" && test "x$have_lipmi" != "xyes"; then
22046
echo "** Unable to build Solaris 9 x86 IPMI interface support!"
22047
enable_intf_lipmi=no
22050
enable_intf_lipmi=no
22052
if test "x$enable_intf_lipmi" = "xstatic" || test "x$enable_intf_lipmi" = "xplugin"; then
22053
enable_intf_lipmi=yes
22055
if test "x$enable_intf_lipmi" = "xyes"; then
22057
cat >>confdefs.h <<\_ACEOF
22058
#define IPMI_INTF_LIPMI 1
22063
INTF_LIPMI_LIB=libintf_lipmi.la
22065
IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB lipmi/libintf_lipmi.la"
22068
# Check whether --enable-intf-bmc or --disable-intf-bmc was given.
22069
if test "${enable_intf_bmc+set}" = set; then
22070
enableval="$enable_intf_bmc"
22075
if test "x$enable_intf_bmc" = "xstatic" || test "x$enable_intf_bmc" = "xplugin"; then
22076
enable_intf_bmc=yes
22078
if test "x$enable_intf_bmc" = "xyes"; then
22080
cat >>confdefs.h <<\_ACEOF
22081
#define IPMI_INTF_BMC 1
22086
INTF_BMC_LIB=libintf_bmc.la
22088
IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB bmc/libintf_bmc.la"
22093
# Check whether --enable-ipmishell or --disable-ipmishell was given.
22094
if test "${enable_ipmishell+set}" = set; then
22095
enableval="$enable_ipmishell"
22098
enable_ipmishell=yes
22100
if test "x$enable_ipmishell" = "xyes"; then
22101
echo "$as_me:$LINENO: checking for library containing readline" >&5
22102
echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6
22103
if test "${ac_cv_search_readline+set}" = set; then
22104
echo $ECHO_N "(cached) $ECHO_C" >&6
22106
ac_func_search_save_LIBS=$LIBS
22107
ac_cv_search_readline=no
22108
cat >conftest.$ac_ext <<_ACEOF
22111
cat confdefs.h >>conftest.$ac_ext
22112
cat >>conftest.$ac_ext <<_ACEOF
22113
/* end confdefs.h. */
22115
/* Override any gcc2 internal prototype to avoid an error. */
22119
/* We use char because int might match the return type of a gcc2
22120
builtin and then its argument prototype would still apply. */
22130
rm -f conftest.$ac_objext conftest$ac_exeext
22131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132
(eval $ac_link) 2>conftest.er1
22134
grep -v '^ *+' conftest.er1 >conftest.err
22136
cat conftest.err >&5
22137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138
(exit $ac_status); } &&
22139
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141
(eval $ac_try) 2>&5
22143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144
(exit $ac_status); }; } &&
22145
{ ac_try='test -s conftest$ac_exeext'
22146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147
(eval $ac_try) 2>&5
22149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150
(exit $ac_status); }; }; then
22151
ac_cv_search_readline="none required"
22153
echo "$as_me: failed program was:" >&5
22154
sed 's/^/| /' conftest.$ac_ext >&5
22157
rm -f conftest.err conftest.$ac_objext \
22158
conftest$ac_exeext conftest.$ac_ext
22159
if test "$ac_cv_search_readline" = no; then
22160
for ac_lib in readline; do
22161
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22162
cat >conftest.$ac_ext <<_ACEOF
22165
cat confdefs.h >>conftest.$ac_ext
22166
cat >>conftest.$ac_ext <<_ACEOF
22167
/* end confdefs.h. */
22169
/* Override any gcc2 internal prototype to avoid an error. */
22173
/* We use char because int might match the return type of a gcc2
22174
builtin and then its argument prototype would still apply. */
22184
rm -f conftest.$ac_objext conftest$ac_exeext
22185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22186
(eval $ac_link) 2>conftest.er1
22188
grep -v '^ *+' conftest.er1 >conftest.err
22190
cat conftest.err >&5
22191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192
(exit $ac_status); } &&
22193
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22194
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195
(eval $ac_try) 2>&5
22197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198
(exit $ac_status); }; } &&
22199
{ ac_try='test -s conftest$ac_exeext'
22200
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201
(eval $ac_try) 2>&5
22203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204
(exit $ac_status); }; }; then
22205
ac_cv_search_readline="-l$ac_lib"
22208
echo "$as_me: failed program was:" >&5
22209
sed 's/^/| /' conftest.$ac_ext >&5
22212
rm -f conftest.err conftest.$ac_objext \
22213
conftest$ac_exeext conftest.$ac_ext
22216
LIBS=$ac_func_search_save_LIBS
22218
echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
22219
echo "${ECHO_T}$ac_cv_search_readline" >&6
22220
if test "$ac_cv_search_readline" != no; then
22221
test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS"
22225
echo "$as_me:$LINENO: checking for library containing initscr" >&5
22226
echo $ECHO_N "checking for library containing initscr... $ECHO_C" >&6
22227
if test "${ac_cv_search_initscr+set}" = set; then
22228
echo $ECHO_N "(cached) $ECHO_C" >&6
22230
ac_func_search_save_LIBS=$LIBS
22231
ac_cv_search_initscr=no
22232
cat >conftest.$ac_ext <<_ACEOF
22235
cat confdefs.h >>conftest.$ac_ext
22236
cat >>conftest.$ac_ext <<_ACEOF
22237
/* end confdefs.h. */
22239
/* Override any gcc2 internal prototype to avoid an error. */
22243
/* We use char because int might match the return type of a gcc2
22244
builtin and then its argument prototype would still apply. */
22254
rm -f conftest.$ac_objext conftest$ac_exeext
22255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22256
(eval $ac_link) 2>conftest.er1
22258
grep -v '^ *+' conftest.er1 >conftest.err
22260
cat conftest.err >&5
22261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262
(exit $ac_status); } &&
22263
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22264
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22265
(eval $ac_try) 2>&5
22267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268
(exit $ac_status); }; } &&
22269
{ ac_try='test -s conftest$ac_exeext'
22270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22271
(eval $ac_try) 2>&5
22273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274
(exit $ac_status); }; }; then
22275
ac_cv_search_initscr="none required"
22277
echo "$as_me: failed program was:" >&5
22278
sed 's/^/| /' conftest.$ac_ext >&5
22281
rm -f conftest.err conftest.$ac_objext \
22282
conftest$ac_exeext conftest.$ac_ext
22283
if test "$ac_cv_search_initscr" = no; then
22284
for ac_lib in curses ncurses; do
22285
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22286
cat >conftest.$ac_ext <<_ACEOF
22289
cat confdefs.h >>conftest.$ac_ext
22290
cat >>conftest.$ac_ext <<_ACEOF
22291
/* end confdefs.h. */
22293
/* Override any gcc2 internal prototype to avoid an error. */
22297
/* We use char because int might match the return type of a gcc2
22298
builtin and then its argument prototype would still apply. */
22308
rm -f conftest.$ac_objext conftest$ac_exeext
22309
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22310
(eval $ac_link) 2>conftest.er1
22312
grep -v '^ *+' conftest.er1 >conftest.err
22314
cat conftest.err >&5
22315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316
(exit $ac_status); } &&
22317
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22319
(eval $ac_try) 2>&5
22321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322
(exit $ac_status); }; } &&
22323
{ ac_try='test -s conftest$ac_exeext'
22324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325
(eval $ac_try) 2>&5
22327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328
(exit $ac_status); }; }; then
22329
ac_cv_search_initscr="-l$ac_lib"
22332
echo "$as_me: failed program was:" >&5
22333
sed 's/^/| /' conftest.$ac_ext >&5
22336
rm -f conftest.err conftest.$ac_objext \
22337
conftest$ac_exeext conftest.$ac_ext
22340
LIBS=$ac_func_search_save_LIBS
22342
echo "$as_me:$LINENO: result: $ac_cv_search_initscr" >&5
22343
echo "${ECHO_T}$ac_cv_search_initscr" >&6
22344
if test "$ac_cv_search_initscr" != no; then
22345
test "$ac_cv_search_initscr" = "none required" || LIBS="$ac_cv_search_initscr $LIBS"
22349
if test "x$have_curses" = "xyes" && test "x$have_readline" = "xyes"; then
22351
cat >>confdefs.h <<\_ACEOF
22352
#define HAVE_READLINE 1
22358
# Check whether --enable-ipmievd or --disable-ipmievd was given.
22359
if test "${enable_ipmievd+set}" = set; then
22360
enableval="$enable_ipmievd"
22367
if test "x$enable_ipmievd" = "xyes"; then
22375
if test "x$enable_ipmievd" = "xyes"; then
22376
IPMIEVD_BIN=ipmievd
22380
# Check whether --enable-buildcheck or --disable-buildcheck was given.
22381
if test "${enable_buildcheck+set}" = set; then
22382
enableval="$enable_buildcheck"
22383
if test "x$enable_buildcheck" != "xno"; then
22384
CFLAGS="$CFLAGS -Wall -Werror"
22390
ac_config_files="$ac_config_files Makefile doc/Makefile contrib/Makefile control/Makefile control/pkginfo control/prototype control/ipmitool.spec lib/Makefile include/Makefile include/ipmitool/Makefile src/Makefile src/plugins/Makefile src/plugins/lan/Makefile src/plugins/lanplus/Makefile src/plugins/open/Makefile src/plugins/imb/Makefile src/plugins/bmc/Makefile src/plugins/lipmi/Makefile"
22393
cat >confcache <<\_ACEOF
22394
# This file is a shell script that caches the results of configure
22395
# tests run on this system so they can be shared between configure
22396
# scripts and configure runs, see configure's option --config-cache.
22397
# It is not useful on other systems. If it contains results you don't
22398
# want to keep, you may remove or edit it.
22400
# config.status only pays attention to the cache file if you give it
22401
# the --recheck option to rerun configure.
22403
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22404
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22405
# following values.
22409
# The following way of writing the cache mishandles newlines in values,
22410
# but we know of no workaround that is simple, portable, and efficient.
22411
# So, don't put newlines in cache variables' values.
22412
# Ultrix sh set writes to stderr and can't be redirected directly,
22413
# and sets the high bit in the cache file unless we assign to the vars.
22416
case `(ac_space=' '; set | grep ac_space) 2>&1` in
22418
# `set' does not quote correctly, so add quotes (double-quote
22419
# substitution turns \\\\ into \\, and sed turns \\ into \).
22422
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22425
# `set' quotes correctly as required by POSIX, so do not add quotes.
22427
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22434
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22436
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22438
if diff $cache_file confcache >/dev/null 2>&1; then :; else
22439
if test -w $cache_file; then
22440
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22441
cat confcache >$cache_file
22443
echo "not updating unwritable cache $cache_file"
22448
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22449
# Let make expand exec_prefix.
22450
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22452
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22453
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22454
# trailing colons and then remove the whole line if VPATH becomes empty
22455
# (actually we leave an empty line to preserve line numbers).
22456
if test "x$srcdir" = x.; then
22457
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22458
s/:*\$(srcdir):*/:/;
22459
s/:*\${srcdir}:*/:/;
22461
s/^\([^=]*=[ ]*\):*/\1/;
22467
DEFS=-DHAVE_CONFIG_H
22471
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22472
# 1. Remove the extension, and $U if already installed.
22473
ac_i=`echo "$ac_i" |
22474
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22476
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22477
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22479
LIBOBJS=$ac_libobjs
22481
LTLIBOBJS=$ac_ltlibobjs
22484
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22485
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22486
Usually this means the macro was only invoked conditionally." >&5
22487
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22488
Usually this means the macro was only invoked conditionally." >&2;}
22489
{ (exit 1); exit 1; }; }
22491
if test -z "${IPMIEVD_TRUE}" && test -z "${IPMIEVD_FALSE}"; then
22492
{ { echo "$as_me:$LINENO: error: conditional \"IPMIEVD\" was never defined.
22493
Usually this means the macro was only invoked conditionally." >&5
22494
echo "$as_me: error: conditional \"IPMIEVD\" was never defined.
22495
Usually this means the macro was only invoked conditionally." >&2;}
22496
{ (exit 1); exit 1; }; }
22499
: ${CONFIG_STATUS=./config.status}
22500
ac_clean_files_save=$ac_clean_files
22501
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22502
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22503
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22504
cat >$CONFIG_STATUS <<_ACEOF
22506
# Generated by $as_me.
22507
# Run this file to recreate the current configuration.
22508
# Compiler output produced by configure, useful for debugging
22509
# configure, is in config.log if it exists.
22512
ac_cs_recheck=false
22514
SHELL=\${CONFIG_SHELL-$SHELL}
22517
cat >>$CONFIG_STATUS <<\_ACEOF
22518
## --------------------- ##
22519
## M4sh Initialization. ##
22520
## --------------------- ##
22522
# Be Bourne compatible
22523
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22526
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22527
# is contrary to our usage. Disable this feature.
22528
alias -g '${1+"$@"}'='"$@"'
22529
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22532
DUALCASE=1; export DUALCASE # for MKS sh
22534
# Support unset when possible.
22535
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22542
# Work around bugs in pre-3.0 UWIN ksh.
22543
$as_unset ENV MAIL MAILPATH
22550
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22551
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22552
LC_TELEPHONE LC_TIME
22554
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22555
eval $as_var=C; export $as_var
22561
# Required to use basename.
22562
if expr a : '\(a\)' >/dev/null 2>&1; then
22568
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22569
as_basename=basename
22575
# Name of the executable.
22576
as_me=`$as_basename "$0" ||
22577
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22578
X"$0" : 'X\(//\)$' \| \
22579
X"$0" : 'X\(/\)$' \| \
22580
. : '\(.\)' 2>/dev/null ||
22582
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22583
/^X\/\(\/\/\)$/{ s//\1/; q; }
22584
/^X\/\(\/\).*/{ s//\1/; q; }
22588
# PATH needs CR, and LINENO needs CR and PATH.
22589
# Avoid depending upon Character Ranges.
22590
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22591
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22592
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22593
as_cr_digits='0123456789'
22594
as_cr_alnum=$as_cr_Letters$as_cr_digits
22596
# The user is always right.
22597
if test "${PATH_SEPARATOR+set}" != set; then
22598
echo "#! /bin/sh" >conf$$.sh
22599
echo "exit 0" >>conf$$.sh
22601
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22610
as_lineno_1=$LINENO
22611
as_lineno_2=$LINENO
22612
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22613
test "x$as_lineno_1" != "x$as_lineno_2" &&
22614
test "x$as_lineno_3" = "x$as_lineno_2" || {
22615
# Find who we are. Look in the path if we contain no path at all
22618
*[\\/]* ) as_myself=$0 ;;
22619
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22620
for as_dir in $PATH
22623
test -z "$as_dir" && as_dir=.
22624
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22629
# We did not find ourselves, most probably we were run as `sh COMMAND'
22630
# in which case we are not to be found in the path.
22631
if test "x$as_myself" = x; then
22634
if test ! -f "$as_myself"; then
22635
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22636
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22637
{ (exit 1); exit 1; }; }
22639
case $CONFIG_SHELL in
22641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22642
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22645
test -z "$as_dir" && as_dir=.
22646
for as_base in sh bash ksh sh5; do
22649
if ("$as_dir/$as_base" -c '
22650
as_lineno_1=$LINENO
22651
as_lineno_2=$LINENO
22652
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22653
test "x$as_lineno_1" != "x$as_lineno_2" &&
22654
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22655
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22656
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22657
CONFIG_SHELL=$as_dir/$as_base
22658
export CONFIG_SHELL
22659
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22667
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22668
# uniformly replaced by the line number. The first 'sed' inserts a
22669
# line-number line before each line; the second 'sed' does the real
22670
# work. The second script uses 'N' to pair each line-number line
22671
# with the numbered line, and appends trailing '-' during
22672
# substitution so that $LINENO is not a special case at line end.
22673
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22674
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22675
sed '=' <$as_myself |
22680
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22683
s,^['$as_cr_digits']*\n,,
22684
' >$as_me.lineno &&
22685
chmod +x $as_me.lineno ||
22686
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22687
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22688
{ (exit 1); exit 1; }; }
22690
# Don't try to exec as it changes $[0], causing all sort of problems
22691
# (the dirname of $[0] is not the place where we might find the
22692
# original and so on. Autoconf is especially sensible to this).
22694
# Exit status is that of the last command.
22699
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22700
*c*,-n*) ECHO_N= ECHO_C='
22702
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22703
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22706
if expr a : '\(a\)' >/dev/null 2>&1; then
22712
rm -f conf$$ conf$$.exe conf$$.file
22714
if ln -s conf$$.file conf$$ 2>/dev/null; then
22715
# We could just check for DJGPP; but this test a) works b) is more generic
22716
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22717
if test -f conf$$.exe; then
22718
# Don't use ln at all; we don't have any links
22723
elif ln conf$$.file conf$$ 2>/dev/null; then
22728
rm -f conf$$ conf$$.exe conf$$.file
22730
if mkdir -p . 2>/dev/null; then
22733
test -d ./-p && rmdir ./-p
22737
as_executable_p="test -f"
22739
# Sed expression to map a string onto a valid CPP name.
22740
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22742
# Sed expression to map a string onto a valid variable name.
22743
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22747
# We need space, tab and new line, in precisely that order.
22757
# Open the log real soon, to keep \$[0] and so on meaningful, and to
22758
# report actual input values of CONFIG_FILES etc. instead of their
22759
# values after options handling. Logging --version etc. is OK.
22763
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22764
## Running $as_me. ##
22769
This file was extended by $as_me, which was
22770
generated by GNU Autoconf 2.59. Invocation command line was
22772
CONFIG_FILES = $CONFIG_FILES
22773
CONFIG_HEADERS = $CONFIG_HEADERS
22774
CONFIG_LINKS = $CONFIG_LINKS
22775
CONFIG_COMMANDS = $CONFIG_COMMANDS
22779
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22783
# Files that config.status was made for.
22784
if test -n "$ac_config_files"; then
22785
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22788
if test -n "$ac_config_headers"; then
22789
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22792
if test -n "$ac_config_links"; then
22793
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22796
if test -n "$ac_config_commands"; then
22797
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22800
cat >>$CONFIG_STATUS <<\_ACEOF
22803
\`$as_me' instantiates files from templates according to the
22804
current configuration.
22806
Usage: $0 [OPTIONS] [FILE]...
22808
-h, --help print this help, then exit
22809
-V, --version print version number, then exit
22810
-q, --quiet do not print progress messages
22811
-d, --debug don't remove temporary files
22812
--recheck update $as_me by reconfiguring in the same conditions
22813
--file=FILE[:TEMPLATE]
22814
instantiate the configuration file FILE
22815
--header=FILE[:TEMPLATE]
22816
instantiate the configuration header FILE
22818
Configuration files:
22821
Configuration headers:
22824
Configuration commands:
22827
Report bugs to <bug-autoconf@gnu.org>."
22830
cat >>$CONFIG_STATUS <<_ACEOF
22833
configured by $0, generated by GNU Autoconf 2.59,
22834
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22836
Copyright (C) 2003 Free Software Foundation, Inc.
22837
This config.status script is free software; the Free Software Foundation
22838
gives unlimited permission to copy, distribute and modify it."
22843
cat >>$CONFIG_STATUS <<\_ACEOF
22844
# If no file are specified by the user, then we need to provide default
22845
# value. By we need to know if files were specified by the user.
22851
ac_option=`expr "x$1" : 'x\([^=]*\)='`
22852
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22860
*) # This is not an option, so the user has probably given explicit
22863
ac_need_defaults=false;;
22867
# Handling of the options.
22869
cat >>$CONFIG_STATUS <<\_ACEOF
22870
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22872
--version | --vers* | -V )
22873
echo "$ac_cs_version"; exit 0 ;;
22875
# Conflict between --help and --header
22876
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
22877
Try \`$0 --help' for more information." >&5
22878
echo "$as_me: error: ambiguous option: $1
22879
Try \`$0 --help' for more information." >&2;}
22880
{ (exit 1); exit 1; }; };;
22881
--help | --hel | -h )
22882
echo "$ac_cs_usage"; exit 0 ;;
22883
--debug | --d* | -d )
22885
--file | --fil | --fi | --f )
22887
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22888
ac_need_defaults=false;;
22889
--header | --heade | --head | --hea )
22891
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22892
ac_need_defaults=false;;
22893
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22894
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22897
# This is an error.
22898
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22899
Try \`$0 --help' for more information." >&5
22900
echo "$as_me: error: unrecognized option: $1
22901
Try \`$0 --help' for more information." >&2;}
22902
{ (exit 1); exit 1; }; } ;;
22904
*) ac_config_targets="$ac_config_targets $1" ;;
22910
ac_configure_extra_args=
22912
if $ac_cs_silent; then
22914
ac_configure_extra_args="$ac_configure_extra_args --silent"
22918
cat >>$CONFIG_STATUS <<_ACEOF
22919
if \$ac_cs_recheck; then
22920
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22921
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22926
cat >>$CONFIG_STATUS <<_ACEOF
22928
# INIT-COMMANDS section.
22931
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22937
cat >>$CONFIG_STATUS <<\_ACEOF
22938
for ac_config_target in $ac_config_targets
22940
case "$ac_config_target" in
22941
# Handling of arguments.
22942
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22943
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22944
"contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
22945
"control/Makefile" ) CONFIG_FILES="$CONFIG_FILES control/Makefile" ;;
22946
"control/pkginfo" ) CONFIG_FILES="$CONFIG_FILES control/pkginfo" ;;
22947
"control/prototype" ) CONFIG_FILES="$CONFIG_FILES control/prototype" ;;
22948
"control/ipmitool.spec" ) CONFIG_FILES="$CONFIG_FILES control/ipmitool.spec" ;;
22949
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22950
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22951
"include/ipmitool/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/ipmitool/Makefile" ;;
22952
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22953
"src/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
22954
"src/plugins/lan/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/lan/Makefile" ;;
22955
"src/plugins/lanplus/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/lanplus/Makefile" ;;
22956
"src/plugins/open/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/open/Makefile" ;;
22957
"src/plugins/imb/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/imb/Makefile" ;;
22958
"src/plugins/bmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/bmc/Makefile" ;;
22959
"src/plugins/lipmi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/lipmi/Makefile" ;;
22960
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22961
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22962
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22963
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22964
{ (exit 1); exit 1; }; };;
22968
# If the user did not use the arguments to specify the items to instantiate,
22969
# then the envvar interface is used. Set only those that are not.
22970
# We use the long form for the default assignment because of an extremely
22971
# bizarre bug on SunOS 4.1.3.
22972
if $ac_need_defaults; then
22973
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22974
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22975
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22978
# Have a temporary directory for convenience. Make it in the build tree
22979
# simply because there is no reason to put it here, and in addition,
22980
# creating and moving files from /tmp can sometimes cause problems.
22981
# Create a temporary directory, and hook for its removal unless debugging.
22984
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22985
trap '{ (exit 1); exit 1; }' 1 2 13 15
22988
# Create a (secure) tmp directory for tmp files.
22991
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22992
test -n "$tmp" && test -d "$tmp"
22995
tmp=./confstat$$-$RANDOM
22996
(umask 077 && mkdir $tmp)
22999
echo "$me: cannot create a temporary directory in ." >&2
23000
{ (exit 1); exit 1; }
23005
cat >>$CONFIG_STATUS <<_ACEOF
23008
# CONFIG_FILES section.
23011
# No need to generate the scripts if there are no CONFIG_FILES.
23012
# This happens for instance when ./config.status config.h
23013
if test -n "\$CONFIG_FILES"; then
23014
# Protect against being on the right side of a sed subst in config.status.
23015
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23016
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23017
s,@SHELL@,$SHELL,;t t
23018
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23019
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23020
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23021
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23022
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23023
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23024
s,@exec_prefix@,$exec_prefix,;t t
23025
s,@prefix@,$prefix,;t t
23026
s,@program_transform_name@,$program_transform_name,;t t
23027
s,@bindir@,$bindir,;t t
23028
s,@sbindir@,$sbindir,;t t
23029
s,@libexecdir@,$libexecdir,;t t
23030
s,@datadir@,$datadir,;t t
23031
s,@sysconfdir@,$sysconfdir,;t t
23032
s,@sharedstatedir@,$sharedstatedir,;t t
23033
s,@localstatedir@,$localstatedir,;t t
23034
s,@libdir@,$libdir,;t t
23035
s,@includedir@,$includedir,;t t
23036
s,@oldincludedir@,$oldincludedir,;t t
23037
s,@infodir@,$infodir,;t t
23038
s,@mandir@,$mandir,;t t
23039
s,@build_alias@,$build_alias,;t t
23040
s,@host_alias@,$host_alias,;t t
23041
s,@target_alias@,$target_alias,;t t
23042
s,@DEFS@,$DEFS,;t t
23043
s,@ECHO_C@,$ECHO_C,;t t
23044
s,@ECHO_N@,$ECHO_N,;t t
23045
s,@ECHO_T@,$ECHO_T,;t t
23046
s,@LIBS@,$LIBS,;t t
23047
s,@build@,$build,;t t
23048
s,@build_cpu@,$build_cpu,;t t
23049
s,@build_vendor@,$build_vendor,;t t
23050
s,@build_os@,$build_os,;t t
23051
s,@host@,$host,;t t
23052
s,@host_cpu@,$host_cpu,;t t
23053
s,@host_vendor@,$host_vendor,;t t
23054
s,@host_os@,$host_os,;t t
23055
s,@target@,$target,;t t
23056
s,@target_cpu@,$target_cpu,;t t
23057
s,@target_vendor@,$target_vendor,;t t
23058
s,@target_os@,$target_os,;t t
23059
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23060
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23061
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23062
s,@PACKAGE@,$PACKAGE,;t t
23063
s,@VERSION@,$VERSION,;t t
23064
s,@ACLOCAL@,$ACLOCAL,;t t
23065
s,@AUTOCONF@,$AUTOCONF,;t t
23066
s,@AUTOMAKE@,$AUTOMAKE,;t t
23067
s,@AUTOHEADER@,$AUTOHEADER,;t t
23068
s,@MAKEINFO@,$MAKEINFO,;t t
23069
s,@AMTAR@,$AMTAR,;t t
23070
s,@install_sh@,$install_sh,;t t
23071
s,@STRIP@,$STRIP,;t t
23072
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23073
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23075
s,@SET_MAKE@,$SET_MAKE,;t t
23076
s,@ac_configure_args@,$ac_configure_args,;t t
23078
s,@CFLAGS@,$CFLAGS,;t t
23079
s,@LDFLAGS@,$LDFLAGS,;t t
23080
s,@CPPFLAGS@,$CPPFLAGS,;t t
23081
s,@ac_ct_CC@,$ac_ct_CC,;t t
23082
s,@EXEEXT@,$EXEEXT,;t t
23083
s,@OBJEXT@,$OBJEXT,;t t
23084
s,@DEPDIR@,$DEPDIR,;t t
23085
s,@am__include@,$am__include,;t t
23086
s,@am__quote@,$am__quote,;t t
23087
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23088
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23089
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23090
s,@CCDEPMODE@,$CCDEPMODE,;t t
23091
s,@LN_S@,$LN_S,;t t
23092
s,@RPMBUILD@,$RPMBUILD,;t t
23095
s,@EGREP@,$EGREP,;t t
23096
s,@LIBOBJS@,$LIBOBJS,;t t
23097
s,@POW_LIB@,$POW_LIB,;t t
23098
s,@ECHO@,$ECHO,;t t
23100
s,@ac_ct_AR@,$ac_ct_AR,;t t
23101
s,@RANLIB@,$RANLIB,;t t
23102
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23104
s,@CXXFLAGS@,$CXXFLAGS,;t t
23105
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23106
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23107
s,@CXXCPP@,$CXXCPP,;t t
23109
s,@FFLAGS@,$FFLAGS,;t t
23110
s,@ac_ct_F77@,$ac_ct_F77,;t t
23111
s,@LIBTOOL@,$LIBTOOL,;t t
23112
s,@ARCH@,$ARCH,;t t
23114
s,@PSTAMP@,$PSTAMP,;t t
23115
s,@BASEDIR@,$BASEDIR,;t t
23116
s,@INTF_LAN@,$INTF_LAN,;t t
23117
s,@INTF_LAN_LIB@,$INTF_LAN_LIB,;t t
23118
s,@INTF_LANPLUS@,$INTF_LANPLUS,;t t
23119
s,@INTF_LANPLUS_LIB@,$INTF_LANPLUS_LIB,;t t
23120
s,@INTF_OPEN@,$INTF_OPEN,;t t
23121
s,@INTF_OPEN_LIB@,$INTF_OPEN_LIB,;t t
23122
s,@INTF_IMB@,$INTF_IMB,;t t
23123
s,@INTF_IMB_LIB@,$INTF_IMB_LIB,;t t
23124
s,@INTF_LIPMI@,$INTF_LIPMI,;t t
23125
s,@INTF_LIPMI_LIB@,$INTF_LIPMI_LIB,;t t
23126
s,@INTF_BMC@,$INTF_BMC,;t t
23127
s,@INTF_BMC_LIB@,$INTF_BMC_LIB,;t t
23128
s,@IPMITOOL_INTF_LIB@,$IPMITOOL_INTF_LIB,;t t
23129
s,@IPMIEVD_TRUE@,$IPMIEVD_TRUE,;t t
23130
s,@IPMIEVD_FALSE@,$IPMIEVD_FALSE,;t t
23131
s,@IPMIEVD_BIN@,$IPMIEVD_BIN,;t t
23132
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23137
cat >>$CONFIG_STATUS <<\_ACEOF
23138
# Split the substitutions into bite-sized pieces for seds with
23139
# small command number limits, like on Digital OSF/1 and HP-UX.
23140
ac_max_sed_lines=48
23141
ac_sed_frag=1 # Number of current file.
23142
ac_beg=1 # First line for current file.
23143
ac_end=$ac_max_sed_lines # Line after last line for current file.
23146
while $ac_more_lines; do
23147
if test $ac_beg -gt 1; then
23148
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23150
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23152
if test ! -s $tmp/subs.frag; then
23153
ac_more_lines=false
23155
# The purpose of the label and of the branching condition is to
23156
# speed up the sed processing (if there are no `@' at all, there
23157
# is no need to browse any of the substitutions).
23158
# These are the two extra sed commands mentioned above.
23160
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23161
if test -z "$ac_sed_cmds"; then
23162
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23164
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23166
ac_sed_frag=`expr $ac_sed_frag + 1`
23168
ac_end=`expr $ac_end + $ac_max_sed_lines`
23171
if test -z "$ac_sed_cmds"; then
23174
fi # test -n "$CONFIG_FILES"
23177
cat >>$CONFIG_STATUS <<\_ACEOF
23178
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23179
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23181
- | *:- | *:-:* ) # input from stdin
23183
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23184
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23185
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23186
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23187
* ) ac_file_in=$ac_file.in ;;
23190
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23191
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23192
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23193
X"$ac_file" : 'X\(//\)[^/]' \| \
23194
X"$ac_file" : 'X\(//\)$' \| \
23195
X"$ac_file" : 'X\(/\)' \| \
23196
. : '\(.\)' 2>/dev/null ||
23198
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23199
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23200
/^X\(\/\/\)$/{ s//\1/; q; }
23201
/^X\(\/\).*/{ s//\1/; q; }
23203
{ if $as_mkdir_p; then
23208
while test ! -d "$as_dir"; do
23209
as_dirs="$as_dir $as_dirs"
23210
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23211
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23212
X"$as_dir" : 'X\(//\)[^/]' \| \
23213
X"$as_dir" : 'X\(//\)$' \| \
23214
X"$as_dir" : 'X\(/\)' \| \
23215
. : '\(.\)' 2>/dev/null ||
23217
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23218
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23219
/^X\(\/\/\)$/{ s//\1/; q; }
23220
/^X\(\/\).*/{ s//\1/; q; }
23223
test ! -n "$as_dirs" || mkdir $as_dirs
23224
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23225
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23226
{ (exit 1); exit 1; }; }; }
23230
if test "$ac_dir" != .; then
23231
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23232
# A "../" for each directory in $ac_dir_suffix.
23233
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23235
ac_dir_suffix= ac_top_builddir=
23239
.) # No --srcdir option. We are building in place.
23241
if test -z "$ac_top_builddir"; then
23244
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23246
[\\/]* | ?:[\\/]* ) # Absolute path.
23247
ac_srcdir=$srcdir$ac_dir_suffix;
23248
ac_top_srcdir=$srcdir ;;
23249
*) # Relative path.
23250
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23251
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23254
# Do not use `cd foo && pwd` to compute absolute paths, because
23255
# the directories may not exist.
23257
.) ac_abs_builddir="$ac_dir";;
23260
.) ac_abs_builddir=`pwd`;;
23261
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23262
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23265
case $ac_abs_builddir in
23266
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23268
case ${ac_top_builddir}. in
23269
.) ac_abs_top_builddir=$ac_abs_builddir;;
23270
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23271
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23274
case $ac_abs_builddir in
23275
.) ac_abs_srcdir=$ac_srcdir;;
23278
.) ac_abs_srcdir=$ac_abs_builddir;;
23279
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23280
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23283
case $ac_abs_builddir in
23284
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23286
case $ac_top_srcdir in
23287
.) ac_abs_top_srcdir=$ac_abs_builddir;;
23288
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23289
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23295
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23296
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23299
# Let's still pretend it is `configure' which instantiates (i.e., don't
23300
# use $as_me), people would be surprised to read:
23301
# /* config.h. Generated by config.status. */
23302
if test x"$ac_file" = x-; then
23305
configure_input="$ac_file. "
23307
configure_input=$configure_input"Generated from `echo $ac_file_in |
23308
sed 's,.*/,,'` by configure."
23310
# First look for the input files in the build tree, otherwise in the
23312
ac_file_inputs=`IFS=:
23313
for f in $ac_file_in; do
23315
-) echo $tmp/stdin ;;
23317
# Absolute (can't be DOS-style, as IFS=:)
23318
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23319
echo "$as_me: error: cannot find input file: $f" >&2;}
23320
{ (exit 1); exit 1; }; }
23323
if test -f "$f"; then
23326
elif test -f "$srcdir/$f"; then
23331
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23332
echo "$as_me: error: cannot find input file: $f" >&2;}
23333
{ (exit 1); exit 1; }; }
23336
done` || { (exit 1); exit 1; }
23338
if test x"$ac_file" != x-; then
23339
{ echo "$as_me:$LINENO: creating $ac_file" >&5
23340
echo "$as_me: creating $ac_file" >&6;}
23344
cat >>$CONFIG_STATUS <<_ACEOF
23348
cat >>$CONFIG_STATUS <<\_ACEOF
23350
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23351
s,@configure_input@,$configure_input,;t t
23352
s,@srcdir@,$ac_srcdir,;t t
23353
s,@abs_srcdir@,$ac_abs_srcdir,;t t
23354
s,@top_srcdir@,$ac_top_srcdir,;t t
23355
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23356
s,@builddir@,$ac_builddir,;t t
23357
s,@abs_builddir@,$ac_abs_builddir,;t t
23358
s,@top_builddir@,$ac_top_builddir,;t t
23359
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23360
s,@INSTALL@,$ac_INSTALL,;t t
23361
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23363
if test x"$ac_file" != x-; then
23364
mv $tmp/out $ac_file
23372
cat >>$CONFIG_STATUS <<\_ACEOF
23375
# CONFIG_HEADER section.
23378
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23379
# NAME is the cpp macro being defined and VALUE is the value it is being given.
23381
# ac_d sets the value in "#define NAME VALUE" lines.
23382
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23383
ac_dB='[ ].*$,\1#\2'
23386
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23387
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23388
ac_uB='$,\1#\2define\3'
23392
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23393
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23395
- | *:- | *:-:* ) # input from stdin
23397
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23398
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23399
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23400
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23401
* ) ac_file_in=$ac_file.in ;;
23404
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23405
echo "$as_me: creating $ac_file" >&6;}
23407
# First look for the input files in the build tree, otherwise in the
23409
ac_file_inputs=`IFS=:
23410
for f in $ac_file_in; do
23412
-) echo $tmp/stdin ;;
23414
# Absolute (can't be DOS-style, as IFS=:)
23415
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23416
echo "$as_me: error: cannot find input file: $f" >&2;}
23417
{ (exit 1); exit 1; }; }
23418
# Do quote $f, to prevent DOS paths from being IFS'd.
23421
if test -f "$f"; then
23424
elif test -f "$srcdir/$f"; then
23429
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23430
echo "$as_me: error: cannot find input file: $f" >&2;}
23431
{ (exit 1); exit 1; }; }
23434
done` || { (exit 1); exit 1; }
23435
# Remove the trailing spaces.
23436
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23440
# Transform confdefs.h into two sed scripts, `conftest.defines' and
23441
# `conftest.undefs', that substitutes the proper values into
23442
# config.h.in to produce config.h. The first handles `#define'
23443
# templates, and the second `#undef' templates.
23444
# And first: Protect against being on the right side of a sed subst in
23445
# config.status. Protect against being in an unquoted here document
23446
# in config.status.
23447
rm -f conftest.defines conftest.undefs
23448
# Using a here document instead of a string reduces the quoting nightmare.
23449
# Putting comments in sed scripts is not portable.
23451
# `end' is used to avoid that the second main sed command (meant for
23452
# 0-ary CPP macros) applies to n-ary macro definitions.
23453
# See the Autoconf documentation for `clear'.
23454
cat >confdef2sed.sed <<\_ACEOF
23459
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23461
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23464
# If some macros were called several times there might be several times
23465
# the same #defines, which is useless. Nevertheless, we may not want to
23466
# sort them, since we want the *last* AC-DEFINE to be honored.
23467
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23468
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23469
rm -f confdef2sed.sed
23471
# This sed command replaces #undef with comments. This is necessary, for
23472
# example, in the case of _POSIX_SOURCE, which is predefined and required
23473
# on some systems where configure will not decide to define it.
23474
cat >>conftest.undefs <<\_ACEOF
23475
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23478
# Break up conftest.defines because some shells have a limit on the size
23479
# of here documents, and old seds have small limits too (100 cmds).
23480
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23481
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23482
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23483
echo ' :' >>$CONFIG_STATUS
23484
rm -f conftest.tail
23485
while grep . conftest.defines >/dev/null
23487
# Write a limited-size here document to $tmp/defines.sed.
23488
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23489
# Speed up: don't consider the non `#define' lines.
23490
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23491
# Work around the forget-to-reset-the-flag bug.
23492
echo 't clr' >>$CONFIG_STATUS
23493
echo ': clr' >>$CONFIG_STATUS
23494
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23496
sed -f $tmp/defines.sed $tmp/in >$tmp/out
23498
mv $tmp/out $tmp/in
23500
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23501
rm -f conftest.defines
23502
mv conftest.tail conftest.defines
23504
rm -f conftest.defines
23505
echo ' fi # grep' >>$CONFIG_STATUS
23506
echo >>$CONFIG_STATUS
23508
# Break up conftest.undefs because some shells have a limit on the size
23509
# of here documents, and old seds have small limits too (100 cmds).
23510
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23511
rm -f conftest.tail
23512
while grep . conftest.undefs >/dev/null
23514
# Write a limited-size here document to $tmp/undefs.sed.
23515
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23516
# Speed up: don't consider the non `#undef'
23517
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23518
# Work around the forget-to-reset-the-flag bug.
23519
echo 't clr' >>$CONFIG_STATUS
23520
echo ': clr' >>$CONFIG_STATUS
23521
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23523
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23525
mv $tmp/out $tmp/in
23527
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23528
rm -f conftest.undefs
23529
mv conftest.tail conftest.undefs
23531
rm -f conftest.undefs
23533
cat >>$CONFIG_STATUS <<\_ACEOF
23534
# Let's still pretend it is `configure' which instantiates (i.e., don't
23535
# use $as_me), people would be surprised to read:
23536
# /* config.h. Generated by config.status. */
23537
if test x"$ac_file" = x-; then
23538
echo "/* Generated by configure. */" >$tmp/config.h
23540
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23542
cat $tmp/in >>$tmp/config.h
23544
if test x"$ac_file" != x-; then
23545
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23546
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23547
echo "$as_me: $ac_file is unchanged" >&6;}
23549
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23550
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23551
X"$ac_file" : 'X\(//\)[^/]' \| \
23552
X"$ac_file" : 'X\(//\)$' \| \
23553
X"$ac_file" : 'X\(/\)' \| \
23554
. : '\(.\)' 2>/dev/null ||
23556
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23557
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23558
/^X\(\/\/\)$/{ s//\1/; q; }
23559
/^X\(\/\).*/{ s//\1/; q; }
23561
{ if $as_mkdir_p; then
23566
while test ! -d "$as_dir"; do
23567
as_dirs="$as_dir $as_dirs"
23568
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23569
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23570
X"$as_dir" : 'X\(//\)[^/]' \| \
23571
X"$as_dir" : 'X\(//\)$' \| \
23572
X"$as_dir" : 'X\(/\)' \| \
23573
. : '\(.\)' 2>/dev/null ||
23575
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23576
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23577
/^X\(\/\/\)$/{ s//\1/; q; }
23578
/^X\(\/\).*/{ s//\1/; q; }
23581
test ! -n "$as_dirs" || mkdir $as_dirs
23582
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23583
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23584
{ (exit 1); exit 1; }; }; }
23587
mv $tmp/config.h $ac_file
23591
rm -f $tmp/config.h
23593
# Run the commands associated with the file.
23595
config.h ) # update the timestamp
23596
echo 'timestamp for config.h' >"./stamp-h1"
23601
cat >>$CONFIG_STATUS <<\_ACEOF
23604
# CONFIG_COMMANDS section.
23606
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23607
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23608
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23609
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23610
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23611
X"$ac_dest" : 'X\(//\)[^/]' \| \
23612
X"$ac_dest" : 'X\(//\)$' \| \
23613
X"$ac_dest" : 'X\(/\)' \| \
23614
. : '\(.\)' 2>/dev/null ||
23616
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23617
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23618
/^X\(\/\/\)$/{ s//\1/; q; }
23619
/^X\(\/\).*/{ s//\1/; q; }
23621
{ if $as_mkdir_p; then
23626
while test ! -d "$as_dir"; do
23627
as_dirs="$as_dir $as_dirs"
23628
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23629
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23630
X"$as_dir" : 'X\(//\)[^/]' \| \
23631
X"$as_dir" : 'X\(//\)$' \| \
23632
X"$as_dir" : 'X\(/\)' \| \
23633
. : '\(.\)' 2>/dev/null ||
23635
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23636
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23637
/^X\(\/\/\)$/{ s//\1/; q; }
23638
/^X\(\/\).*/{ s//\1/; q; }
23641
test ! -n "$as_dirs" || mkdir $as_dirs
23642
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23643
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23644
{ (exit 1); exit 1; }; }; }
23648
if test "$ac_dir" != .; then
23649
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23650
# A "../" for each directory in $ac_dir_suffix.
23651
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23653
ac_dir_suffix= ac_top_builddir=
23657
.) # No --srcdir option. We are building in place.
23659
if test -z "$ac_top_builddir"; then
23662
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23664
[\\/]* | ?:[\\/]* ) # Absolute path.
23665
ac_srcdir=$srcdir$ac_dir_suffix;
23666
ac_top_srcdir=$srcdir ;;
23667
*) # Relative path.
23668
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23669
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23672
# Do not use `cd foo && pwd` to compute absolute paths, because
23673
# the directories may not exist.
23675
.) ac_abs_builddir="$ac_dir";;
23678
.) ac_abs_builddir=`pwd`;;
23679
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23680
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23683
case $ac_abs_builddir in
23684
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23686
case ${ac_top_builddir}. in
23687
.) ac_abs_top_builddir=$ac_abs_builddir;;
23688
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23689
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23692
case $ac_abs_builddir in
23693
.) ac_abs_srcdir=$ac_srcdir;;
23696
.) ac_abs_srcdir=$ac_abs_builddir;;
23697
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23698
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23701
case $ac_abs_builddir in
23702
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23704
case $ac_top_srcdir in
23705
.) ac_abs_top_srcdir=$ac_abs_builddir;;
23706
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23707
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23712
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23713
echo "$as_me: executing $ac_dest commands" >&6;}
23715
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23716
# Strip MF so we end up with the name of the file.
23717
mf=`echo "$mf" | sed -e 's/:.*$//'`
23718
# Check whether this is an Automake generated Makefile or not.
23719
# We used to match only the files named `Makefile.in', but
23720
# some people rename them; so instead we look at the file content.
23721
# Grep'ing the first line is not enough: some people post-process
23722
# each Makefile.in and add a new line on top of each file to say so.
23723
# So let's grep whole file.
23724
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23725
dirpart=`(dirname "$mf") 2>/dev/null ||
23726
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23727
X"$mf" : 'X\(//\)[^/]' \| \
23728
X"$mf" : 'X\(//\)$' \| \
23729
X"$mf" : 'X\(/\)' \| \
23730
. : '\(.\)' 2>/dev/null ||
23732
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23733
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23734
/^X\(\/\/\)$/{ s//\1/; q; }
23735
/^X\(\/\).*/{ s//\1/; q; }
23740
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23741
# Extract the definition of DEP_FILES from the Makefile without
23743
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23744
test -z "$DEPDIR" && continue
23745
# When using ansi2knr, U may be empty or an underscore; expand it
23746
U=`sed -n -e '/^U = / s///p' < "$mf"`
23747
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23748
# We invoke sed twice because it is the simplest approach to
23749
# changing $(DEPDIR) to its actual value in the expansion.
23750
for file in `sed -n -e '
23751
/^DEP_FILES = .*\\\\$/ {
23760
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23761
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23762
# Make sure the directory exists.
23763
test -f "$dirpart/$file" && continue
23764
fdir=`(dirname "$file") 2>/dev/null ||
23765
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23766
X"$file" : 'X\(//\)[^/]' \| \
23767
X"$file" : 'X\(//\)$' \| \
23768
X"$file" : 'X\(/\)' \| \
23769
. : '\(.\)' 2>/dev/null ||
23771
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23772
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23773
/^X\(\/\/\)$/{ s//\1/; q; }
23774
/^X\(\/\).*/{ s//\1/; q; }
23776
{ if $as_mkdir_p; then
23777
mkdir -p $dirpart/$fdir
23779
as_dir=$dirpart/$fdir
23781
while test ! -d "$as_dir"; do
23782
as_dirs="$as_dir $as_dirs"
23783
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23784
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23785
X"$as_dir" : 'X\(//\)[^/]' \| \
23786
X"$as_dir" : 'X\(//\)$' \| \
23787
X"$as_dir" : 'X\(/\)' \| \
23788
. : '\(.\)' 2>/dev/null ||
23790
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23791
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23792
/^X\(\/\/\)$/{ s//\1/; q; }
23793
/^X\(\/\).*/{ s//\1/; q; }
23796
test ! -n "$as_dirs" || mkdir $as_dirs
23797
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23798
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23799
{ (exit 1); exit 1; }; }; }
23801
# echo "creating $dirpart/$file"
23802
echo '# dummy' > "$dirpart/$file"
23810
cat >>$CONFIG_STATUS <<\_ACEOF
23812
{ (exit 0); exit 0; }
23814
chmod +x $CONFIG_STATUS
23815
ac_clean_files=$ac_clean_files_save
23818
# configure is writing to config.log, and then calls config.status.
23819
# config.status does its own redirection, appending to config.log.
23820
# Unfortunately, on DOS this fails, as config.log is still kept open
23821
# by configure, so config.status won't be able to write to it; its
23822
# output is simply discarded. So we exec the FD to /dev/null,
23823
# effectively closing config.log, so it can be properly (re)opened and
23824
# appended to by config.status. When coming back to configure, we
23825
# need to make the FD available again.
23826
if test "$no_create" != yes; then
23828
ac_config_status_args=
23829
test "$silent" = yes &&
23830
ac_config_status_args="$ac_config_status_args --quiet"
23832
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23834
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23835
# would make configure fail if this is the last instruction.
23836
$ac_cs_success || { (exit 1); exit 1; }
23840
echo "$as_me:$LINENO: result: " >&5
23841
echo "${ECHO_T}" >&6
23842
echo "$as_me:$LINENO: result: ipmitool $VERSION" >&5
23843
echo "${ECHO_T}ipmitool $VERSION" >&6
23844
echo "$as_me:$LINENO: result: " >&5
23845
echo "${ECHO_T}" >&6
23846
echo "$as_me:$LINENO: result: Interfaces" >&5
23847
echo "${ECHO_T}Interfaces" >&6
23848
echo "$as_me:$LINENO: result: lan : $enable_intf_lan" >&5
23849
echo "${ECHO_T} lan : $enable_intf_lan" >&6
23850
echo "$as_me:$LINENO: result: lanplus : $enable_intf_lanplus" >&5
23851
echo "${ECHO_T} lanplus : $enable_intf_lanplus" >&6
23852
echo "$as_me:$LINENO: result: open : $enable_intf_open" >&5
23853
echo "${ECHO_T} open : $enable_intf_open" >&6
23854
echo "$as_me:$LINENO: result: imb : $enable_intf_imb" >&5
23855
echo "${ECHO_T} imb : $enable_intf_imb" >&6
23856
echo "$as_me:$LINENO: result: bmc : $enable_intf_bmc" >&5
23857
echo "${ECHO_T} bmc : $enable_intf_bmc" >&6
23858
echo "$as_me:$LINENO: result: lipmi : $enable_intf_lipmi" >&5
23859
echo "${ECHO_T} lipmi : $enable_intf_lipmi" >&6
23860
echo "$as_me:$LINENO: result: " >&5
23861
echo "${ECHO_T}" >&6
23862
echo "$as_me:$LINENO: result: Extra tools" >&5
23863
echo "${ECHO_T}Extra tools" >&6
23864
echo "$as_me:$LINENO: result: ipmievd : $enable_ipmievd" >&5
23865
echo "${ECHO_T} ipmievd : $enable_ipmievd" >&6
23866
echo "$as_me:$LINENO: result: " >&5
23867
echo "${ECHO_T}" >&6