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.
9
@%:@ Dipl.-Ing. Christian Aberger (http://www.aberger.at)
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# Check that we are running under the correct shell.
248
SHELL=${CONFIG_SHELL-/bin/sh}
252
# Remove one level of quotation (which was required for Make).
253
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258
if test "X$1" = X--no-reexec; then
259
# Discard the --no-reexec flag, and continue.
261
elif test "X$1" = X--fallback-echo; then
262
# Avoid inline document here, it may be left over
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
# Yippee, $echo works!
268
# Restart under the correct shell.
269
exec $SHELL "$0" --no-reexec ${1+"$@"}
272
if test "X$1" = X--fallback-echo; then
273
# used as fallback echo
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285
if test -z "$ECHO"; then
286
if test "X${echo_test_string+set}" != Xset; then
287
# find a string as large as possible, as long as the shell can cope with it
288
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291
echo_test_string=`eval $cmd` &&
292
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
test "X$echo_testing_string" = "X$echo_test_string"; then
304
# The Solaris, AIX, and Digital Unix default echo programs unquote
305
# backslashes. This makes it impossible to quote backslashes using
306
# echo "$something" | sed 's/\\/\\\\/g'
308
# So, first we look for a working echo in the user's PATH.
310
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
for dir in $PATH /usr/ucb; do
313
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
test "X$echo_testing_string" = "X$echo_test_string"; then
323
if test "X$echo" = Xecho; then
324
# We didn't find a better echo, so look for alternatives.
325
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
test "X$echo_testing_string" = "X$echo_test_string"; then
328
# This shell has a builtin print -r that does the trick.
330
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
test "X$CONFIG_SHELL" != X/bin/ksh; then
332
# If we have ksh, try running configure again with it.
333
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
export ORIGINAL_CONFIG_SHELL
335
CONFIG_SHELL=/bin/ksh
337
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
test "X$echo_testing_string" = "X$echo_test_string"; then
346
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
test "X$echo_testing_string" = 'X\t' &&
348
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
test "X$echo_testing_string" = "X$echo_test_string"; then
350
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352
SHELL="$CONFIG_SHELL"
354
echo="$CONFIG_SHELL $0 --fallback-echo"
355
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
echo="$CONFIG_SHELL $0 --fallback-echo"
361
# maybe with a smaller string...
364
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372
if test "$prev" != 'sed 50q "$0"'; then
373
echo_test_string=`eval $prev`
374
export echo_test_string
375
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377
# Oops. We lost completely, so just stick with echo.
386
# Copy echo and quote the copy suitably for passing to libtool from
387
# the Makefile, instead of quoting the original, which is used later.
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396
tagnames=${tagnames+${tagnames},}CXX
398
tagnames=${tagnames+${tagnames},}F77
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
# so uname gets run too.
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
ac_default_prefix=/usr/local
411
ac_config_libobj_dir=.
416
SHELL=${CONFIG_SHELL-/bin/sh}
418
# Maximum number of lines to put in a shell here document.
419
# This variable seems obsolete. It should probably be removed, and
420
# only ac_max_sed_lines should be used.
421
: ${ac_max_here_lines=38}
423
# Identity of this package.
430
ac_unique_file="mod_gsoap/mod_gsoap.c"
431
ac_unique_file="mod_gsoap/mod_gsoap.c"
432
# Factoring default headers for most tests.
433
ac_includes_default="\
436
# include <sys/types.h>
439
# include <sys/stat.h>
450
# if !STDC_HEADERS && HAVE_MEMORY_H
456
# include <strings.h>
459
# include <inttypes.h>
469
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar EXISTS_GSOAP DEBUG_TRUE DEBUG_FALSE CXXDEBUGDEFINES APXS_CXX_OPTIONS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EXISTS_APXS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIB@&t@OBJS LTLIBOBJS'
472
# Initialize some variables set by options.
474
ac_init_version=false
475
# The variables have the same names as the options, with
476
# dashes changed to underlines.
484
program_transform_name=s,x,x,
492
# Installation directory options.
493
# These are left unexpanded so users can "make install exec_prefix=/foo"
494
# and all the variables that are supposed to be based on exec_prefix
495
# by default will actually change.
496
# Use braces instead of parens because sh, perl, etc. also accept them.
497
bindir='${exec_prefix}/bin'
498
sbindir='${exec_prefix}/sbin'
499
libexecdir='${exec_prefix}/libexec'
500
datadir='${prefix}/share'
501
sysconfdir='${prefix}/etc'
502
sharedstatedir='${prefix}/com'
503
localstatedir='${prefix}/var'
504
libdir='${exec_prefix}/lib'
505
includedir='${prefix}/include'
506
oldincludedir='/usr/include'
507
infodir='${prefix}/info'
508
mandir='${prefix}/man'
513
# If the previous option needs an argument, assign it.
514
if test -n "$ac_prev"; then
515
eval "$ac_prev=\$ac_option"
520
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
# Accept the important Cygnus configure options, so we can diagnose typos.
526
-bindir | --bindir | --bindi | --bind | --bin | --bi)
528
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531
-build | --build | --buil | --bui | --bu)
532
ac_prev=build_alias ;;
533
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
534
build_alias=$ac_optarg ;;
536
-cache-file | --cache-file | --cache-fil | --cache-fi \
537
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538
ac_prev=cache_file ;;
539
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541
cache_file=$ac_optarg ;;
544
cache_file=config.cache ;;
546
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550
datadir=$ac_optarg ;;
552
-disable-* | --disable-*)
553
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554
# Reject names that are not valid shell variable names.
555
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
557
{ (exit 1); exit 1; }; }
558
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559
eval "enable_$ac_feature=no" ;;
561
-enable-* | --enable-*)
562
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563
# Reject names that are not valid shell variable names.
564
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
566
{ (exit 1); exit 1; }; }
567
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572
eval "enable_$ac_feature='$ac_optarg'" ;;
574
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576
| --exec | --exe | --ex)
577
ac_prev=exec_prefix ;;
578
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580
| --exec=* | --exe=* | --ex=*)
581
exec_prefix=$ac_optarg ;;
583
-gas | --gas | --ga | --g)
584
# Obsolete; use --with-gas.
587
-help | --help | --hel | --he | -h)
589
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590
ac_init_help=recursive ;;
591
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592
ac_init_help=short ;;
594
-host | --host | --hos | --ho)
595
ac_prev=host_alias ;;
596
-host=* | --host=* | --hos=* | --ho=*)
597
host_alias=$ac_optarg ;;
599
-includedir | --includedir | --includedi | --included | --include \
600
| --includ | --inclu | --incl | --inc)
601
ac_prev=includedir ;;
602
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603
| --includ=* | --inclu=* | --incl=* | --inc=*)
604
includedir=$ac_optarg ;;
606
-infodir | --infodir | --infodi | --infod | --info | --inf)
608
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609
infodir=$ac_optarg ;;
611
-libdir | --libdir | --libdi | --libd)
613
-libdir=* | --libdir=* | --libdi=* | --libd=*)
616
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617
| --libexe | --libex | --libe)
618
ac_prev=libexecdir ;;
619
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620
| --libexe=* | --libex=* | --libe=*)
621
libexecdir=$ac_optarg ;;
623
-localstatedir | --localstatedir | --localstatedi | --localstated \
624
| --localstate | --localstat | --localsta | --localst \
625
| --locals | --local | --loca | --loc | --lo)
626
ac_prev=localstatedir ;;
627
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
629
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630
localstatedir=$ac_optarg ;;
632
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638
# Obsolete; use --without-fp.
641
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
642
| --no-cr | --no-c | -n)
645
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
646
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651
| --oldin | --oldi | --old | --ol | --o)
652
ac_prev=oldincludedir ;;
653
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656
oldincludedir=$ac_optarg ;;
658
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663
-program-prefix | --program-prefix | --program-prefi | --program-pref \
664
| --program-pre | --program-pr | --program-p)
665
ac_prev=program_prefix ;;
666
-program-prefix=* | --program-prefix=* | --program-prefi=* \
667
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668
program_prefix=$ac_optarg ;;
670
-program-suffix | --program-suffix | --program-suffi | --program-suff \
671
| --program-suf | --program-su | --program-s)
672
ac_prev=program_suffix ;;
673
-program-suffix=* | --program-suffix=* | --program-suffi=* \
674
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675
program_suffix=$ac_optarg ;;
677
-program-transform-name | --program-transform-name \
678
| --program-transform-nam | --program-transform-na \
679
| --program-transform-n | --program-transform- \
680
| --program-transform | --program-transfor \
681
| --program-transfo | --program-transf \
682
| --program-trans | --program-tran \
683
| --progr-tra | --program-tr | --program-t)
684
ac_prev=program_transform_name ;;
685
-program-transform-name=* | --program-transform-name=* \
686
| --program-transform-nam=* | --program-transform-na=* \
687
| --program-transform-n=* | --program-transform-=* \
688
| --program-transform=* | --program-transfor=* \
689
| --program-transfo=* | --program-transf=* \
690
| --program-trans=* | --program-tran=* \
691
| --progr-tra=* | --program-tr=* | --program-t=*)
692
program_transform_name=$ac_optarg ;;
694
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
695
| -silent | --silent | --silen | --sile | --sil)
698
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702
sbindir=$ac_optarg ;;
704
-sharedstatedir | --sharedstatedir | --sharedstatedi \
705
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706
| --sharedst | --shareds | --shared | --share | --shar \
708
ac_prev=sharedstatedir ;;
709
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713
sharedstatedir=$ac_optarg ;;
715
-site | --site | --sit)
717
-site=* | --site=* | --sit=*)
720
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726
| --syscon | --sysco | --sysc | --sys | --sy)
727
ac_prev=sysconfdir ;;
728
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730
sysconfdir=$ac_optarg ;;
732
-target | --target | --targe | --targ | --tar | --ta | --t)
733
ac_prev=target_alias ;;
734
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735
target_alias=$ac_optarg ;;
737
-v | -verbose | --verbose | --verbos | --verbo | --verb)
740
-version | --version | --versio | --versi | --vers | -V)
744
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745
# Reject names that are not valid shell variable names.
746
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747
{ echo "$as_me: error: invalid package name: $ac_package" >&2
748
{ (exit 1); exit 1; }; }
749
ac_package=`echo $ac_package| sed 's/-/_/g'`
751
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754
eval "with_$ac_package='$ac_optarg'" ;;
756
-without-* | --without-*)
757
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758
# Reject names that are not valid shell variable names.
759
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760
{ echo "$as_me: error: invalid package name: $ac_package" >&2
761
{ (exit 1); exit 1; }; }
762
ac_package=`echo $ac_package | sed 's/-/_/g'`
763
eval "with_$ac_package=no" ;;
766
# Obsolete; use --with-x.
769
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770
| --x-incl | --x-inc | --x-in | --x-i)
771
ac_prev=x_includes ;;
772
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774
x_includes=$ac_optarg ;;
776
-x-libraries | --x-libraries | --x-librarie | --x-librari \
777
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778
ac_prev=x_libraries ;;
779
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781
x_libraries=$ac_optarg ;;
783
-*) { echo "$as_me: error: unrecognized option: $ac_option
784
Try \`$0 --help' for more information." >&2
785
{ (exit 1); exit 1; }; }
789
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790
# Reject names that are not valid shell variable names.
791
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793
{ (exit 1); exit 1; }; }
794
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795
eval "$ac_envvar='$ac_optarg'"
799
# FIXME: should be removed in autoconf 3.0.
800
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809
if test -n "$ac_prev"; then
810
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811
{ echo "$as_me: error: missing argument to $ac_option" >&2
812
{ (exit 1); exit 1; }; }
815
# Be sure to have absolute paths.
816
for ac_var in exec_prefix prefix
818
eval ac_val=$`echo $ac_var`
820
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822
{ (exit 1); exit 1; }; };;
826
# Be sure to have absolute paths.
827
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828
localstatedir libdir includedir oldincludedir infodir mandir
830
eval ac_val=$`echo $ac_var`
832
[\\/$]* | ?:[\\/]* ) ;;
833
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834
{ (exit 1); exit 1; }; };;
838
# There might be people who depend on the old broken behavior: `$host'
839
# used to hold the argument of --host etc.
840
# FIXME: To remove some day.
845
# FIXME: To remove some day.
846
if test "x$host_alias" != x; then
847
if test "x$build_alias" = x; then
848
cross_compiling=maybe
849
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850
If a cross compiler is detected then cross compile mode will be used." >&2
851
elif test "x$build_alias" != "x$host_alias"; then
857
test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
test "$silent" = yes && exec 6>/dev/null
862
# Find the source files, if location was not specified.
863
if test -z "$srcdir"; then
864
ac_srcdir_defaulted=yes
865
# Try the directory containing this script, then its parent.
866
ac_confdir=`(dirname "$0") 2>/dev/null ||
867
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868
X"$0" : 'X\(//\)[^/]' \| \
869
X"$0" : 'X\(//\)$' \| \
870
X"$0" : 'X\(/\)' \| \
871
. : '\(.\)' 2>/dev/null ||
873
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
875
/^X\(\/\/\)$/{ s//\1/; q; }
876
/^X\(\/\).*/{ s//\1/; q; }
879
if test ! -r $srcdir/$ac_unique_file; then
883
ac_srcdir_defaulted=no
885
if test ! -r $srcdir/$ac_unique_file; then
886
if test "$ac_srcdir_defaulted" = yes; then
887
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888
{ (exit 1); exit 1; }; }
890
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891
{ (exit 1); exit 1; }; }
894
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896
{ (exit 1); exit 1; }; }
897
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898
ac_env_build_alias_set=${build_alias+set}
899
ac_env_build_alias_value=$build_alias
900
ac_cv_env_build_alias_set=${build_alias+set}
901
ac_cv_env_build_alias_value=$build_alias
902
ac_env_host_alias_set=${host_alias+set}
903
ac_env_host_alias_value=$host_alias
904
ac_cv_env_host_alias_set=${host_alias+set}
905
ac_cv_env_host_alias_value=$host_alias
906
ac_env_target_alias_set=${target_alias+set}
907
ac_env_target_alias_value=$target_alias
908
ac_cv_env_target_alias_set=${target_alias+set}
909
ac_cv_env_target_alias_value=$target_alias
910
ac_env_CC_set=${CC+set}
912
ac_cv_env_CC_set=${CC+set}
913
ac_cv_env_CC_value=$CC
914
ac_env_CFLAGS_set=${CFLAGS+set}
915
ac_env_CFLAGS_value=$CFLAGS
916
ac_cv_env_CFLAGS_set=${CFLAGS+set}
917
ac_cv_env_CFLAGS_value=$CFLAGS
918
ac_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_env_LDFLAGS_value=$LDFLAGS
920
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921
ac_cv_env_LDFLAGS_value=$LDFLAGS
922
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_env_CPPFLAGS_value=$CPPFLAGS
924
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926
ac_env_CPP_set=${CPP+set}
927
ac_env_CPP_value=$CPP
928
ac_cv_env_CPP_set=${CPP+set}
929
ac_cv_env_CPP_value=$CPP
930
ac_env_CXX_set=${CXX+set}
931
ac_env_CXX_value=$CXX
932
ac_cv_env_CXX_set=${CXX+set}
933
ac_cv_env_CXX_value=$CXX
934
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_env_CXXFLAGS_value=$CXXFLAGS
936
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938
ac_env_CXXCPP_set=${CXXCPP+set}
939
ac_env_CXXCPP_value=$CXXCPP
940
ac_cv_env_CXXCPP_set=${CXXCPP+set}
941
ac_cv_env_CXXCPP_value=$CXXCPP
942
ac_env_F77_set=${F77+set}
943
ac_env_F77_value=$F77
944
ac_cv_env_F77_set=${F77+set}
945
ac_cv_env_F77_value=$F77
946
ac_env_FFLAGS_set=${FFLAGS+set}
947
ac_env_FFLAGS_value=$FFLAGS
948
ac_cv_env_FFLAGS_set=${FFLAGS+set}
949
ac_cv_env_FFLAGS_value=$FFLAGS
952
# Report the --help message.
954
if test "$ac_init_help" = "long"; then
955
# Omit some internal or obsolete options to make the list less imposing.
956
# This message is too long to be a string in the A/UX 3.1 sh.
958
\`configure' configures this package to adapt to many kinds of systems.
960
Usage: $0 [OPTION]... [VAR=VALUE]...
962
To assign environment variables (e.g., CC, CFLAGS...), specify them as
963
VAR=VALUE. See below for descriptions of some of the useful variables.
965
Defaults for the options are specified in brackets.
968
-h, --help display this help and exit
969
--help=short display options specific to this package
970
--help=recursive display the short help of all the included packages
971
-V, --version display version information and exit
972
-q, --quiet, --silent do not print \`checking...' messages
973
--cache-file=FILE cache test results in FILE [disabled]
974
-C, --config-cache alias for \`--cache-file=config.cache'
975
-n, --no-create do not create output files
976
--srcdir=DIR find the sources in DIR [configure dir or \`..']
981
Installation directories:
982
--prefix=PREFIX install architecture-independent files in PREFIX
984
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987
By default, \`make install' will install all the files in
988
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990
for instance \`--prefix=\$HOME'.
992
For better control, use the options below.
994
Fine tuning of the installation directories:
995
--bindir=DIR user executables [EPREFIX/bin]
996
--sbindir=DIR system admin executables [EPREFIX/sbin]
997
--libexecdir=DIR program executables [EPREFIX/libexec]
998
--datadir=DIR read-only architecture-independent data [PREFIX/share]
999
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002
--libdir=DIR object code libraries [EPREFIX/lib]
1003
--includedir=DIR C header files [PREFIX/include]
1004
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1005
--infodir=DIR info documentation [PREFIX/info]
1006
--mandir=DIR man documentation [PREFIX/man]
1012
--program-prefix=PREFIX prepend PREFIX to installed program names
1013
--program-suffix=SUFFIX append SUFFIX to installed program names
1014
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1017
--build=BUILD configure for building on BUILD [guessed]
1018
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1019
--target=TARGET configure for building compilers for TARGET [HOST]
1023
if test -n "$ac_init_help"; then
1028
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030
--enable-debug add debug symbols to compiler and linker output for source code debugging
1031
--disable-dependency-tracking speeds up one-time build
1032
--enable-dependency-tracking do not reject slow dependency extractors
1033
--enable-shared@<:@=PKGS@:>@
1034
build shared libraries @<:@default=yes@:>@
1035
--enable-static@<:@=PKGS@:>@
1036
build static libraries @<:@default=yes@:>@
1037
--enable-fast-install@<:@=PKGS@:>@
1038
optimize for fast installation @<:@default=yes@:>@
1039
--disable-libtool-lock avoid locking (might break parallel builds)
1042
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1043
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1044
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1045
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1047
--with-tags@<:@=TAGS@:>@
1048
include additional configurations @<:@automatic@:>@
1050
Some influential environment variables:
1051
CC C compiler command
1052
CFLAGS C compiler flags
1053
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1054
nonstandard directory <lib dir>
1055
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056
headers in a nonstandard directory <include dir>
1058
CXX C++ compiler command
1059
CXXFLAGS C++ compiler flags
1060
CXXCPP C++ preprocessor
1061
F77 Fortran 77 compiler command
1062
FFLAGS Fortran 77 compiler flags
1064
Use these variables to override the choices made by `configure' or to help
1065
it to find libraries and programs with nonstandard names/locations.
1070
if test "$ac_init_help" = "recursive"; then
1071
# If there are subdirs, report their specific --help.
1073
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074
test -d $ac_dir || continue
1077
if test "$ac_dir" != .; then
1078
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079
# A "../" for each directory in $ac_dir_suffix.
1080
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082
ac_dir_suffix= ac_top_builddir=
1086
.) # No --srcdir option. We are building in place.
1088
if test -z "$ac_top_builddir"; then
1091
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093
[\\/]* | ?:[\\/]* ) # Absolute path.
1094
ac_srcdir=$srcdir$ac_dir_suffix;
1095
ac_top_srcdir=$srcdir ;;
1097
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101
# Do not use `cd foo && pwd` to compute absolute paths, because
1102
# the directories may not exist.
1104
.) ac_abs_builddir="$ac_dir";;
1107
.) ac_abs_builddir=`pwd`;;
1108
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1112
case $ac_abs_builddir in
1113
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115
case ${ac_top_builddir}. in
1116
.) ac_abs_top_builddir=$ac_abs_builddir;;
1117
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121
case $ac_abs_builddir in
1122
.) ac_abs_srcdir=$ac_srcdir;;
1125
.) ac_abs_srcdir=$ac_abs_builddir;;
1126
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130
case $ac_abs_builddir in
1131
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133
case $ac_top_srcdir in
1134
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1135
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141
# Check for guested configure; otherwise get Cygnus style configure.
1142
if test -f $ac_srcdir/configure.gnu; then
1144
$SHELL $ac_srcdir/configure.gnu --help=recursive
1145
elif test -f $ac_srcdir/configure; then
1147
$SHELL $ac_srcdir/configure --help=recursive
1148
elif test -f $ac_srcdir/configure.ac ||
1149
test -f $ac_srcdir/configure.in; then
1151
$ac_configure --help
1153
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159
test -n "$ac_init_help" && exit 0
1160
if $ac_init_version; then
1163
Copyright (C) 2003 Free Software Foundation, Inc.
1164
This configure script is free software; the Free Software Foundation
1165
gives unlimited permission to copy, distribute and modify it.
1167
Dipl.-Ing. Christian Aberger (http://www.aberger.at)
1173
This file contains any messages produced by compilers while
1174
running configure, to aid debugging if configure makes a mistake.
1176
It was created by $as_me, which was
1177
generated by GNU Autoconf 2.59. Invocation command line was
1184
@%:@@%:@ --------- @%:@@%:@
1185
@%:@@%:@ Platform. @%:@@%:@
1186
@%:@@%:@ --------- @%:@@%:@
1188
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1197
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1198
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1199
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1201
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1202
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1203
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211
test -z "$as_dir" && as_dir=.
1212
echo "PATH: $as_dir"
1220
@%:@@%:@ ----------- @%:@@%:@
1221
@%:@@%:@ Core tests. @%:@@%:@
1222
@%:@@%:@ ----------- @%:@@%:@
1227
# Keep a trace of the command line.
1228
# Strip out --no-create and --no-recursion so they do not pile up.
1229
# Strip out --silent because we don't want to record it for future runs.
1230
# Also quote any args containing shell meta-characters.
1231
# Make two passes to allow for proper duplicate-argument suppression.
1236
ac_must_keep_next=false
1242
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244
| -silent | --silent | --silen | --sile | --sil)
1246
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253
if test $ac_must_keep_next = true; then
1254
ac_must_keep_next=false # Got value, back to normal.
1257
*=* | --config-cache | -C | -disable-* | --disable-* \
1258
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260
| -with-* | --with-* | -without-* | --without-* | --x)
1261
case "$ac_configure_args0 " in
1262
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265
-* ) ac_must_keep_next=true ;;
1268
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269
# Get rid of the leading space.
1275
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
# When interrupted or exit'd, cleanup temporary files, and complete
1279
# config.log. We remove comments because anyway the quotes in there
1280
# would cause problems or look ugly.
1281
# WARNING: Be sure not to use single quotes in there, as some shells,
1282
# such as our DU 5.0 friend, will then `close' the trap.
1283
trap 'exit_status=$?
1284
# Save into config.log some information that might help in debugging.
1289
@%:@@%:@ ---------------- @%:@@%:@
1290
@%:@@%:@ Cache variables. @%:@@%:@
1291
@%:@@%:@ ---------------- @%:@@%:@
1294
# The following way of writing the cache mishandles newlines in values,
1297
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312
@%:@@%:@ ----------------- @%:@@%:@
1313
@%:@@%:@ Output variables. @%:@@%:@
1314
@%:@@%:@ ----------------- @%:@@%:@
1317
for ac_var in $ac_subst_vars
1319
eval ac_val=$`echo $ac_var`
1320
echo "$ac_var='"'"'$ac_val'"'"'"
1324
if test -n "$ac_subst_files"; then
1326
@%:@@%:@ ------------- @%:@@%:@
1327
@%:@@%:@ Output files. @%:@@%:@
1328
@%:@@%:@ ------------- @%:@@%:@
1331
for ac_var in $ac_subst_files
1333
eval ac_val=$`echo $ac_var`
1334
echo "$ac_var='"'"'$ac_val'"'"'"
1339
if test -s confdefs.h; then
1341
@%:@@%:@ ----------- @%:@@%:@
1342
@%:@@%:@ confdefs.h. @%:@@%:@
1343
@%:@@%:@ ----------- @%:@@%:@
1346
sed "/^$/d" confdefs.h | sort
1349
test "$ac_signal" != 0 &&
1350
echo "$as_me: caught signal $ac_signal"
1351
echo "$as_me: exit $exit_status"
1353
rm -f core *.core &&
1354
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357
for ac_signal in 1 2 13 15; do
1358
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1363
rm -rf conftest* confdefs.h
1364
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367
# Predefined preprocessor variables.
1369
cat >>confdefs.h <<_ACEOF
1370
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1374
cat >>confdefs.h <<_ACEOF
1375
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379
cat >>confdefs.h <<_ACEOF
1380
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1384
cat >>confdefs.h <<_ACEOF
1385
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1389
cat >>confdefs.h <<_ACEOF
1390
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394
# Let the site file select an alternate cache file if it wants to.
1395
# Prefer explicitly selected file to automatically selected ones.
1396
if test -z "$CONFIG_SITE"; then
1397
if test "x$prefix" != xNONE; then
1398
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403
for ac_site_file in $CONFIG_SITE; do
1404
if test -r "$ac_site_file"; then
1405
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406
echo "$as_me: loading site script $ac_site_file" >&6;}
1407
sed 's/^/| /' "$ac_site_file" >&5
1412
if test -r "$cache_file"; then
1413
# Some versions of bash will fail to source /dev/null (special
1414
# files actually), so we avoid doing that.
1415
if test -f "$cache_file"; then
1416
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417
echo "$as_me: loading cache $cache_file" >&6;}
1419
[\\/]* | ?:[\\/]* ) . $cache_file;;
1420
*) . ./$cache_file;;
1424
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425
echo "$as_me: creating cache $cache_file" >&6;}
1429
# Check that the precious variables saved in the cache have kept the same
1431
ac_cache_corrupted=false
1432
for ac_var in `(set) 2>&1 |
1433
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435
eval ac_new_set=\$ac_env_${ac_var}_set
1436
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437
eval ac_new_val="\$ac_env_${ac_var}_value"
1438
case $ac_old_set,$ac_new_set in
1440
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442
ac_cache_corrupted=: ;;
1444
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446
ac_cache_corrupted=: ;;
1449
if test "x$ac_old_val" != "x$ac_new_val"; then
1450
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1453
echo "$as_me: former value: $ac_old_val" >&2;}
1454
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1455
echo "$as_me: current value: $ac_new_val" >&2;}
1456
ac_cache_corrupted=:
1459
# Pass precious variables to config.status.
1460
if test "$ac_new_set" = set; then
1462
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464
*) ac_arg=$ac_var=$ac_new_val ;;
1466
case " $ac_configure_args " in
1467
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1468
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472
if $ac_cache_corrupted; then
1473
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477
{ (exit 1); exit 1; }; }
1481
ac_cpp='$CPP $CPPFLAGS'
1482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1508
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1509
if test -f $ac_dir/install-sh; then
1511
ac_install_sh="$ac_aux_dir/install-sh -c"
1513
elif test -f $ac_dir/install.sh; then
1515
ac_install_sh="$ac_aux_dir/install.sh -c"
1517
elif test -f $ac_dir/shtool; then
1519
ac_install_sh="$ac_aux_dir/shtool install -c"
1523
if test -z "$ac_aux_dir"; then
1524
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1525
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1526
{ (exit 1); exit 1; }; }
1528
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1529
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1530
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532
# Make sure we can run config.sub.
1533
$ac_config_sub sun4 >/dev/null 2>&1 ||
1534
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1535
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1536
{ (exit 1); exit 1; }; }
1538
echo "$as_me:$LINENO: checking build system type" >&5
1539
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1540
if test "${ac_cv_build+set}" = set; then
1541
echo $ECHO_N "(cached) $ECHO_C" >&6
1543
ac_cv_build_alias=$build_alias
1544
test -z "$ac_cv_build_alias" &&
1545
ac_cv_build_alias=`$ac_config_guess`
1546
test -z "$ac_cv_build_alias" &&
1547
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1548
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1549
{ (exit 1); exit 1; }; }
1550
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1551
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1552
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1553
{ (exit 1); exit 1; }; }
1556
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1557
echo "${ECHO_T}$ac_cv_build" >&6
1559
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564
echo "$as_me:$LINENO: checking host system type" >&5
1565
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1566
if test "${ac_cv_host+set}" = set; then
1567
echo $ECHO_N "(cached) $ECHO_C" >&6
1569
ac_cv_host_alias=$host_alias
1570
test -z "$ac_cv_host_alias" &&
1571
ac_cv_host_alias=$ac_cv_build_alias
1572
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1573
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1574
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1575
{ (exit 1); exit 1; }; }
1578
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1579
echo "${ECHO_T}$ac_cv_host" >&6
1581
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
echo "$as_me:$LINENO: checking target system type" >&5
1587
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1588
if test "${ac_cv_target+set}" = set; then
1589
echo $ECHO_N "(cached) $ECHO_C" >&6
1591
ac_cv_target_alias=$target_alias
1592
test "x$ac_cv_target_alias" = "x" &&
1593
ac_cv_target_alias=$ac_cv_host_alias
1594
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1595
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1596
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1597
{ (exit 1); exit 1; }; }
1600
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1601
echo "${ECHO_T}$ac_cv_target" >&6
1602
target=$ac_cv_target
1603
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
# The aliases save the names the user supplied, while $host etc.
1609
# will get canonicalized.
1610
test -n "$target_alias" &&
1611
test "$program_prefix$program_suffix$program_transform_name" = \
1613
program_prefix=${target_alias}-
1614
am__api_version="1.9"
1615
# Find a good install program. We prefer a C program (faster),
1616
# so one script is as good as another. But avoid the broken or
1617
# incompatible versions:
1618
# SysV /etc/install, /usr/sbin/install
1619
# SunOS /usr/etc/install
1620
# IRIX /sbin/install
1622
# AmigaOS /C/install, which installs bootblocks on floppy discs
1623
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1624
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1625
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1626
# OS/2's system install, which has a completely different semantic
1627
# ./install, which can be erroneously created by make from ./install.sh.
1628
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1629
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1630
if test -z "$INSTALL"; then
1631
if test "${ac_cv_path_install+set}" = set; then
1632
echo $ECHO_N "(cached) $ECHO_C" >&6
1634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638
test -z "$as_dir" && as_dir=.
1639
# Account for people who put trailing slashes in PATH elements.
1641
./ | .// | /cC/* | \
1642
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1643
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1646
# OSF1 and SCO ODT 3.0 have their own names for install.
1647
# Don't use installbsd from OSF since it installs stuff as root
1649
for ac_prog in ginstall scoinst install; do
1650
for ac_exec_ext in '' $ac_executable_extensions; do
1651
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1652
if test $ac_prog = install &&
1653
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654
# AIX install. It has an incompatible calling convention.
1656
elif test $ac_prog = install &&
1657
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658
# program-specific install script used by HP pwplus--don't use.
1661
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1673
if test "${ac_cv_path_install+set}" = set; then
1674
INSTALL=$ac_cv_path_install
1676
# As a last resort, use the slow shell script. We don't cache a
1677
# path for INSTALL within a source directory, because that will
1678
# break other packages using the cache if that directory is
1679
# removed, or if the path is relative.
1680
INSTALL=$ac_install_sh
1683
echo "$as_me:$LINENO: result: $INSTALL" >&5
1684
echo "${ECHO_T}$INSTALL" >&6
1686
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1687
# It thinks the first close brace ends the variable substitution.
1688
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1690
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1692
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1694
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1695
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1698
echo timestamp > conftest.file
1699
# Do `set' in a subshell so we don't clobber the current shell's
1700
# arguments. Must try -L first in case configure is actually a
1701
# symlink; some systems play weird games with the mod time of symlinks
1702
# (eg FreeBSD returns the mod time of the symlink's containing
1705
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1706
if test "$*" = "X"; then
1708
set X `ls -t $srcdir/configure conftest.file`
1711
if test "$*" != "X $srcdir/configure conftest.file" \
1712
&& test "$*" != "X conftest.file $srcdir/configure"; then
1714
# If neither matched, then we have a broken ls. This can happen
1715
# if, for instance, CONFIG_SHELL is bash and it inherits a
1716
# broken ls alias from the environment. This has actually
1717
# happened. Such a system could not be considered "sane".
1718
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1719
alias in your environment" >&5
1720
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1721
alias in your environment" >&2;}
1722
{ (exit 1); exit 1; }; }
1725
test "$2" = conftest.file
1731
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1732
Check your system clock" >&5
1733
echo "$as_me: error: newly created file is older than distributed files!
1734
Check your system clock" >&2;}
1735
{ (exit 1); exit 1; }; }
1737
echo "$as_me:$LINENO: result: yes" >&5
1738
echo "${ECHO_T}yes" >&6
1739
test "$program_prefix" != NONE &&
1740
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1741
# Use a double $ so make ignores it.
1742
test "$program_suffix" != NONE &&
1743
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1744
# Double any \ or $. echo might interpret backslashes.
1745
# By default was `s,x,x', remove it if useless.
1746
cat <<\_ACEOF >conftest.sed
1747
s/[\\$]/&&/g;s/;s,x,x,$//
1749
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1752
# expand $ac_aux_dir to an absolute path
1753
am_aux_dir=`cd $ac_aux_dir && pwd`
1755
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1756
# Use eval to expand $SHELL
1757
if eval "$MISSING --run true"; then
1758
am_missing_run="$MISSING --run "
1761
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1762
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1765
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1766
# We used to keeping the `.' as first argument, in order to
1767
# allow $(mkdir_p) to be used without argument. As in
1768
# $(mkdir_p) $(somedir)
1769
# where $(somedir) is conditionally defined. However this is wrong
1771
# 1. if the package is installed by a user who cannot write `.'
1772
# make install will fail,
1773
# 2. the above comment should most certainly read
1774
# $(mkdir_p) $(DESTDIR)$(somedir)
1775
# so it does not work when $(somedir) is undefined and
1776
# $(DESTDIR) is not.
1777
# To support the latter case, we have to write
1778
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1779
# so the `.' trick is pointless.
1780
mkdir_p='mkdir -p --'
1782
# On NextStep and OpenStep, the `mkdir' command does not
1783
# recognize any option. It will interpret all options as
1784
# directories to create, and then abort because `.' already
1786
for d in ./-p ./--version;
1788
test -d $d && rmdir $d
1790
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1791
if test -f "$ac_aux_dir/mkinstalldirs"; then
1792
mkdir_p='$(mkinstalldirs)'
1794
mkdir_p='$(install_sh) -d'
1798
for ac_prog in gawk mawk nawk awk
1800
# Extract the first word of "$ac_prog", so it can be a program name with args.
1801
set dummy $ac_prog; ac_word=$2
1802
echo "$as_me:$LINENO: checking for $ac_word" >&5
1803
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804
if test "${ac_cv_prog_AWK+set}" = set; then
1805
echo $ECHO_N "(cached) $ECHO_C" >&6
1807
if test -n "$AWK"; then
1808
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814
test -z "$as_dir" && as_dir=.
1815
for ac_exec_ext in '' $ac_executable_extensions; do
1816
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817
ac_cv_prog_AWK="$ac_prog"
1818
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827
if test -n "$AWK"; then
1828
echo "$as_me:$LINENO: result: $AWK" >&5
1829
echo "${ECHO_T}$AWK" >&6
1831
echo "$as_me:$LINENO: result: no" >&5
1832
echo "${ECHO_T}no" >&6
1835
test -n "$AWK" && break
1838
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1839
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1840
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1841
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1842
echo $ECHO_N "(cached) $ECHO_C" >&6
1844
cat >conftest.make <<\_ACEOF
1846
@echo 'ac_maketemp="$(MAKE)"'
1848
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1849
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1850
if test -n "$ac_maketemp"; then
1851
eval ac_cv_prog_make_${ac_make}_set=yes
1853
eval ac_cv_prog_make_${ac_make}_set=no
1857
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1858
echo "$as_me:$LINENO: result: yes" >&5
1859
echo "${ECHO_T}yes" >&6
1862
echo "$as_me:$LINENO: result: no" >&5
1863
echo "${ECHO_T}no" >&6
1864
SET_MAKE="MAKE=${MAKE-make}"
1867
rm -rf .tst 2>/dev/null
1868
mkdir .tst 2>/dev/null
1869
if test -d .tst; then
1874
rmdir .tst 2>/dev/null
1876
# test to see if srcdir already configured
1877
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1878
test -f $srcdir/config.status; then
1879
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1880
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1881
{ (exit 1); exit 1; }; }
1884
# test whether we have cygpath
1885
if test -z "$CYGPATH_W"; then
1886
if (cygpath --version) >/dev/null 2>/dev/null; then
1887
CYGPATH_W='cygpath -w'
1894
# Define the identity of the package.
1899
cat >>confdefs.h <<_ACEOF
1900
@%:@define PACKAGE "$PACKAGE"
1904
cat >>confdefs.h <<_ACEOF
1905
@%:@define VERSION "$VERSION"
1908
# Some tools Automake needs.
1910
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1913
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1916
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1919
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1922
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1924
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1926
# Installed binaries are usually stripped using `strip' when the user
1927
# run `make install-strip'. However `strip' might not be the right
1928
# tool to use in cross-compilation environments, therefore Automake
1929
# will honor the `STRIP' environment variable to overrule this program.
1930
if test "$cross_compiling" != no; then
1931
if test -n "$ac_tool_prefix"; then
1932
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1933
set dummy ${ac_tool_prefix}strip; ac_word=$2
1934
echo "$as_me:$LINENO: checking for $ac_word" >&5
1935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936
if test "${ac_cv_prog_STRIP+set}" = set; then
1937
echo $ECHO_N "(cached) $ECHO_C" >&6
1939
if test -n "$STRIP"; then
1940
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946
test -z "$as_dir" && as_dir=.
1947
for ac_exec_ext in '' $ac_executable_extensions; do
1948
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1950
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958
STRIP=$ac_cv_prog_STRIP
1959
if test -n "$STRIP"; then
1960
echo "$as_me:$LINENO: result: $STRIP" >&5
1961
echo "${ECHO_T}$STRIP" >&6
1963
echo "$as_me:$LINENO: result: no" >&5
1964
echo "${ECHO_T}no" >&6
1968
if test -z "$ac_cv_prog_STRIP"; then
1970
# Extract the first word of "strip", so it can be a program name with args.
1971
set dummy strip; ac_word=$2
1972
echo "$as_me:$LINENO: checking for $ac_word" >&5
1973
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1975
echo $ECHO_N "(cached) $ECHO_C" >&6
1977
if test -n "$ac_ct_STRIP"; then
1978
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984
test -z "$as_dir" && as_dir=.
1985
for ac_exec_ext in '' $ac_executable_extensions; do
1986
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987
ac_cv_prog_ac_ct_STRIP="strip"
1988
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1997
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1998
if test -n "$ac_ct_STRIP"; then
1999
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2000
echo "${ECHO_T}$ac_ct_STRIP" >&6
2002
echo "$as_me:$LINENO: result: no" >&5
2003
echo "${ECHO_T}no" >&6
2008
STRIP="$ac_cv_prog_STRIP"
2012
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2014
# We need awk for the "check" target. The system "awk" is bad on
2016
# Always define AMTAR for backward compatibility.
2018
AMTAR=${AMTAR-"${am_missing_run}tar"}
2020
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2026
ac_config_headers="$ac_config_headers config.h"
2030
# [ --with-gsoap=<path> prefix of gsoap port installation. e.g. /usr/local/soapcpp or /home/myusername/gsoap],
2031
# [GSOAP_PREFIX=$with_gsoap],
2032
# AC_MSG_ERROR([You must call configure with the --with-gsoap=<path> option. <path> is the path where you unpacked the gsoap distribution to.
2033
# The headers and source downloaded from http://www.cs.fsu.edu/~engelen/soap.html must be available.
2034
# e.g. --with-gsoap=/usr/local/gsoap])
2037
#AC_CHECK_FILE([[$with_gsoap/stdsoap2.h]], [echo stdsoap2.h found in $with_gsoap], AC_MSG_ERROR([$with_gsoap does not contain stdsoap2.h]))
2041
#AC_SUBST(GSOAP_PREFIX)
2042
#GSOAP_CPP_SRC="${GSOAP_PREFIX}/stdsoap2.cpp"
2043
#GSOAP_C_SRC="${GSOAP_PREFIX}/stdsoap2.c"
2044
#GSOAP_INCLUDE="-I${GSOAP_PREFIX}"
2045
#AC_SUBST(GSOAP_CPP_SRC)
2046
#AC_SUBST(GSOAP_C_SRC)
2047
#AC_SUBST(GSOAP_INCLUDE)
2049
# Extract the first word of "soapcpp2", so it can be a program name with args.
2050
set dummy soapcpp2; ac_word=$2
2051
echo "$as_me:$LINENO: checking for $ac_word" >&5
2052
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053
if test "${ac_cv_prog_EXISTS_GSOAP+set}" = set; then
2054
echo $ECHO_N "(cached) $ECHO_C" >&6
2056
if test -n "$EXISTS_GSOAP"; then
2057
ac_cv_prog_EXISTS_GSOAP="$EXISTS_GSOAP" # Let the user override the test.
2059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063
test -z "$as_dir" && as_dir=.
2064
for ac_exec_ext in '' $ac_executable_extensions; do
2065
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066
ac_cv_prog_EXISTS_GSOAP="yes"
2067
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075
EXISTS_GSOAP=$ac_cv_prog_EXISTS_GSOAP
2076
if test -n "$EXISTS_GSOAP"; then
2077
echo "$as_me:$LINENO: result: $EXISTS_GSOAP" >&5
2078
echo "${ECHO_T}$EXISTS_GSOAP" >&6
2080
echo "$as_me:$LINENO: result: no" >&5
2081
echo "${ECHO_T}no" >&6
2084
if test -z "$EXISTS_GSOAP"; then
2085
{ { echo "$as_me:$LINENO: error: please install gsoap - http://www.cs.fsu.edu/~engelen/soap.html" >&5
2086
echo "$as_me: error: please install gsoap - http://www.cs.fsu.edu/~engelen/soap.html" >&2;}
2087
{ (exit 1); exit 1; }; }
2090
# Check whether --enable-debug or --disable-debug was given.
2091
if test "${enable_debug+set}" = set; then
2092
enableval="$enable_debug"
2093
case "${enableval}" in
2096
*) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
2097
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
2098
{ (exit 1); exit 1; }; } ;;
2105
if test x$debug = xtrue; then
2115
if test x$debug = xtrue; then
2116
CXXDEBUGDEFINES="-D_DEBUG"
2117
APXS_CXX_OPTIONS="-Wc,-g"
2119
CXXDEBUGDEFINES="-D_NDEBUG"
2125
ac_cpp='$CPP $CPPFLAGS'
2126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2129
if test -n "$ac_tool_prefix"; then
2130
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2131
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2132
echo "$as_me:$LINENO: checking for $ac_word" >&5
2133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134
if test "${ac_cv_prog_CC+set}" = set; then
2135
echo $ECHO_N "(cached) $ECHO_C" >&6
2137
if test -n "$CC"; then
2138
ac_cv_prog_CC="$CC" # Let the user override the test.
2140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144
test -z "$as_dir" && as_dir=.
2145
for ac_exec_ext in '' $ac_executable_extensions; do
2146
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2148
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157
if test -n "$CC"; then
2158
echo "$as_me:$LINENO: result: $CC" >&5
2159
echo "${ECHO_T}$CC" >&6
2161
echo "$as_me:$LINENO: result: no" >&5
2162
echo "${ECHO_T}no" >&6
2166
if test -z "$ac_cv_prog_CC"; then
2168
# Extract the first word of "gcc", so it can be a program name with args.
2169
set dummy gcc; ac_word=$2
2170
echo "$as_me:$LINENO: checking for $ac_word" >&5
2171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173
echo $ECHO_N "(cached) $ECHO_C" >&6
2175
if test -n "$ac_ct_CC"; then
2176
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182
test -z "$as_dir" && as_dir=.
2183
for ac_exec_ext in '' $ac_executable_extensions; do
2184
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185
ac_cv_prog_ac_ct_CC="gcc"
2186
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195
if test -n "$ac_ct_CC"; then
2196
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197
echo "${ECHO_T}$ac_ct_CC" >&6
2199
echo "$as_me:$LINENO: result: no" >&5
2200
echo "${ECHO_T}no" >&6
2208
if test -z "$CC"; then
2209
if test -n "$ac_tool_prefix"; then
2210
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2211
set dummy ${ac_tool_prefix}cc; ac_word=$2
2212
echo "$as_me:$LINENO: checking for $ac_word" >&5
2213
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214
if test "${ac_cv_prog_CC+set}" = set; then
2215
echo $ECHO_N "(cached) $ECHO_C" >&6
2217
if test -n "$CC"; then
2218
ac_cv_prog_CC="$CC" # Let the user override the test.
2220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224
test -z "$as_dir" && as_dir=.
2225
for ac_exec_ext in '' $ac_executable_extensions; do
2226
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227
ac_cv_prog_CC="${ac_tool_prefix}cc"
2228
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237
if test -n "$CC"; then
2238
echo "$as_me:$LINENO: result: $CC" >&5
2239
echo "${ECHO_T}$CC" >&6
2241
echo "$as_me:$LINENO: result: no" >&5
2242
echo "${ECHO_T}no" >&6
2246
if test -z "$ac_cv_prog_CC"; then
2248
# Extract the first word of "cc", so it can be a program name with args.
2249
set dummy cc; ac_word=$2
2250
echo "$as_me:$LINENO: checking for $ac_word" >&5
2251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2253
echo $ECHO_N "(cached) $ECHO_C" >&6
2255
if test -n "$ac_ct_CC"; then
2256
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262
test -z "$as_dir" && as_dir=.
2263
for ac_exec_ext in '' $ac_executable_extensions; do
2264
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265
ac_cv_prog_ac_ct_CC="cc"
2266
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275
if test -n "$ac_ct_CC"; then
2276
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2277
echo "${ECHO_T}$ac_ct_CC" >&6
2279
echo "$as_me:$LINENO: result: no" >&5
2280
echo "${ECHO_T}no" >&6
2289
if test -z "$CC"; then
2290
# Extract the first word of "cc", so it can be a program name with args.
2291
set dummy cc; ac_word=$2
2292
echo "$as_me:$LINENO: checking for $ac_word" >&5
2293
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294
if test "${ac_cv_prog_CC+set}" = set; then
2295
echo $ECHO_N "(cached) $ECHO_C" >&6
2297
if test -n "$CC"; then
2298
ac_cv_prog_CC="$CC" # Let the user override the test.
2301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305
test -z "$as_dir" && as_dir=.
2306
for ac_exec_ext in '' $ac_executable_extensions; do
2307
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2309
ac_prog_rejected=yes
2313
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319
if test $ac_prog_rejected = yes; then
2320
# We found a bogon in the path, so make sure we never use it.
2321
set dummy $ac_cv_prog_CC
2323
if test $@%:@ != 0; then
2324
# We chose a different compiler from the bogus one.
2325
# However, it has the same basename, so the bogon will be chosen
2326
# first if we set CC to just the basename; use the full file name.
2328
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2334
if test -n "$CC"; then
2335
echo "$as_me:$LINENO: result: $CC" >&5
2336
echo "${ECHO_T}$CC" >&6
2338
echo "$as_me:$LINENO: result: no" >&5
2339
echo "${ECHO_T}no" >&6
2343
if test -z "$CC"; then
2344
if test -n "$ac_tool_prefix"; then
2347
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2348
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2349
echo "$as_me:$LINENO: checking for $ac_word" >&5
2350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351
if test "${ac_cv_prog_CC+set}" = set; then
2352
echo $ECHO_N "(cached) $ECHO_C" >&6
2354
if test -n "$CC"; then
2355
ac_cv_prog_CC="$CC" # Let the user override the test.
2357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361
test -z "$as_dir" && as_dir=.
2362
for ac_exec_ext in '' $ac_executable_extensions; do
2363
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2365
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374
if test -n "$CC"; then
2375
echo "$as_me:$LINENO: result: $CC" >&5
2376
echo "${ECHO_T}$CC" >&6
2378
echo "$as_me:$LINENO: result: no" >&5
2379
echo "${ECHO_T}no" >&6
2382
test -n "$CC" && break
2385
if test -z "$CC"; then
2389
# Extract the first word of "$ac_prog", so it can be a program name with args.
2390
set dummy $ac_prog; ac_word=$2
2391
echo "$as_me:$LINENO: checking for $ac_word" >&5
2392
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2393
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2394
echo $ECHO_N "(cached) $ECHO_C" >&6
2396
if test -n "$ac_ct_CC"; then
2397
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403
test -z "$as_dir" && as_dir=.
2404
for ac_exec_ext in '' $ac_executable_extensions; do
2405
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406
ac_cv_prog_ac_ct_CC="$ac_prog"
2407
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416
if test -n "$ac_ct_CC"; then
2417
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418
echo "${ECHO_T}$ac_ct_CC" >&6
2420
echo "$as_me:$LINENO: result: no" >&5
2421
echo "${ECHO_T}no" >&6
2424
test -n "$ac_ct_CC" && break
2433
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2434
See \`config.log' for more details." >&5
2435
echo "$as_me: error: no acceptable C compiler found in \$PATH
2436
See \`config.log' for more details." >&2;}
2437
{ (exit 1); exit 1; }; }
2439
# Provide some information about the compiler.
2440
echo "$as_me:$LINENO:" \
2441
"checking for C compiler version" >&5
2442
ac_compiler=`set X $ac_compile; echo $2`
2443
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2444
(eval $ac_compiler --version </dev/null >&5) 2>&5
2446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447
(exit $ac_status); }
2448
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2449
(eval $ac_compiler -v </dev/null >&5) 2>&5
2451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452
(exit $ac_status); }
2453
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2454
(eval $ac_compiler -V </dev/null >&5) 2>&5
2456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457
(exit $ac_status); }
2459
cat >conftest.$ac_ext <<_ACEOF
2462
cat confdefs.h >>conftest.$ac_ext
2463
cat >>conftest.$ac_ext <<_ACEOF
2464
/* end confdefs.h. */
2474
ac_clean_files_save=$ac_clean_files
2475
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2476
# Try to create an executable without -o first, disregard a.out.
2477
# It will help us diagnose broken compilers, and finding out an intuition
2479
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2480
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2481
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2482
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2483
(eval $ac_link_default) 2>&5
2485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486
(exit $ac_status); }; then
2487
# Find the output, starting from the most likely. This scheme is
2488
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2491
# Be careful to initialize this variable, since it used to be cached.
2492
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2494
# b.out is created by i960 compilers.
2495
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2497
test -f "$ac_file" || continue
2499
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2502
# This is the source file.
2505
# We found the default executable, but exeext='' is most
2509
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2510
# FIXME: I believe we export ac_cv_exeext for Libtool,
2511
# but it would be cool to find out if it's true. Does anybody
2512
# maintain Libtool? --akim.
2520
echo "$as_me: failed program was:" >&5
2521
sed 's/^/| /' conftest.$ac_ext >&5
2523
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524
See \`config.log' for more details." >&5
2525
echo "$as_me: error: C compiler cannot create executables
2526
See \`config.log' for more details." >&2;}
2527
{ (exit 77); exit 77; }; }
2530
ac_exeext=$ac_cv_exeext
2531
echo "$as_me:$LINENO: result: $ac_file" >&5
2532
echo "${ECHO_T}$ac_file" >&6
2534
# Check the compiler produces executables we can run. If not, either
2535
# the compiler is broken, or we cross compile.
2536
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2537
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2538
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539
# If not cross compiling, check that we can run a simple program.
2540
if test "$cross_compiling" != yes; then
2541
if { ac_try='./$ac_file'
2542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546
(exit $ac_status); }; }; then
2549
if test "$cross_compiling" = maybe; then
2552
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2553
If you meant to cross compile, use \`--host'.
2554
See \`config.log' for more details." >&5
2555
echo "$as_me: error: cannot run C compiled programs.
2556
If you meant to cross compile, use \`--host'.
2557
See \`config.log' for more details." >&2;}
2558
{ (exit 1); exit 1; }; }
2562
echo "$as_me:$LINENO: result: yes" >&5
2563
echo "${ECHO_T}yes" >&6
2565
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2566
ac_clean_files=$ac_clean_files_save
2567
# Check the compiler produces executables we can run. If not, either
2568
# the compiler is broken, or we cross compile.
2569
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2570
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2571
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2572
echo "${ECHO_T}$cross_compiling" >&6
2574
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2575
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2577
(eval $ac_link) 2>&5
2579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
(exit $ac_status); }; then
2581
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2582
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2583
# work properly (i.e., refer to `conftest.exe'), while it won't with
2585
for ac_file in conftest.exe conftest conftest.*; do
2586
test -f "$ac_file" || continue
2588
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2589
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2596
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2597
See \`config.log' for more details." >&5
2598
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2599
See \`config.log' for more details." >&2;}
2600
{ (exit 1); exit 1; }; }
2603
rm -f conftest$ac_cv_exeext
2604
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2605
echo "${ECHO_T}$ac_cv_exeext" >&6
2607
rm -f conftest.$ac_ext
2608
EXEEXT=$ac_cv_exeext
2610
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2611
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2612
if test "${ac_cv_objext+set}" = set; then
2613
echo $ECHO_N "(cached) $ECHO_C" >&6
2615
cat >conftest.$ac_ext <<_ACEOF
2618
cat confdefs.h >>conftest.$ac_ext
2619
cat >>conftest.$ac_ext <<_ACEOF
2620
/* end confdefs.h. */
2630
rm -f conftest.o conftest.obj
2631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632
(eval $ac_compile) 2>&5
2634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635
(exit $ac_status); }; then
2636
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2638
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2639
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2644
echo "$as_me: failed program was:" >&5
2645
sed 's/^/| /' conftest.$ac_ext >&5
2647
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2648
See \`config.log' for more details." >&5
2649
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2650
See \`config.log' for more details." >&2;}
2651
{ (exit 1); exit 1; }; }
2654
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2656
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2657
echo "${ECHO_T}$ac_cv_objext" >&6
2658
OBJEXT=$ac_cv_objext
2660
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2661
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2662
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2663
echo $ECHO_N "(cached) $ECHO_C" >&6
2665
cat >conftest.$ac_ext <<_ACEOF
2668
cat confdefs.h >>conftest.$ac_ext
2669
cat >>conftest.$ac_ext <<_ACEOF
2670
/* end confdefs.h. */
2683
rm -f conftest.$ac_objext
2684
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685
(eval $ac_compile) 2>conftest.er1
2687
grep -v '^ *+' conftest.er1 >conftest.err
2689
cat conftest.err >&5
2690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691
(exit $ac_status); } &&
2692
{ ac_try='test -z "$ac_c_werror_flag"
2693
|| test ! -s conftest.err'
2694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698
(exit $ac_status); }; } &&
2699
{ ac_try='test -s conftest.$ac_objext'
2700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704
(exit $ac_status); }; }; then
2707
echo "$as_me: failed program was:" >&5
2708
sed 's/^/| /' conftest.$ac_ext >&5
2712
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2716
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2717
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2718
GCC=`test $ac_compiler_gnu = yes && echo yes`
2719
ac_test_CFLAGS=${CFLAGS+set}
2720
ac_save_CFLAGS=$CFLAGS
2722
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2723
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2724
if test "${ac_cv_prog_cc_g+set}" = set; then
2725
echo $ECHO_N "(cached) $ECHO_C" >&6
2727
cat >conftest.$ac_ext <<_ACEOF
2730
cat confdefs.h >>conftest.$ac_ext
2731
cat >>conftest.$ac_ext <<_ACEOF
2732
/* end confdefs.h. */
2742
rm -f conftest.$ac_objext
2743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744
(eval $ac_compile) 2>conftest.er1
2746
grep -v '^ *+' conftest.er1 >conftest.err
2748
cat conftest.err >&5
2749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
(exit $ac_status); } &&
2751
{ ac_try='test -z "$ac_c_werror_flag"
2752
|| test ! -s conftest.err'
2753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757
(exit $ac_status); }; } &&
2758
{ ac_try='test -s conftest.$ac_objext'
2759
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763
(exit $ac_status); }; }; then
2766
echo "$as_me: failed program was:" >&5
2767
sed 's/^/| /' conftest.$ac_ext >&5
2771
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2774
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2775
if test "$ac_test_CFLAGS" = set; then
2776
CFLAGS=$ac_save_CFLAGS
2777
elif test $ac_cv_prog_cc_g = yes; then
2778
if test "$GCC" = yes; then
2784
if test "$GCC" = yes; then
2790
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2791
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2792
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2793
echo $ECHO_N "(cached) $ECHO_C" >&6
2795
ac_cv_prog_cc_stdc=no
2797
cat >conftest.$ac_ext <<_ACEOF
2800
cat confdefs.h >>conftest.$ac_ext
2801
cat >>conftest.$ac_ext <<_ACEOF
2802
/* end confdefs.h. */
2805
#include <sys/types.h>
2806
#include <sys/stat.h>
2807
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2808
struct buf { int x; };
2809
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2810
static char *e (p, i)
2816
static char *f (char * (*g) (char **, int), char **p, ...)
2821
s = g (p, va_arg (v,int));
2826
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2827
function prototypes and stuff, but not '\xHH' hex character constants.
2828
These don't provoke an error unfortunately, instead are silently treated
2829
as 'x'. The following induces an error, until -std1 is added to get
2830
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2831
array size at least. It's necessary to write '\x00'==0 to get something
2832
that's true only with -std1. */
2833
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2835
int test (int i, double x);
2836
struct s1 {int (*f) (int a);};
2837
struct s2 {int (*f) (double a);};
2838
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2844
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2849
# Don't try gcc -ansi; that turns off useful extensions and
2850
# breaks some systems' header files.
2851
# AIX -qlanglvl=ansi
2852
# Ultrix and OSF/1 -std1
2853
# HP-UX 10.20 and later -Ae
2854
# HP-UX older versions -Aa -D_HPUX_SOURCE
2855
# SVR4 -Xc -D__EXTENSIONS__
2856
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2858
CC="$ac_save_CC $ac_arg"
2859
rm -f conftest.$ac_objext
2860
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861
(eval $ac_compile) 2>conftest.er1
2863
grep -v '^ *+' conftest.er1 >conftest.err
2865
cat conftest.err >&5
2866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867
(exit $ac_status); } &&
2868
{ ac_try='test -z "$ac_c_werror_flag"
2869
|| 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
2881
ac_cv_prog_cc_stdc=$ac_arg
2884
echo "$as_me: failed program was:" >&5
2885
sed 's/^/| /' conftest.$ac_ext >&5
2888
rm -f conftest.err conftest.$ac_objext
2890
rm -f conftest.$ac_ext conftest.$ac_objext
2895
case "x$ac_cv_prog_cc_stdc" in
2897
echo "$as_me:$LINENO: result: none needed" >&5
2898
echo "${ECHO_T}none needed" >&6 ;;
2900
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2901
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2902
CC="$CC $ac_cv_prog_cc_stdc" ;;
2905
# Some people use a C++ compiler to compile C. Since we use `exit',
2906
# in C++ we need to declare it. In case someone uses the same compiler
2907
# for both compiling C and C++ we need to have the C++ compiler decide
2908
# the declaration of exit, since it's the most demanding environment.
2909
cat >conftest.$ac_ext <<_ACEOF
2910
@%:@ifndef __cplusplus
2914
rm -f conftest.$ac_objext
2915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2916
(eval $ac_compile) 2>conftest.er1
2918
grep -v '^ *+' conftest.er1 >conftest.err
2920
cat conftest.err >&5
2921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922
(exit $ac_status); } &&
2923
{ ac_try='test -z "$ac_c_werror_flag"
2924
|| test ! -s conftest.err'
2925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929
(exit $ac_status); }; } &&
2930
{ ac_try='test -s conftest.$ac_objext'
2931
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935
(exit $ac_status); }; }; then
2936
for ac_declaration in \
2938
'extern "C" void std::exit (int) throw (); using std::exit;' \
2939
'extern "C" void std::exit (int); using std::exit;' \
2940
'extern "C" void exit (int) throw ();' \
2941
'extern "C" void exit (int);' \
2944
cat >conftest.$ac_ext <<_ACEOF
2947
cat confdefs.h >>conftest.$ac_ext
2948
cat >>conftest.$ac_ext <<_ACEOF
2949
/* end confdefs.h. */
2951
@%:@include <stdlib.h>
2960
rm -f conftest.$ac_objext
2961
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962
(eval $ac_compile) 2>conftest.er1
2964
grep -v '^ *+' conftest.er1 >conftest.err
2966
cat conftest.err >&5
2967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968
(exit $ac_status); } &&
2969
{ ac_try='test -z "$ac_c_werror_flag"
2970
|| test ! -s conftest.err'
2971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975
(exit $ac_status); }; } &&
2976
{ ac_try='test -s conftest.$ac_objext'
2977
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981
(exit $ac_status); }; }; then
2984
echo "$as_me: failed program was:" >&5
2985
sed 's/^/| /' conftest.$ac_ext >&5
2989
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990
cat >conftest.$ac_ext <<_ACEOF
2993
cat confdefs.h >>conftest.$ac_ext
2994
cat >>conftest.$ac_ext <<_ACEOF
2995
/* end confdefs.h. */
3005
rm -f conftest.$ac_objext
3006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007
(eval $ac_compile) 2>conftest.er1
3009
grep -v '^ *+' conftest.er1 >conftest.err
3011
cat conftest.err >&5
3012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013
(exit $ac_status); } &&
3014
{ ac_try='test -z "$ac_c_werror_flag"
3015
|| test ! -s conftest.err'
3016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020
(exit $ac_status); }; } &&
3021
{ ac_try='test -s conftest.$ac_objext'
3022
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026
(exit $ac_status); }; }; then
3029
echo "$as_me: failed program was:" >&5
3030
sed 's/^/| /' conftest.$ac_ext >&5
3033
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3036
if test -n "$ac_declaration"; then
3037
echo '#ifdef __cplusplus' >>confdefs.h
3038
echo $ac_declaration >>confdefs.h
3039
echo '#endif' >>confdefs.h
3043
echo "$as_me: failed program was:" >&5
3044
sed 's/^/| /' conftest.$ac_ext >&5
3047
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3049
ac_cpp='$CPP $CPPFLAGS'
3050
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053
DEPDIR="${am__leading_dot}deps"
3055
ac_config_commands="$ac_config_commands depfiles"
3058
am_make=${MAKE-make}
3059
cat > confinc << 'END'
3064
# If we don't find an include directive, just comment out the code.
3065
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3066
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3070
# First try GNU make style include.
3071
echo "include confinc" > confmf
3072
# We grep out `Entering directory' and `Leaving directory'
3073
# messages which can occur if `w' ends up in MAKEFLAGS.
3074
# In particular we don't look at `^make:' because GNU make might
3075
# be invoked under some other name (usually "gmake"), in which
3076
# case it prints its new name instead of `make'.
3077
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3082
# Now try BSD make style include.
3083
if test "$am__include" = "#"; then
3084
echo '.include "confinc"' > confmf
3085
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3086
am__include=.include
3093
echo "$as_me:$LINENO: result: $_am_result" >&5
3094
echo "${ECHO_T}$_am_result" >&6
3095
rm -f confinc confmf
3097
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3098
if test "${enable_dependency_tracking+set}" = set; then
3099
enableval="$enable_dependency_tracking"
3102
if test "x$enable_dependency_tracking" != xno; then
3103
am_depcomp="$ac_aux_dir/depcomp"
3108
if test "x$enable_dependency_tracking" != xno; then
3119
depcc="$CC" am_compiler_list=
3121
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3122
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3123
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3124
echo $ECHO_N "(cached) $ECHO_C" >&6
3126
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3127
# We make a subdir and do the tests there. Otherwise we can end up
3128
# making bogus files that we don't know about and never remove. For
3129
# instance it was reported that on HP-UX the gcc test will end up
3130
# making a dummy file named `D' -- because `-MD' means `put the output
3133
# Copy depcomp to subdir because otherwise we won't find it if we're
3134
# using a relative directory.
3135
cp "$am_depcomp" conftest.dir
3137
# We will build objects and dependencies in a subdirectory because
3138
# it helps to detect inapplicable dependency modes. For instance
3139
# both Tru64's cc and ICC support -MD to output dependencies as a
3140
# side effect of compilation, but ICC will put the dependencies in
3141
# the current directory while Tru64 will put them in the object
3145
am_cv_CC_dependencies_compiler_type=none
3146
if test "$am_compiler_list" = ""; then
3147
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3149
for depmode in $am_compiler_list; do
3150
# Setup a source with many dependencies, because some compilers
3151
# like to wrap large dependency lists on column 80 (with \), and
3152
# we should not choose a depcomp mode which is confused by this.
3154
# We need to recreate these files for each test, as the compiler may
3155
# overwrite some of them when testing with obscure command lines.
3156
# This happens at least with the AIX C compiler.
3158
for i in 1 2 3 4 5 6; do
3159
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3160
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3161
# Solaris 8's {/usr,}/bin/sh.
3162
touch sub/conftst$i.h
3164
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3168
# after this tag, mechanisms are not by side-effect, so they'll
3169
# only be used when explicitly requested
3170
if test "x$enable_dependency_tracking" = xyes; then
3178
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3179
# mode. It turns out that the SunPro C++ compiler does not properly
3180
# handle `-M -o', and we need to detect this.
3181
if depmode=$depmode \
3182
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3183
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3184
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3185
>/dev/null 2>conftest.err &&
3186
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3187
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3188
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3189
# icc doesn't choke on unknown options, it will just issue warnings
3190
# or remarks (even with -Werror). So we grep stderr for any message
3191
# that says an option was ignored or not supported.
3192
# When given -MP, icc 7.0 and 7.1 complain thusly:
3193
# icc: Command line warning: ignoring option '-M'; no argument required
3194
# The diagnosis changed in icc 8.0:
3195
# icc: Command line remark: option '-MP' not supported
3196
if (grep 'ignoring option' conftest.err ||
3197
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3198
am_cv_CC_dependencies_compiler_type=$depmode
3207
am_cv_CC_dependencies_compiler_type=none
3211
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3212
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3213
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3218
test "x$enable_dependency_tracking" != xno \
3219
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3221
am__fastdepCC_FALSE='#'
3223
am__fastdepCC_TRUE='#'
3224
am__fastdepCC_FALSE=
3229
ac_cpp='$CPP $CPPFLAGS'
3230
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3234
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3235
# On Suns, sometimes $CPP names a directory.
3236
if test -n "$CPP" && test -d "$CPP"; then
3239
if test -z "$CPP"; then
3240
if test "${ac_cv_prog_CPP+set}" = set; then
3241
echo $ECHO_N "(cached) $ECHO_C" >&6
3243
# Double quotes because CPP needs to be expanded
3244
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3247
for ac_c_preproc_warn_flag in '' yes
3249
# Use a header file that comes with gcc, so configuring glibc
3250
# with a fresh cross-compiler works.
3251
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3252
# <limits.h> exists even on freestanding compilers.
3253
# On the NeXT, cc -E runs the code through the compiler's parser,
3254
# not just through cpp. "Syntax error" is here to catch this case.
3255
cat >conftest.$ac_ext <<_ACEOF
3258
cat confdefs.h >>conftest.$ac_ext
3259
cat >>conftest.$ac_ext <<_ACEOF
3260
/* end confdefs.h. */
3262
@%:@ include <limits.h>
3264
@%:@ include <assert.h>
3268
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3269
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271
grep -v '^ *+' conftest.er1 >conftest.err
3273
cat conftest.err >&5
3274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275
(exit $ac_status); } >/dev/null; then
3276
if test -s conftest.err; then
3277
ac_cpp_err=$ac_c_preproc_warn_flag
3278
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285
if test -z "$ac_cpp_err"; then
3288
echo "$as_me: failed program was:" >&5
3289
sed 's/^/| /' conftest.$ac_ext >&5
3291
# Broken: fails on valid input.
3294
rm -f conftest.err conftest.$ac_ext
3296
# OK, works on sane cases. Now check whether non-existent headers
3297
# can be detected and how.
3298
cat >conftest.$ac_ext <<_ACEOF
3301
cat confdefs.h >>conftest.$ac_ext
3302
cat >>conftest.$ac_ext <<_ACEOF
3303
/* end confdefs.h. */
3304
@%:@include <ac_nonexistent.h>
3306
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3307
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3309
grep -v '^ *+' conftest.er1 >conftest.err
3311
cat conftest.err >&5
3312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313
(exit $ac_status); } >/dev/null; then
3314
if test -s conftest.err; then
3315
ac_cpp_err=$ac_c_preproc_warn_flag
3316
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3323
if test -z "$ac_cpp_err"; then
3324
# Broken: success on invalid input.
3327
echo "$as_me: failed program was:" >&5
3328
sed 's/^/| /' conftest.$ac_ext >&5
3330
# Passes both tests.
3334
rm -f conftest.err conftest.$ac_ext
3337
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338
rm -f conftest.err conftest.$ac_ext
3339
if $ac_preproc_ok; then
3351
echo "$as_me:$LINENO: result: $CPP" >&5
3352
echo "${ECHO_T}$CPP" >&6
3354
for ac_c_preproc_warn_flag in '' yes
3356
# Use a header file that comes with gcc, so configuring glibc
3357
# with a fresh cross-compiler works.
3358
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359
# <limits.h> exists even on freestanding compilers.
3360
# On the NeXT, cc -E runs the code through the compiler's parser,
3361
# not just through cpp. "Syntax error" is here to catch this case.
3362
cat >conftest.$ac_ext <<_ACEOF
3365
cat confdefs.h >>conftest.$ac_ext
3366
cat >>conftest.$ac_ext <<_ACEOF
3367
/* end confdefs.h. */
3369
@%:@ include <limits.h>
3371
@%:@ include <assert.h>
3375
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3376
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378
grep -v '^ *+' conftest.er1 >conftest.err
3380
cat conftest.err >&5
3381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382
(exit $ac_status); } >/dev/null; then
3383
if test -s conftest.err; then
3384
ac_cpp_err=$ac_c_preproc_warn_flag
3385
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3392
if test -z "$ac_cpp_err"; then
3395
echo "$as_me: failed program was:" >&5
3396
sed 's/^/| /' conftest.$ac_ext >&5
3398
# Broken: fails on valid input.
3401
rm -f conftest.err conftest.$ac_ext
3403
# OK, works on sane cases. Now check whether non-existent headers
3404
# can be detected and how.
3405
cat >conftest.$ac_ext <<_ACEOF
3408
cat confdefs.h >>conftest.$ac_ext
3409
cat >>conftest.$ac_ext <<_ACEOF
3410
/* end confdefs.h. */
3411
@%:@include <ac_nonexistent.h>
3413
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3414
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3416
grep -v '^ *+' conftest.er1 >conftest.err
3418
cat conftest.err >&5
3419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420
(exit $ac_status); } >/dev/null; then
3421
if test -s conftest.err; then
3422
ac_cpp_err=$ac_c_preproc_warn_flag
3423
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3430
if test -z "$ac_cpp_err"; then
3431
# Broken: success on invalid input.
3434
echo "$as_me: failed program was:" >&5
3435
sed 's/^/| /' conftest.$ac_ext >&5
3437
# Passes both tests.
3441
rm -f conftest.err conftest.$ac_ext
3444
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445
rm -f conftest.err conftest.$ac_ext
3446
if $ac_preproc_ok; then
3449
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3450
See \`config.log' for more details." >&5
3451
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3452
See \`config.log' for more details." >&2;}
3453
{ (exit 1); exit 1; }; }
3457
ac_cpp='$CPP $CPPFLAGS'
3458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
ac_cpp='$CXXCPP $CPPFLAGS'
3464
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3467
if test -n "$ac_tool_prefix"; then
3468
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3470
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3472
echo "$as_me:$LINENO: checking for $ac_word" >&5
3473
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474
if test "${ac_cv_prog_CXX+set}" = set; then
3475
echo $ECHO_N "(cached) $ECHO_C" >&6
3477
if test -n "$CXX"; then
3478
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484
test -z "$as_dir" && as_dir=.
3485
for ac_exec_ext in '' $ac_executable_extensions; do
3486
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3488
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497
if test -n "$CXX"; then
3498
echo "$as_me:$LINENO: result: $CXX" >&5
3499
echo "${ECHO_T}$CXX" >&6
3501
echo "$as_me:$LINENO: result: no" >&5
3502
echo "${ECHO_T}no" >&6
3505
test -n "$CXX" && break
3508
if test -z "$CXX"; then
3510
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3512
# Extract the first word of "$ac_prog", so it can be a program name with args.
3513
set dummy $ac_prog; ac_word=$2
3514
echo "$as_me:$LINENO: checking for $ac_word" >&5
3515
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3517
echo $ECHO_N "(cached) $ECHO_C" >&6
3519
if test -n "$ac_ct_CXX"; then
3520
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526
test -z "$as_dir" && as_dir=.
3527
for ac_exec_ext in '' $ac_executable_extensions; do
3528
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529
ac_cv_prog_ac_ct_CXX="$ac_prog"
3530
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3539
if test -n "$ac_ct_CXX"; then
3540
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3541
echo "${ECHO_T}$ac_ct_CXX" >&6
3543
echo "$as_me:$LINENO: result: no" >&5
3544
echo "${ECHO_T}no" >&6
3547
test -n "$ac_ct_CXX" && break
3549
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3555
# Provide some information about the compiler.
3556
echo "$as_me:$LINENO:" \
3557
"checking for C++ compiler version" >&5
3558
ac_compiler=`set X $ac_compile; echo $2`
3559
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3560
(eval $ac_compiler --version </dev/null >&5) 2>&5
3562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563
(exit $ac_status); }
3564
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3565
(eval $ac_compiler -v </dev/null >&5) 2>&5
3567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568
(exit $ac_status); }
3569
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3570
(eval $ac_compiler -V </dev/null >&5) 2>&5
3572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573
(exit $ac_status); }
3575
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3576
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3577
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3578
echo $ECHO_N "(cached) $ECHO_C" >&6
3580
cat >conftest.$ac_ext <<_ACEOF
3583
cat confdefs.h >>conftest.$ac_ext
3584
cat >>conftest.$ac_ext <<_ACEOF
3585
/* end confdefs.h. */
3598
rm -f conftest.$ac_objext
3599
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600
(eval $ac_compile) 2>conftest.er1
3602
grep -v '^ *+' conftest.er1 >conftest.err
3604
cat conftest.err >&5
3605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606
(exit $ac_status); } &&
3607
{ ac_try='test -z "$ac_cxx_werror_flag"
3608
|| test ! -s conftest.err'
3609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613
(exit $ac_status); }; } &&
3614
{ ac_try='test -s conftest.$ac_objext'
3615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619
(exit $ac_status); }; }; then
3622
echo "$as_me: failed program was:" >&5
3623
sed 's/^/| /' conftest.$ac_ext >&5
3627
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3631
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3632
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3633
GXX=`test $ac_compiler_gnu = yes && echo yes`
3634
ac_test_CXXFLAGS=${CXXFLAGS+set}
3635
ac_save_CXXFLAGS=$CXXFLAGS
3637
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3638
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3639
if test "${ac_cv_prog_cxx_g+set}" = set; then
3640
echo $ECHO_N "(cached) $ECHO_C" >&6
3642
cat >conftest.$ac_ext <<_ACEOF
3645
cat confdefs.h >>conftest.$ac_ext
3646
cat >>conftest.$ac_ext <<_ACEOF
3647
/* end confdefs.h. */
3657
rm -f conftest.$ac_objext
3658
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659
(eval $ac_compile) 2>conftest.er1
3661
grep -v '^ *+' conftest.er1 >conftest.err
3663
cat conftest.err >&5
3664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665
(exit $ac_status); } &&
3666
{ ac_try='test -z "$ac_cxx_werror_flag"
3667
|| test ! -s conftest.err'
3668
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672
(exit $ac_status); }; } &&
3673
{ ac_try='test -s conftest.$ac_objext'
3674
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678
(exit $ac_status); }; }; then
3679
ac_cv_prog_cxx_g=yes
3681
echo "$as_me: failed program was:" >&5
3682
sed 's/^/| /' conftest.$ac_ext >&5
3686
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3688
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3689
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3690
if test "$ac_test_CXXFLAGS" = set; then
3691
CXXFLAGS=$ac_save_CXXFLAGS
3692
elif test $ac_cv_prog_cxx_g = yes; then
3693
if test "$GXX" = yes; then
3699
if test "$GXX" = yes; then
3705
for ac_declaration in \
3707
'extern "C" void std::exit (int) throw (); using std::exit;' \
3708
'extern "C" void std::exit (int); using std::exit;' \
3709
'extern "C" void exit (int) throw ();' \
3710
'extern "C" void exit (int);' \
3713
cat >conftest.$ac_ext <<_ACEOF
3716
cat confdefs.h >>conftest.$ac_ext
3717
cat >>conftest.$ac_ext <<_ACEOF
3718
/* end confdefs.h. */
3720
@%:@include <stdlib.h>
3729
rm -f conftest.$ac_objext
3730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731
(eval $ac_compile) 2>conftest.er1
3733
grep -v '^ *+' conftest.er1 >conftest.err
3735
cat conftest.err >&5
3736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737
(exit $ac_status); } &&
3738
{ ac_try='test -z "$ac_cxx_werror_flag"
3739
|| test ! -s conftest.err'
3740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744
(exit $ac_status); }; } &&
3745
{ ac_try='test -s conftest.$ac_objext'
3746
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750
(exit $ac_status); }; }; then
3753
echo "$as_me: failed program was:" >&5
3754
sed 's/^/| /' conftest.$ac_ext >&5
3758
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3759
cat >conftest.$ac_ext <<_ACEOF
3762
cat confdefs.h >>conftest.$ac_ext
3763
cat >>conftest.$ac_ext <<_ACEOF
3764
/* end confdefs.h. */
3774
rm -f conftest.$ac_objext
3775
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3776
(eval $ac_compile) 2>conftest.er1
3778
grep -v '^ *+' conftest.er1 >conftest.err
3780
cat conftest.err >&5
3781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782
(exit $ac_status); } &&
3783
{ ac_try='test -z "$ac_cxx_werror_flag"
3784
|| test ! -s conftest.err'
3785
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789
(exit $ac_status); }; } &&
3790
{ ac_try='test -s conftest.$ac_objext'
3791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795
(exit $ac_status); }; }; then
3798
echo "$as_me: failed program was:" >&5
3799
sed 's/^/| /' conftest.$ac_ext >&5
3802
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805
if test -n "$ac_declaration"; then
3806
echo '#ifdef __cplusplus' >>confdefs.h
3807
echo $ac_declaration >>confdefs.h
3808
echo '#endif' >>confdefs.h
3812
ac_cpp='$CPP $CPPFLAGS'
3813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817
depcc="$CXX" am_compiler_list=
3819
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3820
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3821
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3822
echo $ECHO_N "(cached) $ECHO_C" >&6
3824
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825
# We make a subdir and do the tests there. Otherwise we can end up
3826
# making bogus files that we don't know about and never remove. For
3827
# instance it was reported that on HP-UX the gcc test will end up
3828
# making a dummy file named `D' -- because `-MD' means `put the output
3831
# Copy depcomp to subdir because otherwise we won't find it if we're
3832
# using a relative directory.
3833
cp "$am_depcomp" conftest.dir
3835
# We will build objects and dependencies in a subdirectory because
3836
# it helps to detect inapplicable dependency modes. For instance
3837
# both Tru64's cc and ICC support -MD to output dependencies as a
3838
# side effect of compilation, but ICC will put the dependencies in
3839
# the current directory while Tru64 will put them in the object
3843
am_cv_CXX_dependencies_compiler_type=none
3844
if test "$am_compiler_list" = ""; then
3845
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3847
for depmode in $am_compiler_list; do
3848
# Setup a source with many dependencies, because some compilers
3849
# like to wrap large dependency lists on column 80 (with \), and
3850
# we should not choose a depcomp mode which is confused by this.
3852
# We need to recreate these files for each test, as the compiler may
3853
# overwrite some of them when testing with obscure command lines.
3854
# This happens at least with the AIX C compiler.
3856
for i in 1 2 3 4 5 6; do
3857
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859
# Solaris 8's {/usr,}/bin/sh.
3860
touch sub/conftst$i.h
3862
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3866
# after this tag, mechanisms are not by side-effect, so they'll
3867
# only be used when explicitly requested
3868
if test "x$enable_dependency_tracking" = xyes; then
3876
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3877
# mode. It turns out that the SunPro C++ compiler does not properly
3878
# handle `-M -o', and we need to detect this.
3879
if depmode=$depmode \
3880
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3881
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3883
>/dev/null 2>conftest.err &&
3884
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3885
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3886
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3887
# icc doesn't choke on unknown options, it will just issue warnings
3888
# or remarks (even with -Werror). So we grep stderr for any message
3889
# that says an option was ignored or not supported.
3890
# When given -MP, icc 7.0 and 7.1 complain thusly:
3891
# icc: Command line warning: ignoring option '-M'; no argument required
3892
# The diagnosis changed in icc 8.0:
3893
# icc: Command line remark: option '-MP' not supported
3894
if (grep 'ignoring option' conftest.err ||
3895
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3896
am_cv_CXX_dependencies_compiler_type=$depmode
3905
am_cv_CXX_dependencies_compiler_type=none
3909
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3910
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3911
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3916
test "x$enable_dependency_tracking" != xno \
3917
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3918
am__fastdepCXX_TRUE=
3919
am__fastdepCXX_FALSE='#'
3921
am__fastdepCXX_TRUE='#'
3922
am__fastdepCXX_FALSE=
3927
# Extract the first word of "apxs", so it can be a program name with args.
3928
set dummy apxs; ac_word=$2
3929
echo "$as_me:$LINENO: checking for $ac_word" >&5
3930
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3931
if test "${ac_cv_prog_EXISTS_APXS+set}" = set; then
3932
echo $ECHO_N "(cached) $ECHO_C" >&6
3934
if test -n "$EXISTS_APXS"; then
3935
ac_cv_prog_EXISTS_APXS="$EXISTS_APXS" # Let the user override the test.
3937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941
test -z "$as_dir" && as_dir=.
3942
for ac_exec_ext in '' $ac_executable_extensions; do
3943
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944
ac_cv_prog_EXISTS_APXS="yes"
3945
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953
EXISTS_APXS=$ac_cv_prog_EXISTS_APXS
3954
if test -n "$EXISTS_APXS"; then
3955
echo "$as_me:$LINENO: result: $EXISTS_APXS" >&5
3956
echo "${ECHO_T}$EXISTS_APXS" >&6
3958
echo "$as_me:$LINENO: result: no" >&5
3959
echo "${ECHO_T}no" >&6
3962
if test -z "$EXISTS_APXS"; then
3963
{ { echo "$as_me:$LINENO: error: please install the apache apxs tool. Download apache http server from http://www.apache.org, compile and install it and make sure that apxs is in your path" >&5
3964
echo "$as_me: error: please install the apache apxs tool. Download apache http server from http://www.apache.org, compile and install it and make sure that apxs is in your path" >&2;}
3965
{ (exit 1); exit 1; }; }
3968
if test "$GCC"; then
3969
if test x$debug = xtrue; then
3970
CXXFLAGS="$CXXFLAGS -g"
3972
CXXFLAGS="$CXXFLAGS -O2"
3981
# Check whether --enable-shared or --disable-shared was given.
3982
if test "${enable_shared+set}" = set; then
3983
enableval="$enable_shared"
3984
p=${PACKAGE-default}
3986
yes) enable_shared=yes ;;
3987
no) enable_shared=no ;;
3990
# Look at the argument we got. We use all the common list separators.
3991
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3992
for pkg in $enableval; do
3994
if test "X$pkg" = "X$p"; then
4005
# Check whether --enable-static or --disable-static was given.
4006
if test "${enable_static+set}" = set; then
4007
enableval="$enable_static"
4008
p=${PACKAGE-default}
4010
yes) enable_static=yes ;;
4011
no) enable_static=no ;;
4014
# Look at the argument we got. We use all the common list separators.
4015
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4016
for pkg in $enableval; do
4018
if test "X$pkg" = "X$p"; then
4029
# Check whether --enable-fast-install or --disable-fast-install was given.
4030
if test "${enable_fast_install+set}" = set; then
4031
enableval="$enable_fast_install"
4032
p=${PACKAGE-default}
4034
yes) enable_fast_install=yes ;;
4035
no) enable_fast_install=no ;;
4037
enable_fast_install=no
4038
# Look at the argument we got. We use all the common list separators.
4039
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4040
for pkg in $enableval; do
4042
if test "X$pkg" = "X$p"; then
4043
enable_fast_install=yes
4050
enable_fast_install=yes
4053
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4054
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4055
if test "${lt_cv_path_SED+set}" = set; then
4056
echo $ECHO_N "(cached) $ECHO_C" >&6
4058
# Loop through the user's path and test for sed and gsed.
4059
# Then use that list of sed's as ones to test for truncation.
4060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064
test -z "$as_dir" && as_dir=.
4065
for lt_ac_prog in sed gsed; do
4066
for ac_exec_ext in '' $ac_executable_extensions; do
4067
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4068
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4075
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4076
# along with /bin/sed that truncates output.
4077
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4078
test ! -f $lt_ac_sed && continue
4079
cat /dev/null > conftest.in
4081
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4082
# Check for GNU sed and select it if it is found.
4083
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4084
lt_cv_path_SED=$lt_ac_sed
4088
cat conftest.in conftest.in >conftest.tmp
4089
mv conftest.tmp conftest.in
4090
cp conftest.in conftest.nl
4092
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4093
cmp -s conftest.out conftest.nl || break
4094
# 10000 chars as input seems more than enough
4095
test $lt_ac_count -gt 10 && break
4096
lt_ac_count=`expr $lt_ac_count + 1`
4097
if test $lt_ac_count -gt $lt_ac_max; then
4098
lt_ac_max=$lt_ac_count
4099
lt_cv_path_SED=$lt_ac_sed
4107
echo "$as_me:$LINENO: result: $SED" >&5
4108
echo "${ECHO_T}$SED" >&6
4110
echo "$as_me:$LINENO: checking for egrep" >&5
4111
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4112
if test "${ac_cv_prog_egrep+set}" = set; then
4113
echo $ECHO_N "(cached) $ECHO_C" >&6
4115
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4116
then ac_cv_prog_egrep='grep -E'
4117
else ac_cv_prog_egrep='egrep'
4120
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4121
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4122
EGREP=$ac_cv_prog_egrep
4126
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4127
if test "${with_gnu_ld+set}" = set; then
4128
withval="$with_gnu_ld"
4129
test "$withval" = no || with_gnu_ld=yes
4134
if test "$GCC" = yes; then
4135
# Check if gcc -print-prog-name=ld gives a path.
4136
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4137
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4140
# gcc leaves a trailing carriage return which upsets mingw
4141
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4143
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4146
# Accept absolute paths.
4148
re_direlt='/[^/][^/]*/\.\./'
4149
# Canonicalize the pathname of ld
4150
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4151
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4152
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4154
test -z "$LD" && LD="$ac_prog"
4157
# If it fails, then pretend we aren't using GCC.
4161
# If it is relative, then search for the first ld in PATH.
4165
elif test "$with_gnu_ld" = yes; then
4166
echo "$as_me:$LINENO: checking for GNU ld" >&5
4167
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4169
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4170
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4172
if test "${lt_cv_path_LD+set}" = set; then
4173
echo $ECHO_N "(cached) $ECHO_C" >&6
4175
if test -z "$LD"; then
4176
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4177
for ac_dir in $PATH; do
4179
test -z "$ac_dir" && ac_dir=.
4180
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4181
lt_cv_path_LD="$ac_dir/$ac_prog"
4182
# Check to see if the program is GNU ld. I'd rather use --version,
4183
# but apparently some variants of GNU ld only accept -v.
4184
# Break only if it was the GNU/non-GNU ld that we prefer.
4185
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4186
*GNU* | *'with BFD'*)
4187
test "$with_gnu_ld" != no && break
4190
test "$with_gnu_ld" != yes && break
4197
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4202
if test -n "$LD"; then
4203
echo "$as_me:$LINENO: result: $LD" >&5
4204
echo "${ECHO_T}$LD" >&6
4206
echo "$as_me:$LINENO: result: no" >&5
4207
echo "${ECHO_T}no" >&6
4209
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4210
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4211
{ (exit 1); exit 1; }; }
4212
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4213
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4214
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4215
echo $ECHO_N "(cached) $ECHO_C" >&6
4217
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4218
case `$LD -v 2>&1 </dev/null` in
4219
*GNU* | *'with BFD'*)
4220
lt_cv_prog_gnu_ld=yes
4223
lt_cv_prog_gnu_ld=no
4227
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4228
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4229
with_gnu_ld=$lt_cv_prog_gnu_ld
4232
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4233
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4234
if test "${lt_cv_ld_reload_flag+set}" = set; then
4235
echo $ECHO_N "(cached) $ECHO_C" >&6
4237
lt_cv_ld_reload_flag='-r'
4239
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4240
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4241
reload_flag=$lt_cv_ld_reload_flag
4242
case $reload_flag in
4244
*) reload_flag=" $reload_flag" ;;
4246
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4249
if test "$GCC" = yes; then
4250
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4252
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4257
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4258
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4259
if test "${lt_cv_path_NM+set}" = set; then
4260
echo $ECHO_N "(cached) $ECHO_C" >&6
4262
if test -n "$NM"; then
4263
# Let the user override the test.
4266
lt_nm_to_check="${ac_tool_prefix}nm"
4267
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4268
lt_nm_to_check="$lt_nm_to_check nm"
4270
for lt_tmp_nm in $lt_nm_to_check; do
4271
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4272
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4274
test -z "$ac_dir" && ac_dir=.
4275
tmp_nm="$ac_dir/$lt_tmp_nm"
4276
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4277
# Check to see if the nm accepts a BSD-compat flag.
4278
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4279
# nm: unknown option "B" ignored
4280
# Tru64's nm complains that /dev/null is an invalid object file
4281
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4282
*/dev/null* | *'Invalid file or object type'*)
4283
lt_cv_path_NM="$tmp_nm -B"
4287
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4289
lt_cv_path_NM="$tmp_nm -p"
4293
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4294
continue # so that we can try to find one that supports BSD flags
4303
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4306
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4307
echo "${ECHO_T}$lt_cv_path_NM" >&6
4310
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4311
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4313
if test "$LN_S" = "ln -s"; then
4314
echo "$as_me:$LINENO: result: yes" >&5
4315
echo "${ECHO_T}yes" >&6
4317
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4318
echo "${ECHO_T}no, using $LN_S" >&6
4321
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4322
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4323
if test "${lt_cv_deplibs_check_method+set}" = set; then
4324
echo $ECHO_N "(cached) $ECHO_C" >&6
4326
lt_cv_file_magic_cmd='$MAGIC_CMD'
4327
lt_cv_file_magic_test_file=
4328
lt_cv_deplibs_check_method='unknown'
4329
# Need to set the preceding variable on all platforms that support
4330
# interlibrary dependencies.
4331
# 'none' -- dependencies not supported.
4332
# `unknown' -- same as none, but documents that we really don't know.
4333
# 'pass_all' -- all dependencies passed with no checks.
4334
# 'test_compile' -- check by making test program.
4335
# 'file_magic [[regex]]' -- check by looking for files in library path
4336
# which responds to the $file_magic_cmd with a given extended regex.
4337
# If you have `file' or equivalent on your system and you're not sure
4338
# whether `pass_all' will *always* work, you probably want this one.
4342
lt_cv_deplibs_check_method=pass_all
4346
lt_cv_deplibs_check_method=pass_all
4350
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4351
lt_cv_file_magic_cmd='/usr/bin/file -L'
4352
lt_cv_file_magic_test_file=/shlib/libc.so
4356
# func_win32_libid is a shell function defined in ltmain.sh
4357
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4358
lt_cv_file_magic_cmd='func_win32_libid'
4362
# Base MSYS/MinGW do not provide the 'file' command needed by
4363
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
4364
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4365
lt_cv_file_magic_cmd='$OBJDUMP -f'
4368
darwin* | rhapsody*)
4369
lt_cv_deplibs_check_method=pass_all
4372
freebsd* | kfreebsd*-gnu | dragonfly*)
4373
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4376
# Not sure whether the presence of OpenBSD here was a mistake.
4377
# Let's accept both of them until this is cleared up.
4378
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4379
lt_cv_file_magic_cmd=/usr/bin/file
4380
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4384
lt_cv_deplibs_check_method=pass_all
4389
lt_cv_deplibs_check_method=pass_all
4392
hpux10.20* | hpux11*)
4393
lt_cv_file_magic_cmd=/usr/bin/file
4396
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4397
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4400
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]'
4401
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4404
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4405
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4411
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4412
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4415
irix5* | irix6* | nonstopux*)
4417
*-32|*"-32 ") libmagic=32-bit;;
4418
*-n32|*"-n32 ") libmagic=N32;;
4419
*-64|*"-64 ") libmagic=64-bit;;
4420
*) libmagic=never-match;;
4422
lt_cv_deplibs_check_method=pass_all
4425
# This must be Linux ELF.
4427
lt_cv_deplibs_check_method=pass_all
4431
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4432
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4434
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4439
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4440
lt_cv_file_magic_cmd=/usr/bin/file
4441
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4445
lt_cv_deplibs_check_method=unknown
4449
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4450
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4452
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4456
osf3* | osf4* | osf5*)
4457
lt_cv_deplibs_check_method=pass_all
4461
lt_cv_deplibs_check_method=pass_all
4465
case $host_vendor in
4467
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]'
4468
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4471
lt_cv_deplibs_check_method=pass_all
4474
lt_cv_file_magic_cmd='/bin/file'
4475
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4478
lt_cv_file_magic_cmd='/bin/file'
4479
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4480
lt_cv_file_magic_test_file=/lib/libc.so
4483
lt_cv_deplibs_check_method=pass_all
4486
lt_cv_deplibs_check_method=pass_all
4491
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4492
lt_cv_deplibs_check_method=pass_all
4497
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4498
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4499
file_magic_cmd=$lt_cv_file_magic_cmd
4500
deplibs_check_method=$lt_cv_deplibs_check_method
4501
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4506
# If no C compiler was specified, use CC.
4509
# If no C compiler flags were specified, use CFLAGS.
4510
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4512
# Allow CC to be a program name with arguments.
4516
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4517
if test "${enable_libtool_lock+set}" = set; then
4518
enableval="$enable_libtool_lock"
4521
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4523
# Some flags need to be propagated to the compiler or linker for good
4527
# Find out which ABI we are using.
4528
echo 'int i;' > conftest.$ac_ext
4529
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530
(eval $ac_compile) 2>&5
4532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533
(exit $ac_status); }; then
4534
case `/usr/bin/file conftest.$ac_objext` in
4546
# Find out which ABI we are using.
4547
echo '#line __oline__ "configure"' > conftest.$ac_ext
4548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549
(eval $ac_compile) 2>&5
4551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552
(exit $ac_status); }; then
4553
if test "$lt_cv_prog_gnu_ld" = yes; then
4554
case `/usr/bin/file conftest.$ac_objext` in
4556
LD="${LD-ld} -melf32bsmip"
4559
LD="${LD-ld} -melf32bmipn32"
4562
LD="${LD-ld} -melf64bmip"
4566
case `/usr/bin/file conftest.$ac_objext` in
4582
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4583
# Find out which ABI we are using.
4584
echo 'int i;' > conftest.$ac_ext
4585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586
(eval $ac_compile) 2>&5
4588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589
(exit $ac_status); }; then
4590
case `/usr/bin/file conftest.o` in
4594
LD="${LD-ld} -m elf_i386"
4596
ppc64-*linux*|powerpc64-*linux*)
4597
LD="${LD-ld} -m elf32ppclinux"
4600
LD="${LD-ld} -m elf_s390"
4603
LD="${LD-ld} -m elf32_sparc"
4610
LD="${LD-ld} -m elf_x86_64"
4612
ppc*-*linux*|powerpc*-*linux*)
4613
LD="${LD-ld} -m elf64ppc"
4616
LD="${LD-ld} -m elf64_s390"
4619
LD="${LD-ld} -m elf64_sparc"
4629
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4630
SAVE_CFLAGS="$CFLAGS"
4631
CFLAGS="$CFLAGS -belf"
4632
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4633
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4634
if test "${lt_cv_cc_needs_belf+set}" = set; then
4635
echo $ECHO_N "(cached) $ECHO_C" >&6
4638
ac_cpp='$CPP $CPPFLAGS'
4639
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643
cat >conftest.$ac_ext <<_ACEOF
4646
cat confdefs.h >>conftest.$ac_ext
4647
cat >>conftest.$ac_ext <<_ACEOF
4648
/* end confdefs.h. */
4658
rm -f conftest.$ac_objext conftest$ac_exeext
4659
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660
(eval $ac_link) 2>conftest.er1
4662
grep -v '^ *+' conftest.er1 >conftest.err
4664
cat conftest.err >&5
4665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666
(exit $ac_status); } &&
4667
{ ac_try='test -z "$ac_c_werror_flag"
4668
|| test ! -s conftest.err'
4669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673
(exit $ac_status); }; } &&
4674
{ ac_try='test -s conftest$ac_exeext'
4675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679
(exit $ac_status); }; }; then
4680
lt_cv_cc_needs_belf=yes
4682
echo "$as_me: failed program was:" >&5
4683
sed 's/^/| /' conftest.$ac_ext >&5
4685
lt_cv_cc_needs_belf=no
4687
rm -f conftest.err conftest.$ac_objext \
4688
conftest$ac_exeext conftest.$ac_ext
4690
ac_cpp='$CPP $CPPFLAGS'
4691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4696
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4697
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4698
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4699
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4700
CFLAGS="$SAVE_CFLAGS"
4704
# Find out which ABI we are using.
4705
echo 'int i;' > conftest.$ac_ext
4706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707
(eval $ac_compile) 2>&5
4709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710
(exit $ac_status); }; then
4711
case `/usr/bin/file conftest.o` in
4713
case $lt_cv_prog_gnu_ld in
4714
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4715
*) LD="${LD-ld} -64" ;;
4723
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4724
if test -n "$ac_tool_prefix"; then
4725
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4726
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4727
echo "$as_me:$LINENO: checking for $ac_word" >&5
4728
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4730
echo $ECHO_N "(cached) $ECHO_C" >&6
4732
if test -n "$DLLTOOL"; then
4733
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739
test -z "$as_dir" && as_dir=.
4740
for ac_exec_ext in '' $ac_executable_extensions; do
4741
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4742
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4743
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751
DLLTOOL=$ac_cv_prog_DLLTOOL
4752
if test -n "$DLLTOOL"; then
4753
echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4754
echo "${ECHO_T}$DLLTOOL" >&6
4756
echo "$as_me:$LINENO: result: no" >&5
4757
echo "${ECHO_T}no" >&6
4761
if test -z "$ac_cv_prog_DLLTOOL"; then
4762
ac_ct_DLLTOOL=$DLLTOOL
4763
# Extract the first word of "dlltool", so it can be a program name with args.
4764
set dummy dlltool; ac_word=$2
4765
echo "$as_me:$LINENO: checking for $ac_word" >&5
4766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4767
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4768
echo $ECHO_N "(cached) $ECHO_C" >&6
4770
if test -n "$ac_ct_DLLTOOL"; then
4771
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777
test -z "$as_dir" && as_dir=.
4778
for ac_exec_ext in '' $ac_executable_extensions; do
4779
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4781
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4790
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4791
if test -n "$ac_ct_DLLTOOL"; then
4792
echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4793
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4795
echo "$as_me:$LINENO: result: no" >&5
4796
echo "${ECHO_T}no" >&6
4799
DLLTOOL=$ac_ct_DLLTOOL
4801
DLLTOOL="$ac_cv_prog_DLLTOOL"
4804
if test -n "$ac_tool_prefix"; then
4805
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4806
set dummy ${ac_tool_prefix}as; ac_word=$2
4807
echo "$as_me:$LINENO: checking for $ac_word" >&5
4808
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809
if test "${ac_cv_prog_AS+set}" = set; then
4810
echo $ECHO_N "(cached) $ECHO_C" >&6
4812
if test -n "$AS"; then
4813
ac_cv_prog_AS="$AS" # Let the user override the test.
4815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819
test -z "$as_dir" && as_dir=.
4820
for ac_exec_ext in '' $ac_executable_extensions; do
4821
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822
ac_cv_prog_AS="${ac_tool_prefix}as"
4823
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4832
if test -n "$AS"; then
4833
echo "$as_me:$LINENO: result: $AS" >&5
4834
echo "${ECHO_T}$AS" >&6
4836
echo "$as_me:$LINENO: result: no" >&5
4837
echo "${ECHO_T}no" >&6
4841
if test -z "$ac_cv_prog_AS"; then
4843
# Extract the first word of "as", so it can be a program name with args.
4844
set dummy as; ac_word=$2
4845
echo "$as_me:$LINENO: checking for $ac_word" >&5
4846
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4848
echo $ECHO_N "(cached) $ECHO_C" >&6
4850
if test -n "$ac_ct_AS"; then
4851
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857
test -z "$as_dir" && as_dir=.
4858
for ac_exec_ext in '' $ac_executable_extensions; do
4859
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860
ac_cv_prog_ac_ct_AS="as"
4861
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4870
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4871
if test -n "$ac_ct_AS"; then
4872
echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4873
echo "${ECHO_T}$ac_ct_AS" >&6
4875
echo "$as_me:$LINENO: result: no" >&5
4876
echo "${ECHO_T}no" >&6
4884
if test -n "$ac_tool_prefix"; then
4885
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4886
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4887
echo "$as_me:$LINENO: checking for $ac_word" >&5
4888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4889
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4890
echo $ECHO_N "(cached) $ECHO_C" >&6
4892
if test -n "$OBJDUMP"; then
4893
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899
test -z "$as_dir" && as_dir=.
4900
for ac_exec_ext in '' $ac_executable_extensions; do
4901
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4903
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911
OBJDUMP=$ac_cv_prog_OBJDUMP
4912
if test -n "$OBJDUMP"; then
4913
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4914
echo "${ECHO_T}$OBJDUMP" >&6
4916
echo "$as_me:$LINENO: result: no" >&5
4917
echo "${ECHO_T}no" >&6
4921
if test -z "$ac_cv_prog_OBJDUMP"; then
4922
ac_ct_OBJDUMP=$OBJDUMP
4923
# Extract the first word of "objdump", so it can be a program name with args.
4924
set dummy objdump; ac_word=$2
4925
echo "$as_me:$LINENO: checking for $ac_word" >&5
4926
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4927
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4928
echo $ECHO_N "(cached) $ECHO_C" >&6
4930
if test -n "$ac_ct_OBJDUMP"; then
4931
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937
test -z "$as_dir" && as_dir=.
4938
for ac_exec_ext in '' $ac_executable_extensions; do
4939
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4941
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4950
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4951
if test -n "$ac_ct_OBJDUMP"; then
4952
echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4953
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4955
echo "$as_me:$LINENO: result: no" >&5
4956
echo "${ECHO_T}no" >&6
4959
OBJDUMP=$ac_ct_OBJDUMP
4961
OBJDUMP="$ac_cv_prog_OBJDUMP"
4968
need_locks="$enable_libtool_lock"
4972
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4973
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4974
if test "${ac_cv_header_stdc+set}" = set; then
4975
echo $ECHO_N "(cached) $ECHO_C" >&6
4977
cat >conftest.$ac_ext <<_ACEOF
4980
cat confdefs.h >>conftest.$ac_ext
4981
cat >>conftest.$ac_ext <<_ACEOF
4982
/* end confdefs.h. */
4996
rm -f conftest.$ac_objext
4997
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998
(eval $ac_compile) 2>conftest.er1
5000
grep -v '^ *+' conftest.er1 >conftest.err
5002
cat conftest.err >&5
5003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004
(exit $ac_status); } &&
5005
{ ac_try='test -z "$ac_c_werror_flag"
5006
|| test ! -s conftest.err'
5007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011
(exit $ac_status); }; } &&
5012
{ ac_try='test -s conftest.$ac_objext'
5013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017
(exit $ac_status); }; }; then
5018
ac_cv_header_stdc=yes
5020
echo "$as_me: failed program was:" >&5
5021
sed 's/^/| /' conftest.$ac_ext >&5
5023
ac_cv_header_stdc=no
5025
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027
if test $ac_cv_header_stdc = yes; then
5028
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5029
cat >conftest.$ac_ext <<_ACEOF
5032
cat confdefs.h >>conftest.$ac_ext
5033
cat >>conftest.$ac_ext <<_ACEOF
5034
/* end confdefs.h. */
5038
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5039
$EGREP "memchr" >/dev/null 2>&1; then
5042
ac_cv_header_stdc=no
5048
if test $ac_cv_header_stdc = yes; then
5049
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5050
cat >conftest.$ac_ext <<_ACEOF
5053
cat confdefs.h >>conftest.$ac_ext
5054
cat >>conftest.$ac_ext <<_ACEOF
5055
/* end confdefs.h. */
5059
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060
$EGREP "free" >/dev/null 2>&1; then
5063
ac_cv_header_stdc=no
5069
if test $ac_cv_header_stdc = yes; then
5070
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5071
if test "$cross_compiling" = yes; then
5074
cat >conftest.$ac_ext <<_ACEOF
5077
cat confdefs.h >>conftest.$ac_ext
5078
cat >>conftest.$ac_ext <<_ACEOF
5079
/* end confdefs.h. */
5081
#if ((' ' & 0x0FF) == 0x020)
5082
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5083
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5085
# define ISLOWER(c) \
5086
(('a' <= (c) && (c) <= 'i') \
5087
|| ('j' <= (c) && (c) <= 'r') \
5088
|| ('s' <= (c) && (c) <= 'z'))
5089
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5092
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5097
for (i = 0; i < 256; i++)
5098
if (XOR (islower (i), ISLOWER (i))
5099
|| toupper (i) != TOUPPER (i))
5104
rm -f conftest$ac_exeext
5105
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106
(eval $ac_link) 2>&5
5108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114
(exit $ac_status); }; }; then
5117
echo "$as_me: program exited with status $ac_status" >&5
5118
echo "$as_me: failed program was:" >&5
5119
sed 's/^/| /' conftest.$ac_ext >&5
5122
ac_cv_header_stdc=no
5124
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5128
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5129
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5130
if test $ac_cv_header_stdc = yes; then
5132
cat >>confdefs.h <<\_ACEOF
5133
@%:@define STDC_HEADERS 1
5138
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5148
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5149
inttypes.h stdint.h unistd.h
5151
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152
echo "$as_me:$LINENO: checking for $ac_header" >&5
5153
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5154
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5155
echo $ECHO_N "(cached) $ECHO_C" >&6
5157
cat >conftest.$ac_ext <<_ACEOF
5160
cat confdefs.h >>conftest.$ac_ext
5161
cat >>conftest.$ac_ext <<_ACEOF
5162
/* end confdefs.h. */
5163
$ac_includes_default
5165
@%:@include <$ac_header>
5167
rm -f conftest.$ac_objext
5168
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169
(eval $ac_compile) 2>conftest.er1
5171
grep -v '^ *+' conftest.er1 >conftest.err
5173
cat conftest.err >&5
5174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175
(exit $ac_status); } &&
5176
{ ac_try='test -z "$ac_c_werror_flag"
5177
|| test ! -s conftest.err'
5178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182
(exit $ac_status); }; } &&
5183
{ ac_try='test -s conftest.$ac_objext'
5184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188
(exit $ac_status); }; }; then
5189
eval "$as_ac_Header=yes"
5191
echo "$as_me: failed program was:" >&5
5192
sed 's/^/| /' conftest.$ac_ext >&5
5194
eval "$as_ac_Header=no"
5196
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5198
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5199
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5200
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5201
cat >>confdefs.h <<_ACEOF
5202
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5211
for ac_header in dlfcn.h
5213
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5214
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5215
echo "$as_me:$LINENO: checking for $ac_header" >&5
5216
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5217
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5218
echo $ECHO_N "(cached) $ECHO_C" >&6
5220
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5221
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5223
# Is the header compilable?
5224
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5225
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5226
cat >conftest.$ac_ext <<_ACEOF
5229
cat confdefs.h >>conftest.$ac_ext
5230
cat >>conftest.$ac_ext <<_ACEOF
5231
/* end confdefs.h. */
5232
$ac_includes_default
5233
@%:@include <$ac_header>
5235
rm -f conftest.$ac_objext
5236
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237
(eval $ac_compile) 2>conftest.er1
5239
grep -v '^ *+' conftest.er1 >conftest.err
5241
cat conftest.err >&5
5242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243
(exit $ac_status); } &&
5244
{ ac_try='test -z "$ac_c_werror_flag"
5245
|| test ! -s conftest.err'
5246
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250
(exit $ac_status); }; } &&
5251
{ ac_try='test -s conftest.$ac_objext'
5252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256
(exit $ac_status); }; }; then
5257
ac_header_compiler=yes
5259
echo "$as_me: failed program was:" >&5
5260
sed 's/^/| /' conftest.$ac_ext >&5
5262
ac_header_compiler=no
5264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5265
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266
echo "${ECHO_T}$ac_header_compiler" >&6
5268
# Is the header present?
5269
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5270
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5271
cat >conftest.$ac_ext <<_ACEOF
5274
cat confdefs.h >>conftest.$ac_ext
5275
cat >>conftest.$ac_ext <<_ACEOF
5276
/* end confdefs.h. */
5277
@%:@include <$ac_header>
5279
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5280
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282
grep -v '^ *+' conftest.er1 >conftest.err
5284
cat conftest.err >&5
5285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286
(exit $ac_status); } >/dev/null; then
5287
if test -s conftest.err; then
5288
ac_cpp_err=$ac_c_preproc_warn_flag
5289
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5296
if test -z "$ac_cpp_err"; then
5297
ac_header_preproc=yes
5299
echo "$as_me: failed program was:" >&5
5300
sed 's/^/| /' conftest.$ac_ext >&5
5302
ac_header_preproc=no
5304
rm -f conftest.err conftest.$ac_ext
5305
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306
echo "${ECHO_T}$ac_header_preproc" >&6
5308
# So? What about this header?
5309
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5311
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5312
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5314
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5315
ac_header_preproc=yes
5318
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5319
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5320
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5321
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5322
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5323
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5324
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5325
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5326
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5327
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5328
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5329
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5332
@%:@@%:@ ------------------------------------------ @%:@@%:@
5333
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
5334
@%:@@%:@ ------------------------------------------ @%:@@%:@
5337
sed "s/^/$as_me: WARNING: /" >&2
5340
echo "$as_me:$LINENO: checking for $ac_header" >&5
5341
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5342
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5343
echo $ECHO_N "(cached) $ECHO_C" >&6
5345
eval "$as_ac_Header=\$ac_header_preproc"
5347
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5348
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5351
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5352
cat >>confdefs.h <<_ACEOF
5353
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5363
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5364
(test "X$CXX" != "Xg++"))) ; then
5366
ac_cpp='$CXXCPP $CPPFLAGS'
5367
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5370
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5371
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5372
if test -z "$CXXCPP"; then
5373
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5374
echo $ECHO_N "(cached) $ECHO_C" >&6
5376
# Double quotes because CXXCPP needs to be expanded
5377
for CXXCPP in "$CXX -E" "/lib/cpp"
5380
for ac_cxx_preproc_warn_flag in '' yes
5382
# Use a header file that comes with gcc, so configuring glibc
5383
# with a fresh cross-compiler works.
5384
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5385
# <limits.h> exists even on freestanding compilers.
5386
# On the NeXT, cc -E runs the code through the compiler's parser,
5387
# not just through cpp. "Syntax error" is here to catch this case.
5388
cat >conftest.$ac_ext <<_ACEOF
5391
cat confdefs.h >>conftest.$ac_ext
5392
cat >>conftest.$ac_ext <<_ACEOF
5393
/* end confdefs.h. */
5395
@%:@ include <limits.h>
5397
@%:@ include <assert.h>
5401
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5402
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5404
grep -v '^ *+' conftest.er1 >conftest.err
5406
cat conftest.err >&5
5407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408
(exit $ac_status); } >/dev/null; then
5409
if test -s conftest.err; then
5410
ac_cpp_err=$ac_cxx_preproc_warn_flag
5411
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5418
if test -z "$ac_cpp_err"; then
5421
echo "$as_me: failed program was:" >&5
5422
sed 's/^/| /' conftest.$ac_ext >&5
5424
# Broken: fails on valid input.
5427
rm -f conftest.err conftest.$ac_ext
5429
# OK, works on sane cases. Now check whether non-existent headers
5430
# can be detected and how.
5431
cat >conftest.$ac_ext <<_ACEOF
5434
cat confdefs.h >>conftest.$ac_ext
5435
cat >>conftest.$ac_ext <<_ACEOF
5436
/* end confdefs.h. */
5437
@%:@include <ac_nonexistent.h>
5439
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5440
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5442
grep -v '^ *+' conftest.er1 >conftest.err
5444
cat conftest.err >&5
5445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446
(exit $ac_status); } >/dev/null; then
5447
if test -s conftest.err; then
5448
ac_cpp_err=$ac_cxx_preproc_warn_flag
5449
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5456
if test -z "$ac_cpp_err"; then
5457
# Broken: success on invalid input.
5460
echo "$as_me: failed program was:" >&5
5461
sed 's/^/| /' conftest.$ac_ext >&5
5463
# Passes both tests.
5467
rm -f conftest.err conftest.$ac_ext
5470
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5471
rm -f conftest.err conftest.$ac_ext
5472
if $ac_preproc_ok; then
5477
ac_cv_prog_CXXCPP=$CXXCPP
5480
CXXCPP=$ac_cv_prog_CXXCPP
5482
ac_cv_prog_CXXCPP=$CXXCPP
5484
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5485
echo "${ECHO_T}$CXXCPP" >&6
5487
for ac_cxx_preproc_warn_flag in '' yes
5489
# Use a header file that comes with gcc, so configuring glibc
5490
# with a fresh cross-compiler works.
5491
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5492
# <limits.h> exists even on freestanding compilers.
5493
# On the NeXT, cc -E runs the code through the compiler's parser,
5494
# not just through cpp. "Syntax error" is here to catch this case.
5495
cat >conftest.$ac_ext <<_ACEOF
5498
cat confdefs.h >>conftest.$ac_ext
5499
cat >>conftest.$ac_ext <<_ACEOF
5500
/* end confdefs.h. */
5502
@%:@ include <limits.h>
5504
@%:@ include <assert.h>
5508
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5509
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5511
grep -v '^ *+' conftest.er1 >conftest.err
5513
cat conftest.err >&5
5514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515
(exit $ac_status); } >/dev/null; then
5516
if test -s conftest.err; then
5517
ac_cpp_err=$ac_cxx_preproc_warn_flag
5518
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5525
if test -z "$ac_cpp_err"; then
5528
echo "$as_me: failed program was:" >&5
5529
sed 's/^/| /' conftest.$ac_ext >&5
5531
# Broken: fails on valid input.
5534
rm -f conftest.err conftest.$ac_ext
5536
# OK, works on sane cases. Now check whether non-existent headers
5537
# can be detected and how.
5538
cat >conftest.$ac_ext <<_ACEOF
5541
cat confdefs.h >>conftest.$ac_ext
5542
cat >>conftest.$ac_ext <<_ACEOF
5543
/* end confdefs.h. */
5544
@%:@include <ac_nonexistent.h>
5546
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5547
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5549
grep -v '^ *+' conftest.er1 >conftest.err
5551
cat conftest.err >&5
5552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553
(exit $ac_status); } >/dev/null; then
5554
if test -s conftest.err; then
5555
ac_cpp_err=$ac_cxx_preproc_warn_flag
5556
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5563
if test -z "$ac_cpp_err"; then
5564
# Broken: success on invalid input.
5567
echo "$as_me: failed program was:" >&5
5568
sed 's/^/| /' conftest.$ac_ext >&5
5570
# Passes both tests.
5574
rm -f conftest.err conftest.$ac_ext
5577
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5578
rm -f conftest.err conftest.$ac_ext
5579
if $ac_preproc_ok; then
5582
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5583
See \`config.log' for more details." >&5
5584
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5585
See \`config.log' for more details." >&2;}
5586
{ (exit 1); exit 1; }; }
5590
ac_cpp='$CXXCPP $CPPFLAGS'
5591
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5599
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5600
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5602
if test -n "$ac_tool_prefix"; then
5603
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5605
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607
echo "$as_me:$LINENO: checking for $ac_word" >&5
5608
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609
if test "${ac_cv_prog_F77+set}" = set; then
5610
echo $ECHO_N "(cached) $ECHO_C" >&6
5612
if test -n "$F77"; then
5613
ac_cv_prog_F77="$F77" # Let the user override the test.
5615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619
test -z "$as_dir" && as_dir=.
5620
for ac_exec_ext in '' $ac_executable_extensions; do
5621
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5623
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632
if test -n "$F77"; then
5633
echo "$as_me:$LINENO: result: $F77" >&5
5634
echo "${ECHO_T}$F77" >&6
5636
echo "$as_me:$LINENO: result: no" >&5
5637
echo "${ECHO_T}no" >&6
5640
test -n "$F77" && break
5643
if test -z "$F77"; then
5645
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5647
# Extract the first word of "$ac_prog", so it can be a program name with args.
5648
set dummy $ac_prog; ac_word=$2
5649
echo "$as_me:$LINENO: checking for $ac_word" >&5
5650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5652
echo $ECHO_N "(cached) $ECHO_C" >&6
5654
if test -n "$ac_ct_F77"; then
5655
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661
test -z "$as_dir" && as_dir=.
5662
for ac_exec_ext in '' $ac_executable_extensions; do
5663
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664
ac_cv_prog_ac_ct_F77="$ac_prog"
5665
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5674
if test -n "$ac_ct_F77"; then
5675
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5676
echo "${ECHO_T}$ac_ct_F77" >&6
5678
echo "$as_me:$LINENO: result: no" >&5
5679
echo "${ECHO_T}no" >&6
5682
test -n "$ac_ct_F77" && break
5689
# Provide some information about the compiler.
5690
echo "$as_me:__oline__:" \
5691
"checking for Fortran 77 compiler version" >&5
5692
ac_compiler=`set X $ac_compile; echo $2`
5693
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5694
(eval $ac_compiler --version </dev/null >&5) 2>&5
5696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697
(exit $ac_status); }
5698
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5699
(eval $ac_compiler -v </dev/null >&5) 2>&5
5701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702
(exit $ac_status); }
5703
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5704
(eval $ac_compiler -V </dev/null >&5) 2>&5
5706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707
(exit $ac_status); }
5710
# If we don't use `.F' as extension, the preprocessor is not run on the
5711
# input file. (Note that this only needs to work for GNU compilers.)
5714
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5715
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5716
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5717
echo $ECHO_N "(cached) $ECHO_C" >&6
5719
cat >conftest.$ac_ext <<_ACEOF
5727
rm -f conftest.$ac_objext
5728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729
(eval $ac_compile) 2>conftest.er1
5731
grep -v '^ *+' conftest.er1 >conftest.err
5733
cat conftest.err >&5
5734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735
(exit $ac_status); } &&
5736
{ ac_try='test -z "$ac_f77_werror_flag"
5737
|| test ! -s conftest.err'
5738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742
(exit $ac_status); }; } &&
5743
{ ac_try='test -s conftest.$ac_objext'
5744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748
(exit $ac_status); }; }; then
5751
echo "$as_me: failed program was:" >&5
5752
sed 's/^/| /' conftest.$ac_ext >&5
5756
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5760
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5761
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5763
ac_test_FFLAGS=${FFLAGS+set}
5764
ac_save_FFLAGS=$FFLAGS
5766
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5767
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5768
if test "${ac_cv_prog_f77_g+set}" = set; then
5769
echo $ECHO_N "(cached) $ECHO_C" >&6
5772
cat >conftest.$ac_ext <<_ACEOF
5777
rm -f conftest.$ac_objext
5778
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779
(eval $ac_compile) 2>conftest.er1
5781
grep -v '^ *+' conftest.er1 >conftest.err
5783
cat conftest.err >&5
5784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785
(exit $ac_status); } &&
5786
{ ac_try='test -z "$ac_f77_werror_flag"
5787
|| test ! -s conftest.err'
5788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792
(exit $ac_status); }; } &&
5793
{ ac_try='test -s conftest.$ac_objext'
5794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798
(exit $ac_status); }; }; then
5799
ac_cv_prog_f77_g=yes
5801
echo "$as_me: failed program was:" >&5
5802
sed 's/^/| /' conftest.$ac_ext >&5
5806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5810
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5811
if test "$ac_test_FFLAGS" = set; then
5812
FFLAGS=$ac_save_FFLAGS
5813
elif test $ac_cv_prog_f77_g = yes; then
5814
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5820
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5827
G77=`test $ac_compiler_gnu = yes && echo yes`
5829
ac_cpp='$CPP $CPPFLAGS'
5830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5838
# find the maximum length of command line arguments
5839
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5840
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5841
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5842
echo $ECHO_N "(cached) $ECHO_C" >&6
5849
# On DJGPP, this test can blow up pretty badly due to problems in libc
5850
# (any single argument exceeding 2000 bytes causes a buffer overrun
5851
# during glob expansion). Even if it were fixed, the result of this
5852
# check would be larger than it should be.
5853
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5857
# Under GNU Hurd, this test is not required because there is
5858
# no limit to the length of command line arguments.
5859
# Libtool will interpret -1 as no limit whatsoever
5860
lt_cv_sys_max_cmd_len=-1;
5864
# On Win9x/ME, this test blows up -- it succeeds, but takes
5865
# about 5 minutes as the teststring grows exponentially.
5866
# Worse, since 9x/ME are not pre-emptively multitasking,
5867
# you end up with a "frozen" computer, even though with patience
5868
# the test eventually succeeds (with a max line length of 256k).
5869
# Instead, let's just punt: use the minimum linelength reported by
5870
# all of the supported platforms: 8192 (on NT/2K/XP).
5871
lt_cv_sys_max_cmd_len=8192;
5875
# On AmigaOS with pdksh, this test takes hours, literally.
5876
# So we just punt and use a minimum line length of 8192.
5877
lt_cv_sys_max_cmd_len=8192;
5880
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5881
# This has been around since 386BSD, at least. Likely further.
5882
if test -x /sbin/sysctl; then
5883
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5884
elif test -x /usr/sbin/sysctl; then
5885
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5887
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5889
# And add a safety zone
5890
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5891
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5895
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5896
lt_cv_sys_max_cmd_len=196608
5900
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5901
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5902
# nice to cause kernel panics so lets avoid the loop below.
5903
# First set a reasonable default.
5904
lt_cv_sys_max_cmd_len=16384
5906
if test -x /sbin/sysconfig; then
5907
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5908
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5913
lt_cv_sys_max_cmd_len=102400
5915
sysv5* | sco5v6* | sysv4.2uw2*)
5916
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5917
if test -n "$kargmax"; then
5918
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5920
lt_cv_sys_max_cmd_len=32768
5924
# If test is not a shell built-in, we'll probably end up computing a
5925
# maximum length that is only half of the actual maximum length, but
5927
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5928
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5929
= "XX$teststring") >/dev/null 2>&1 &&
5930
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5931
lt_cv_sys_max_cmd_len=$new_result &&
5932
test $i != 17 # 1/2 MB should be enough
5935
teststring=$teststring$teststring
5938
# Add a significant safety factor because C++ compilers can tack on massive
5939
# amounts of additional arguments before passing them to the linker.
5940
# It appears as though 1/2 is a usable value.
5941
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5947
if test -n $lt_cv_sys_max_cmd_len ; then
5948
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5949
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5951
echo "$as_me:$LINENO: result: none" >&5
5952
echo "${ECHO_T}none" >&6
5958
# Check for command to grab the raw symbol name followed by C symbol from nm.
5959
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5960
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5961
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5962
echo $ECHO_N "(cached) $ECHO_C" >&6
5965
# These are sane defaults that work on at least a few old systems.
5966
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5968
# Character class describing NM global symbol codes.
5969
symcode='[BCDEGRST]'
5971
# Regexp to match symbols that can be accessed directly from C.
5972
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5974
# Transform an extracted symbol line into a proper C declaration
5975
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5977
# Transform an extracted symbol line into symbol name and symbol address
5978
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'"
5980
# Define system-specific variables.
5985
cygwin* | mingw* | pw32*)
5986
symcode='[ABCDGISTW]'
5988
hpux*) # Its linker distinguishes data from code symbols
5989
if test "$host_cpu" = ia64; then
5990
symcode='[ABCDEGRST]'
5992
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5993
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'"
5996
if test "$host_cpu" = ia64; then
5997
symcode='[ABCDGIRSTW]'
5998
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5999
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'"
6003
symcode='[BCDEGRST]'
6006
symcode='[BCDEGQRST]'
6017
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6025
# Handle CRLF in mingw tool chain
6029
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6033
# If we're using GNU nm, then use its standard symbol codes.
6034
case `$NM -V 2>&1` in
6035
*GNU* | *'with BFD'*)
6036
symcode='[ABCDGIRSTW]' ;;
6039
# Try without a prefix undercore, then with it.
6040
for ac_symprfx in "" "_"; do
6042
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6043
symxfrm="\\1 $ac_symprfx\\2 \\2"
6045
# Write the raw and C identifiers.
6046
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6048
# Check to see that the pipe works correctly.
6052
cat > conftest.$ac_ext <<EOF
6057
void nm_test_func(){}
6061
int main(){nm_test_var='a';nm_test_func();return(0);}
6064
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065
(eval $ac_compile) 2>&5
6067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068
(exit $ac_status); }; then
6069
# Now try to grab the symbols.
6071
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6072
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075
(exit $ac_status); } && test -s "$nlist"; then
6076
# Try sorting and uniquifying the output.
6077
if sort "$nlist" | uniq > "$nlist"T; then
6078
mv -f "$nlist"T "$nlist"
6083
# Make sure that we snagged all the symbols we need.
6084
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6085
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6086
cat <<EOF > conftest.$ac_ext
6092
# Now generate the symbol file.
6093
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6095
cat <<EOF >> conftest.$ac_ext
6096
#if defined (__STDC__) && __STDC__
6097
# define lt_ptr_t void *
6099
# define lt_ptr_t char *
6103
/* The mapping between symbol names and symbols. */
6108
lt_preloaded_symbols[] =
6111
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6112
cat <<\EOF >> conftest.$ac_ext
6120
# Now try linking the two files.
6121
mv conftest.$ac_objext conftstm.$ac_objext
6122
lt_save_LIBS="$LIBS"
6123
lt_save_CFLAGS="$CFLAGS"
6124
LIBS="conftstm.$ac_objext"
6125
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6126
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6127
(eval $ac_link) 2>&5
6129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6133
LIBS="$lt_save_LIBS"
6134
CFLAGS="$lt_save_CFLAGS"
6136
echo "cannot find nm_test_func in $nlist" >&5
6139
echo "cannot find nm_test_var in $nlist" >&5
6142
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6145
echo "$progname: failed program was:" >&5
6146
cat conftest.$ac_ext >&5
6148
rm -f conftest* conftst*
6150
# Do not use the global_symbol_pipe unless it works.
6151
if test "$pipe_works" = yes; then
6154
lt_cv_sys_global_symbol_pipe=
6160
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6161
lt_cv_sys_global_symbol_to_cdecl=
6163
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6164
echo "$as_me:$LINENO: result: failed" >&5
6165
echo "${ECHO_T}failed" >&6
6167
echo "$as_me:$LINENO: result: ok" >&5
6168
echo "${ECHO_T}ok" >&6
6171
echo "$as_me:$LINENO: checking for objdir" >&5
6172
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6173
if test "${lt_cv_objdir+set}" = set; then
6174
echo $ECHO_N "(cached) $ECHO_C" >&6
6176
rm -f .libs 2>/dev/null
6177
mkdir .libs 2>/dev/null
6178
if test -d .libs; then
6181
# MS-DOS does not allow filenames that begin with a dot.
6184
rmdir .libs 2>/dev/null
6186
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6187
echo "${ECHO_T}$lt_cv_objdir" >&6
6188
objdir=$lt_cv_objdir
6196
# AIX sometimes has problems with the GCC collect2 program. For some
6197
# reason, if we set the COLLECT_NAMES environment variable, the problems
6198
# vanish in a puff of smoke.
6199
if test "X${COLLECT_NAMES+set}" != Xset; then
6201
export COLLECT_NAMES
6206
# Sed substitution that helps us do robust quoting. It backslashifies
6207
# metacharacters that are still active within double-quoted strings.
6208
Xsed='sed -e 1s/^X//'
6209
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6211
# Same as above, but do not quote variable references.
6212
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6214
# Sed substitution to delay expansion of an escaped shell variable in a
6215
# double_quote_subst'ed string.
6216
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6218
# Sed substitution to avoid accidental globbing in evaled expressions
6219
no_glob_subst='s/\*/\\\*/g'
6225
default_ofile=libtool
6226
can_build_shared=yes
6228
# All known linkers require a `.a' archive for static linking (except MSVC,
6229
# which needs '.lib').
6231
ltmain="$ac_aux_dir/ltmain.sh"
6232
ofile="$default_ofile"
6233
with_gnu_ld="$lt_cv_prog_gnu_ld"
6235
if test -n "$ac_tool_prefix"; then
6236
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6237
set dummy ${ac_tool_prefix}ar; ac_word=$2
6238
echo "$as_me:$LINENO: checking for $ac_word" >&5
6239
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6240
if test "${ac_cv_prog_AR+set}" = set; then
6241
echo $ECHO_N "(cached) $ECHO_C" >&6
6243
if test -n "$AR"; then
6244
ac_cv_prog_AR="$AR" # Let the user override the test.
6246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250
test -z "$as_dir" && as_dir=.
6251
for ac_exec_ext in '' $ac_executable_extensions; do
6252
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253
ac_cv_prog_AR="${ac_tool_prefix}ar"
6254
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263
if test -n "$AR"; then
6264
echo "$as_me:$LINENO: result: $AR" >&5
6265
echo "${ECHO_T}$AR" >&6
6267
echo "$as_me:$LINENO: result: no" >&5
6268
echo "${ECHO_T}no" >&6
6272
if test -z "$ac_cv_prog_AR"; then
6274
# Extract the first word of "ar", so it can be a program name with args.
6275
set dummy ar; ac_word=$2
6276
echo "$as_me:$LINENO: checking for $ac_word" >&5
6277
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6278
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6279
echo $ECHO_N "(cached) $ECHO_C" >&6
6281
if test -n "$ac_ct_AR"; then
6282
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6284
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288
test -z "$as_dir" && as_dir=.
6289
for ac_exec_ext in '' $ac_executable_extensions; do
6290
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291
ac_cv_prog_ac_ct_AR="ar"
6292
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6301
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6302
if test -n "$ac_ct_AR"; then
6303
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6304
echo "${ECHO_T}$ac_ct_AR" >&6
6306
echo "$as_me:$LINENO: result: no" >&5
6307
echo "${ECHO_T}no" >&6
6315
if test -n "$ac_tool_prefix"; then
6316
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6317
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6318
echo "$as_me:$LINENO: checking for $ac_word" >&5
6319
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6320
if test "${ac_cv_prog_RANLIB+set}" = set; then
6321
echo $ECHO_N "(cached) $ECHO_C" >&6
6323
if test -n "$RANLIB"; then
6324
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330
test -z "$as_dir" && as_dir=.
6331
for ac_exec_ext in '' $ac_executable_extensions; do
6332
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6334
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342
RANLIB=$ac_cv_prog_RANLIB
6343
if test -n "$RANLIB"; then
6344
echo "$as_me:$LINENO: result: $RANLIB" >&5
6345
echo "${ECHO_T}$RANLIB" >&6
6347
echo "$as_me:$LINENO: result: no" >&5
6348
echo "${ECHO_T}no" >&6
6352
if test -z "$ac_cv_prog_RANLIB"; then
6353
ac_ct_RANLIB=$RANLIB
6354
# Extract the first word of "ranlib", so it can be a program name with args.
6355
set dummy ranlib; ac_word=$2
6356
echo "$as_me:$LINENO: checking for $ac_word" >&5
6357
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6358
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6359
echo $ECHO_N "(cached) $ECHO_C" >&6
6361
if test -n "$ac_ct_RANLIB"; then
6362
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368
test -z "$as_dir" && as_dir=.
6369
for ac_exec_ext in '' $ac_executable_extensions; do
6370
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371
ac_cv_prog_ac_ct_RANLIB="ranlib"
6372
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6381
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6382
if test -n "$ac_ct_RANLIB"; then
6383
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6384
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6386
echo "$as_me:$LINENO: result: no" >&5
6387
echo "${ECHO_T}no" >&6
6390
RANLIB=$ac_ct_RANLIB
6392
RANLIB="$ac_cv_prog_RANLIB"
6395
if test -n "$ac_tool_prefix"; then
6396
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6397
set dummy ${ac_tool_prefix}strip; ac_word=$2
6398
echo "$as_me:$LINENO: checking for $ac_word" >&5
6399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6400
if test "${ac_cv_prog_STRIP+set}" = set; then
6401
echo $ECHO_N "(cached) $ECHO_C" >&6
6403
if test -n "$STRIP"; then
6404
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410
test -z "$as_dir" && as_dir=.
6411
for ac_exec_ext in '' $ac_executable_extensions; do
6412
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6414
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422
STRIP=$ac_cv_prog_STRIP
6423
if test -n "$STRIP"; then
6424
echo "$as_me:$LINENO: result: $STRIP" >&5
6425
echo "${ECHO_T}$STRIP" >&6
6427
echo "$as_me:$LINENO: result: no" >&5
6428
echo "${ECHO_T}no" >&6
6432
if test -z "$ac_cv_prog_STRIP"; then
6434
# Extract the first word of "strip", so it can be a program name with args.
6435
set dummy strip; ac_word=$2
6436
echo "$as_me:$LINENO: checking for $ac_word" >&5
6437
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6438
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6439
echo $ECHO_N "(cached) $ECHO_C" >&6
6441
if test -n "$ac_ct_STRIP"; then
6442
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448
test -z "$as_dir" && as_dir=.
6449
for ac_exec_ext in '' $ac_executable_extensions; do
6450
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451
ac_cv_prog_ac_ct_STRIP="strip"
6452
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6461
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6462
if test -n "$ac_ct_STRIP"; then
6463
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6464
echo "${ECHO_T}$ac_ct_STRIP" >&6
6466
echo "$as_me:$LINENO: result: no" >&5
6467
echo "${ECHO_T}no" >&6
6472
STRIP="$ac_cv_prog_STRIP"
6477
old_CFLAGS="$CFLAGS"
6479
# Set sane defaults for various variables
6480
test -z "$AR" && AR=ar
6481
test -z "$AR_FLAGS" && AR_FLAGS=cru
6482
test -z "$AS" && AS=as
6483
test -z "$CC" && CC=cc
6484
test -z "$LTCC" && LTCC=$CC
6485
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6486
test -z "$DLLTOOL" && DLLTOOL=dlltool
6487
test -z "$LD" && LD=ld
6488
test -z "$LN_S" && LN_S="ln -s"
6489
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6490
test -z "$NM" && NM=nm
6491
test -z "$SED" && SED=sed
6492
test -z "$OBJDUMP" && OBJDUMP=objdump
6493
test -z "$RANLIB" && RANLIB=:
6494
test -z "$STRIP" && STRIP=:
6495
test -z "$ac_objext" && ac_objext=o
6497
# Determine commands to create old-style static archives.
6498
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6499
old_postinstall_cmds='chmod 644 $oldlib'
6500
old_postuninstall_cmds=
6502
if test -n "$RANLIB"; then
6505
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6508
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6511
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6514
for cc_temp in $compiler""; do
6516
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6517
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6522
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6525
# Only perform the check for file, if the check method requires it
6526
case $deplibs_check_method in
6528
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6529
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6530
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6531
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6532
echo $ECHO_N "(cached) $ECHO_C" >&6
6536
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6539
lt_save_MAGIC_CMD="$MAGIC_CMD"
6540
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6541
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6542
for ac_dir in $ac_dummy; do
6544
test -z "$ac_dir" && ac_dir=.
6545
if test -f $ac_dir/${ac_tool_prefix}file; then
6546
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6547
if test -n "$file_magic_test_file"; then
6548
case $deplibs_check_method in
6550
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6551
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6552
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6553
$EGREP "$file_magic_regex" > /dev/null; then
6558
*** Warning: the command libtool uses to detect shared libraries,
6559
*** $file_magic_cmd, produces output that libtool cannot recognize.
6560
*** The result is that libtool may fail to recognize shared libraries
6561
*** as such. This will affect the creation of libtool libraries that
6562
*** depend on shared libraries, but programs linked with such libtool
6563
*** libraries will work regardless of this problem. Nevertheless, you
6564
*** may want to report the problem to your system manager and/or to
6565
*** bug-libtool@gnu.org
6575
MAGIC_CMD="$lt_save_MAGIC_CMD"
6580
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6581
if test -n "$MAGIC_CMD"; then
6582
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6583
echo "${ECHO_T}$MAGIC_CMD" >&6
6585
echo "$as_me:$LINENO: result: no" >&5
6586
echo "${ECHO_T}no" >&6
6589
if test -z "$lt_cv_path_MAGIC_CMD"; then
6590
if test -n "$ac_tool_prefix"; then
6591
echo "$as_me:$LINENO: checking for file" >&5
6592
echo $ECHO_N "checking for file... $ECHO_C" >&6
6593
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6594
echo $ECHO_N "(cached) $ECHO_C" >&6
6598
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6601
lt_save_MAGIC_CMD="$MAGIC_CMD"
6602
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6603
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6604
for ac_dir in $ac_dummy; do
6606
test -z "$ac_dir" && ac_dir=.
6607
if test -f $ac_dir/file; then
6608
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6609
if test -n "$file_magic_test_file"; then
6610
case $deplibs_check_method in
6612
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6613
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6614
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6615
$EGREP "$file_magic_regex" > /dev/null; then
6620
*** Warning: the command libtool uses to detect shared libraries,
6621
*** $file_magic_cmd, produces output that libtool cannot recognize.
6622
*** The result is that libtool may fail to recognize shared libraries
6623
*** as such. This will affect the creation of libtool libraries that
6624
*** depend on shared libraries, but programs linked with such libtool
6625
*** libraries will work regardless of this problem. Nevertheless, you
6626
*** may want to report the problem to your system manager and/or to
6627
*** bug-libtool@gnu.org
6637
MAGIC_CMD="$lt_save_MAGIC_CMD"
6642
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6643
if test -n "$MAGIC_CMD"; then
6644
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6645
echo "${ECHO_T}$MAGIC_CMD" >&6
6647
echo "$as_me:$LINENO: result: no" >&5
6648
echo "${ECHO_T}no" >&6
6661
enable_win32_dll=yes
6663
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6664
if test "${enable_libtool_lock+set}" = set; then
6665
enableval="$enable_libtool_lock"
6668
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6671
# Check whether --with-pic or --without-pic was given.
6672
if test "${with_pic+set}" = set; then
6678
test -z "$pic_mode" && pic_mode=default
6680
# Use C for the default configuration in the libtool script
6684
ac_cpp='$CPP $CPPFLAGS'
6685
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690
# Source file extension for C test sources.
6693
# Object file extension for compiled C test sources.
6697
# Code to be used in simple compile tests
6698
lt_simple_compile_test_code="int some_variable = 0;\n"
6700
# Code to be used in simple link tests
6701
lt_simple_link_test_code='int main(){return(0);}\n'
6704
# If no C compiler was specified, use CC.
6707
# If no C compiler flags were specified, use CFLAGS.
6708
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6710
# Allow CC to be a program name with arguments.
6714
# save warnings/boilerplate of simple test code
6715
ac_outfile=conftest.$ac_objext
6716
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6717
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6718
_lt_compiler_boilerplate=`cat conftest.err`
6721
ac_outfile=conftest.$ac_objext
6722
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6723
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6724
_lt_linker_boilerplate=`cat conftest.err`
6729
lt_prog_compiler_no_builtin_flag=
6731
if test "$GCC" = yes; then
6732
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6735
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6736
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6737
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6738
echo $ECHO_N "(cached) $ECHO_C" >&6
6740
lt_cv_prog_compiler_rtti_exceptions=no
6741
ac_outfile=conftest.$ac_objext
6742
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6743
lt_compiler_flag="-fno-rtti -fno-exceptions"
6744
# Insert the option either (1) after the last *FLAGS variable, or
6745
# (2) before a word containing "conftest.", or (3) at the end.
6746
# Note that $ac_compile itself does not contain backslashes and begins
6747
# with a dollar sign (not a hyphen), so the echo should work correctly.
6748
# The option is referenced via a variable to avoid confusing sed.
6749
lt_compile=`echo "$ac_compile" | $SED \
6750
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6751
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6752
-e 's:$: $lt_compiler_flag:'`
6753
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6754
(eval "$lt_compile" 2>conftest.err)
6756
cat conftest.err >&5
6757
echo "$as_me:__oline__: \$? = $ac_status" >&5
6758
if (exit $ac_status) && test -s "$ac_outfile"; then
6759
# The compiler can only warn and ignore the option if not recognized
6760
# So say no if there are warnings other than the usual output.
6761
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6762
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6763
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6764
lt_cv_prog_compiler_rtti_exceptions=yes
6770
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6771
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6773
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6774
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6781
lt_prog_compiler_wl=
6782
lt_prog_compiler_pic=
6783
lt_prog_compiler_static=
6785
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6786
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6788
if test "$GCC" = yes; then
6789
lt_prog_compiler_wl='-Wl,'
6790
lt_prog_compiler_static='-static'
6794
# All AIX code is PIC.
6795
if test "$host_cpu" = ia64; then
6796
# AIX 5 now supports IA64 processor
6797
lt_prog_compiler_static='-Bstatic'
6802
# FIXME: we need at least 68020 code to build shared libraries, but
6803
# adding the `-m68020' flag to GCC prevents building anything better,
6805
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6808
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6809
# PIC is the default for these OSes.
6812
mingw* | pw32* | os2*)
6813
# This hack is so that the source file can tell whether it is being
6814
# built for inclusion in a dll (and should export symbols for example).
6815
lt_prog_compiler_pic='-DDLL_EXPORT'
6818
darwin* | rhapsody*)
6819
# PIC is the default on this platform
6820
# Common symbols not allowed in MH_DYLIB files
6821
lt_prog_compiler_pic='-fno-common'
6825
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6826
# Instead, we relocate shared libraries at runtime.
6830
# Just because we use GCC doesn't mean we suddenly get shared libraries
6831
# on systems that don't support them.
6832
lt_prog_compiler_can_build_shared=no
6837
if test -d /usr/nec; then
6838
lt_prog_compiler_pic=-Kconform_pic
6843
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6850
lt_prog_compiler_pic='-fPIC'
6856
lt_prog_compiler_pic='-fPIC'
6860
# PORTME Check for flag to pass linker flags through the system compiler.
6863
lt_prog_compiler_wl='-Wl,'
6864
if test "$host_cpu" = ia64; then
6865
# AIX 5 now supports IA64 processor
6866
lt_prog_compiler_static='-Bstatic'
6868
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6872
# PIC is the default on this platform
6873
# Common symbols not allowed in MH_DYLIB files
6874
case $cc_basename in
6876
lt_prog_compiler_pic='-qnocommon'
6877
lt_prog_compiler_wl='-Wl,'
6882
mingw* | pw32* | os2*)
6883
# This hack is so that the source file can tell whether it is being
6884
# built for inclusion in a dll (and should export symbols for example).
6885
lt_prog_compiler_pic='-DDLL_EXPORT'
6888
hpux9* | hpux10* | hpux11*)
6889
lt_prog_compiler_wl='-Wl,'
6890
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6897
lt_prog_compiler_pic='+Z'
6900
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6901
lt_prog_compiler_static='${wl}-a ${wl}archive'
6904
irix5* | irix6* | nonstopux*)
6905
lt_prog_compiler_wl='-Wl,'
6906
# PIC (with -KPIC) is the default.
6907
lt_prog_compiler_static='-non_shared'
6911
lt_prog_compiler_pic='-KPIC'
6912
lt_prog_compiler_static='-Bstatic'
6916
case $cc_basename in
6918
lt_prog_compiler_wl='-Wl,'
6919
lt_prog_compiler_pic='-KPIC'
6920
lt_prog_compiler_static='-static'
6922
pgcc* | pgf77* | pgf90* | pgf95*)
6923
# Portland Group compilers (*not* the Pentium gcc compiler,
6924
# which looks to be a dead project)
6925
lt_prog_compiler_wl='-Wl,'
6926
lt_prog_compiler_pic='-fpic'
6927
lt_prog_compiler_static='-Bstatic'
6930
lt_prog_compiler_wl='-Wl,'
6931
# All Alpha code is PIC.
6932
lt_prog_compiler_static='-non_shared'
6937
osf3* | osf4* | osf5*)
6938
lt_prog_compiler_wl='-Wl,'
6939
# All OSF/1 code is PIC.
6940
lt_prog_compiler_static='-non_shared'
6944
lt_prog_compiler_pic='-KPIC'
6945
lt_prog_compiler_static='-Bstatic'
6946
case $cc_basename in
6948
lt_prog_compiler_wl='-Qoption ld ';;
6950
lt_prog_compiler_wl='-Wl,';;
6955
lt_prog_compiler_wl='-Qoption ld '
6956
lt_prog_compiler_pic='-PIC'
6957
lt_prog_compiler_static='-Bstatic'
6960
sysv4 | sysv4.2uw2* | sysv4.3*)
6961
lt_prog_compiler_wl='-Wl,'
6962
lt_prog_compiler_pic='-KPIC'
6963
lt_prog_compiler_static='-Bstatic'
6967
if test -d /usr/nec ;then
6968
lt_prog_compiler_pic='-Kconform_pic'
6969
lt_prog_compiler_static='-Bstatic'
6973
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6974
lt_prog_compiler_wl='-Wl,'
6975
lt_prog_compiler_pic='-KPIC'
6976
lt_prog_compiler_static='-Bstatic'
6980
lt_prog_compiler_wl='-Wl,'
6981
lt_prog_compiler_can_build_shared=no
6985
lt_prog_compiler_pic='-pic'
6986
lt_prog_compiler_static='-Bstatic'
6990
lt_prog_compiler_can_build_shared=no
6995
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6996
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6999
# Check to make sure the PIC flag actually works.
7001
if test -n "$lt_prog_compiler_pic"; then
7003
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7004
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7005
if test "${lt_prog_compiler_pic_works+set}" = set; then
7006
echo $ECHO_N "(cached) $ECHO_C" >&6
7008
lt_prog_compiler_pic_works=no
7009
ac_outfile=conftest.$ac_objext
7010
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7011
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7012
# Insert the option either (1) after the last *FLAGS variable, or
7013
# (2) before a word containing "conftest.", or (3) at the end.
7014
# Note that $ac_compile itself does not contain backslashes and begins
7015
# with a dollar sign (not a hyphen), so the echo should work correctly.
7016
# The option is referenced via a variable to avoid confusing sed.
7017
lt_compile=`echo "$ac_compile" | $SED \
7018
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7019
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7020
-e 's:$: $lt_compiler_flag:'`
7021
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7022
(eval "$lt_compile" 2>conftest.err)
7024
cat conftest.err >&5
7025
echo "$as_me:__oline__: \$? = $ac_status" >&5
7026
if (exit $ac_status) && test -s "$ac_outfile"; then
7027
# The compiler can only warn and ignore the option if not recognized
7028
# So say no if there are warnings other than the usual output.
7029
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7030
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7031
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7032
lt_prog_compiler_pic_works=yes
7038
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7039
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7041
if test x"$lt_prog_compiler_pic_works" = xyes; then
7042
case $lt_prog_compiler_pic in
7044
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7047
lt_prog_compiler_pic=
7048
lt_prog_compiler_can_build_shared=no
7053
# For platforms which do not support PIC, -DPIC is meaningless:
7055
lt_prog_compiler_pic=
7058
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7063
# Check to make sure the static flag actually works.
7065
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7066
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7067
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7068
if test "${lt_prog_compiler_static_works+set}" = set; then
7069
echo $ECHO_N "(cached) $ECHO_C" >&6
7071
lt_prog_compiler_static_works=no
7072
save_LDFLAGS="$LDFLAGS"
7073
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7074
printf "$lt_simple_link_test_code" > conftest.$ac_ext
7075
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7076
# The linker can only warn and ignore the option if not recognized
7077
# So say no if there are warnings
7078
if test -s conftest.err; then
7079
# Append any errors to the config.log.
7080
cat conftest.err 1>&5
7081
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7082
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7083
if diff conftest.exp conftest.er2 >/dev/null; then
7084
lt_prog_compiler_static_works=yes
7087
lt_prog_compiler_static_works=yes
7091
LDFLAGS="$save_LDFLAGS"
7094
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7095
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7097
if test x"$lt_prog_compiler_static_works" = xyes; then
7100
lt_prog_compiler_static=
7104
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7105
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7106
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7107
echo $ECHO_N "(cached) $ECHO_C" >&6
7109
lt_cv_prog_compiler_c_o=no
7110
$rm -r conftest 2>/dev/null
7114
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7116
lt_compiler_flag="-o out/conftest2.$ac_objext"
7117
# Insert the option either (1) after the last *FLAGS variable, or
7118
# (2) before a word containing "conftest.", or (3) at the end.
7119
# Note that $ac_compile itself does not contain backslashes and begins
7120
# with a dollar sign (not a hyphen), so the echo should work correctly.
7121
lt_compile=`echo "$ac_compile" | $SED \
7122
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7123
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7124
-e 's:$: $lt_compiler_flag:'`
7125
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7126
(eval "$lt_compile" 2>out/conftest.err)
7128
cat out/conftest.err >&5
7129
echo "$as_me:__oline__: \$? = $ac_status" >&5
7130
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7132
# The compiler can only warn and ignore the option if not recognized
7133
# So say no if there are warnings
7134
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7135
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7136
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7137
lt_cv_prog_compiler_c_o=yes
7142
# SGI C++ compiler will create directory out/ii_files/ for
7143
# template instantiation
7144
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7145
$rm out/* && rmdir out
7151
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7152
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7155
hard_links="nottested"
7156
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7157
# do not overwrite the value of need_locks provided by the user
7158
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7159
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7162
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7164
ln conftest.a conftest.b 2>&5 || hard_links=no
7165
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7166
echo "$as_me:$LINENO: result: $hard_links" >&5
7167
echo "${ECHO_T}$hard_links" >&6
7168
if test "$hard_links" = no; then
7169
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7170
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7177
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7178
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7181
allow_undefined_flag=
7182
enable_shared_with_static_runtimes=no
7184
archive_expsym_cmds=
7185
old_archive_From_new_cmds=
7186
old_archive_from_expsyms_cmds=
7187
export_dynamic_flag_spec=
7188
whole_archive_flag_spec=
7189
thread_safe_flag_spec=
7190
hardcode_libdir_flag_spec=
7191
hardcode_libdir_flag_spec_ld=
7192
hardcode_libdir_separator=
7195
hardcode_shlibpath_var=unsupported
7196
link_all_deplibs=unknown
7197
hardcode_automatic=no
7200
always_export_symbols=no
7201
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7202
# include_expsyms should be a list of space-separated symbols to be *always*
7203
# included in the symbol list
7205
# exclude_expsyms can be an extended regexp of symbols to exclude
7206
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7207
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7208
# as well as any symbol that contains `d'.
7209
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7210
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7211
# platforms (ab)use it in PIC code, but their linkers get confused if
7212
# the symbol is explicitly referenced. Since portable code cannot
7213
# rely on this symbol name, it's probably fine to never include it in
7214
# preloaded symbol tables.
7215
extract_expsyms_cmds=
7216
# Just being paranoid about ensuring that cc_basename is set.
7217
for cc_temp in $compiler""; do
7219
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7220
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7225
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7228
cygwin* | mingw* | pw32*)
7229
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7230
# When not using gcc, we currently assume that we are using
7231
# Microsoft Visual C++.
7232
if test "$GCC" != yes; then
7237
# we just hope/assume this is gcc and not c89 (= MSVC++)
7246
if test "$with_gnu_ld" = yes; then
7247
# If archive_cmds runs LD, not CC, wlarc should be empty
7250
# Set some defaults for GNU ld with shared library support. These
7251
# are reset later if shared libraries are not supported. Putting them
7252
# here allows them to be overridden if necessary.
7253
runpath_var=LD_RUN_PATH
7254
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7255
export_dynamic_flag_spec='${wl}--export-dynamic'
7256
# ancient GNU ld didn't support --whole-archive et. al.
7257
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7258
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7260
whole_archive_flag_spec=
7262
supports_anon_versioning=no
7263
case `$LD -v 2>/dev/null` in
7264
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7265
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7266
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7267
*\ 2.11.*) ;; # other 2.11 versions
7268
*) supports_anon_versioning=yes ;;
7271
# See if GNU ld supports shared libraries.
7273
aix3* | aix4* | aix5*)
7274
# On AIX/PPC, the GNU linker is very broken
7275
if test "$host_cpu" != ia64; then
7279
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7280
*** to be unable to reliably create shared libraries on AIX.
7281
*** Therefore, libtool is disabling shared libraries support. If you
7282
*** really care for shared libraries, you may want to modify your PATH
7283
*** so that a non-GNU linker is found, and then restart.
7290
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)'
7291
hardcode_libdir_flag_spec='-L$libdir'
7292
hardcode_minus_L=yes
7294
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7295
# that the semantics of dynamic libraries on AmigaOS, at least up
7296
# to version 4, is to share data among multiple programs linked
7297
# with the same dynamic library. Since this doesn't match the
7298
# behavior of shared libraries on other platforms, we can't use
7304
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7305
allow_undefined_flag=unsupported
7306
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7307
# support --undefined. This deserves some investigation. FIXME
7308
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7314
cygwin* | mingw* | pw32*)
7315
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7316
# as there is no search path for DLLs.
7317
hardcode_libdir_flag_spec='-L$libdir'
7318
allow_undefined_flag=unsupported
7319
always_export_symbols=no
7320
enable_shared_with_static_runtimes=yes
7321
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7323
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7324
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7325
# If the export-symbols file already is a .def file (1st line
7326
# is EXPORTS), use it as is; otherwise, prepend...
7327
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7328
cp $export_symbols $output_objdir/$soname.def;
7330
echo EXPORTS > $output_objdir/$soname.def;
7331
cat $export_symbols >> $output_objdir/$soname.def;
7333
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7341
hardcode_shlibpath_var=no
7342
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7343
export_dynamic_flag_spec='${wl}-E'
7344
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7345
# Instead, shared libraries are loaded at an image base (0x10000000 by
7346
# default) and relocated if they conflict, which is a slow very memory
7347
# consuming and fragmenting process. To avoid this, we pick a random,
7348
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7349
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7350
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7351
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7355
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7357
case $cc_basename,$host_cpu in
7358
pgcc*) # Portland Group C compiler
7359
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7360
tmp_addflag=' $pic_flag'
7362
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7363
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7364
tmp_addflag=' $pic_flag -Mnomain' ;;
7365
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7366
tmp_addflag=' -i_dynamic' ;;
7367
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7368
tmp_addflag=' -i_dynamic -nofor_main' ;;
7369
ifc* | ifort*) # Intel Fortran compiler
7370
tmp_addflag=' -nofor_main' ;;
7372
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7374
if test $supports_anon_versioning = yes; then
7375
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7376
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7377
$echo "local: *; };" >> $output_objdir/$libname.ver~
7378
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7386
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7387
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7390
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7391
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7396
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7400
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7401
*** create shared libraries on Solaris systems. Therefore, libtool
7402
*** is disabling shared libraries support. We urge you to upgrade GNU
7403
*** binutils to release 2.9.1 or newer. Another option is to modify
7404
*** your PATH or compiler configuration so that the native linker is
7405
*** used, and then restart.
7408
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7409
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7410
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7416
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7417
case `$LD -v 2>&1` in
7418
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7422
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7423
*** reliably create shared libraries on SCO systems. Therefore, libtool
7424
*** is disabling shared libraries support. We urge you to upgrade GNU
7425
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7426
*** your PATH or compiler configuration so that the native linker is
7427
*** used, and then restart.
7432
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7433
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7434
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7435
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7444
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7447
hardcode_shlibpath_var=no
7451
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7452
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7453
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7460
if test "$ld_shlibs" = no; then
7462
hardcode_libdir_flag_spec=
7463
export_dynamic_flag_spec=
7464
whole_archive_flag_spec=
7467
# PORTME fill in a description of your system's linker (not GNU ld)
7470
allow_undefined_flag=unsupported
7471
always_export_symbols=yes
7472
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'
7473
# Note: this linker hardcodes the directories in LIBPATH if there
7474
# are no directories specified by -L.
7475
hardcode_minus_L=yes
7476
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7477
# Neither direct hardcoding nor static linking is supported with a
7479
hardcode_direct=unsupported
7484
if test "$host_cpu" = ia64; then
7485
# On IA64, the linker does run time linking by default, so we don't
7486
# have to do anything special.
7487
aix_use_runtimelinking=no
7488
exp_sym_flag='-Bexport'
7491
# If we're using GNU nm, then we don't want the "-C" option.
7492
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7493
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7494
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'
7496
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'
7498
aix_use_runtimelinking=no
7500
# Test if we are trying to use run time linking or normal
7501
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7502
# need to do runtime linking.
7503
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7504
for ld_flag in $LDFLAGS; do
7505
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7506
aix_use_runtimelinking=yes
7513
exp_sym_flag='-bexport'
7514
no_entry_flag='-bnoentry'
7517
# When large executables or shared objects are built, AIX ld can
7518
# have problems creating the table of contents. If linking a library
7519
# or program results in "error TOC overflow" add -mminimal-toc to
7520
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7521
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7525
hardcode_libdir_separator=':'
7526
link_all_deplibs=yes
7528
if test "$GCC" = yes; then
7529
case $host_os in aix4.[012]|aix4.[012].*)
7530
# We only want to do this on AIX 4.2 and lower, the check
7531
# below for broken collect2 doesn't work under 4.3+
7532
collect2name=`${CC} -print-prog-name=collect2`
7533
if test -f "$collect2name" && \
7534
strings "$collect2name" | grep resolve_lib_name >/dev/null
7536
# We have reworked collect2
7539
# We have old collect2
7540
hardcode_direct=unsupported
7541
# It fails to find uninstalled libraries when the uninstalled
7542
# path is not listed in the libpath. Setting hardcode_minus_L
7543
# to unsupported forces relinking
7544
hardcode_minus_L=yes
7545
hardcode_libdir_flag_spec='-L$libdir'
7546
hardcode_libdir_separator=
7550
shared_flag='-shared'
7551
if test "$aix_use_runtimelinking" = yes; then
7552
shared_flag="$shared_flag "'${wl}-G'
7556
if test "$host_cpu" = ia64; then
7557
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7558
# chokes on -Wl,-G. The following line is correct:
7561
if test "$aix_use_runtimelinking" = yes; then
7562
shared_flag='${wl}-G'
7564
shared_flag='${wl}-bM:SRE'
7569
# It seems that -bexpall does not export symbols beginning with
7570
# underscore (_), so it is better to generate a list of symbols to export.
7571
always_export_symbols=yes
7572
if test "$aix_use_runtimelinking" = yes; then
7573
# Warning - without using the other runtime loading flags (-brtl),
7574
# -berok will link without error, but may produce a broken library.
7575
allow_undefined_flag='-berok'
7576
# Determine the default libpath from the value encoded in an empty executable.
7577
cat >conftest.$ac_ext <<_ACEOF
7580
cat confdefs.h >>conftest.$ac_ext
7581
cat >>conftest.$ac_ext <<_ACEOF
7582
/* end confdefs.h. */
7592
rm -f conftest.$ac_objext conftest$ac_exeext
7593
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594
(eval $ac_link) 2>conftest.er1
7596
grep -v '^ *+' conftest.er1 >conftest.err
7598
cat conftest.err >&5
7599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600
(exit $ac_status); } &&
7601
{ ac_try='test -z "$ac_c_werror_flag"
7602
|| test ! -s conftest.err'
7603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607
(exit $ac_status); }; } &&
7608
{ ac_try='test -s conftest$ac_exeext'
7609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613
(exit $ac_status); }; }; then
7615
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7617
# Check for a 64-bit object if we didn't find anything.
7618
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; }
7621
echo "$as_me: failed program was:" >&5
7622
sed 's/^/| /' conftest.$ac_ext >&5
7625
rm -f conftest.err conftest.$ac_objext \
7626
conftest$ac_exeext conftest.$ac_ext
7627
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7629
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7630
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7632
if test "$host_cpu" = ia64; then
7633
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7634
allow_undefined_flag="-z nodefs"
7635
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7637
# Determine the default libpath from the value encoded in an empty executable.
7638
cat >conftest.$ac_ext <<_ACEOF
7641
cat confdefs.h >>conftest.$ac_ext
7642
cat >>conftest.$ac_ext <<_ACEOF
7643
/* end confdefs.h. */
7653
rm -f conftest.$ac_objext conftest$ac_exeext
7654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7655
(eval $ac_link) 2>conftest.er1
7657
grep -v '^ *+' conftest.er1 >conftest.err
7659
cat conftest.err >&5
7660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661
(exit $ac_status); } &&
7662
{ ac_try='test -z "$ac_c_werror_flag"
7663
|| test ! -s conftest.err'
7664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668
(exit $ac_status); }; } &&
7669
{ ac_try='test -s conftest$ac_exeext'
7670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674
(exit $ac_status); }; }; then
7676
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7678
# Check for a 64-bit object if we didn't find anything.
7679
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; }
7682
echo "$as_me: failed program was:" >&5
7683
sed 's/^/| /' conftest.$ac_ext >&5
7686
rm -f conftest.err conftest.$ac_objext \
7687
conftest$ac_exeext conftest.$ac_ext
7688
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7690
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7691
# Warning - without using the other run time loading flags,
7692
# -berok will link without error, but may produce a broken library.
7693
no_undefined_flag=' ${wl}-bernotok'
7694
allow_undefined_flag=' ${wl}-berok'
7695
# Exported symbols can be pulled into shared objects from archives
7696
whole_archive_flag_spec='$convenience'
7697
archive_cmds_need_lc=yes
7698
# This is similar to how AIX traditionally builds its shared libraries.
7699
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7705
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)'
7706
hardcode_libdir_flag_spec='-L$libdir'
7707
hardcode_minus_L=yes
7708
# see comment about different semantics on the GNU ld section
7713
export_dynamic_flag_spec=-rdynamic
7716
cygwin* | mingw* | pw32*)
7717
# When not using gcc, we currently assume that we are using
7718
# Microsoft Visual C++.
7719
# hardcode_libdir_flag_spec is actually meaningless, as there is
7720
# no search path for DLLs.
7721
hardcode_libdir_flag_spec=' '
7722
allow_undefined_flag=unsupported
7723
# Tell ltmain to make .lib files, not .a files.
7725
# Tell ltmain to make .dll files, not .so files.
7727
# FIXME: Setting linknames here is a bad hack.
7728
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7729
# The linker will automatically build a .lib file if we build a DLL.
7730
old_archive_From_new_cmds='true'
7731
# FIXME: Should let the user specify the lib program.
7732
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7733
fix_srcfile_path='`cygpath -w "$srcfile"`'
7734
enable_shared_with_static_runtimes=yes
7737
darwin* | rhapsody*)
7739
rhapsody* | darwin1.[012])
7740
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7743
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7744
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7746
case ${MACOSX_DEPLOYMENT_TARGET} in
7748
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7751
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7757
archive_cmds_need_lc=no
7759
hardcode_automatic=yes
7760
hardcode_shlibpath_var=unsupported
7761
whole_archive_flag_spec=''
7762
link_all_deplibs=yes
7763
if test "$GCC" = yes ; then
7764
output_verbose_link_cmd='echo'
7765
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7766
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7767
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7768
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}'
7769
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}'
7771
case $cc_basename in
7773
output_verbose_link_cmd='echo'
7774
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7775
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7776
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7777
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7778
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}'
7788
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789
hardcode_libdir_flag_spec='-L$libdir'
7790
hardcode_shlibpath_var=no
7797
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7798
# support. Future versions do this automatically, but an explicit c++rt0.o
7799
# does not break anything, and helps significantly (at the cost of a little
7802
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7803
hardcode_libdir_flag_spec='-R$libdir'
7805
hardcode_shlibpath_var=no
7808
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7810
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7812
hardcode_minus_L=yes
7813
hardcode_shlibpath_var=no
7816
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7817
freebsd* | kfreebsd*-gnu | dragonfly*)
7818
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7819
hardcode_libdir_flag_spec='-R$libdir'
7821
hardcode_shlibpath_var=no
7825
if test "$GCC" = yes; then
7826
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'
7828
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'
7830
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7831
hardcode_libdir_separator=:
7834
# hardcode_minus_L: Not really in the search PATH,
7835
# but as the default location of the library.
7836
hardcode_minus_L=yes
7837
export_dynamic_flag_spec='${wl}-E'
7841
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7842
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7844
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7846
if test "$with_gnu_ld" = no; then
7847
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7848
hardcode_libdir_separator=:
7851
export_dynamic_flag_spec='${wl}-E'
7853
# hardcode_minus_L: Not really in the search PATH,
7854
# but as the default location of the library.
7855
hardcode_minus_L=yes
7860
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7863
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7866
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7869
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7875
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7878
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7881
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7885
if test "$with_gnu_ld" = no; then
7886
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7887
hardcode_libdir_separator=:
7891
hardcode_libdir_flag_spec_ld='+b $libdir'
7893
hardcode_shlibpath_var=no
7897
export_dynamic_flag_spec='${wl}-E'
7899
# hardcode_minus_L: Not really in the search PATH,
7900
# but as the default location of the library.
7901
hardcode_minus_L=yes
7907
irix5* | irix6* | nonstopux*)
7908
if test "$GCC" = yes; then
7909
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'
7911
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'
7912
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7914
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7915
hardcode_libdir_separator=:
7916
link_all_deplibs=yes
7920
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7921
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7923
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7925
hardcode_libdir_flag_spec='-R$libdir'
7927
hardcode_shlibpath_var=no
7931
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7933
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7934
hardcode_libdir_separator=:
7935
hardcode_shlibpath_var=no
7940
hardcode_shlibpath_var=no
7941
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7942
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7943
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7944
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7945
export_dynamic_flag_spec='${wl}-E'
7948
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7949
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7950
hardcode_libdir_flag_spec='-R$libdir'
7953
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7954
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7961
hardcode_libdir_flag_spec='-L$libdir'
7962
hardcode_minus_L=yes
7963
allow_undefined_flag=unsupported
7964
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'
7965
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7969
if test "$GCC" = yes; then
7970
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7971
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'
7973
allow_undefined_flag=' -expect_unresolved \*'
7974
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'
7976
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7977
hardcode_libdir_separator=:
7980
osf4* | osf5*) # as osf3* with the addition of -msym flag
7981
if test "$GCC" = yes; then
7982
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7983
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'
7984
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7986
allow_undefined_flag=' -expect_unresolved \*'
7987
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'
7988
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7989
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7991
# Both c and cxx compiler support -rpath directly
7992
hardcode_libdir_flag_spec='-rpath $libdir'
7994
hardcode_libdir_separator=:
7998
no_undefined_flag=' -z text'
7999
if test "$GCC" = yes; then
8001
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8002
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8003
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8006
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8007
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8008
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8010
hardcode_libdir_flag_spec='-R$libdir'
8011
hardcode_shlibpath_var=no
8013
solaris2.[0-5] | solaris2.[0-5].*) ;;
8015
# The compiler driver will combine linker options so we
8016
# cannot just pass the convience library names through
8017
# without $wl, iff we do not link with $LD.
8018
# Luckily, gcc supports the same syntax we need for Sun Studio.
8019
# Supported since Solaris 2.6 (maybe 2.5.1?)
8022
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8024
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8027
link_all_deplibs=yes
8031
if test "x$host_vendor" = xsequent; then
8032
# Use $CC to link under sequent, because it throws in some extra .o
8033
# files that make .init and .fini sections work.
8034
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8036
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8038
hardcode_libdir_flag_spec='-L$libdir'
8040
hardcode_minus_L=yes
8041
hardcode_shlibpath_var=no
8045
case $host_vendor in
8047
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8048
hardcode_direct=yes # is this really true???
8051
## LD is ld it makes a PLAMLIB
8052
## CC just makes a GrossModule.
8053
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8054
reload_cmds='$CC -r -o $output$reload_objs'
8058
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8059
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8062
runpath_var='LD_RUN_PATH'
8063
hardcode_shlibpath_var=no
8067
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8068
hardcode_shlibpath_var=no
8069
export_dynamic_flag_spec='-Bexport'
8073
if test -d /usr/nec; then
8074
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075
hardcode_shlibpath_var=no
8076
runpath_var=LD_RUN_PATH
8077
hardcode_runpath_var=yes
8082
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8083
no_undefined_flag='${wl}-z,text'
8084
archive_cmds_need_lc=no
8085
hardcode_shlibpath_var=no
8086
runpath_var='LD_RUN_PATH'
8088
if test "$GCC" = yes; then
8089
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8090
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8092
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8093
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8097
sysv5* | sco3.2v5* | sco5v6*)
8098
# Note: We can NOT use -z defs as we might desire, because we do not
8099
# link with -lc, and that would cause any symbols used from libc to
8100
# always be unresolved, which means just about no library would
8101
# ever link correctly. If we're not using GNU ld we use -z text
8102
# though, which does catch some bad symbols but isn't as heavy-handed
8104
no_undefined_flag='${wl}-z,text'
8105
allow_undefined_flag='${wl}-z,nodefs'
8106
archive_cmds_need_lc=no
8107
hardcode_shlibpath_var=no
8108
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8109
hardcode_libdir_separator=':'
8110
link_all_deplibs=yes
8111
export_dynamic_flag_spec='${wl}-Bexport'
8112
runpath_var='LD_RUN_PATH'
8114
if test "$GCC" = yes; then
8115
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8116
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8118
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8119
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8124
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8125
hardcode_libdir_flag_spec='-L$libdir'
8126
hardcode_shlibpath_var=no
8135
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8136
echo "${ECHO_T}$ld_shlibs" >&6
8137
test "$ld_shlibs" = no && can_build_shared=no
8140
# Do we need to explicitly link libc?
8142
case "x$archive_cmds_need_lc" in
8144
# Assume -lc should be added
8145
archive_cmds_need_lc=yes
8147
if test "$enable_shared" = yes && test "$GCC" = yes; then
8148
case $archive_cmds in
8150
# FIXME: we may have to deal with multi-command sequences.
8153
# Test whether the compiler implicitly links with -lc since on some
8154
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8155
# to ld, don't add -lc before -lgcc.
8156
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8157
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8159
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8161
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162
(eval $ac_compile) 2>&5
8164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165
(exit $ac_status); } 2>conftest.err; then
8168
libobjs=conftest.$ac_objext
8170
wl=$lt_prog_compiler_wl
8171
pic_flag=$lt_prog_compiler_pic
8177
lt_save_allow_undefined_flag=$allow_undefined_flag
8178
allow_undefined_flag=
8179
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8180
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183
(exit $ac_status); }
8185
archive_cmds_need_lc=no
8187
archive_cmds_need_lc=yes
8189
allow_undefined_flag=$lt_save_allow_undefined_flag
8191
cat conftest.err 1>&5
8194
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8195
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8202
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8203
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8205
libname_spec='lib$name'
8213
shlibpath_overrides_runpath=unknown
8215
dynamic_linker="$host_os ld.so"
8216
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8217
if test "$GCC" = yes; then
8218
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8219
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8220
# if the path contains ";" then we assume it to be the separator
8221
# otherwise default to the standard path separator (i.e. ":") - it is
8222
# assumed that no part of a normal pathname contains ";" but that should
8223
# okay in the real world where ";" in dirpaths is itself problematic.
8224
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8226
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8229
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8231
need_lib_prefix=unknown
8232
hardcode_into_libs=no
8234
# when you set need_version to no, make sure it does not cause -set_version
8235
# flags to be left without arguments
8236
need_version=unknown
8241
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8242
shlibpath_var=LIBPATH
8244
# AIX 3 has no versioning support, so we append a major version to the name.
8245
soname_spec='${libname}${release}${shared_ext}$major'
8252
hardcode_into_libs=yes
8253
if test "$host_cpu" = ia64; then
8254
# AIX 5 supports IA64
8255
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8256
shlibpath_var=LD_LIBRARY_PATH
8258
# With GCC up to 2.95.x, collect2 would create an import file
8259
# for dependence libraries. The import file would start with
8260
# the line `#! .'. This would cause the generated library to
8261
# depend on `.', always an invalid library. This was fixed in
8262
# development snapshots of GCC prior to 3.0.
8264
aix4 | aix4.[01] | aix4.[01].*)
8265
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8267
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8274
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8275
# soname into executable. Probably we can add versioning support to
8276
# collect2, so additional links can be useful in future.
8277
if test "$aix_use_runtimelinking" = yes; then
8278
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8279
# instead of lib<name>.a to let people know that these are not
8280
# typical AIX shared libraries.
8281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8283
# We preserve .a as extension for shared libraries through AIX4.2
8284
# and later when we are not doing run time linking.
8285
library_names_spec='${libname}${release}.a $libname.a'
8286
soname_spec='${libname}${release}${shared_ext}$major'
8288
shlibpath_var=LIBPATH
8293
library_names_spec='$libname.ixlibrary $libname.a'
8294
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8295
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'
8299
library_names_spec='${libname}${shared_ext}'
8300
dynamic_linker="$host_os ld.so"
8301
shlibpath_var=LIBRARY_PATH
8307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8308
soname_spec='${libname}${release}${shared_ext}$major'
8309
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8310
shlibpath_var=LD_LIBRARY_PATH
8311
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8312
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8313
# the default ld.so.conf also contains /usr/contrib/lib and
8314
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8315
# libtool to hard-code these into programs
8318
cygwin* | mingw* | pw32*)
8319
version_type=windows
8324
case $GCC,$host_os in
8325
yes,cygwin* | yes,mingw* | yes,pw32*)
8326
library_names_spec='$libname.dll.a'
8327
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8328
postinstall_cmds='base_file=`basename \${file}`~
8329
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8330
dldir=$destdir/`dirname \$dlpath`~
8331
test -d \$dldir || mkdir -p \$dldir~
8332
$install_prog $dir/$dlname \$dldir/$dlname~
8333
chmod a+x \$dldir/$dlname'
8334
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8335
dlpath=$dir/\$dldll~
8337
shlibpath_overrides_runpath=yes
8341
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8342
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8343
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8346
# MinGW DLLs use traditional 'lib' prefix
8347
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8348
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8349
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8350
# It is most probably a Windows format PATH printed by
8351
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8352
# path with ; separators, and with drive letters. We can handle the
8353
# drive letters (cygwin fileutils understands them), so leave them,
8354
# especially as we might pass files found there to a mingw objdump,
8355
# which wouldn't understand a cygwinified path. Ahh.
8356
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8358
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8362
# pw32 DLLs use 'pw' prefix rather than 'lib'
8363
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8369
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8372
dynamic_linker='Win32 ld.exe'
8373
# FIXME: first we should search . and the directory the executable is in
8377
darwin* | rhapsody*)
8378
dynamic_linker="$host_os dyld"
8382
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8383
soname_spec='${libname}${release}${major}$shared_ext'
8384
shlibpath_overrides_runpath=yes
8385
shlibpath_var=DYLD_LIBRARY_PATH
8386
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8387
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8388
if test "$GCC" = yes; then
8389
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"`
8391
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8393
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8400
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8401
soname_spec='${libname}${release}${shared_ext}$major'
8402
shlibpath_var=LD_LIBRARY_PATH
8413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8414
soname_spec='${libname}${release}${shared_ext}$major'
8415
shlibpath_var=LD_LIBRARY_PATH
8416
shlibpath_overrides_runpath=no
8417
hardcode_into_libs=yes
8418
dynamic_linker='GNU ld.so'
8421
freebsd* | dragonfly*)
8422
# DragonFly does not have aout. When/if they implement a new
8423
# versioning mechanism, adjust this.
8424
if test -x /usr/bin/objformat; then
8425
objformat=`/usr/bin/objformat`
8428
freebsd[123]*) objformat=aout ;;
8432
version_type=freebsd-$objformat
8433
case $version_type in
8435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8440
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8444
shlibpath_var=LD_LIBRARY_PATH
8447
shlibpath_overrides_runpath=yes
8449
freebsd3.[01]* | freebsdelf3.[01]*)
8450
shlibpath_overrides_runpath=yes
8451
hardcode_into_libs=yes
8453
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8454
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8455
shlibpath_overrides_runpath=no
8456
hardcode_into_libs=yes
8458
freebsd*) # from 4.6 on
8459
shlibpath_overrides_runpath=yes
8460
hardcode_into_libs=yes
8469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8470
soname_spec='${libname}${release}${shared_ext}$major'
8471
shlibpath_var=LD_LIBRARY_PATH
8472
hardcode_into_libs=yes
8475
hpux9* | hpux10* | hpux11*)
8476
# Give a soname corresponding to the major version so that dld.sl refuses to
8477
# link against other versions.
8484
hardcode_into_libs=yes
8485
dynamic_linker="$host_os dld.so"
8486
shlibpath_var=LD_LIBRARY_PATH
8487
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8489
soname_spec='${libname}${release}${shared_ext}$major'
8490
if test "X$HPUX_IA64_MODE" = X32; then
8491
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8493
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8495
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8499
hardcode_into_libs=yes
8500
dynamic_linker="$host_os dld.sl"
8501
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8502
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8504
soname_spec='${libname}${release}${shared_ext}$major'
8505
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8506
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8510
dynamic_linker="$host_os dld.sl"
8511
shlibpath_var=SHLIB_PATH
8512
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8513
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8514
soname_spec='${libname}${release}${shared_ext}$major'
8517
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8518
postinstall_cmds='chmod 555 $lib'
8525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8526
soname_spec='${libname}${release}${shared_ext}$major'
8527
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8528
shlibpath_var=LD_LIBRARY_PATH
8529
shlibpath_overrides_runpath=no
8530
hardcode_into_libs=yes
8533
irix5* | irix6* | nonstopux*)
8535
nonstopux*) version_type=nonstopux ;;
8537
if test "$lt_cv_prog_gnu_ld" = yes; then
8545
soname_spec='${libname}${release}${shared_ext}$major'
8546
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8548
irix5* | nonstopux*)
8552
case $LD in # libtool.m4 will add one of these switches to LD
8553
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8554
libsuff= shlibsuff= libmagic=32-bit;;
8555
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8556
libsuff=32 shlibsuff=N32 libmagic=N32;;
8557
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8558
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8559
*) libsuff= shlibsuff= libmagic=never-match;;
8563
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8564
shlibpath_overrides_runpath=no
8565
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8566
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8567
hardcode_into_libs=yes
8570
# No shared lib support for Linux oldld, aout, or coff.
8571
linux*oldld* | linux*aout* | linux*coff*)
8575
# This must be Linux ELF.
8580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8581
soname_spec='${libname}${release}${shared_ext}$major'
8582
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8583
shlibpath_var=LD_LIBRARY_PATH
8584
shlibpath_overrides_runpath=no
8585
# This implies no fast_install, which is unacceptable.
8586
# Some rework will be needed to allow for fast_install
8587
# before this can be enabled.
8588
hardcode_into_libs=yes
8590
# Append ld.so.conf contents to the search path
8591
if test -f /etc/ld.so.conf; then
8592
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8593
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8596
# We used to test for /lib/ld.so.1 and disable shared libraries on
8597
# powerpc, because MkLinux only supported shared libraries with the
8598
# GNU dynamic linker. Since this was broken with cross compilers,
8599
# most powerpc-linux boxes support dynamic linking these days and
8600
# people can always --disable-shared, the test was removed, and we
8601
# assume the GNU/Linux dynamic linker is in use.
8602
dynamic_linker='GNU/Linux ld.so'
8609
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8610
soname_spec='${libname}${release}${shared_ext}$major'
8611
shlibpath_var=LD_LIBRARY_PATH
8612
shlibpath_overrides_runpath=no
8613
hardcode_into_libs=yes
8614
dynamic_linker='GNU ld.so'
8621
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8623
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8624
dynamic_linker='NetBSD (a.out) ld.so'
8626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8627
soname_spec='${libname}${release}${shared_ext}$major'
8628
dynamic_linker='NetBSD ld.elf_so'
8630
shlibpath_var=LD_LIBRARY_PATH
8631
shlibpath_overrides_runpath=yes
8632
hardcode_into_libs=yes
8637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8638
shlibpath_var=LD_LIBRARY_PATH
8639
shlibpath_overrides_runpath=yes
8646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8647
soname_spec='${libname}${release}${shared_ext}$major'
8648
shlibpath_var=LD_LIBRARY_PATH
8649
shlibpath_overrides_runpath=yes
8654
sys_lib_dlsearch_path_spec="/usr/lib"
8656
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8658
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8659
*) need_version=no ;;
8661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8662
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8663
shlibpath_var=LD_LIBRARY_PATH
8664
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8666
openbsd2.[89] | openbsd2.[89].*)
8667
shlibpath_overrides_runpath=no
8670
shlibpath_overrides_runpath=yes
8674
shlibpath_overrides_runpath=yes
8679
libname_spec='$name'
8682
library_names_spec='$libname${shared_ext} $libname.a'
8683
dynamic_linker='OS/2 ld.exe'
8684
shlibpath_var=LIBPATH
8687
osf3* | osf4* | osf5*)
8691
soname_spec='${libname}${release}${shared_ext}$major'
8692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8693
shlibpath_var=LD_LIBRARY_PATH
8694
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8695
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8703
soname_spec='${libname}${release}${shared_ext}$major'
8704
shlibpath_var=LD_LIBRARY_PATH
8705
shlibpath_overrides_runpath=yes
8706
hardcode_into_libs=yes
8707
# ldd complains unless libraries are executable
8708
postinstall_cmds='chmod +x $lib'
8713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8714
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8715
shlibpath_var=LD_LIBRARY_PATH
8716
shlibpath_overrides_runpath=yes
8717
if test "$with_gnu_ld" = yes; then
8725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726
soname_spec='${libname}${release}${shared_ext}$major'
8727
shlibpath_var=LD_LIBRARY_PATH
8728
case $host_vendor in
8730
shlibpath_overrides_runpath=no
8732
export_dynamic_flag_spec='${wl}-Blargedynsym'
8733
runpath_var=LD_RUN_PATH
8741
shlibpath_overrides_runpath=no
8742
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8748
if test -d /usr/nec ;then
8750
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8751
soname_spec='$libname${shared_ext}.$major'
8752
shlibpath_var=LD_LIBRARY_PATH
8756
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8757
version_type=freebsd-elf
8760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8761
soname_spec='${libname}${release}${shared_ext}$major'
8762
shlibpath_var=LD_LIBRARY_PATH
8763
hardcode_into_libs=yes
8764
if test "$with_gnu_ld" = yes; then
8765
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8766
shlibpath_overrides_runpath=no
8768
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8769
shlibpath_overrides_runpath=yes
8772
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8776
sys_lib_dlsearch_path_spec='/usr/lib'
8781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8782
soname_spec='${libname}${release}${shared_ext}$major'
8783
shlibpath_var=LD_LIBRARY_PATH
8790
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8791
echo "${ECHO_T}$dynamic_linker" >&6
8792
test "$dynamic_linker" = no && can_build_shared=no
8794
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8795
if test "$GCC" = yes; then
8796
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8799
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8800
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8802
if test -n "$hardcode_libdir_flag_spec" || \
8803
test -n "$runpath_var" || \
8804
test "X$hardcode_automatic" = "Xyes" ; then
8806
# We can hardcode non-existant directories.
8807
if test "$hardcode_direct" != no &&
8808
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8809
# have to relink, otherwise we might link with an installed library
8810
# when we should be linking with a yet-to-be-installed one
8811
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8812
test "$hardcode_minus_L" != no; then
8813
# Linking always hardcodes the temporary library directory.
8814
hardcode_action=relink
8816
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8817
hardcode_action=immediate
8820
# We cannot hardcode anything, or else we can only hardcode existing
8822
hardcode_action=unsupported
8824
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8825
echo "${ECHO_T}$hardcode_action" >&6
8827
if test "$hardcode_action" = relink; then
8828
# Fast installation is not supported
8829
enable_fast_install=no
8830
elif test "$shlibpath_overrides_runpath" = yes ||
8831
test "$enable_shared" = no; then
8832
# Fast installation is not necessary
8833
enable_fast_install=needless
8838
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8839
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8840
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8841
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8842
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8843
echo "$as_me:$LINENO: result: yes" >&5
8844
echo "${ECHO_T}yes" >&6
8846
# FIXME - insert some real tests, host_os isn't really good enough
8849
if test -n "$STRIP" ; then
8850
striplib="$STRIP -x"
8851
echo "$as_me:$LINENO: result: yes" >&5
8852
echo "${ECHO_T}yes" >&6
8854
echo "$as_me:$LINENO: result: no" >&5
8855
echo "${ECHO_T}no" >&6
8859
echo "$as_me:$LINENO: result: no" >&5
8860
echo "${ECHO_T}no" >&6
8865
if test "x$enable_dlopen" != xyes; then
8866
enable_dlopen=unknown
8867
enable_dlopen_self=unknown
8868
enable_dlopen_self_static=unknown
8875
lt_cv_dlopen="load_add_on"
8877
lt_cv_dlopen_self=yes
8881
lt_cv_dlopen="LoadLibrary"
8886
lt_cv_dlopen="dlopen"
8891
# if libdl is installed we need to link against it
8892
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8893
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8894
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8895
echo $ECHO_N "(cached) $ECHO_C" >&6
8897
ac_check_lib_save_LIBS=$LIBS
8899
cat >conftest.$ac_ext <<_ACEOF
8902
cat confdefs.h >>conftest.$ac_ext
8903
cat >>conftest.$ac_ext <<_ACEOF
8904
/* end confdefs.h. */
8906
/* Override any gcc2 internal prototype to avoid an error. */
8910
/* We use char because int might match the return type of a gcc2
8911
builtin and then its argument prototype would still apply. */
8921
rm -f conftest.$ac_objext conftest$ac_exeext
8922
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923
(eval $ac_link) 2>conftest.er1
8925
grep -v '^ *+' conftest.er1 >conftest.err
8927
cat conftest.err >&5
8928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929
(exit $ac_status); } &&
8930
{ ac_try='test -z "$ac_c_werror_flag"
8931
|| test ! -s conftest.err'
8932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936
(exit $ac_status); }; } &&
8937
{ ac_try='test -s conftest$ac_exeext'
8938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942
(exit $ac_status); }; }; then
8943
ac_cv_lib_dl_dlopen=yes
8945
echo "$as_me: failed program was:" >&5
8946
sed 's/^/| /' conftest.$ac_ext >&5
8948
ac_cv_lib_dl_dlopen=no
8950
rm -f conftest.err conftest.$ac_objext \
8951
conftest$ac_exeext conftest.$ac_ext
8952
LIBS=$ac_check_lib_save_LIBS
8954
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8955
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8956
if test $ac_cv_lib_dl_dlopen = yes; then
8957
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8962
lt_cv_dlopen_self=yes
8969
echo "$as_me:$LINENO: checking for shl_load" >&5
8970
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8971
if test "${ac_cv_func_shl_load+set}" = set; then
8972
echo $ECHO_N "(cached) $ECHO_C" >&6
8974
cat >conftest.$ac_ext <<_ACEOF
8977
cat confdefs.h >>conftest.$ac_ext
8978
cat >>conftest.$ac_ext <<_ACEOF
8979
/* end confdefs.h. */
8980
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8981
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8982
#define shl_load innocuous_shl_load
8984
/* System header to define __stub macros and hopefully few prototypes,
8985
which can conflict with char shl_load (); below.
8986
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8987
<limits.h> exists even on freestanding compilers. */
8990
# include <limits.h>
8992
# include <assert.h>
8997
/* Override any gcc2 internal prototype to avoid an error. */
9002
/* We use char because int might match the return type of a gcc2
9003
builtin and then its argument prototype would still apply. */
9005
/* The GNU C library defines this for functions which it implements
9006
to always fail with ENOSYS. Some functions are actually named
9007
something starting with __ and the normal name is an alias. */
9008
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9011
char (*f) () = shl_load;
9020
return f != shl_load;
9025
rm -f conftest.$ac_objext conftest$ac_exeext
9026
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9027
(eval $ac_link) 2>conftest.er1
9029
grep -v '^ *+' conftest.er1 >conftest.err
9031
cat conftest.err >&5
9032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033
(exit $ac_status); } &&
9034
{ ac_try='test -z "$ac_c_werror_flag"
9035
|| test ! -s conftest.err'
9036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040
(exit $ac_status); }; } &&
9041
{ ac_try='test -s conftest$ac_exeext'
9042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046
(exit $ac_status); }; }; then
9047
ac_cv_func_shl_load=yes
9049
echo "$as_me: failed program was:" >&5
9050
sed 's/^/| /' conftest.$ac_ext >&5
9052
ac_cv_func_shl_load=no
9054
rm -f conftest.err conftest.$ac_objext \
9055
conftest$ac_exeext conftest.$ac_ext
9057
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9058
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9059
if test $ac_cv_func_shl_load = yes; then
9060
lt_cv_dlopen="shl_load"
9062
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9063
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9064
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9065
echo $ECHO_N "(cached) $ECHO_C" >&6
9067
ac_check_lib_save_LIBS=$LIBS
9069
cat >conftest.$ac_ext <<_ACEOF
9072
cat confdefs.h >>conftest.$ac_ext
9073
cat >>conftest.$ac_ext <<_ACEOF
9074
/* end confdefs.h. */
9076
/* Override any gcc2 internal prototype to avoid an error. */
9080
/* We use char because int might match the return type of a gcc2
9081
builtin and then its argument prototype would still apply. */
9091
rm -f conftest.$ac_objext conftest$ac_exeext
9092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093
(eval $ac_link) 2>conftest.er1
9095
grep -v '^ *+' conftest.er1 >conftest.err
9097
cat conftest.err >&5
9098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099
(exit $ac_status); } &&
9100
{ ac_try='test -z "$ac_c_werror_flag"
9101
|| test ! -s conftest.err'
9102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106
(exit $ac_status); }; } &&
9107
{ ac_try='test -s conftest$ac_exeext'
9108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112
(exit $ac_status); }; }; then
9113
ac_cv_lib_dld_shl_load=yes
9115
echo "$as_me: failed program was:" >&5
9116
sed 's/^/| /' conftest.$ac_ext >&5
9118
ac_cv_lib_dld_shl_load=no
9120
rm -f conftest.err conftest.$ac_objext \
9121
conftest$ac_exeext conftest.$ac_ext
9122
LIBS=$ac_check_lib_save_LIBS
9124
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9125
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9126
if test $ac_cv_lib_dld_shl_load = yes; then
9127
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9129
echo "$as_me:$LINENO: checking for dlopen" >&5
9130
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9131
if test "${ac_cv_func_dlopen+set}" = set; then
9132
echo $ECHO_N "(cached) $ECHO_C" >&6
9134
cat >conftest.$ac_ext <<_ACEOF
9137
cat confdefs.h >>conftest.$ac_ext
9138
cat >>conftest.$ac_ext <<_ACEOF
9139
/* end confdefs.h. */
9140
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9141
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9142
#define dlopen innocuous_dlopen
9144
/* System header to define __stub macros and hopefully few prototypes,
9145
which can conflict with char dlopen (); below.
9146
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9147
<limits.h> exists even on freestanding compilers. */
9150
# include <limits.h>
9152
# include <assert.h>
9157
/* Override any gcc2 internal prototype to avoid an error. */
9162
/* We use char because int might match the return type of a gcc2
9163
builtin and then its argument prototype would still apply. */
9165
/* The GNU C library defines this for functions which it implements
9166
to always fail with ENOSYS. Some functions are actually named
9167
something starting with __ and the normal name is an alias. */
9168
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9171
char (*f) () = dlopen;
9185
rm -f conftest.$ac_objext conftest$ac_exeext
9186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187
(eval $ac_link) 2>conftest.er1
9189
grep -v '^ *+' conftest.er1 >conftest.err
9191
cat conftest.err >&5
9192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193
(exit $ac_status); } &&
9194
{ ac_try='test -z "$ac_c_werror_flag"
9195
|| test ! -s conftest.err'
9196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200
(exit $ac_status); }; } &&
9201
{ ac_try='test -s conftest$ac_exeext'
9202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206
(exit $ac_status); }; }; then
9207
ac_cv_func_dlopen=yes
9209
echo "$as_me: failed program was:" >&5
9210
sed 's/^/| /' conftest.$ac_ext >&5
9212
ac_cv_func_dlopen=no
9214
rm -f conftest.err conftest.$ac_objext \
9215
conftest$ac_exeext conftest.$ac_ext
9217
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9218
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9219
if test $ac_cv_func_dlopen = yes; then
9220
lt_cv_dlopen="dlopen"
9222
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9223
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9224
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9225
echo $ECHO_N "(cached) $ECHO_C" >&6
9227
ac_check_lib_save_LIBS=$LIBS
9229
cat >conftest.$ac_ext <<_ACEOF
9232
cat confdefs.h >>conftest.$ac_ext
9233
cat >>conftest.$ac_ext <<_ACEOF
9234
/* end confdefs.h. */
9236
/* Override any gcc2 internal prototype to avoid an error. */
9240
/* We use char because int might match the return type of a gcc2
9241
builtin and then its argument prototype would still apply. */
9251
rm -f conftest.$ac_objext conftest$ac_exeext
9252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253
(eval $ac_link) 2>conftest.er1
9255
grep -v '^ *+' conftest.er1 >conftest.err
9257
cat conftest.err >&5
9258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259
(exit $ac_status); } &&
9260
{ ac_try='test -z "$ac_c_werror_flag"
9261
|| test ! -s conftest.err'
9262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266
(exit $ac_status); }; } &&
9267
{ ac_try='test -s conftest$ac_exeext'
9268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272
(exit $ac_status); }; }; then
9273
ac_cv_lib_dl_dlopen=yes
9275
echo "$as_me: failed program was:" >&5
9276
sed 's/^/| /' conftest.$ac_ext >&5
9278
ac_cv_lib_dl_dlopen=no
9280
rm -f conftest.err conftest.$ac_objext \
9281
conftest$ac_exeext conftest.$ac_ext
9282
LIBS=$ac_check_lib_save_LIBS
9284
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9285
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9286
if test $ac_cv_lib_dl_dlopen = yes; then
9287
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9289
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9290
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9291
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9292
echo $ECHO_N "(cached) $ECHO_C" >&6
9294
ac_check_lib_save_LIBS=$LIBS
9296
cat >conftest.$ac_ext <<_ACEOF
9299
cat confdefs.h >>conftest.$ac_ext
9300
cat >>conftest.$ac_ext <<_ACEOF
9301
/* end confdefs.h. */
9303
/* Override any gcc2 internal prototype to avoid an error. */
9307
/* We use char because int might match the return type of a gcc2
9308
builtin and then its argument prototype would still apply. */
9318
rm -f conftest.$ac_objext conftest$ac_exeext
9319
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320
(eval $ac_link) 2>conftest.er1
9322
grep -v '^ *+' conftest.er1 >conftest.err
9324
cat conftest.err >&5
9325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326
(exit $ac_status); } &&
9327
{ ac_try='test -z "$ac_c_werror_flag"
9328
|| test ! -s conftest.err'
9329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333
(exit $ac_status); }; } &&
9334
{ ac_try='test -s conftest$ac_exeext'
9335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339
(exit $ac_status); }; }; then
9340
ac_cv_lib_svld_dlopen=yes
9342
echo "$as_me: failed program was:" >&5
9343
sed 's/^/| /' conftest.$ac_ext >&5
9345
ac_cv_lib_svld_dlopen=no
9347
rm -f conftest.err conftest.$ac_objext \
9348
conftest$ac_exeext conftest.$ac_ext
9349
LIBS=$ac_check_lib_save_LIBS
9351
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9352
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9353
if test $ac_cv_lib_svld_dlopen = yes; then
9354
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9356
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9357
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9358
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9359
echo $ECHO_N "(cached) $ECHO_C" >&6
9361
ac_check_lib_save_LIBS=$LIBS
9363
cat >conftest.$ac_ext <<_ACEOF
9366
cat confdefs.h >>conftest.$ac_ext
9367
cat >>conftest.$ac_ext <<_ACEOF
9368
/* end confdefs.h. */
9370
/* Override any gcc2 internal prototype to avoid an error. */
9374
/* We use char because int might match the return type of a gcc2
9375
builtin and then its argument prototype would still apply. */
9385
rm -f conftest.$ac_objext conftest$ac_exeext
9386
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9387
(eval $ac_link) 2>conftest.er1
9389
grep -v '^ *+' conftest.er1 >conftest.err
9391
cat conftest.err >&5
9392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393
(exit $ac_status); } &&
9394
{ ac_try='test -z "$ac_c_werror_flag"
9395
|| test ! -s conftest.err'
9396
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400
(exit $ac_status); }; } &&
9401
{ ac_try='test -s conftest$ac_exeext'
9402
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406
(exit $ac_status); }; }; then
9407
ac_cv_lib_dld_dld_link=yes
9409
echo "$as_me: failed program was:" >&5
9410
sed 's/^/| /' conftest.$ac_ext >&5
9412
ac_cv_lib_dld_dld_link=no
9414
rm -f conftest.err conftest.$ac_objext \
9415
conftest$ac_exeext conftest.$ac_ext
9416
LIBS=$ac_check_lib_save_LIBS
9418
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9419
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9420
if test $ac_cv_lib_dld_dld_link = yes; then
9421
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9442
if test "x$lt_cv_dlopen" != xno; then
9448
case $lt_cv_dlopen in
9450
save_CPPFLAGS="$CPPFLAGS"
9451
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9453
save_LDFLAGS="$LDFLAGS"
9454
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9457
LIBS="$lt_cv_dlopen_libs $LIBS"
9459
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9460
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9461
if test "${lt_cv_dlopen_self+set}" = set; then
9462
echo $ECHO_N "(cached) $ECHO_C" >&6
9464
if test "$cross_compiling" = yes; then :
9465
lt_cv_dlopen_self=cross
9467
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9468
lt_status=$lt_dlunknown
9469
cat > conftest.$ac_ext <<EOF
9470
#line __oline__ "configure"
9471
#include "confdefs.h"
9480
# define LT_DLGLOBAL RTLD_GLOBAL
9483
# define LT_DLGLOBAL DL_GLOBAL
9485
# define LT_DLGLOBAL 0
9489
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9490
find out it does not work in some platform. */
9491
#ifndef LT_DLLAZY_OR_NOW
9493
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9496
# define LT_DLLAZY_OR_NOW DL_LAZY
9499
# define LT_DLLAZY_OR_NOW RTLD_NOW
9502
# define LT_DLLAZY_OR_NOW DL_NOW
9504
# define LT_DLLAZY_OR_NOW 0
9512
extern "C" void exit (int);
9515
void fnord() { int i=42;}
9518
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9519
int status = $lt_dlunknown;
9523
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9524
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9525
/* dlclose (self); */
9533
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534
(eval $ac_link) 2>&5
9536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9538
(./conftest; exit; ) >&5 2>/dev/null
9541
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9542
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9543
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9546
# compilation failed
9547
lt_cv_dlopen_self=no
9554
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9555
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9557
if test "x$lt_cv_dlopen_self" = xyes; then
9558
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9559
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9560
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9561
if test "${lt_cv_dlopen_self_static+set}" = set; then
9562
echo $ECHO_N "(cached) $ECHO_C" >&6
9564
if test "$cross_compiling" = yes; then :
9565
lt_cv_dlopen_self_static=cross
9567
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9568
lt_status=$lt_dlunknown
9569
cat > conftest.$ac_ext <<EOF
9570
#line __oline__ "configure"
9571
#include "confdefs.h"
9580
# define LT_DLGLOBAL RTLD_GLOBAL
9583
# define LT_DLGLOBAL DL_GLOBAL
9585
# define LT_DLGLOBAL 0
9589
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9590
find out it does not work in some platform. */
9591
#ifndef LT_DLLAZY_OR_NOW
9593
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9596
# define LT_DLLAZY_OR_NOW DL_LAZY
9599
# define LT_DLLAZY_OR_NOW RTLD_NOW
9602
# define LT_DLLAZY_OR_NOW DL_NOW
9604
# define LT_DLLAZY_OR_NOW 0
9612
extern "C" void exit (int);
9615
void fnord() { int i=42;}
9618
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9619
int status = $lt_dlunknown;
9623
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9624
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9625
/* dlclose (self); */
9633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9634
(eval $ac_link) 2>&5
9636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9638
(./conftest; exit; ) >&5 2>/dev/null
9641
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9642
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9643
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9646
# compilation failed
9647
lt_cv_dlopen_self_static=no
9654
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9655
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9658
CPPFLAGS="$save_CPPFLAGS"
9659
LDFLAGS="$save_LDFLAGS"
9664
case $lt_cv_dlopen_self in
9665
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9666
*) enable_dlopen_self=unknown ;;
9669
case $lt_cv_dlopen_self_static in
9670
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9671
*) enable_dlopen_self_static=unknown ;;
9676
# Report which library types will actually be built
9677
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9678
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9679
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9680
echo "${ECHO_T}$can_build_shared" >&6
9682
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9683
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9684
test "$can_build_shared" = "no" && enable_shared=no
9686
# On AIX, shared libraries and static libraries use the same namespace, and
9687
# are all built from PIC.
9690
test "$enable_shared" = yes && enable_static=no
9691
if test -n "$RANLIB"; then
9692
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9693
postinstall_cmds='$RANLIB $lib'
9698
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9699
test "$enable_shared" = yes && enable_static=no
9703
echo "$as_me:$LINENO: result: $enable_shared" >&5
9704
echo "${ECHO_T}$enable_shared" >&6
9706
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9707
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9708
# Make sure either enable_shared or enable_static is yes.
9709
test "$enable_shared" = yes || enable_static=yes
9710
echo "$as_me:$LINENO: result: $enable_static" >&5
9711
echo "${ECHO_T}$enable_static" >&6
9713
# The else clause should only fire when bootstrapping the
9714
# libtool distribution, otherwise you forgot to ship ltmain.sh
9715
# with your package, and you will get complaints that there are
9716
# no rules to generate ltmain.sh.
9717
if test -f "$ltmain"; then
9718
# See if we are running on zsh, and set the options which allow our commands through
9719
# without removal of \ escapes.
9720
if test -n "${ZSH_VERSION+set}" ; then
9721
setopt NO_GLOB_SUBST
9723
# Now quote all the things that may contain metacharacters while being
9724
# careful not to overquote the AC_SUBSTed values. We take copies of the
9725
# variables and quote the copies for generation of the libtool script.
9726
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9728
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9729
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9730
deplibs_check_method reload_flag reload_cmds need_locks \
9731
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9732
lt_cv_sys_global_symbol_to_c_name_address \
9733
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9734
old_postinstall_cmds old_postuninstall_cmds \
9738
lt_prog_compiler_wl \
9739
lt_prog_compiler_pic \
9740
lt_prog_compiler_static \
9741
lt_prog_compiler_no_builtin_flag \
9742
export_dynamic_flag_spec \
9743
thread_safe_flag_spec \
9744
whole_archive_flag_spec \
9745
enable_shared_with_static_runtimes \
9747
old_archive_from_new_cmds \
9752
compiler_lib_search_path \
9754
archive_expsym_cmds \
9756
postuninstall_cmds \
9757
old_archive_from_expsyms_cmds \
9758
allow_undefined_flag \
9760
export_symbols_cmds \
9761
hardcode_libdir_flag_spec \
9762
hardcode_libdir_flag_spec_ld \
9763
hardcode_libdir_separator \
9764
hardcode_automatic \
9766
module_expsym_cmds \
9767
lt_cv_prog_compiler_c_o \
9772
old_archive_cmds | \
9773
old_archive_from_new_cmds | \
9775
archive_expsym_cmds | \
9777
module_expsym_cmds | \
9778
old_archive_from_expsyms_cmds | \
9779
export_symbols_cmds | \
9780
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9781
postinstall_cmds | postuninstall_cmds | \
9782
old_postinstall_cmds | old_postuninstall_cmds | \
9783
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9784
# Double-quote double-evaled strings.
9785
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9788
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9794
*'\$0 --fallback-echo"')
9795
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9800
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9802
{ echo "$as_me:$LINENO: creating $ofile" >&5
9803
echo "$as_me: creating $ofile" >&6;}
9805
cat <<__EOF__ >> "$cfgfile"
9808
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9809
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9810
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9812
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9813
# Free Software Foundation, Inc.
9815
# This file is part of GNU Libtool:
9816
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9818
# This program is free software; you can redistribute it and/or modify
9819
# it under the terms of the GNU General Public License as published by
9820
# the Free Software Foundation; either version 2 of the License, or
9821
# (at your option) any later version.
9823
# This program is distributed in the hope that it will be useful, but
9824
# WITHOUT ANY WARRANTY; without even the implied warranty of
9825
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9826
# General Public License for more details.
9828
# You should have received a copy of the GNU General Public License
9829
# along with this program; if not, write to the Free Software
9830
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9832
# As a special exception to the GNU General Public License, if you
9833
# distribute this file as part of a program that contains a
9834
# configuration script generated by Autoconf, you may include it under
9835
# the same distribution terms that you use for the rest of that program.
9837
# A sed program that does not truncate output.
9840
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9841
Xsed="$SED -e 1s/^X//"
9843
# The HP-UX ksh and POSIX shell print the target directory to stdout
9845
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9847
# The names of the tagged configurations supported by this script.
9850
# ### BEGIN LIBTOOL CONFIG
9852
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9854
# Shell to use when invoking shell scripts.
9857
# Whether or not to build shared libraries.
9858
build_libtool_libs=$enable_shared
9860
# Whether or not to build static libraries.
9861
build_old_libs=$enable_static
9863
# Whether or not to add -lc for building shared libraries.
9864
build_libtool_need_lc=$archive_cmds_need_lc
9866
# Whether or not to disallow shared libs when runtime libs are static
9867
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9869
# Whether or not to optimize for fast installation.
9870
fast_install=$enable_fast_install
9873
host_alias=$host_alias
9878
build_alias=$build_alias
9882
# An echo program that does not interpret backslashes.
9887
AR_FLAGS=$lt_AR_FLAGS
9892
# LTCC compiler flags.
9893
LTCFLAGS=$lt_LTCFLAGS
9895
# A language-specific compiler.
9898
# Is the compiler the GNU C compiler?
9904
# The linker used to build libraries.
9907
# Whether we need hard or soft links.
9910
# A BSD-compatible nm program.
9913
# A symbol stripping program
9916
# Used to examine libraries when file_magic_cmd begins "file"
9917
MAGIC_CMD=$MAGIC_CMD
9919
# Used on cygwin: DLL creation program.
9922
# Used on cygwin: object dumper.
9925
# Used on cygwin: assembler.
9928
# The name of the directory that contains temporary libtool files.
9931
# How to create reloadable object files.
9932
reload_flag=$lt_reload_flag
9933
reload_cmds=$lt_reload_cmds
9935
# How to pass a linker flag through the compiler.
9936
wl=$lt_lt_prog_compiler_wl
9938
# Object file suffix (normally "o").
9941
# Old archive suffix (normally "a").
9944
# Shared library suffix (normally ".so").
9945
shrext_cmds='$shrext_cmds'
9947
# Executable file suffix (normally "").
9950
# Additional compiler flags for building library objects.
9951
pic_flag=$lt_lt_prog_compiler_pic
9954
# What is the maximum length of a command?
9955
max_cmd_len=$lt_cv_sys_max_cmd_len
9957
# Does compiler simultaneously support -c and -o options?
9958
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9960
# Must we lock files when doing compilation?
9961
need_locks=$lt_need_locks
9963
# Do we need the lib prefix for modules?
9964
need_lib_prefix=$need_lib_prefix
9966
# Do we need a version for libraries?
9967
need_version=$need_version
9969
# Whether dlopen is supported.
9970
dlopen_support=$enable_dlopen
9972
# Whether dlopen of programs is supported.
9973
dlopen_self=$enable_dlopen_self
9975
# Whether dlopen of statically linked programs is supported.
9976
dlopen_self_static=$enable_dlopen_self_static
9978
# Compiler flag to prevent dynamic linking.
9979
link_static_flag=$lt_lt_prog_compiler_static
9981
# Compiler flag to turn off builtin functions.
9982
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9984
# Compiler flag to allow reflexive dlopens.
9985
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9987
# Compiler flag to generate shared objects directly from archives.
9988
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9990
# Compiler flag to generate thread-safe objects.
9991
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9993
# Library versioning type.
9994
version_type=$version_type
9996
# Format of library name prefix.
9997
libname_spec=$lt_libname_spec
9999
# List of archive names. First name is the real one, the rest are links.
10000
# The last name is the one that the linker finds with -lNAME.
10001
library_names_spec=$lt_library_names_spec
10003
# The coded name of the library, if different from the real name.
10004
soname_spec=$lt_soname_spec
10006
# Commands used to build and install an old-style archive.
10008
old_archive_cmds=$lt_old_archive_cmds
10009
old_postinstall_cmds=$lt_old_postinstall_cmds
10010
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10012
# Create an old-style archive from a shared archive.
10013
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10015
# Create a temporary old-style archive to link instead of a shared archive.
10016
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10018
# Commands used to build and install a shared archive.
10019
archive_cmds=$lt_archive_cmds
10020
archive_expsym_cmds=$lt_archive_expsym_cmds
10021
postinstall_cmds=$lt_postinstall_cmds
10022
postuninstall_cmds=$lt_postuninstall_cmds
10024
# Commands used to build a loadable module (assumed same as above if empty)
10025
module_cmds=$lt_module_cmds
10026
module_expsym_cmds=$lt_module_expsym_cmds
10028
# Commands to strip libraries.
10029
old_striplib=$lt_old_striplib
10030
striplib=$lt_striplib
10032
# Dependencies to place before the objects being linked to create a
10034
predep_objects=$lt_predep_objects
10036
# Dependencies to place after the objects being linked to create a
10038
postdep_objects=$lt_postdep_objects
10040
# Dependencies to place before the objects being linked to create a
10042
predeps=$lt_predeps
10044
# Dependencies to place after the objects being linked to create a
10046
postdeps=$lt_postdeps
10048
# The library search path used internally by the compiler when linking
10049
# a shared library.
10050
compiler_lib_search_path=$lt_compiler_lib_search_path
10052
# Method to check whether dependent libraries are shared objects.
10053
deplibs_check_method=$lt_deplibs_check_method
10055
# Command to use when deplibs_check_method == file_magic.
10056
file_magic_cmd=$lt_file_magic_cmd
10058
# Flag that allows shared libraries with undefined symbols to be built.
10059
allow_undefined_flag=$lt_allow_undefined_flag
10061
# Flag that forces no undefined symbols.
10062
no_undefined_flag=$lt_no_undefined_flag
10064
# Commands used to finish a libtool library installation in a directory.
10065
finish_cmds=$lt_finish_cmds
10067
# Same as above, but a single script fragment to be evaled but not shown.
10068
finish_eval=$lt_finish_eval
10070
# Take the output of nm and produce a listing of raw symbols and C names.
10071
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10073
# Transform the output of nm in a proper C declaration
10074
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10076
# Transform the output of nm in a C name address pair
10077
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10079
# This is the shared library runtime path variable.
10080
runpath_var=$runpath_var
10082
# This is the shared library path variable.
10083
shlibpath_var=$shlibpath_var
10085
# Is shlibpath searched before the hard-coded library search path?
10086
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10088
# How to hardcode a shared library path into an executable.
10089
hardcode_action=$hardcode_action
10091
# Whether we should hardcode library paths into libraries.
10092
hardcode_into_libs=$hardcode_into_libs
10094
# Flag to hardcode \$libdir into a binary during linking.
10095
# This must work even if \$libdir does not exist.
10096
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10098
# If ld is used when linking, flag to hardcode \$libdir into
10099
# a binary during linking. This must work even if \$libdir does
10101
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10103
# Whether we need a single -rpath flag with a separated argument.
10104
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10106
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10107
# resulting binary.
10108
hardcode_direct=$hardcode_direct
10110
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10111
# resulting binary.
10112
hardcode_minus_L=$hardcode_minus_L
10114
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10115
# the resulting binary.
10116
hardcode_shlibpath_var=$hardcode_shlibpath_var
10118
# Set to yes if building a shared library automatically hardcodes DIR into the library
10119
# and all subsequent libraries and executables linked against it.
10120
hardcode_automatic=$hardcode_automatic
10122
# Variables whose values should be saved in libtool wrapper scripts and
10123
# restored at relink time.
10124
variables_saved_for_relink="$variables_saved_for_relink"
10126
# Whether libtool must link a program against all its dependency libraries.
10127
link_all_deplibs=$link_all_deplibs
10129
# Compile-time system search path for libraries
10130
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10132
# Run-time system search path for libraries
10133
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10135
# Fix the shell variable \$srcfile for the compiler.
10136
fix_srcfile_path="$fix_srcfile_path"
10138
# Set to yes if exported symbols are required.
10139
always_export_symbols=$always_export_symbols
10141
# The commands to list exported symbols.
10142
export_symbols_cmds=$lt_export_symbols_cmds
10144
# The commands to extract the exported symbol list from a shared archive.
10145
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10147
# Symbols that should not be listed in the preloaded symbols.
10148
exclude_expsyms=$lt_exclude_expsyms
10150
# Symbols that must always be exported.
10151
include_expsyms=$lt_include_expsyms
10153
# ### END LIBTOOL CONFIG
10160
cat <<\EOF >> "$cfgfile"
10162
# AIX sometimes has problems with the GCC collect2 program. For some
10163
# reason, if we set the COLLECT_NAMES environment variable, the problems
10164
# vanish in a puff of smoke.
10165
if test "X${COLLECT_NAMES+set}" != Xset; then
10167
export COLLECT_NAMES
10173
# We use sed instead of cat because bash on DJGPP gets confused if
10174
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10175
# text mode, it properly converts lines to CR/LF. This bash problem
10176
# is reportedly fixed, but why not run on old versions too?
10177
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10179
mv -f "$cfgfile" "$ofile" || \
10180
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10184
# If there is no Makefile yet, we rely on a make rule to execute
10185
# `config.status --recheck' to rerun these tests and create the
10186
# libtool script then.
10187
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10188
if test -f "$ltmain_in"; then
10189
test -f Makefile && make "$ltmain"
10195
ac_cpp='$CPP $CPPFLAGS'
10196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10203
# Check whether --with-tags or --without-tags was given.
10204
if test "${with_tags+set}" = set; then
10205
withval="$with_tags"
10206
tagnames="$withval"
10209
if test -f "$ltmain" && test -n "$tagnames"; then
10210
if test ! -f "${ofile}"; then
10211
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10212
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10215
if test -z "$LTCC"; then
10216
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10217
if test -z "$LTCC"; then
10218
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10219
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10221
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10222
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10225
if test -z "$LTCFLAGS"; then
10226
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10229
# Extract list of available tagged configurations in $ofile.
10230
# Note that this assumes the entire list is on one line.
10231
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10233
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10234
for tagname in $tagnames; do
10236
# Check whether tagname contains only valid characters
10237
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10239
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10240
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10241
{ (exit 1); exit 1; }; }
10245
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10247
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10248
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10249
{ (exit 1); exit 1; }; }
10252
# Update the list of available tags.
10253
if test -n "$tagname"; then
10254
echo appending configuration tag \"$tagname\" to $ofile
10258
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10259
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10260
(test "X$CXX" != "Xg++"))) ; then
10262
ac_cpp='$CXXCPP $CPPFLAGS'
10263
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10270
archive_cmds_need_lc_CXX=no
10271
allow_undefined_flag_CXX=
10272
always_export_symbols_CXX=no
10273
archive_expsym_cmds_CXX=
10274
export_dynamic_flag_spec_CXX=
10275
hardcode_direct_CXX=no
10276
hardcode_libdir_flag_spec_CXX=
10277
hardcode_libdir_flag_spec_ld_CXX=
10278
hardcode_libdir_separator_CXX=
10279
hardcode_minus_L_CXX=no
10280
hardcode_shlibpath_var_CXX=unsupported
10281
hardcode_automatic_CXX=no
10283
module_expsym_cmds_CXX=
10284
link_all_deplibs_CXX=unknown
10285
old_archive_cmds_CXX=$old_archive_cmds
10286
no_undefined_flag_CXX=
10287
whole_archive_flag_spec_CXX=
10288
enable_shared_with_static_runtimes_CXX=no
10290
# Dependencies to place before and after the object being linked:
10291
predep_objects_CXX=
10292
postdep_objects_CXX=
10295
compiler_lib_search_path_CXX=
10297
# Source file extension for C++ test sources.
10300
# Object file extension for compiled C++ test sources.
10304
# Code to be used in simple compile tests
10305
lt_simple_compile_test_code="int some_variable = 0;\n"
10307
# Code to be used in simple link tests
10308
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10310
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10312
# If no C compiler was specified, use CC.
10315
# If no C compiler flags were specified, use CFLAGS.
10316
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10318
# Allow CC to be a program name with arguments.
10322
# save warnings/boilerplate of simple test code
10323
ac_outfile=conftest.$ac_objext
10324
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10325
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10326
_lt_compiler_boilerplate=`cat conftest.err`
10329
ac_outfile=conftest.$ac_objext
10330
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10331
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10332
_lt_linker_boilerplate=`cat conftest.err`
10336
# Allow CC to be a program name with arguments.
10341
lt_save_with_gnu_ld=$with_gnu_ld
10342
lt_save_path_LD=$lt_cv_path_LD
10343
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10344
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10346
$as_unset lt_cv_prog_gnu_ld
10348
if test -n "${lt_cv_path_LDCXX+set}"; then
10349
lt_cv_path_LD=$lt_cv_path_LDCXX
10351
$as_unset lt_cv_path_LD
10353
test -z "${LDCXX+set}" || LD=$LDCXX
10357
for cc_temp in $compiler""; do
10359
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10360
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10365
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10368
# We don't want -fno-exception wen compiling C++ code, so set the
10369
# no_builtin_flag separately
10370
if test "$GXX" = yes; then
10371
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10373
lt_prog_compiler_no_builtin_flag_CXX=
10376
if test "$GXX" = yes; then
10377
# Set up default GNU C++ configuration
10380
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10381
if test "${with_gnu_ld+set}" = set; then
10382
withval="$with_gnu_ld"
10383
test "$withval" = no || with_gnu_ld=yes
10388
if test "$GCC" = yes; then
10389
# Check if gcc -print-prog-name=ld gives a path.
10390
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10391
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10394
# gcc leaves a trailing carriage return which upsets mingw
10395
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10397
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10400
# Accept absolute paths.
10402
re_direlt='/[^/][^/]*/\.\./'
10403
# Canonicalize the pathname of ld
10404
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10405
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10406
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10408
test -z "$LD" && LD="$ac_prog"
10411
# If it fails, then pretend we aren't using GCC.
10415
# If it is relative, then search for the first ld in PATH.
10416
with_gnu_ld=unknown
10419
elif test "$with_gnu_ld" = yes; then
10420
echo "$as_me:$LINENO: checking for GNU ld" >&5
10421
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10423
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10424
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10426
if test "${lt_cv_path_LD+set}" = set; then
10427
echo $ECHO_N "(cached) $ECHO_C" >&6
10429
if test -z "$LD"; then
10430
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10431
for ac_dir in $PATH; do
10433
test -z "$ac_dir" && ac_dir=.
10434
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10435
lt_cv_path_LD="$ac_dir/$ac_prog"
10436
# Check to see if the program is GNU ld. I'd rather use --version,
10437
# but apparently some variants of GNU ld only accept -v.
10438
# Break only if it was the GNU/non-GNU ld that we prefer.
10439
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10440
*GNU* | *'with BFD'*)
10441
test "$with_gnu_ld" != no && break
10444
test "$with_gnu_ld" != yes && break
10451
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10455
LD="$lt_cv_path_LD"
10456
if test -n "$LD"; then
10457
echo "$as_me:$LINENO: result: $LD" >&5
10458
echo "${ECHO_T}$LD" >&6
10460
echo "$as_me:$LINENO: result: no" >&5
10461
echo "${ECHO_T}no" >&6
10463
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10464
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10465
{ (exit 1); exit 1; }; }
10466
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10467
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10468
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10469
echo $ECHO_N "(cached) $ECHO_C" >&6
10471
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10472
case `$LD -v 2>&1 </dev/null` in
10473
*GNU* | *'with BFD'*)
10474
lt_cv_prog_gnu_ld=yes
10477
lt_cv_prog_gnu_ld=no
10481
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10482
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10483
with_gnu_ld=$lt_cv_prog_gnu_ld
10487
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10488
# archiving commands below assume that GNU ld is being used.
10489
if test "$with_gnu_ld" = yes; then
10490
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10491
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'
10493
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10494
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10496
# If archive_cmds runs LD, not CC, wlarc should be empty
10497
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10498
# investigate it a little bit more. (MM)
10501
# ancient GNU ld didn't support --whole-archive et. al.
10502
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10503
grep 'no-whole-archive' > /dev/null; then
10504
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10506
whole_archive_flag_spec_CXX=
10512
# A generic and very simple default shared library creation
10513
# command for GNU C++ for the case where it uses the native
10514
# linker, instead of GNU ld. If possible, this setting should
10515
# overridden to take advantage of the native linker features on
10516
# the platform it is being used on.
10517
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10520
# Commands to make compiler produce verbose output that lists
10521
# what "hidden" libraries, object files and flags are used when
10522
# linking a shared library.
10523
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10531
# PORTME: fill in a description of your system's C++ link characteristics
10532
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10533
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10537
# FIXME: insert proper C++ library support
10541
if test "$host_cpu" = ia64; then
10542
# On IA64, the linker does run time linking by default, so we don't
10543
# have to do anything special.
10544
aix_use_runtimelinking=no
10545
exp_sym_flag='-Bexport'
10548
aix_use_runtimelinking=no
10550
# Test if we are trying to use run time linking or normal
10551
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10552
# need to do runtime linking.
10553
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10554
for ld_flag in $LDFLAGS; do
10557
aix_use_runtimelinking=yes
10565
exp_sym_flag='-bexport'
10566
no_entry_flag='-bnoentry'
10569
# When large executables or shared objects are built, AIX ld can
10570
# have problems creating the table of contents. If linking a library
10571
# or program results in "error TOC overflow" add -mminimal-toc to
10572
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10573
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10575
archive_cmds_CXX=''
10576
hardcode_direct_CXX=yes
10577
hardcode_libdir_separator_CXX=':'
10578
link_all_deplibs_CXX=yes
10580
if test "$GXX" = yes; then
10581
case $host_os in aix4.[012]|aix4.[012].*)
10582
# We only want to do this on AIX 4.2 and lower, the check
10583
# below for broken collect2 doesn't work under 4.3+
10584
collect2name=`${CC} -print-prog-name=collect2`
10585
if test -f "$collect2name" && \
10586
strings "$collect2name" | grep resolve_lib_name >/dev/null
10588
# We have reworked collect2
10589
hardcode_direct_CXX=yes
10591
# We have old collect2
10592
hardcode_direct_CXX=unsupported
10593
# It fails to find uninstalled libraries when the uninstalled
10594
# path is not listed in the libpath. Setting hardcode_minus_L
10595
# to unsupported forces relinking
10596
hardcode_minus_L_CXX=yes
10597
hardcode_libdir_flag_spec_CXX='-L$libdir'
10598
hardcode_libdir_separator_CXX=
10602
shared_flag='-shared'
10603
if test "$aix_use_runtimelinking" = yes; then
10604
shared_flag="$shared_flag "'${wl}-G'
10608
if test "$host_cpu" = ia64; then
10609
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10610
# chokes on -Wl,-G. The following line is correct:
10613
if test "$aix_use_runtimelinking" = yes; then
10614
shared_flag='${wl}-G'
10616
shared_flag='${wl}-bM:SRE'
10621
# It seems that -bexpall does not export symbols beginning with
10622
# underscore (_), so it is better to generate a list of symbols to export.
10623
always_export_symbols_CXX=yes
10624
if test "$aix_use_runtimelinking" = yes; then
10625
# Warning - without using the other runtime loading flags (-brtl),
10626
# -berok will link without error, but may produce a broken library.
10627
allow_undefined_flag_CXX='-berok'
10628
# Determine the default libpath from the value encoded in an empty executable.
10629
cat >conftest.$ac_ext <<_ACEOF
10632
cat confdefs.h >>conftest.$ac_ext
10633
cat >>conftest.$ac_ext <<_ACEOF
10634
/* end confdefs.h. */
10644
rm -f conftest.$ac_objext conftest$ac_exeext
10645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646
(eval $ac_link) 2>conftest.er1
10648
grep -v '^ *+' conftest.er1 >conftest.err
10650
cat conftest.err >&5
10651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652
(exit $ac_status); } &&
10653
{ ac_try='test -z "$ac_cxx_werror_flag"
10654
|| test ! -s conftest.err'
10655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656
(eval $ac_try) 2>&5
10658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659
(exit $ac_status); }; } &&
10660
{ ac_try='test -s conftest$ac_exeext'
10661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662
(eval $ac_try) 2>&5
10664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665
(exit $ac_status); }; }; then
10667
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10669
# Check for a 64-bit object if we didn't find anything.
10670
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; }
10673
echo "$as_me: failed program was:" >&5
10674
sed 's/^/| /' conftest.$ac_ext >&5
10677
rm -f conftest.err conftest.$ac_objext \
10678
conftest$ac_exeext conftest.$ac_ext
10679
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10681
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10683
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10685
if test "$host_cpu" = ia64; then
10686
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10687
allow_undefined_flag_CXX="-z nodefs"
10688
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10690
# Determine the default libpath from the value encoded in an empty executable.
10691
cat >conftest.$ac_ext <<_ACEOF
10694
cat confdefs.h >>conftest.$ac_ext
10695
cat >>conftest.$ac_ext <<_ACEOF
10696
/* end confdefs.h. */
10706
rm -f conftest.$ac_objext conftest$ac_exeext
10707
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708
(eval $ac_link) 2>conftest.er1
10710
grep -v '^ *+' conftest.er1 >conftest.err
10712
cat conftest.err >&5
10713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714
(exit $ac_status); } &&
10715
{ ac_try='test -z "$ac_cxx_werror_flag"
10716
|| test ! -s conftest.err'
10717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718
(eval $ac_try) 2>&5
10720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721
(exit $ac_status); }; } &&
10722
{ ac_try='test -s conftest$ac_exeext'
10723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724
(eval $ac_try) 2>&5
10726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727
(exit $ac_status); }; }; then
10729
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10731
# Check for a 64-bit object if we didn't find anything.
10732
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; }
10735
echo "$as_me: failed program was:" >&5
10736
sed 's/^/| /' conftest.$ac_ext >&5
10739
rm -f conftest.err conftest.$ac_objext \
10740
conftest$ac_exeext conftest.$ac_ext
10741
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10743
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10744
# Warning - without using the other run time loading flags,
10745
# -berok will link without error, but may produce a broken library.
10746
no_undefined_flag_CXX=' ${wl}-bernotok'
10747
allow_undefined_flag_CXX=' ${wl}-berok'
10748
# Exported symbols can be pulled into shared objects from archives
10749
whole_archive_flag_spec_CXX='$convenience'
10750
archive_cmds_need_lc_CXX=yes
10751
# This is similar to how AIX traditionally builds its shared libraries.
10752
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10758
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10759
allow_undefined_flag_CXX=unsupported
10760
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10761
# support --undefined. This deserves some investigation. FIXME
10762
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10769
case $cc_basename in
10771
# FIXME: insert proper C++ library support
10777
cygwin* | mingw* | pw32*)
10778
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10779
# as there is no search path for DLLs.
10780
hardcode_libdir_flag_spec_CXX='-L$libdir'
10781
allow_undefined_flag_CXX=unsupported
10782
always_export_symbols_CXX=no
10783
enable_shared_with_static_runtimes_CXX=yes
10785
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10786
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10787
# If the export-symbols file already is a .def file (1st line
10788
# is EXPORTS), use it as is; otherwise, prepend...
10789
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10790
cp $export_symbols $output_objdir/$soname.def;
10792
echo EXPORTS > $output_objdir/$soname.def;
10793
cat $export_symbols >> $output_objdir/$soname.def;
10795
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10800
darwin* | rhapsody*)
10802
rhapsody* | darwin1.[012])
10803
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10806
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10807
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10809
case ${MACOSX_DEPLOYMENT_TARGET} in
10811
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10814
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10820
archive_cmds_need_lc_CXX=no
10821
hardcode_direct_CXX=no
10822
hardcode_automatic_CXX=yes
10823
hardcode_shlibpath_var_CXX=unsupported
10824
whole_archive_flag_spec_CXX=''
10825
link_all_deplibs_CXX=yes
10827
if test "$GXX" = yes ; then
10828
lt_int_apple_cc_single_mod=no
10829
output_verbose_link_cmd='echo'
10830
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10831
lt_int_apple_cc_single_mod=yes
10833
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10834
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10836
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10838
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10839
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10840
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10841
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}'
10843
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10845
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}'
10847
case $cc_basename in
10849
output_verbose_link_cmd='echo'
10850
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10851
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10852
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10853
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10854
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}'
10864
case $cc_basename in
10866
# FIXME: insert proper C++ library support
10870
# Green Hills C++ Compiler
10871
# FIXME: insert proper C++ library support
10875
# FIXME: insert proper C++ library support
10881
# C++ shared libraries reported to be fairly broken before switch to ELF
10885
archive_cmds_need_lc_CXX=no
10887
freebsd* | kfreebsd*-gnu | dragonfly*)
10888
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10895
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10896
hardcode_libdir_separator_CXX=:
10897
export_dynamic_flag_spec_CXX='${wl}-E'
10898
hardcode_direct_CXX=yes
10899
hardcode_minus_L_CXX=yes # Not in the search PATH,
10900
# but as the default
10901
# location of the library.
10903
case $cc_basename in
10905
# FIXME: insert proper C++ library support
10909
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'
10910
# Commands to make compiler produce verbose output that lists
10911
# what "hidden" libraries, object files and flags are used when
10912
# linking a shared library.
10914
# There doesn't appear to be a way to prevent this compiler from
10915
# explicitly linking system object files so we need to strip them
10916
# from the output so that they don't get included in the library
10918
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'
10921
if test "$GXX" = yes; then
10922
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'
10924
# FIXME: insert proper C++ library support
10931
if test $with_gnu_ld = no; then
10932
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10933
hardcode_libdir_separator_CXX=:
10937
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10940
export_dynamic_flag_spec_CXX='${wl}-E'
10946
hardcode_direct_CXX=no
10947
hardcode_shlibpath_var_CXX=no
10950
hardcode_direct_CXX=yes
10951
hardcode_minus_L_CXX=yes # Not in the search PATH,
10952
# but as the default
10953
# location of the library.
10957
case $cc_basename in
10959
# FIXME: insert proper C++ library support
10965
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10968
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10971
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10974
# Commands to make compiler produce verbose output that lists
10975
# what "hidden" libraries, object files and flags are used when
10976
# linking a shared library.
10978
# There doesn't appear to be a way to prevent this compiler from
10979
# explicitly linking system object files so we need to strip them
10980
# from the output so that they don't get included in the library
10982
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'
10985
if test "$GXX" = yes; then
10986
if test $with_gnu_ld = no; then
10989
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10992
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10995
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'
11000
# FIXME: insert proper C++ library support
11007
hardcode_direct_CXX=no
11008
hardcode_shlibpath_var_CXX=no
11009
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11010
export_dynamic_flag_spec_CXX='${wl}-E'
11011
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11012
# Instead, shared libraries are loaded at an image base (0x10000000 by
11013
# default) and relocated if they conflict, which is a slow very memory
11014
# consuming and fragmenting process. To avoid this, we pick a random,
11015
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11016
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11017
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11018
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11021
case $cc_basename in
11024
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11026
# Archives containing C++ object files must be created using
11027
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11028
# necessary to make sure instantiated templates are included
11030
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11033
if test "$GXX" = yes; then
11034
if test "$with_gnu_ld" = no; then
11035
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11037
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'
11040
link_all_deplibs_CXX=yes
11043
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11044
hardcode_libdir_separator_CXX=:
11047
case $cc_basename in
11049
# Kuck and Associates, Inc. (KAI) C++ Compiler
11051
# KCC will only create a shared library if the output file
11052
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11053
# to its proper name (with version) after linking.
11054
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'
11055
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'
11056
# Commands to make compiler produce verbose output that lists
11057
# what "hidden" libraries, object files and flags are used when
11058
# linking a shared library.
11060
# There doesn't appear to be a way to prevent this compiler from
11061
# explicitly linking system object files so we need to strip them
11062
# from the output so that they don't get included in the library
11064
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'
11066
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11067
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11069
# Archives containing C++ object files must be created using
11070
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11071
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11076
# version 8.0 and above of icpc choke on multiply defined symbols
11077
# if we add $predep_objects and $postdep_objects, however 7.1 and
11078
# earlier do not add the objects themselves.
11079
case `$CC -V 2>&1` in
11081
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11082
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'
11084
*) # Version 8.0 or newer
11087
ia64*) tmp_idyn=' -i_dynamic';;
11089
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11090
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11093
archive_cmds_need_lc_CXX=no
11094
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11095
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11096
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11099
# Portland Group C++ compiler
11100
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11101
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11103
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11104
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11105
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11109
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11110
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'
11112
runpath_var=LD_RUN_PATH
11113
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11114
hardcode_libdir_separator_CXX=:
11116
# Commands to make compiler produce verbose output that lists
11117
# what "hidden" libraries, object files and flags are used when
11118
# linking a shared library.
11120
# There doesn't appear to be a way to prevent this compiler from
11121
# explicitly linking system object files so we need to strip them
11122
# from the output so that they don't get included in the library
11124
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'
11129
# FIXME: insert proper C++ library support
11133
# FIXME: insert proper C++ library support
11137
case $cc_basename in
11139
# FIXME: insert proper C++ library support
11143
# FIXME: insert proper C++ library support
11149
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11150
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11152
hardcode_libdir_flag_spec_CXX='-R$libdir'
11153
hardcode_direct_CXX=yes
11154
hardcode_shlibpath_var_CXX=no
11156
# Workaround some broken pre-1.5 toolchains
11157
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11160
# C++ shared libraries are fairly broken
11164
hardcode_direct_CXX=yes
11165
hardcode_shlibpath_var_CXX=no
11166
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11167
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11168
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11169
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11170
export_dynamic_flag_spec_CXX='${wl}-E'
11171
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11173
output_verbose_link_cmd='echo'
11176
case $cc_basename in
11178
# Kuck and Associates, Inc. (KAI) C++ Compiler
11180
# KCC will only create a shared library if the output file
11181
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11182
# to its proper name (with version) after linking.
11183
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'
11185
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11186
hardcode_libdir_separator_CXX=:
11188
# Archives containing C++ object files must be created using
11189
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11190
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11194
# Rational C++ 2.4.1
11195
# FIXME: insert proper C++ library support
11199
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11200
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11202
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11203
hardcode_libdir_separator_CXX=:
11205
# Commands to make compiler produce verbose output that lists
11206
# what "hidden" libraries, object files and flags are used when
11207
# linking a shared library.
11209
# There doesn't appear to be a way to prevent this compiler from
11210
# explicitly linking system object files so we need to strip them
11211
# from the output so that they don't get included in the library
11213
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'
11216
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11217
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11218
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11220
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11221
hardcode_libdir_separator_CXX=:
11223
# Commands to make compiler produce verbose output that lists
11224
# what "hidden" libraries, object files and flags are used when
11225
# linking a shared library.
11226
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11229
# FIXME: insert proper C++ library support
11236
case $cc_basename in
11238
# Kuck and Associates, Inc. (KAI) C++ Compiler
11240
# KCC will only create a shared library if the output file
11241
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11242
# to its proper name (with version) after linking.
11243
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'
11245
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11246
hardcode_libdir_separator_CXX=:
11248
# Archives containing C++ object files must be created using
11249
# the KAI C++ compiler.
11250
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11253
# Rational C++ 2.4.1
11254
# FIXME: insert proper C++ library support
11258
allow_undefined_flag_CXX=' -expect_unresolved \*'
11259
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11260
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11261
echo "-hidden">> $lib.exp~
11262
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11265
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11266
hardcode_libdir_separator_CXX=:
11268
# Commands to make compiler produce verbose output that lists
11269
# what "hidden" libraries, object files and flags are used when
11270
# linking a shared library.
11272
# There doesn't appear to be a way to prevent this compiler from
11273
# explicitly linking system object files so we need to strip them
11274
# from the output so that they don't get included in the library
11276
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'
11279
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11280
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11281
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11283
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11284
hardcode_libdir_separator_CXX=:
11286
# Commands to make compiler produce verbose output that lists
11287
# what "hidden" libraries, object files and flags are used when
11288
# linking a shared library.
11289
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11292
# FIXME: insert proper C++ library support
11299
# FIXME: insert proper C++ library support
11303
case $cc_basename in
11306
# FIXME: insert proper C++ library support
11311
# FIXME: insert proper C++ library support
11315
# FIXME: insert proper C++ library support
11321
case $cc_basename in
11323
# Sun C++ 4.2, 5.x and Centerline C++
11324
archive_cmds_need_lc_CXX=yes
11325
no_undefined_flag_CXX=' -zdefs'
11326
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11327
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11328
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11330
hardcode_libdir_flag_spec_CXX='-R$libdir'
11331
hardcode_shlibpath_var_CXX=no
11333
solaris2.[0-5] | solaris2.[0-5].*) ;;
11335
# The C++ compiler is used as linker so we must use $wl
11336
# flag to pass the commands to the underlying system
11337
# linker. We must also pass each convience library through
11338
# to the system linker between allextract/defaultextract.
11339
# The C++ compiler will combine linker options so we
11340
# cannot just pass the convience library names through
11342
# Supported since Solaris 2.6 (maybe 2.5.1?)
11343
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11346
link_all_deplibs_CXX=yes
11348
output_verbose_link_cmd='echo'
11350
# Archives containing C++ object files must be created using
11351
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11352
# necessary to make sure instantiated templates are included
11354
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11357
# Green Hills C++ Compiler
11358
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11360
# The C++ compiler must be used to create the archive.
11361
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11364
# GNU C++ compiler with Solaris linker
11365
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11366
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11367
if $CC --version | grep -v '^2\.7' > /dev/null; then
11368
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11369
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11370
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11372
# Commands to make compiler produce verbose output that lists
11373
# what "hidden" libraries, object files and flags are used when
11374
# linking a shared library.
11375
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11377
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11379
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11380
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11381
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11383
# Commands to make compiler produce verbose output that lists
11384
# what "hidden" libraries, object files and flags are used when
11385
# linking a shared library.
11386
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11389
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11394
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11395
no_undefined_flag_CXX='${wl}-z,text'
11396
archive_cmds_need_lc_CXX=no
11397
hardcode_shlibpath_var_CXX=no
11398
runpath_var='LD_RUN_PATH'
11400
case $cc_basename in
11402
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11411
sysv5* | sco3.2v5* | sco5v6*)
11412
# Note: We can NOT use -z defs as we might desire, because we do not
11413
# link with -lc, and that would cause any symbols used from libc to
11414
# always be unresolved, which means just about no library would
11415
# ever link correctly. If we're not using GNU ld we use -z text
11416
# though, which does catch some bad symbols but isn't as heavy-handed
11418
# For security reasons, it is highly recommended that you always
11419
# use absolute paths for naming shared libraries, and exclude the
11420
# DT_RUNPATH tag from executables and libraries. But doing so
11421
# requires that you compile everything twice, which is a pain.
11422
# So that behaviour is only enabled if SCOABSPATH is set to a
11423
# non-empty value in the environment. Most likely only useful for
11424
# creating official distributions of packages.
11425
# This is a hack until libtool officially supports absolute path
11426
# names for shared libraries.
11427
no_undefined_flag_CXX='${wl}-z,text'
11428
allow_undefined_flag_CXX='${wl}-z,nodefs'
11429
archive_cmds_need_lc_CXX=no
11430
hardcode_shlibpath_var_CXX=no
11431
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11432
hardcode_libdir_separator_CXX=':'
11433
link_all_deplibs_CXX=yes
11434
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11435
runpath_var='LD_RUN_PATH'
11437
case $cc_basename in
11439
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11440
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11443
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11444
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11449
case $cc_basename in
11451
# NonStop-UX NCC 3.20
11452
# FIXME: insert proper C++ library support
11456
# FIXME: insert proper C++ library support
11462
# FIXME: insert proper C++ library support
11466
# FIXME: insert proper C++ library support
11470
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11471
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11472
test "$ld_shlibs_CXX" = no && can_build_shared=no
11478
cat > conftest.$ac_ext <<EOF
11482
Foo (void) { a = 0; }
11488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489
(eval $ac_compile) 2>&5
11491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492
(exit $ac_status); }; then
11493
# Parse the compiler output and extract the necessary
11494
# objects, libraries and library flags.
11496
# Sentinel used to keep track of whether or not we are before
11497
# the conftest object file.
11498
pre_test_object_deps_done=no
11500
# The `*' in the case matches for architectures that use `case' in
11501
# $output_verbose_cmd can trigger glob expansion during the loop
11502
# eval without this substitution.
11503
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11505
for p in `eval $output_verbose_link_cmd`; do
11509
# Some compilers place space between "-{L,R}" and the path.
11510
# Remove the space.
11511
if test $p = "-L" \
11512
|| test $p = "-R"; then
11519
if test "$pre_test_object_deps_done" = no; then
11522
# Internal compiler library paths should come after those
11523
# provided the user. The postdeps already come after the
11524
# user supplied libs so there is no need to process them.
11525
if test -z "$compiler_lib_search_path_CXX"; then
11526
compiler_lib_search_path_CXX="${prev}${p}"
11528
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11531
# The "-l" case would never come before the object being
11532
# linked, so don't bother handling this case.
11535
if test -z "$postdeps_CXX"; then
11536
postdeps_CXX="${prev}${p}"
11538
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11544
# This assumes that the test object file only shows up
11545
# once in the compiler output.
11546
if test "$p" = "conftest.$objext"; then
11547
pre_test_object_deps_done=yes
11551
if test "$pre_test_object_deps_done" = no; then
11552
if test -z "$predep_objects_CXX"; then
11553
predep_objects_CXX="$p"
11555
predep_objects_CXX="$predep_objects_CXX $p"
11558
if test -z "$postdep_objects_CXX"; then
11559
postdep_objects_CXX="$p"
11561
postdep_objects_CXX="$postdep_objects_CXX $p"
11566
*) ;; # Ignore the rest.
11574
echo "libtool.m4: error: problem compiling CXX test program"
11577
$rm -f confest.$objext
11579
# PORTME: override above test on systems where it is broken
11582
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11583
# hack all around it, let's just trust "g++" to DTRT.
11584
predep_objects_CXX=
11585
postdep_objects_CXX=
11590
case $cc_basename in
11592
# Adding this requires a known-good setup of shared libraries for
11593
# Sun compiler versions before 5.6, else PIC objects from an old
11594
# archive will be linked into the output, leading to subtle bugs.
11595
postdeps_CXX='-lCstd -lCrun'
11602
case " $postdeps_CXX " in
11603
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11606
lt_prog_compiler_wl_CXX=
11607
lt_prog_compiler_pic_CXX=
11608
lt_prog_compiler_static_CXX=
11610
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11611
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11613
# C++ specific cases for pic, static, wl, etc.
11614
if test "$GXX" = yes; then
11615
lt_prog_compiler_wl_CXX='-Wl,'
11616
lt_prog_compiler_static_CXX='-static'
11620
# All AIX code is PIC.
11621
if test "$host_cpu" = ia64; then
11622
# AIX 5 now supports IA64 processor
11623
lt_prog_compiler_static_CXX='-Bstatic'
11627
# FIXME: we need at least 68020 code to build shared libraries, but
11628
# adding the `-m68020' flag to GCC prevents building anything better,
11630
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11632
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11633
# PIC is the default for these OSes.
11635
mingw* | os2* | pw32*)
11636
# This hack is so that the source file can tell whether it is being
11637
# built for inclusion in a dll (and should export symbols for example).
11638
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11640
darwin* | rhapsody*)
11641
# PIC is the default on this platform
11642
# Common symbols not allowed in MH_DYLIB files
11643
lt_prog_compiler_pic_CXX='-fno-common'
11646
# DJGPP does not support shared libraries at all
11647
lt_prog_compiler_pic_CXX=
11650
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11651
# Instead, we relocate shared libraries at runtime.
11654
if test -d /usr/nec; then
11655
lt_prog_compiler_pic_CXX=-Kconform_pic
11659
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11660
# not for PA HP-UX.
11665
lt_prog_compiler_pic_CXX='-fPIC'
11670
lt_prog_compiler_pic_CXX='-fPIC'
11676
# All AIX code is PIC.
11677
if test "$host_cpu" = ia64; then
11678
# AIX 5 now supports IA64 processor
11679
lt_prog_compiler_static_CXX='-Bstatic'
11681
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11685
case $cc_basename in
11687
# Green Hills C++ Compiler
11688
# _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"
11693
# PIC is the default on this platform
11694
# Common symbols not allowed in MH_DYLIB files
11695
case $cc_basename in
11697
lt_prog_compiler_pic_CXX='-qnocommon'
11698
lt_prog_compiler_wl_CXX='-Wl,'
11703
case $cc_basename in
11705
lt_prog_compiler_pic_CXX='-KPIC'
11708
# Green Hills C++ Compiler
11709
lt_prog_compiler_pic_CXX='-pic'
11715
freebsd* | kfreebsd*-gnu | dragonfly*)
11716
# FreeBSD uses GNU C++
11718
hpux9* | hpux10* | hpux11*)
11719
case $cc_basename in
11721
lt_prog_compiler_wl_CXX='-Wl,'
11722
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11723
if test "$host_cpu" != ia64; then
11724
lt_prog_compiler_pic_CXX='+Z'
11728
lt_prog_compiler_wl_CXX='-Wl,'
11729
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11735
lt_prog_compiler_pic_CXX='+Z'
11744
# This is c89, which is MS Visual C++ (no shared libs)
11745
# Anyone wants to do a port?
11747
irix5* | irix6* | nonstopux*)
11748
case $cc_basename in
11750
lt_prog_compiler_wl_CXX='-Wl,'
11751
lt_prog_compiler_static_CXX='-non_shared'
11752
# CC pic flag -KPIC is the default.
11759
case $cc_basename in
11762
lt_prog_compiler_wl_CXX='--backend -Wl,'
11763
lt_prog_compiler_pic_CXX='-fPIC'
11767
lt_prog_compiler_wl_CXX='-Wl,'
11768
lt_prog_compiler_pic_CXX='-KPIC'
11769
lt_prog_compiler_static_CXX='-static'
11772
# Portland Group C++ compiler.
11773
lt_prog_compiler_wl_CXX='-Wl,'
11774
lt_prog_compiler_pic_CXX='-fpic'
11775
lt_prog_compiler_static_CXX='-Bstatic'
11779
# Make sure the PIC flag is empty. It appears that all Alpha
11780
# Linux and Compaq Tru64 Unix objects are PIC.
11781
lt_prog_compiler_pic_CXX=
11782
lt_prog_compiler_static_CXX='-non_shared'
11793
case $cc_basename in
11795
lt_prog_compiler_pic_CXX='-W c,exportall'
11803
osf3* | osf4* | osf5*)
11804
case $cc_basename in
11806
lt_prog_compiler_wl_CXX='--backend -Wl,'
11809
# Rational C++ 2.4.1
11810
lt_prog_compiler_pic_CXX='-pic'
11813
# Digital/Compaq C++
11814
lt_prog_compiler_wl_CXX='-Wl,'
11815
# Make sure the PIC flag is empty. It appears that all Alpha
11816
# Linux and Compaq Tru64 Unix objects are PIC.
11817
lt_prog_compiler_pic_CXX=
11818
lt_prog_compiler_static_CXX='-non_shared'
11827
case $cc_basename in
11829
# Sun C++ 4.2, 5.x and Centerline C++
11830
lt_prog_compiler_pic_CXX='-KPIC'
11831
lt_prog_compiler_static_CXX='-Bstatic'
11832
lt_prog_compiler_wl_CXX='-Qoption ld '
11835
# Green Hills C++ Compiler
11836
lt_prog_compiler_pic_CXX='-PIC'
11843
case $cc_basename in
11846
lt_prog_compiler_pic_CXX='-pic'
11847
lt_prog_compiler_static_CXX='-Bstatic'
11851
lt_prog_compiler_pic_CXX='-pic'
11858
case $cc_basename in
11860
# NonStop-UX NCC 3.20
11861
lt_prog_compiler_pic_CXX='-KPIC'
11867
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11868
case $cc_basename in
11870
lt_prog_compiler_wl_CXX='-Wl,'
11871
lt_prog_compiler_pic_CXX='-KPIC'
11872
lt_prog_compiler_static_CXX='-Bstatic'
11879
lt_prog_compiler_can_build_shared_CXX=no
11884
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11885
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11888
# Check to make sure the PIC flag actually works.
11890
if test -n "$lt_prog_compiler_pic_CXX"; then
11892
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11893
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11894
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11895
echo $ECHO_N "(cached) $ECHO_C" >&6
11897
lt_prog_compiler_pic_works_CXX=no
11898
ac_outfile=conftest.$ac_objext
11899
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11900
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11901
# Insert the option either (1) after the last *FLAGS variable, or
11902
# (2) before a word containing "conftest.", or (3) at the end.
11903
# Note that $ac_compile itself does not contain backslashes and begins
11904
# with a dollar sign (not a hyphen), so the echo should work correctly.
11905
# The option is referenced via a variable to avoid confusing sed.
11906
lt_compile=`echo "$ac_compile" | $SED \
11907
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11908
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11909
-e 's:$: $lt_compiler_flag:'`
11910
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11911
(eval "$lt_compile" 2>conftest.err)
11913
cat conftest.err >&5
11914
echo "$as_me:__oline__: \$? = $ac_status" >&5
11915
if (exit $ac_status) && test -s "$ac_outfile"; then
11916
# The compiler can only warn and ignore the option if not recognized
11917
# So say no if there are warnings other than the usual output.
11918
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11919
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11920
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11921
lt_prog_compiler_pic_works_CXX=yes
11927
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11928
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11930
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11931
case $lt_prog_compiler_pic_CXX in
11933
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11936
lt_prog_compiler_pic_CXX=
11937
lt_prog_compiler_can_build_shared_CXX=no
11942
# For platforms which do not support PIC, -DPIC is meaningless:
11944
lt_prog_compiler_pic_CXX=
11947
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11952
# Check to make sure the static flag actually works.
11954
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11955
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11956
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11957
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11958
echo $ECHO_N "(cached) $ECHO_C" >&6
11960
lt_prog_compiler_static_works_CXX=no
11961
save_LDFLAGS="$LDFLAGS"
11962
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11963
printf "$lt_simple_link_test_code" > conftest.$ac_ext
11964
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11965
# The linker can only warn and ignore the option if not recognized
11966
# So say no if there are warnings
11967
if test -s conftest.err; then
11968
# Append any errors to the config.log.
11969
cat conftest.err 1>&5
11970
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11971
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11972
if diff conftest.exp conftest.er2 >/dev/null; then
11973
lt_prog_compiler_static_works_CXX=yes
11976
lt_prog_compiler_static_works_CXX=yes
11980
LDFLAGS="$save_LDFLAGS"
11983
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11984
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11986
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11989
lt_prog_compiler_static_CXX=
11993
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11994
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11995
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11996
echo $ECHO_N "(cached) $ECHO_C" >&6
11998
lt_cv_prog_compiler_c_o_CXX=no
11999
$rm -r conftest 2>/dev/null
12003
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12005
lt_compiler_flag="-o out/conftest2.$ac_objext"
12006
# Insert the option either (1) after the last *FLAGS variable, or
12007
# (2) before a word containing "conftest.", or (3) at the end.
12008
# Note that $ac_compile itself does not contain backslashes and begins
12009
# with a dollar sign (not a hyphen), so the echo should work correctly.
12010
lt_compile=`echo "$ac_compile" | $SED \
12011
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12012
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12013
-e 's:$: $lt_compiler_flag:'`
12014
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12015
(eval "$lt_compile" 2>out/conftest.err)
12017
cat out/conftest.err >&5
12018
echo "$as_me:__oline__: \$? = $ac_status" >&5
12019
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12021
# The compiler can only warn and ignore the option if not recognized
12022
# So say no if there are warnings
12023
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12024
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12025
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12026
lt_cv_prog_compiler_c_o_CXX=yes
12031
# SGI C++ compiler will create directory out/ii_files/ for
12032
# template instantiation
12033
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12034
$rm out/* && rmdir out
12040
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12041
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12044
hard_links="nottested"
12045
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12046
# do not overwrite the value of need_locks provided by the user
12047
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12048
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12051
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12053
ln conftest.a conftest.b 2>&5 || hard_links=no
12054
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12055
echo "$as_me:$LINENO: result: $hard_links" >&5
12056
echo "${ECHO_T}$hard_links" >&6
12057
if test "$hard_links" = no; then
12058
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12059
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12066
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12067
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12069
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12072
# If we're using GNU nm, then we don't want the "-C" option.
12073
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12074
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12075
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'
12077
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'
12081
export_symbols_cmds_CXX="$ltdll_cmds"
12084
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12087
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12091
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12092
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12093
test "$ld_shlibs_CXX" = no && can_build_shared=no
12096
# Do we need to explicitly link libc?
12098
case "x$archive_cmds_need_lc_CXX" in
12100
# Assume -lc should be added
12101
archive_cmds_need_lc_CXX=yes
12103
if test "$enable_shared" = yes && test "$GCC" = yes; then
12104
case $archive_cmds_CXX in
12106
# FIXME: we may have to deal with multi-command sequences.
12109
# Test whether the compiler implicitly links with -lc since on some
12110
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12111
# to ld, don't add -lc before -lgcc.
12112
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12113
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12115
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12117
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118
(eval $ac_compile) 2>&5
12120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121
(exit $ac_status); } 2>conftest.err; then
12124
libobjs=conftest.$ac_objext
12126
wl=$lt_prog_compiler_wl_CXX
12127
pic_flag=$lt_prog_compiler_pic_CXX
12133
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12134
allow_undefined_flag_CXX=
12135
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12136
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139
(exit $ac_status); }
12141
archive_cmds_need_lc_CXX=no
12143
archive_cmds_need_lc_CXX=yes
12145
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12147
cat conftest.err 1>&5
12150
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12151
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12158
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12159
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12160
library_names_spec=
12161
libname_spec='lib$name'
12165
postuninstall_cmds=
12169
shlibpath_overrides_runpath=unknown
12171
dynamic_linker="$host_os ld.so"
12172
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12173
if test "$GCC" = yes; then
12174
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12175
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12176
# if the path contains ";" then we assume it to be the separator
12177
# otherwise default to the standard path separator (i.e. ":") - it is
12178
# assumed that no part of a normal pathname contains ";" but that should
12179
# okay in the real world where ";" in dirpaths is itself problematic.
12180
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12182
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12185
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12187
need_lib_prefix=unknown
12188
hardcode_into_libs=no
12190
# when you set need_version to no, make sure it does not cause -set_version
12191
# flags to be left without arguments
12192
need_version=unknown
12197
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12198
shlibpath_var=LIBPATH
12200
# AIX 3 has no versioning support, so we append a major version to the name.
12201
soname_spec='${libname}${release}${shared_ext}$major'
12208
hardcode_into_libs=yes
12209
if test "$host_cpu" = ia64; then
12210
# AIX 5 supports IA64
12211
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12212
shlibpath_var=LD_LIBRARY_PATH
12214
# With GCC up to 2.95.x, collect2 would create an import file
12215
# for dependence libraries. The import file would start with
12216
# the line `#! .'. This would cause the generated library to
12217
# depend on `.', always an invalid library. This was fixed in
12218
# development snapshots of GCC prior to 3.0.
12220
aix4 | aix4.[01] | aix4.[01].*)
12221
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12223
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12226
can_build_shared=no
12230
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12231
# soname into executable. Probably we can add versioning support to
12232
# collect2, so additional links can be useful in future.
12233
if test "$aix_use_runtimelinking" = yes; then
12234
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12235
# instead of lib<name>.a to let people know that these are not
12236
# typical AIX shared libraries.
12237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239
# We preserve .a as extension for shared libraries through AIX4.2
12240
# and later when we are not doing run time linking.
12241
library_names_spec='${libname}${release}.a $libname.a'
12242
soname_spec='${libname}${release}${shared_ext}$major'
12244
shlibpath_var=LIBPATH
12249
library_names_spec='$libname.ixlibrary $libname.a'
12250
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12251
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'
12255
library_names_spec='${libname}${shared_ext}'
12256
dynamic_linker="$host_os ld.so"
12257
shlibpath_var=LIBRARY_PATH
12263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264
soname_spec='${libname}${release}${shared_ext}$major'
12265
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12266
shlibpath_var=LD_LIBRARY_PATH
12267
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12268
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12269
# the default ld.so.conf also contains /usr/contrib/lib and
12270
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12271
# libtool to hard-code these into programs
12274
cygwin* | mingw* | pw32*)
12275
version_type=windows
12280
case $GCC,$host_os in
12281
yes,cygwin* | yes,mingw* | yes,pw32*)
12282
library_names_spec='$libname.dll.a'
12283
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12284
postinstall_cmds='base_file=`basename \${file}`~
12285
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12286
dldir=$destdir/`dirname \$dlpath`~
12287
test -d \$dldir || mkdir -p \$dldir~
12288
$install_prog $dir/$dlname \$dldir/$dlname~
12289
chmod a+x \$dldir/$dlname'
12290
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12291
dlpath=$dir/\$dldll~
12293
shlibpath_overrides_runpath=yes
12297
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12298
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12299
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12302
# MinGW DLLs use traditional 'lib' prefix
12303
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12304
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12305
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12306
# It is most probably a Windows format PATH printed by
12307
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12308
# path with ; separators, and with drive letters. We can handle the
12309
# drive letters (cygwin fileutils understands them), so leave them,
12310
# especially as we might pass files found there to a mingw objdump,
12311
# which wouldn't understand a cygwinified path. Ahh.
12312
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12314
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12318
# pw32 DLLs use 'pw' prefix rather than 'lib'
12319
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12325
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12328
dynamic_linker='Win32 ld.exe'
12329
# FIXME: first we should search . and the directory the executable is in
12333
darwin* | rhapsody*)
12334
dynamic_linker="$host_os dyld"
12335
version_type=darwin
12338
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12339
soname_spec='${libname}${release}${major}$shared_ext'
12340
shlibpath_overrides_runpath=yes
12341
shlibpath_var=DYLD_LIBRARY_PATH
12342
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12343
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12344
if test "$GCC" = yes; then
12345
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"`
12347
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12349
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12357
soname_spec='${libname}${release}${shared_ext}$major'
12358
shlibpath_var=LD_LIBRARY_PATH
12369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12370
soname_spec='${libname}${release}${shared_ext}$major'
12371
shlibpath_var=LD_LIBRARY_PATH
12372
shlibpath_overrides_runpath=no
12373
hardcode_into_libs=yes
12374
dynamic_linker='GNU ld.so'
12377
freebsd* | dragonfly*)
12378
# DragonFly does not have aout. When/if they implement a new
12379
# versioning mechanism, adjust this.
12380
if test -x /usr/bin/objformat; then
12381
objformat=`/usr/bin/objformat`
12384
freebsd[123]*) objformat=aout ;;
12385
*) objformat=elf ;;
12388
version_type=freebsd-$objformat
12389
case $version_type in
12391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12396
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12400
shlibpath_var=LD_LIBRARY_PATH
12403
shlibpath_overrides_runpath=yes
12405
freebsd3.[01]* | freebsdelf3.[01]*)
12406
shlibpath_overrides_runpath=yes
12407
hardcode_into_libs=yes
12409
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12410
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12411
shlibpath_overrides_runpath=no
12412
hardcode_into_libs=yes
12414
freebsd*) # from 4.6 on
12415
shlibpath_overrides_runpath=yes
12416
hardcode_into_libs=yes
12425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12426
soname_spec='${libname}${release}${shared_ext}$major'
12427
shlibpath_var=LD_LIBRARY_PATH
12428
hardcode_into_libs=yes
12431
hpux9* | hpux10* | hpux11*)
12432
# Give a soname corresponding to the major version so that dld.sl refuses to
12433
# link against other versions.
12440
hardcode_into_libs=yes
12441
dynamic_linker="$host_os dld.so"
12442
shlibpath_var=LD_LIBRARY_PATH
12443
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445
soname_spec='${libname}${release}${shared_ext}$major'
12446
if test "X$HPUX_IA64_MODE" = X32; then
12447
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12449
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12451
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12455
hardcode_into_libs=yes
12456
dynamic_linker="$host_os dld.sl"
12457
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12458
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460
soname_spec='${libname}${release}${shared_ext}$major'
12461
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12462
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12466
dynamic_linker="$host_os dld.sl"
12467
shlibpath_var=SHLIB_PATH
12468
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12469
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12470
soname_spec='${libname}${release}${shared_ext}$major'
12473
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12474
postinstall_cmds='chmod 555 $lib'
12481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12482
soname_spec='${libname}${release}${shared_ext}$major'
12483
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12484
shlibpath_var=LD_LIBRARY_PATH
12485
shlibpath_overrides_runpath=no
12486
hardcode_into_libs=yes
12489
irix5* | irix6* | nonstopux*)
12491
nonstopux*) version_type=nonstopux ;;
12493
if test "$lt_cv_prog_gnu_ld" = yes; then
12501
soname_spec='${libname}${release}${shared_ext}$major'
12502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12504
irix5* | nonstopux*)
12505
libsuff= shlibsuff=
12508
case $LD in # libtool.m4 will add one of these switches to LD
12509
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12510
libsuff= shlibsuff= libmagic=32-bit;;
12511
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12512
libsuff=32 shlibsuff=N32 libmagic=N32;;
12513
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12514
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12515
*) libsuff= shlibsuff= libmagic=never-match;;
12519
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12520
shlibpath_overrides_runpath=no
12521
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12522
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12523
hardcode_into_libs=yes
12526
# No shared lib support for Linux oldld, aout, or coff.
12527
linux*oldld* | linux*aout* | linux*coff*)
12531
# This must be Linux ELF.
12536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537
soname_spec='${libname}${release}${shared_ext}$major'
12538
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12539
shlibpath_var=LD_LIBRARY_PATH
12540
shlibpath_overrides_runpath=no
12541
# This implies no fast_install, which is unacceptable.
12542
# Some rework will be needed to allow for fast_install
12543
# before this can be enabled.
12544
hardcode_into_libs=yes
12546
# Append ld.so.conf contents to the search path
12547
if test -f /etc/ld.so.conf; then
12548
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12549
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12552
# We used to test for /lib/ld.so.1 and disable shared libraries on
12553
# powerpc, because MkLinux only supported shared libraries with the
12554
# GNU dynamic linker. Since this was broken with cross compilers,
12555
# most powerpc-linux boxes support dynamic linking these days and
12556
# people can always --disable-shared, the test was removed, and we
12557
# assume the GNU/Linux dynamic linker is in use.
12558
dynamic_linker='GNU/Linux ld.so'
12565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12566
soname_spec='${libname}${release}${shared_ext}$major'
12567
shlibpath_var=LD_LIBRARY_PATH
12568
shlibpath_overrides_runpath=no
12569
hardcode_into_libs=yes
12570
dynamic_linker='GNU ld.so'
12577
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12579
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12580
dynamic_linker='NetBSD (a.out) ld.so'
12582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12583
soname_spec='${libname}${release}${shared_ext}$major'
12584
dynamic_linker='NetBSD ld.elf_so'
12586
shlibpath_var=LD_LIBRARY_PATH
12587
shlibpath_overrides_runpath=yes
12588
hardcode_into_libs=yes
12593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12594
shlibpath_var=LD_LIBRARY_PATH
12595
shlibpath_overrides_runpath=yes
12602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12603
soname_spec='${libname}${release}${shared_ext}$major'
12604
shlibpath_var=LD_LIBRARY_PATH
12605
shlibpath_overrides_runpath=yes
12610
sys_lib_dlsearch_path_spec="/usr/lib"
12612
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12614
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12615
*) need_version=no ;;
12617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12618
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12619
shlibpath_var=LD_LIBRARY_PATH
12620
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12622
openbsd2.[89] | openbsd2.[89].*)
12623
shlibpath_overrides_runpath=no
12626
shlibpath_overrides_runpath=yes
12630
shlibpath_overrides_runpath=yes
12635
libname_spec='$name'
12638
library_names_spec='$libname${shared_ext} $libname.a'
12639
dynamic_linker='OS/2 ld.exe'
12640
shlibpath_var=LIBPATH
12643
osf3* | osf4* | osf5*)
12647
soname_spec='${libname}${release}${shared_ext}$major'
12648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12649
shlibpath_var=LD_LIBRARY_PATH
12650
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12651
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12659
soname_spec='${libname}${release}${shared_ext}$major'
12660
shlibpath_var=LD_LIBRARY_PATH
12661
shlibpath_overrides_runpath=yes
12662
hardcode_into_libs=yes
12663
# ldd complains unless libraries are executable
12664
postinstall_cmds='chmod +x $lib'
12669
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12670
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12671
shlibpath_var=LD_LIBRARY_PATH
12672
shlibpath_overrides_runpath=yes
12673
if test "$with_gnu_ld" = yes; then
12681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682
soname_spec='${libname}${release}${shared_ext}$major'
12683
shlibpath_var=LD_LIBRARY_PATH
12684
case $host_vendor in
12686
shlibpath_overrides_runpath=no
12688
export_dynamic_flag_spec='${wl}-Blargedynsym'
12689
runpath_var=LD_RUN_PATH
12697
shlibpath_overrides_runpath=no
12698
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12704
if test -d /usr/nec ;then
12706
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12707
soname_spec='$libname${shared_ext}.$major'
12708
shlibpath_var=LD_LIBRARY_PATH
12712
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12713
version_type=freebsd-elf
12716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12717
soname_spec='${libname}${release}${shared_ext}$major'
12718
shlibpath_var=LD_LIBRARY_PATH
12719
hardcode_into_libs=yes
12720
if test "$with_gnu_ld" = yes; then
12721
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12722
shlibpath_overrides_runpath=no
12724
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12725
shlibpath_overrides_runpath=yes
12728
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12732
sys_lib_dlsearch_path_spec='/usr/lib'
12737
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738
soname_spec='${libname}${release}${shared_ext}$major'
12739
shlibpath_var=LD_LIBRARY_PATH
12746
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12747
echo "${ECHO_T}$dynamic_linker" >&6
12748
test "$dynamic_linker" = no && can_build_shared=no
12750
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12751
if test "$GCC" = yes; then
12752
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12755
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12756
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12757
hardcode_action_CXX=
12758
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12759
test -n "$runpath_var_CXX" || \
12760
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12762
# We can hardcode non-existant directories.
12763
if test "$hardcode_direct_CXX" != no &&
12764
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12765
# have to relink, otherwise we might link with an installed library
12766
# when we should be linking with a yet-to-be-installed one
12767
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12768
test "$hardcode_minus_L_CXX" != no; then
12769
# Linking always hardcodes the temporary library directory.
12770
hardcode_action_CXX=relink
12772
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12773
hardcode_action_CXX=immediate
12776
# We cannot hardcode anything, or else we can only hardcode existing
12778
hardcode_action_CXX=unsupported
12780
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12781
echo "${ECHO_T}$hardcode_action_CXX" >&6
12783
if test "$hardcode_action_CXX" = relink; then
12784
# Fast installation is not supported
12785
enable_fast_install=no
12786
elif test "$shlibpath_overrides_runpath" = yes ||
12787
test "$enable_shared" = no; then
12788
# Fast installation is not necessary
12789
enable_fast_install=needless
12793
# The else clause should only fire when bootstrapping the
12794
# libtool distribution, otherwise you forgot to ship ltmain.sh
12795
# with your package, and you will get complaints that there are
12796
# no rules to generate ltmain.sh.
12797
if test -f "$ltmain"; then
12798
# See if we are running on zsh, and set the options which allow our commands through
12799
# without removal of \ escapes.
12800
if test -n "${ZSH_VERSION+set}" ; then
12801
setopt NO_GLOB_SUBST
12803
# Now quote all the things that may contain metacharacters while being
12804
# careful not to overquote the AC_SUBSTed values. We take copies of the
12805
# variables and quote the copies for generation of the libtool script.
12806
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12808
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12809
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12810
deplibs_check_method reload_flag reload_cmds need_locks \
12811
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12812
lt_cv_sys_global_symbol_to_c_name_address \
12813
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12814
old_postinstall_cmds old_postuninstall_cmds \
12818
lt_prog_compiler_wl_CXX \
12819
lt_prog_compiler_pic_CXX \
12820
lt_prog_compiler_static_CXX \
12821
lt_prog_compiler_no_builtin_flag_CXX \
12822
export_dynamic_flag_spec_CXX \
12823
thread_safe_flag_spec_CXX \
12824
whole_archive_flag_spec_CXX \
12825
enable_shared_with_static_runtimes_CXX \
12826
old_archive_cmds_CXX \
12827
old_archive_from_new_cmds_CXX \
12828
predep_objects_CXX \
12829
postdep_objects_CXX \
12832
compiler_lib_search_path_CXX \
12834
archive_expsym_cmds_CXX \
12835
postinstall_cmds_CXX \
12836
postuninstall_cmds_CXX \
12837
old_archive_from_expsyms_cmds_CXX \
12838
allow_undefined_flag_CXX \
12839
no_undefined_flag_CXX \
12840
export_symbols_cmds_CXX \
12841
hardcode_libdir_flag_spec_CXX \
12842
hardcode_libdir_flag_spec_ld_CXX \
12843
hardcode_libdir_separator_CXX \
12844
hardcode_automatic_CXX \
12846
module_expsym_cmds_CXX \
12847
lt_cv_prog_compiler_c_o_CXX \
12848
exclude_expsyms_CXX \
12849
include_expsyms_CXX; do
12852
old_archive_cmds_CXX | \
12853
old_archive_from_new_cmds_CXX | \
12854
archive_cmds_CXX | \
12855
archive_expsym_cmds_CXX | \
12856
module_cmds_CXX | \
12857
module_expsym_cmds_CXX | \
12858
old_archive_from_expsyms_cmds_CXX | \
12859
export_symbols_cmds_CXX | \
12860
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12861
postinstall_cmds | postuninstall_cmds | \
12862
old_postinstall_cmds | old_postuninstall_cmds | \
12863
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12864
# Double-quote double-evaled strings.
12865
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12868
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12874
*'\$0 --fallback-echo"')
12875
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12881
cat <<__EOF__ >> "$cfgfile"
12882
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12884
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12886
# Shell to use when invoking shell scripts.
12889
# Whether or not to build shared libraries.
12890
build_libtool_libs=$enable_shared
12892
# Whether or not to build static libraries.
12893
build_old_libs=$enable_static
12895
# Whether or not to add -lc for building shared libraries.
12896
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12898
# Whether or not to disallow shared libs when runtime libs are static
12899
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12901
# Whether or not to optimize for fast installation.
12902
fast_install=$enable_fast_install
12905
host_alias=$host_alias
12909
# The build system.
12910
build_alias=$build_alias
12914
# An echo program that does not interpret backslashes.
12919
AR_FLAGS=$lt_AR_FLAGS
12924
# LTCC compiler flags.
12925
LTCFLAGS=$lt_LTCFLAGS
12927
# A language-specific compiler.
12928
CC=$lt_compiler_CXX
12930
# Is the compiler the GNU C compiler?
12936
# The linker used to build libraries.
12939
# Whether we need hard or soft links.
12942
# A BSD-compatible nm program.
12945
# A symbol stripping program
12948
# Used to examine libraries when file_magic_cmd begins "file"
12949
MAGIC_CMD=$MAGIC_CMD
12951
# Used on cygwin: DLL creation program.
12954
# Used on cygwin: object dumper.
12957
# Used on cygwin: assembler.
12960
# The name of the directory that contains temporary libtool files.
12963
# How to create reloadable object files.
12964
reload_flag=$lt_reload_flag
12965
reload_cmds=$lt_reload_cmds
12967
# How to pass a linker flag through the compiler.
12968
wl=$lt_lt_prog_compiler_wl_CXX
12970
# Object file suffix (normally "o").
12971
objext="$ac_objext"
12973
# Old archive suffix (normally "a").
12976
# Shared library suffix (normally ".so").
12977
shrext_cmds='$shrext_cmds'
12979
# Executable file suffix (normally "").
12982
# Additional compiler flags for building library objects.
12983
pic_flag=$lt_lt_prog_compiler_pic_CXX
12986
# What is the maximum length of a command?
12987
max_cmd_len=$lt_cv_sys_max_cmd_len
12989
# Does compiler simultaneously support -c and -o options?
12990
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12992
# Must we lock files when doing compilation?
12993
need_locks=$lt_need_locks
12995
# Do we need the lib prefix for modules?
12996
need_lib_prefix=$need_lib_prefix
12998
# Do we need a version for libraries?
12999
need_version=$need_version
13001
# Whether dlopen is supported.
13002
dlopen_support=$enable_dlopen
13004
# Whether dlopen of programs is supported.
13005
dlopen_self=$enable_dlopen_self
13007
# Whether dlopen of statically linked programs is supported.
13008
dlopen_self_static=$enable_dlopen_self_static
13010
# Compiler flag to prevent dynamic linking.
13011
link_static_flag=$lt_lt_prog_compiler_static_CXX
13013
# Compiler flag to turn off builtin functions.
13014
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13016
# Compiler flag to allow reflexive dlopens.
13017
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13019
# Compiler flag to generate shared objects directly from archives.
13020
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13022
# Compiler flag to generate thread-safe objects.
13023
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13025
# Library versioning type.
13026
version_type=$version_type
13028
# Format of library name prefix.
13029
libname_spec=$lt_libname_spec
13031
# List of archive names. First name is the real one, the rest are links.
13032
# The last name is the one that the linker finds with -lNAME.
13033
library_names_spec=$lt_library_names_spec
13035
# The coded name of the library, if different from the real name.
13036
soname_spec=$lt_soname_spec
13038
# Commands used to build and install an old-style archive.
13040
old_archive_cmds=$lt_old_archive_cmds_CXX
13041
old_postinstall_cmds=$lt_old_postinstall_cmds
13042
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13044
# Create an old-style archive from a shared archive.
13045
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13047
# Create a temporary old-style archive to link instead of a shared archive.
13048
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13050
# Commands used to build and install a shared archive.
13051
archive_cmds=$lt_archive_cmds_CXX
13052
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13053
postinstall_cmds=$lt_postinstall_cmds
13054
postuninstall_cmds=$lt_postuninstall_cmds
13056
# Commands used to build a loadable module (assumed same as above if empty)
13057
module_cmds=$lt_module_cmds_CXX
13058
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13060
# Commands to strip libraries.
13061
old_striplib=$lt_old_striplib
13062
striplib=$lt_striplib
13064
# Dependencies to place before the objects being linked to create a
13066
predep_objects=$lt_predep_objects_CXX
13068
# Dependencies to place after the objects being linked to create a
13070
postdep_objects=$lt_postdep_objects_CXX
13072
# Dependencies to place before the objects being linked to create a
13074
predeps=$lt_predeps_CXX
13076
# Dependencies to place after the objects being linked to create a
13078
postdeps=$lt_postdeps_CXX
13080
# The library search path used internally by the compiler when linking
13081
# a shared library.
13082
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13084
# Method to check whether dependent libraries are shared objects.
13085
deplibs_check_method=$lt_deplibs_check_method
13087
# Command to use when deplibs_check_method == file_magic.
13088
file_magic_cmd=$lt_file_magic_cmd
13090
# Flag that allows shared libraries with undefined symbols to be built.
13091
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13093
# Flag that forces no undefined symbols.
13094
no_undefined_flag=$lt_no_undefined_flag_CXX
13096
# Commands used to finish a libtool library installation in a directory.
13097
finish_cmds=$lt_finish_cmds
13099
# Same as above, but a single script fragment to be evaled but not shown.
13100
finish_eval=$lt_finish_eval
13102
# Take the output of nm and produce a listing of raw symbols and C names.
13103
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13105
# Transform the output of nm in a proper C declaration
13106
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13108
# Transform the output of nm in a C name address pair
13109
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13111
# This is the shared library runtime path variable.
13112
runpath_var=$runpath_var
13114
# This is the shared library path variable.
13115
shlibpath_var=$shlibpath_var
13117
# Is shlibpath searched before the hard-coded library search path?
13118
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13120
# How to hardcode a shared library path into an executable.
13121
hardcode_action=$hardcode_action_CXX
13123
# Whether we should hardcode library paths into libraries.
13124
hardcode_into_libs=$hardcode_into_libs
13126
# Flag to hardcode \$libdir into a binary during linking.
13127
# This must work even if \$libdir does not exist.
13128
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13130
# If ld is used when linking, flag to hardcode \$libdir into
13131
# a binary during linking. This must work even if \$libdir does
13133
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13135
# Whether we need a single -rpath flag with a separated argument.
13136
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13138
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13139
# resulting binary.
13140
hardcode_direct=$hardcode_direct_CXX
13142
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13143
# resulting binary.
13144
hardcode_minus_L=$hardcode_minus_L_CXX
13146
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13147
# the resulting binary.
13148
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13150
# Set to yes if building a shared library automatically hardcodes DIR into the library
13151
# and all subsequent libraries and executables linked against it.
13152
hardcode_automatic=$hardcode_automatic_CXX
13154
# Variables whose values should be saved in libtool wrapper scripts and
13155
# restored at relink time.
13156
variables_saved_for_relink="$variables_saved_for_relink"
13158
# Whether libtool must link a program against all its dependency libraries.
13159
link_all_deplibs=$link_all_deplibs_CXX
13161
# Compile-time system search path for libraries
13162
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13164
# Run-time system search path for libraries
13165
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13167
# Fix the shell variable \$srcfile for the compiler.
13168
fix_srcfile_path="$fix_srcfile_path_CXX"
13170
# Set to yes if exported symbols are required.
13171
always_export_symbols=$always_export_symbols_CXX
13173
# The commands to list exported symbols.
13174
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13176
# The commands to extract the exported symbol list from a shared archive.
13177
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13179
# Symbols that should not be listed in the preloaded symbols.
13180
exclude_expsyms=$lt_exclude_expsyms_CXX
13182
# Symbols that must always be exported.
13183
include_expsyms=$lt_include_expsyms_CXX
13185
# ### END LIBTOOL TAG CONFIG: $tagname
13191
# If there is no Makefile yet, we rely on a make rule to execute
13192
# `config.status --recheck' to rerun these tests and create the
13193
# libtool script then.
13194
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13195
if test -f "$ltmain_in"; then
13196
test -f Makefile && make "$ltmain"
13202
ac_cpp='$CPP $CPPFLAGS'
13203
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13204
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13205
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13211
with_gnu_ldcxx=$with_gnu_ld
13212
with_gnu_ld=$lt_save_with_gnu_ld
13213
lt_cv_path_LDCXX=$lt_cv_path_LD
13214
lt_cv_path_LD=$lt_save_path_LD
13215
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13216
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13224
if test -n "$F77" && test "X$F77" != "Xno"; then
13227
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13228
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13232
archive_cmds_need_lc_F77=no
13233
allow_undefined_flag_F77=
13234
always_export_symbols_F77=no
13235
archive_expsym_cmds_F77=
13236
export_dynamic_flag_spec_F77=
13237
hardcode_direct_F77=no
13238
hardcode_libdir_flag_spec_F77=
13239
hardcode_libdir_flag_spec_ld_F77=
13240
hardcode_libdir_separator_F77=
13241
hardcode_minus_L_F77=no
13242
hardcode_automatic_F77=no
13244
module_expsym_cmds_F77=
13245
link_all_deplibs_F77=unknown
13246
old_archive_cmds_F77=$old_archive_cmds
13247
no_undefined_flag_F77=
13248
whole_archive_flag_spec_F77=
13249
enable_shared_with_static_runtimes_F77=no
13251
# Source file extension for f77 test sources.
13254
# Object file extension for compiled f77 test sources.
13258
# Code to be used in simple compile tests
13259
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13261
# Code to be used in simple link tests
13262
lt_simple_link_test_code=" program t\n end\n"
13264
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13266
# If no C compiler was specified, use CC.
13269
# If no C compiler flags were specified, use CFLAGS.
13270
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13272
# Allow CC to be a program name with arguments.
13276
# save warnings/boilerplate of simple test code
13277
ac_outfile=conftest.$ac_objext
13278
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13279
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13280
_lt_compiler_boilerplate=`cat conftest.err`
13283
ac_outfile=conftest.$ac_objext
13284
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13285
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13286
_lt_linker_boilerplate=`cat conftest.err`
13290
# Allow CC to be a program name with arguments.
13295
for cc_temp in $compiler""; do
13297
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13298
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13303
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13306
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13307
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13308
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13309
echo "${ECHO_T}$can_build_shared" >&6
13311
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13312
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13313
test "$can_build_shared" = "no" && enable_shared=no
13315
# On AIX, shared libraries and static libraries use the same namespace, and
13316
# are all built from PIC.
13319
test "$enable_shared" = yes && enable_static=no
13320
if test -n "$RANLIB"; then
13321
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13322
postinstall_cmds='$RANLIB $lib'
13326
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13327
test "$enable_shared" = yes && enable_static=no
13331
echo "$as_me:$LINENO: result: $enable_shared" >&5
13332
echo "${ECHO_T}$enable_shared" >&6
13334
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13335
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13336
# Make sure either enable_shared or enable_static is yes.
13337
test "$enable_shared" = yes || enable_static=yes
13338
echo "$as_me:$LINENO: result: $enable_static" >&5
13339
echo "${ECHO_T}$enable_static" >&6
13344
lt_prog_compiler_wl_F77=
13345
lt_prog_compiler_pic_F77=
13346
lt_prog_compiler_static_F77=
13348
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13349
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13351
if test "$GCC" = yes; then
13352
lt_prog_compiler_wl_F77='-Wl,'
13353
lt_prog_compiler_static_F77='-static'
13357
# All AIX code is PIC.
13358
if test "$host_cpu" = ia64; then
13359
# AIX 5 now supports IA64 processor
13360
lt_prog_compiler_static_F77='-Bstatic'
13365
# FIXME: we need at least 68020 code to build shared libraries, but
13366
# adding the `-m68020' flag to GCC prevents building anything better,
13368
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13371
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13372
# PIC is the default for these OSes.
13375
mingw* | pw32* | os2*)
13376
# This hack is so that the source file can tell whether it is being
13377
# built for inclusion in a dll (and should export symbols for example).
13378
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13381
darwin* | rhapsody*)
13382
# PIC is the default on this platform
13383
# Common symbols not allowed in MH_DYLIB files
13384
lt_prog_compiler_pic_F77='-fno-common'
13388
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13389
# Instead, we relocate shared libraries at runtime.
13393
# Just because we use GCC doesn't mean we suddenly get shared libraries
13394
# on systems that don't support them.
13395
lt_prog_compiler_can_build_shared_F77=no
13400
if test -d /usr/nec; then
13401
lt_prog_compiler_pic_F77=-Kconform_pic
13406
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13407
# not for PA HP-UX.
13413
lt_prog_compiler_pic_F77='-fPIC'
13419
lt_prog_compiler_pic_F77='-fPIC'
13423
# PORTME Check for flag to pass linker flags through the system compiler.
13426
lt_prog_compiler_wl_F77='-Wl,'
13427
if test "$host_cpu" = ia64; then
13428
# AIX 5 now supports IA64 processor
13429
lt_prog_compiler_static_F77='-Bstatic'
13431
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13435
# PIC is the default on this platform
13436
# Common symbols not allowed in MH_DYLIB files
13437
case $cc_basename in
13439
lt_prog_compiler_pic_F77='-qnocommon'
13440
lt_prog_compiler_wl_F77='-Wl,'
13445
mingw* | pw32* | os2*)
13446
# This hack is so that the source file can tell whether it is being
13447
# built for inclusion in a dll (and should export symbols for example).
13448
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13451
hpux9* | hpux10* | hpux11*)
13452
lt_prog_compiler_wl_F77='-Wl,'
13453
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13454
# not for PA HP-UX.
13460
lt_prog_compiler_pic_F77='+Z'
13463
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13464
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13467
irix5* | irix6* | nonstopux*)
13468
lt_prog_compiler_wl_F77='-Wl,'
13469
# PIC (with -KPIC) is the default.
13470
lt_prog_compiler_static_F77='-non_shared'
13474
lt_prog_compiler_pic_F77='-KPIC'
13475
lt_prog_compiler_static_F77='-Bstatic'
13479
case $cc_basename in
13481
lt_prog_compiler_wl_F77='-Wl,'
13482
lt_prog_compiler_pic_F77='-KPIC'
13483
lt_prog_compiler_static_F77='-static'
13485
pgcc* | pgf77* | pgf90* | pgf95*)
13486
# Portland Group compilers (*not* the Pentium gcc compiler,
13487
# which looks to be a dead project)
13488
lt_prog_compiler_wl_F77='-Wl,'
13489
lt_prog_compiler_pic_F77='-fpic'
13490
lt_prog_compiler_static_F77='-Bstatic'
13493
lt_prog_compiler_wl_F77='-Wl,'
13494
# All Alpha code is PIC.
13495
lt_prog_compiler_static_F77='-non_shared'
13500
osf3* | osf4* | osf5*)
13501
lt_prog_compiler_wl_F77='-Wl,'
13502
# All OSF/1 code is PIC.
13503
lt_prog_compiler_static_F77='-non_shared'
13507
lt_prog_compiler_pic_F77='-KPIC'
13508
lt_prog_compiler_static_F77='-Bstatic'
13509
case $cc_basename in
13510
f77* | f90* | f95*)
13511
lt_prog_compiler_wl_F77='-Qoption ld ';;
13513
lt_prog_compiler_wl_F77='-Wl,';;
13518
lt_prog_compiler_wl_F77='-Qoption ld '
13519
lt_prog_compiler_pic_F77='-PIC'
13520
lt_prog_compiler_static_F77='-Bstatic'
13523
sysv4 | sysv4.2uw2* | sysv4.3*)
13524
lt_prog_compiler_wl_F77='-Wl,'
13525
lt_prog_compiler_pic_F77='-KPIC'
13526
lt_prog_compiler_static_F77='-Bstatic'
13530
if test -d /usr/nec ;then
13531
lt_prog_compiler_pic_F77='-Kconform_pic'
13532
lt_prog_compiler_static_F77='-Bstatic'
13536
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13537
lt_prog_compiler_wl_F77='-Wl,'
13538
lt_prog_compiler_pic_F77='-KPIC'
13539
lt_prog_compiler_static_F77='-Bstatic'
13543
lt_prog_compiler_wl_F77='-Wl,'
13544
lt_prog_compiler_can_build_shared_F77=no
13548
lt_prog_compiler_pic_F77='-pic'
13549
lt_prog_compiler_static_F77='-Bstatic'
13553
lt_prog_compiler_can_build_shared_F77=no
13558
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13559
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13562
# Check to make sure the PIC flag actually works.
13564
if test -n "$lt_prog_compiler_pic_F77"; then
13566
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13567
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13568
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13569
echo $ECHO_N "(cached) $ECHO_C" >&6
13571
lt_prog_compiler_pic_works_F77=no
13572
ac_outfile=conftest.$ac_objext
13573
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13574
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13575
# Insert the option either (1) after the last *FLAGS variable, or
13576
# (2) before a word containing "conftest.", or (3) at the end.
13577
# Note that $ac_compile itself does not contain backslashes and begins
13578
# with a dollar sign (not a hyphen), so the echo should work correctly.
13579
# The option is referenced via a variable to avoid confusing sed.
13580
lt_compile=`echo "$ac_compile" | $SED \
13581
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13582
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13583
-e 's:$: $lt_compiler_flag:'`
13584
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13585
(eval "$lt_compile" 2>conftest.err)
13587
cat conftest.err >&5
13588
echo "$as_me:__oline__: \$? = $ac_status" >&5
13589
if (exit $ac_status) && test -s "$ac_outfile"; then
13590
# The compiler can only warn and ignore the option if not recognized
13591
# So say no if there are warnings other than the usual output.
13592
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13593
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13595
lt_prog_compiler_pic_works_F77=yes
13601
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13602
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13604
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13605
case $lt_prog_compiler_pic_F77 in
13607
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13610
lt_prog_compiler_pic_F77=
13611
lt_prog_compiler_can_build_shared_F77=no
13616
# For platforms which do not support PIC, -DPIC is meaningless:
13618
lt_prog_compiler_pic_F77=
13621
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13626
# Check to make sure the static flag actually works.
13628
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13629
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13630
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13631
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13632
echo $ECHO_N "(cached) $ECHO_C" >&6
13634
lt_prog_compiler_static_works_F77=no
13635
save_LDFLAGS="$LDFLAGS"
13636
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13637
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13638
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13639
# The linker can only warn and ignore the option if not recognized
13640
# So say no if there are warnings
13641
if test -s conftest.err; then
13642
# Append any errors to the config.log.
13643
cat conftest.err 1>&5
13644
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13645
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13646
if diff conftest.exp conftest.er2 >/dev/null; then
13647
lt_prog_compiler_static_works_F77=yes
13650
lt_prog_compiler_static_works_F77=yes
13654
LDFLAGS="$save_LDFLAGS"
13657
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13658
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13660
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13663
lt_prog_compiler_static_F77=
13667
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13668
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13669
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13670
echo $ECHO_N "(cached) $ECHO_C" >&6
13672
lt_cv_prog_compiler_c_o_F77=no
13673
$rm -r conftest 2>/dev/null
13677
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13679
lt_compiler_flag="-o out/conftest2.$ac_objext"
13680
# Insert the option either (1) after the last *FLAGS variable, or
13681
# (2) before a word containing "conftest.", or (3) at the end.
13682
# Note that $ac_compile itself does not contain backslashes and begins
13683
# with a dollar sign (not a hyphen), so the echo should work correctly.
13684
lt_compile=`echo "$ac_compile" | $SED \
13685
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13686
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13687
-e 's:$: $lt_compiler_flag:'`
13688
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13689
(eval "$lt_compile" 2>out/conftest.err)
13691
cat out/conftest.err >&5
13692
echo "$as_me:__oline__: \$? = $ac_status" >&5
13693
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13695
# The compiler can only warn and ignore the option if not recognized
13696
# So say no if there are warnings
13697
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13698
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13699
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13700
lt_cv_prog_compiler_c_o_F77=yes
13705
# SGI C++ compiler will create directory out/ii_files/ for
13706
# template instantiation
13707
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13708
$rm out/* && rmdir out
13714
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13715
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13718
hard_links="nottested"
13719
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13720
# do not overwrite the value of need_locks provided by the user
13721
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13722
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13725
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13727
ln conftest.a conftest.b 2>&5 || hard_links=no
13728
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13729
echo "$as_me:$LINENO: result: $hard_links" >&5
13730
echo "${ECHO_T}$hard_links" >&6
13731
if test "$hard_links" = no; then
13732
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13733
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13740
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13741
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13744
allow_undefined_flag_F77=
13745
enable_shared_with_static_runtimes_F77=no
13747
archive_expsym_cmds_F77=
13748
old_archive_From_new_cmds_F77=
13749
old_archive_from_expsyms_cmds_F77=
13750
export_dynamic_flag_spec_F77=
13751
whole_archive_flag_spec_F77=
13752
thread_safe_flag_spec_F77=
13753
hardcode_libdir_flag_spec_F77=
13754
hardcode_libdir_flag_spec_ld_F77=
13755
hardcode_libdir_separator_F77=
13756
hardcode_direct_F77=no
13757
hardcode_minus_L_F77=no
13758
hardcode_shlibpath_var_F77=unsupported
13759
link_all_deplibs_F77=unknown
13760
hardcode_automatic_F77=no
13762
module_expsym_cmds_F77=
13763
always_export_symbols_F77=no
13764
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13765
# include_expsyms should be a list of space-separated symbols to be *always*
13766
# included in the symbol list
13767
include_expsyms_F77=
13768
# exclude_expsyms can be an extended regexp of symbols to exclude
13769
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13770
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13771
# as well as any symbol that contains `d'.
13772
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13773
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13774
# platforms (ab)use it in PIC code, but their linkers get confused if
13775
# the symbol is explicitly referenced. Since portable code cannot
13776
# rely on this symbol name, it's probably fine to never include it in
13777
# preloaded symbol tables.
13778
extract_expsyms_cmds=
13779
# Just being paranoid about ensuring that cc_basename is set.
13780
for cc_temp in $compiler""; do
13782
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13783
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13788
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13791
cygwin* | mingw* | pw32*)
13792
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13793
# When not using gcc, we currently assume that we are using
13794
# Microsoft Visual C++.
13795
if test "$GCC" != yes; then
13800
# we just hope/assume this is gcc and not c89 (= MSVC++)
13809
if test "$with_gnu_ld" = yes; then
13810
# If archive_cmds runs LD, not CC, wlarc should be empty
13813
# Set some defaults for GNU ld with shared library support. These
13814
# are reset later if shared libraries are not supported. Putting them
13815
# here allows them to be overridden if necessary.
13816
runpath_var=LD_RUN_PATH
13817
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13818
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13819
# ancient GNU ld didn't support --whole-archive et. al.
13820
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13821
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13823
whole_archive_flag_spec_F77=
13825
supports_anon_versioning=no
13826
case `$LD -v 2>/dev/null` in
13827
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13828
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13829
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13830
*\ 2.11.*) ;; # other 2.11 versions
13831
*) supports_anon_versioning=yes ;;
13834
# See if GNU ld supports shared libraries.
13836
aix3* | aix4* | aix5*)
13837
# On AIX/PPC, the GNU linker is very broken
13838
if test "$host_cpu" != ia64; then
13842
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13843
*** to be unable to reliably create shared libraries on AIX.
13844
*** Therefore, libtool is disabling shared libraries support. If you
13845
*** really care for shared libraries, you may want to modify your PATH
13846
*** so that a non-GNU linker is found, and then restart.
13853
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)'
13854
hardcode_libdir_flag_spec_F77='-L$libdir'
13855
hardcode_minus_L_F77=yes
13857
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13858
# that the semantics of dynamic libraries on AmigaOS, at least up
13859
# to version 4, is to share data among multiple programs linked
13860
# with the same dynamic library. Since this doesn't match the
13861
# behavior of shared libraries on other platforms, we can't use
13867
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13868
allow_undefined_flag_F77=unsupported
13869
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13870
# support --undefined. This deserves some investigation. FIXME
13871
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13877
cygwin* | mingw* | pw32*)
13878
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13879
# as there is no search path for DLLs.
13880
hardcode_libdir_flag_spec_F77='-L$libdir'
13881
allow_undefined_flag_F77=unsupported
13882
always_export_symbols_F77=no
13883
enable_shared_with_static_runtimes_F77=yes
13884
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13886
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13887
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13888
# If the export-symbols file already is a .def file (1st line
13889
# is EXPORTS), use it as is; otherwise, prepend...
13890
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13891
cp $export_symbols $output_objdir/$soname.def;
13893
echo EXPORTS > $output_objdir/$soname.def;
13894
cat $export_symbols >> $output_objdir/$soname.def;
13896
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13903
hardcode_direct_F77=no
13904
hardcode_shlibpath_var_F77=no
13905
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13906
export_dynamic_flag_spec_F77='${wl}-E'
13907
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13908
# Instead, shared libraries are loaded at an image base (0x10000000 by
13909
# default) and relocated if they conflict, which is a slow very memory
13910
# consuming and fragmenting process. To avoid this, we pick a random,
13911
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13912
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13913
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13914
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13918
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920
case $cc_basename,$host_cpu in
13921
pgcc*) # Portland Group C compiler
13922
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13923
tmp_addflag=' $pic_flag'
13925
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13926
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13927
tmp_addflag=' $pic_flag -Mnomain' ;;
13928
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13929
tmp_addflag=' -i_dynamic' ;;
13930
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13931
tmp_addflag=' -i_dynamic -nofor_main' ;;
13932
ifc* | ifort*) # Intel Fortran compiler
13933
tmp_addflag=' -nofor_main' ;;
13935
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13937
if test $supports_anon_versioning = yes; then
13938
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13939
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13940
$echo "local: *; };" >> $output_objdir/$libname.ver~
13941
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13949
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13950
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13953
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13954
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13959
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13963
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13964
*** create shared libraries on Solaris systems. Therefore, libtool
13965
*** is disabling shared libraries support. We urge you to upgrade GNU
13966
*** binutils to release 2.9.1 or newer. Another option is to modify
13967
*** your PATH or compiler configuration so that the native linker is
13968
*** used, and then restart.
13971
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13972
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13973
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13979
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13980
case `$LD -v 2>&1` in
13981
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13985
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13986
*** reliably create shared libraries on SCO systems. Therefore, libtool
13987
*** is disabling shared libraries support. We urge you to upgrade GNU
13988
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13989
*** your PATH or compiler configuration so that the native linker is
13990
*** used, and then restart.
13995
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13996
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13997
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13998
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14007
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14009
hardcode_direct_F77=yes
14010
hardcode_shlibpath_var_F77=no
14014
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14015
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14016
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14023
if test "$ld_shlibs_F77" = no; then
14025
hardcode_libdir_flag_spec_F77=
14026
export_dynamic_flag_spec_F77=
14027
whole_archive_flag_spec_F77=
14030
# PORTME fill in a description of your system's linker (not GNU ld)
14033
allow_undefined_flag_F77=unsupported
14034
always_export_symbols_F77=yes
14035
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'
14036
# Note: this linker hardcodes the directories in LIBPATH if there
14037
# are no directories specified by -L.
14038
hardcode_minus_L_F77=yes
14039
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14040
# Neither direct hardcoding nor static linking is supported with a
14042
hardcode_direct_F77=unsupported
14047
if test "$host_cpu" = ia64; then
14048
# On IA64, the linker does run time linking by default, so we don't
14049
# have to do anything special.
14050
aix_use_runtimelinking=no
14051
exp_sym_flag='-Bexport'
14054
# If we're using GNU nm, then we don't want the "-C" option.
14055
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14056
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14057
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'
14059
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'
14061
aix_use_runtimelinking=no
14063
# Test if we are trying to use run time linking or normal
14064
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14065
# need to do runtime linking.
14066
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14067
for ld_flag in $LDFLAGS; do
14068
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14069
aix_use_runtimelinking=yes
14076
exp_sym_flag='-bexport'
14077
no_entry_flag='-bnoentry'
14080
# When large executables or shared objects are built, AIX ld can
14081
# have problems creating the table of contents. If linking a library
14082
# or program results in "error TOC overflow" add -mminimal-toc to
14083
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14084
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14086
archive_cmds_F77=''
14087
hardcode_direct_F77=yes
14088
hardcode_libdir_separator_F77=':'
14089
link_all_deplibs_F77=yes
14091
if test "$GCC" = yes; then
14092
case $host_os in aix4.[012]|aix4.[012].*)
14093
# We only want to do this on AIX 4.2 and lower, the check
14094
# below for broken collect2 doesn't work under 4.3+
14095
collect2name=`${CC} -print-prog-name=collect2`
14096
if test -f "$collect2name" && \
14097
strings "$collect2name" | grep resolve_lib_name >/dev/null
14099
# We have reworked collect2
14100
hardcode_direct_F77=yes
14102
# We have old collect2
14103
hardcode_direct_F77=unsupported
14104
# It fails to find uninstalled libraries when the uninstalled
14105
# path is not listed in the libpath. Setting hardcode_minus_L
14106
# to unsupported forces relinking
14107
hardcode_minus_L_F77=yes
14108
hardcode_libdir_flag_spec_F77='-L$libdir'
14109
hardcode_libdir_separator_F77=
14113
shared_flag='-shared'
14114
if test "$aix_use_runtimelinking" = yes; then
14115
shared_flag="$shared_flag "'${wl}-G'
14119
if test "$host_cpu" = ia64; then
14120
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14121
# chokes on -Wl,-G. The following line is correct:
14124
if test "$aix_use_runtimelinking" = yes; then
14125
shared_flag='${wl}-G'
14127
shared_flag='${wl}-bM:SRE'
14132
# It seems that -bexpall does not export symbols beginning with
14133
# underscore (_), so it is better to generate a list of symbols to export.
14134
always_export_symbols_F77=yes
14135
if test "$aix_use_runtimelinking" = yes; then
14136
# Warning - without using the other runtime loading flags (-brtl),
14137
# -berok will link without error, but may produce a broken library.
14138
allow_undefined_flag_F77='-berok'
14139
# Determine the default libpath from the value encoded in an empty executable.
14140
cat >conftest.$ac_ext <<_ACEOF
14145
rm -f conftest.$ac_objext conftest$ac_exeext
14146
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14147
(eval $ac_link) 2>conftest.er1
14149
grep -v '^ *+' conftest.er1 >conftest.err
14151
cat conftest.err >&5
14152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153
(exit $ac_status); } &&
14154
{ ac_try='test -z "$ac_f77_werror_flag"
14155
|| test ! -s conftest.err'
14156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157
(eval $ac_try) 2>&5
14159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160
(exit $ac_status); }; } &&
14161
{ ac_try='test -s conftest$ac_exeext'
14162
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163
(eval $ac_try) 2>&5
14165
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166
(exit $ac_status); }; }; then
14168
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14170
# Check for a 64-bit object if we didn't find anything.
14171
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; }
14174
echo "$as_me: failed program was:" >&5
14175
sed 's/^/| /' conftest.$ac_ext >&5
14178
rm -f conftest.err conftest.$ac_objext \
14179
conftest$ac_exeext conftest.$ac_ext
14180
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14182
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14183
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14185
if test "$host_cpu" = ia64; then
14186
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14187
allow_undefined_flag_F77="-z nodefs"
14188
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14190
# Determine the default libpath from the value encoded in an empty executable.
14191
cat >conftest.$ac_ext <<_ACEOF
14196
rm -f conftest.$ac_objext conftest$ac_exeext
14197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198
(eval $ac_link) 2>conftest.er1
14200
grep -v '^ *+' conftest.er1 >conftest.err
14202
cat conftest.err >&5
14203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204
(exit $ac_status); } &&
14205
{ ac_try='test -z "$ac_f77_werror_flag"
14206
|| test ! -s conftest.err'
14207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208
(eval $ac_try) 2>&5
14210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211
(exit $ac_status); }; } &&
14212
{ ac_try='test -s conftest$ac_exeext'
14213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214
(eval $ac_try) 2>&5
14216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217
(exit $ac_status); }; }; then
14219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14221
# Check for a 64-bit object if we didn't find anything.
14222
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; }
14225
echo "$as_me: failed program was:" >&5
14226
sed 's/^/| /' conftest.$ac_ext >&5
14229
rm -f conftest.err conftest.$ac_objext \
14230
conftest$ac_exeext conftest.$ac_ext
14231
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14233
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14234
# Warning - without using the other run time loading flags,
14235
# -berok will link without error, but may produce a broken library.
14236
no_undefined_flag_F77=' ${wl}-bernotok'
14237
allow_undefined_flag_F77=' ${wl}-berok'
14238
# Exported symbols can be pulled into shared objects from archives
14239
whole_archive_flag_spec_F77='$convenience'
14240
archive_cmds_need_lc_F77=yes
14241
# This is similar to how AIX traditionally builds its shared libraries.
14242
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14248
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)'
14249
hardcode_libdir_flag_spec_F77='-L$libdir'
14250
hardcode_minus_L_F77=yes
14251
# see comment about different semantics on the GNU ld section
14256
export_dynamic_flag_spec_F77=-rdynamic
14259
cygwin* | mingw* | pw32*)
14260
# When not using gcc, we currently assume that we are using
14261
# Microsoft Visual C++.
14262
# hardcode_libdir_flag_spec is actually meaningless, as there is
14263
# no search path for DLLs.
14264
hardcode_libdir_flag_spec_F77=' '
14265
allow_undefined_flag_F77=unsupported
14266
# Tell ltmain to make .lib files, not .a files.
14268
# Tell ltmain to make .dll files, not .so files.
14270
# FIXME: Setting linknames here is a bad hack.
14271
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14272
# The linker will automatically build a .lib file if we build a DLL.
14273
old_archive_From_new_cmds_F77='true'
14274
# FIXME: Should let the user specify the lib program.
14275
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14276
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14277
enable_shared_with_static_runtimes_F77=yes
14280
darwin* | rhapsody*)
14282
rhapsody* | darwin1.[012])
14283
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14286
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14287
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14289
case ${MACOSX_DEPLOYMENT_TARGET} in
14291
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14294
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14300
archive_cmds_need_lc_F77=no
14301
hardcode_direct_F77=no
14302
hardcode_automatic_F77=yes
14303
hardcode_shlibpath_var_F77=unsupported
14304
whole_archive_flag_spec_F77=''
14305
link_all_deplibs_F77=yes
14306
if test "$GCC" = yes ; then
14307
output_verbose_link_cmd='echo'
14308
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14309
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14310
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14311
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14312
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}'
14314
case $cc_basename in
14316
output_verbose_link_cmd='echo'
14317
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14318
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14319
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14320
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14321
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}'
14331
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14332
hardcode_libdir_flag_spec_F77='-L$libdir'
14333
hardcode_shlibpath_var_F77=no
14340
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14341
# support. Future versions do this automatically, but an explicit c++rt0.o
14342
# does not break anything, and helps significantly (at the cost of a little
14345
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14346
hardcode_libdir_flag_spec_F77='-R$libdir'
14347
hardcode_direct_F77=yes
14348
hardcode_shlibpath_var_F77=no
14351
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14353
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14354
hardcode_direct_F77=yes
14355
hardcode_minus_L_F77=yes
14356
hardcode_shlibpath_var_F77=no
14359
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14360
freebsd* | kfreebsd*-gnu | dragonfly*)
14361
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14362
hardcode_libdir_flag_spec_F77='-R$libdir'
14363
hardcode_direct_F77=yes
14364
hardcode_shlibpath_var_F77=no
14368
if test "$GCC" = yes; then
14369
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'
14371
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'
14373
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14374
hardcode_libdir_separator_F77=:
14375
hardcode_direct_F77=yes
14377
# hardcode_minus_L: Not really in the search PATH,
14378
# but as the default location of the library.
14379
hardcode_minus_L_F77=yes
14380
export_dynamic_flag_spec_F77='${wl}-E'
14384
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14385
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14387
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14389
if test "$with_gnu_ld" = no; then
14390
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14391
hardcode_libdir_separator_F77=:
14393
hardcode_direct_F77=yes
14394
export_dynamic_flag_spec_F77='${wl}-E'
14396
# hardcode_minus_L: Not really in the search PATH,
14397
# but as the default location of the library.
14398
hardcode_minus_L_F77=yes
14403
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14406
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14409
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14412
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14418
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14421
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14424
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14428
if test "$with_gnu_ld" = no; then
14429
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14430
hardcode_libdir_separator_F77=:
14434
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14435
hardcode_direct_F77=no
14436
hardcode_shlibpath_var_F77=no
14439
hardcode_direct_F77=yes
14440
export_dynamic_flag_spec_F77='${wl}-E'
14442
# hardcode_minus_L: Not really in the search PATH,
14443
# but as the default location of the library.
14444
hardcode_minus_L_F77=yes
14450
irix5* | irix6* | nonstopux*)
14451
if test "$GCC" = yes; then
14452
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'
14454
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'
14455
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14457
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14458
hardcode_libdir_separator_F77=:
14459
link_all_deplibs_F77=yes
14463
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14464
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14466
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14468
hardcode_libdir_flag_spec_F77='-R$libdir'
14469
hardcode_direct_F77=yes
14470
hardcode_shlibpath_var_F77=no
14474
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14475
hardcode_direct_F77=yes
14476
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14477
hardcode_libdir_separator_F77=:
14478
hardcode_shlibpath_var_F77=no
14482
hardcode_direct_F77=yes
14483
hardcode_shlibpath_var_F77=no
14484
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14485
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14486
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14487
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14488
export_dynamic_flag_spec_F77='${wl}-E'
14491
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14492
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14493
hardcode_libdir_flag_spec_F77='-R$libdir'
14496
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14497
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14504
hardcode_libdir_flag_spec_F77='-L$libdir'
14505
hardcode_minus_L_F77=yes
14506
allow_undefined_flag_F77=unsupported
14507
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'
14508
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14512
if test "$GCC" = yes; then
14513
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14514
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'
14516
allow_undefined_flag_F77=' -expect_unresolved \*'
14517
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'
14519
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14520
hardcode_libdir_separator_F77=:
14523
osf4* | osf5*) # as osf3* with the addition of -msym flag
14524
if test "$GCC" = yes; then
14525
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14526
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'
14527
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14529
allow_undefined_flag_F77=' -expect_unresolved \*'
14530
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'
14531
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~
14532
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14534
# Both c and cxx compiler support -rpath directly
14535
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14537
hardcode_libdir_separator_F77=:
14541
no_undefined_flag_F77=' -z text'
14542
if test "$GCC" = yes; then
14544
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14545
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14546
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14549
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14550
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14551
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14553
hardcode_libdir_flag_spec_F77='-R$libdir'
14554
hardcode_shlibpath_var_F77=no
14556
solaris2.[0-5] | solaris2.[0-5].*) ;;
14558
# The compiler driver will combine linker options so we
14559
# cannot just pass the convience library names through
14560
# without $wl, iff we do not link with $LD.
14561
# Luckily, gcc supports the same syntax we need for Sun Studio.
14562
# Supported since Solaris 2.6 (maybe 2.5.1?)
14565
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14567
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14570
link_all_deplibs_F77=yes
14574
if test "x$host_vendor" = xsequent; then
14575
# Use $CC to link under sequent, because it throws in some extra .o
14576
# files that make .init and .fini sections work.
14577
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14579
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14581
hardcode_libdir_flag_spec_F77='-L$libdir'
14582
hardcode_direct_F77=yes
14583
hardcode_minus_L_F77=yes
14584
hardcode_shlibpath_var_F77=no
14588
case $host_vendor in
14590
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14591
hardcode_direct_F77=yes # is this really true???
14594
## LD is ld it makes a PLAMLIB
14595
## CC just makes a GrossModule.
14596
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14597
reload_cmds_F77='$CC -r -o $output$reload_objs'
14598
hardcode_direct_F77=no
14601
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14605
runpath_var='LD_RUN_PATH'
14606
hardcode_shlibpath_var_F77=no
14610
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14611
hardcode_shlibpath_var_F77=no
14612
export_dynamic_flag_spec_F77='-Bexport'
14616
if test -d /usr/nec; then
14617
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618
hardcode_shlibpath_var_F77=no
14619
runpath_var=LD_RUN_PATH
14620
hardcode_runpath_var=yes
14625
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14626
no_undefined_flag_F77='${wl}-z,text'
14627
archive_cmds_need_lc_F77=no
14628
hardcode_shlibpath_var_F77=no
14629
runpath_var='LD_RUN_PATH'
14631
if test "$GCC" = yes; then
14632
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14633
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14635
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14636
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14640
sysv5* | sco3.2v5* | sco5v6*)
14641
# Note: We can NOT use -z defs as we might desire, because we do not
14642
# link with -lc, and that would cause any symbols used from libc to
14643
# always be unresolved, which means just about no library would
14644
# ever link correctly. If we're not using GNU ld we use -z text
14645
# though, which does catch some bad symbols but isn't as heavy-handed
14647
no_undefined_flag_F77='${wl}-z,text'
14648
allow_undefined_flag_F77='${wl}-z,nodefs'
14649
archive_cmds_need_lc_F77=no
14650
hardcode_shlibpath_var_F77=no
14651
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14652
hardcode_libdir_separator_F77=':'
14653
link_all_deplibs_F77=yes
14654
export_dynamic_flag_spec_F77='${wl}-Bexport'
14655
runpath_var='LD_RUN_PATH'
14657
if test "$GCC" = yes; then
14658
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14659
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14661
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14662
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14667
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14668
hardcode_libdir_flag_spec_F77='-L$libdir'
14669
hardcode_shlibpath_var_F77=no
14678
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14679
echo "${ECHO_T}$ld_shlibs_F77" >&6
14680
test "$ld_shlibs_F77" = no && can_build_shared=no
14683
# Do we need to explicitly link libc?
14685
case "x$archive_cmds_need_lc_F77" in
14687
# Assume -lc should be added
14688
archive_cmds_need_lc_F77=yes
14690
if test "$enable_shared" = yes && test "$GCC" = yes; then
14691
case $archive_cmds_F77 in
14693
# FIXME: we may have to deal with multi-command sequences.
14696
# Test whether the compiler implicitly links with -lc since on some
14697
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14698
# to ld, don't add -lc before -lgcc.
14699
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14700
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14702
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705
(eval $ac_compile) 2>&5
14707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708
(exit $ac_status); } 2>conftest.err; then
14711
libobjs=conftest.$ac_objext
14713
wl=$lt_prog_compiler_wl_F77
14714
pic_flag=$lt_prog_compiler_pic_F77
14720
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14721
allow_undefined_flag_F77=
14722
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14723
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726
(exit $ac_status); }
14728
archive_cmds_need_lc_F77=no
14730
archive_cmds_need_lc_F77=yes
14732
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14734
cat conftest.err 1>&5
14737
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14738
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14745
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14746
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14747
library_names_spec=
14748
libname_spec='lib$name'
14752
postuninstall_cmds=
14756
shlibpath_overrides_runpath=unknown
14758
dynamic_linker="$host_os ld.so"
14759
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14760
if test "$GCC" = yes; then
14761
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14762
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14763
# if the path contains ";" then we assume it to be the separator
14764
# otherwise default to the standard path separator (i.e. ":") - it is
14765
# assumed that no part of a normal pathname contains ";" but that should
14766
# okay in the real world where ";" in dirpaths is itself problematic.
14767
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14769
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14772
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14774
need_lib_prefix=unknown
14775
hardcode_into_libs=no
14777
# when you set need_version to no, make sure it does not cause -set_version
14778
# flags to be left without arguments
14779
need_version=unknown
14784
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14785
shlibpath_var=LIBPATH
14787
# AIX 3 has no versioning support, so we append a major version to the name.
14788
soname_spec='${libname}${release}${shared_ext}$major'
14795
hardcode_into_libs=yes
14796
if test "$host_cpu" = ia64; then
14797
# AIX 5 supports IA64
14798
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14799
shlibpath_var=LD_LIBRARY_PATH
14801
# With GCC up to 2.95.x, collect2 would create an import file
14802
# for dependence libraries. The import file would start with
14803
# the line `#! .'. This would cause the generated library to
14804
# depend on `.', always an invalid library. This was fixed in
14805
# development snapshots of GCC prior to 3.0.
14807
aix4 | aix4.[01] | aix4.[01].*)
14808
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14810
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14813
can_build_shared=no
14817
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14818
# soname into executable. Probably we can add versioning support to
14819
# collect2, so additional links can be useful in future.
14820
if test "$aix_use_runtimelinking" = yes; then
14821
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14822
# instead of lib<name>.a to let people know that these are not
14823
# typical AIX shared libraries.
14824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826
# We preserve .a as extension for shared libraries through AIX4.2
14827
# and later when we are not doing run time linking.
14828
library_names_spec='${libname}${release}.a $libname.a'
14829
soname_spec='${libname}${release}${shared_ext}$major'
14831
shlibpath_var=LIBPATH
14836
library_names_spec='$libname.ixlibrary $libname.a'
14837
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14838
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'
14842
library_names_spec='${libname}${shared_ext}'
14843
dynamic_linker="$host_os ld.so"
14844
shlibpath_var=LIBRARY_PATH
14850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851
soname_spec='${libname}${release}${shared_ext}$major'
14852
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14853
shlibpath_var=LD_LIBRARY_PATH
14854
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14855
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14856
# the default ld.so.conf also contains /usr/contrib/lib and
14857
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14858
# libtool to hard-code these into programs
14861
cygwin* | mingw* | pw32*)
14862
version_type=windows
14867
case $GCC,$host_os in
14868
yes,cygwin* | yes,mingw* | yes,pw32*)
14869
library_names_spec='$libname.dll.a'
14870
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14871
postinstall_cmds='base_file=`basename \${file}`~
14872
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14873
dldir=$destdir/`dirname \$dlpath`~
14874
test -d \$dldir || mkdir -p \$dldir~
14875
$install_prog $dir/$dlname \$dldir/$dlname~
14876
chmod a+x \$dldir/$dlname'
14877
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14878
dlpath=$dir/\$dldll~
14880
shlibpath_overrides_runpath=yes
14884
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14885
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14886
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14889
# MinGW DLLs use traditional 'lib' prefix
14890
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14891
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14892
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14893
# It is most probably a Windows format PATH printed by
14894
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14895
# path with ; separators, and with drive letters. We can handle the
14896
# drive letters (cygwin fileutils understands them), so leave them,
14897
# especially as we might pass files found there to a mingw objdump,
14898
# which wouldn't understand a cygwinified path. Ahh.
14899
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14901
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14905
# pw32 DLLs use 'pw' prefix rather than 'lib'
14906
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14912
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14915
dynamic_linker='Win32 ld.exe'
14916
# FIXME: first we should search . and the directory the executable is in
14920
darwin* | rhapsody*)
14921
dynamic_linker="$host_os dyld"
14922
version_type=darwin
14925
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14926
soname_spec='${libname}${release}${major}$shared_ext'
14927
shlibpath_overrides_runpath=yes
14928
shlibpath_var=DYLD_LIBRARY_PATH
14929
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14930
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14931
if test "$GCC" = yes; then
14932
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"`
14934
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14936
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14943
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14944
soname_spec='${libname}${release}${shared_ext}$major'
14945
shlibpath_var=LD_LIBRARY_PATH
14956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14957
soname_spec='${libname}${release}${shared_ext}$major'
14958
shlibpath_var=LD_LIBRARY_PATH
14959
shlibpath_overrides_runpath=no
14960
hardcode_into_libs=yes
14961
dynamic_linker='GNU ld.so'
14964
freebsd* | dragonfly*)
14965
# DragonFly does not have aout. When/if they implement a new
14966
# versioning mechanism, adjust this.
14967
if test -x /usr/bin/objformat; then
14968
objformat=`/usr/bin/objformat`
14971
freebsd[123]*) objformat=aout ;;
14972
*) objformat=elf ;;
14975
version_type=freebsd-$objformat
14976
case $version_type in
14978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14983
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14987
shlibpath_var=LD_LIBRARY_PATH
14990
shlibpath_overrides_runpath=yes
14992
freebsd3.[01]* | freebsdelf3.[01]*)
14993
shlibpath_overrides_runpath=yes
14994
hardcode_into_libs=yes
14996
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14997
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14998
shlibpath_overrides_runpath=no
14999
hardcode_into_libs=yes
15001
freebsd*) # from 4.6 on
15002
shlibpath_overrides_runpath=yes
15003
hardcode_into_libs=yes
15012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15013
soname_spec='${libname}${release}${shared_ext}$major'
15014
shlibpath_var=LD_LIBRARY_PATH
15015
hardcode_into_libs=yes
15018
hpux9* | hpux10* | hpux11*)
15019
# Give a soname corresponding to the major version so that dld.sl refuses to
15020
# link against other versions.
15027
hardcode_into_libs=yes
15028
dynamic_linker="$host_os dld.so"
15029
shlibpath_var=LD_LIBRARY_PATH
15030
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032
soname_spec='${libname}${release}${shared_ext}$major'
15033
if test "X$HPUX_IA64_MODE" = X32; then
15034
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15036
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15038
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15042
hardcode_into_libs=yes
15043
dynamic_linker="$host_os dld.sl"
15044
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15045
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15047
soname_spec='${libname}${release}${shared_ext}$major'
15048
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15049
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15053
dynamic_linker="$host_os dld.sl"
15054
shlibpath_var=SHLIB_PATH
15055
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057
soname_spec='${libname}${release}${shared_ext}$major'
15060
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15061
postinstall_cmds='chmod 555 $lib'
15068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15069
soname_spec='${libname}${release}${shared_ext}$major'
15070
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15071
shlibpath_var=LD_LIBRARY_PATH
15072
shlibpath_overrides_runpath=no
15073
hardcode_into_libs=yes
15076
irix5* | irix6* | nonstopux*)
15078
nonstopux*) version_type=nonstopux ;;
15080
if test "$lt_cv_prog_gnu_ld" = yes; then
15088
soname_spec='${libname}${release}${shared_ext}$major'
15089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15091
irix5* | nonstopux*)
15092
libsuff= shlibsuff=
15095
case $LD in # libtool.m4 will add one of these switches to LD
15096
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15097
libsuff= shlibsuff= libmagic=32-bit;;
15098
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15099
libsuff=32 shlibsuff=N32 libmagic=N32;;
15100
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15101
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15102
*) libsuff= shlibsuff= libmagic=never-match;;
15106
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15107
shlibpath_overrides_runpath=no
15108
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15109
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15110
hardcode_into_libs=yes
15113
# No shared lib support for Linux oldld, aout, or coff.
15114
linux*oldld* | linux*aout* | linux*coff*)
15118
# This must be Linux ELF.
15123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124
soname_spec='${libname}${release}${shared_ext}$major'
15125
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15126
shlibpath_var=LD_LIBRARY_PATH
15127
shlibpath_overrides_runpath=no
15128
# This implies no fast_install, which is unacceptable.
15129
# Some rework will be needed to allow for fast_install
15130
# before this can be enabled.
15131
hardcode_into_libs=yes
15133
# Append ld.so.conf contents to the search path
15134
if test -f /etc/ld.so.conf; then
15135
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15136
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15139
# We used to test for /lib/ld.so.1 and disable shared libraries on
15140
# powerpc, because MkLinux only supported shared libraries with the
15141
# GNU dynamic linker. Since this was broken with cross compilers,
15142
# most powerpc-linux boxes support dynamic linking these days and
15143
# people can always --disable-shared, the test was removed, and we
15144
# assume the GNU/Linux dynamic linker is in use.
15145
dynamic_linker='GNU/Linux ld.so'
15152
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15153
soname_spec='${libname}${release}${shared_ext}$major'
15154
shlibpath_var=LD_LIBRARY_PATH
15155
shlibpath_overrides_runpath=no
15156
hardcode_into_libs=yes
15157
dynamic_linker='GNU ld.so'
15164
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15166
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15167
dynamic_linker='NetBSD (a.out) ld.so'
15169
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15170
soname_spec='${libname}${release}${shared_ext}$major'
15171
dynamic_linker='NetBSD ld.elf_so'
15173
shlibpath_var=LD_LIBRARY_PATH
15174
shlibpath_overrides_runpath=yes
15175
hardcode_into_libs=yes
15180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181
shlibpath_var=LD_LIBRARY_PATH
15182
shlibpath_overrides_runpath=yes
15189
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190
soname_spec='${libname}${release}${shared_ext}$major'
15191
shlibpath_var=LD_LIBRARY_PATH
15192
shlibpath_overrides_runpath=yes
15197
sys_lib_dlsearch_path_spec="/usr/lib"
15199
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15201
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15202
*) need_version=no ;;
15204
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15205
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15206
shlibpath_var=LD_LIBRARY_PATH
15207
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15209
openbsd2.[89] | openbsd2.[89].*)
15210
shlibpath_overrides_runpath=no
15213
shlibpath_overrides_runpath=yes
15217
shlibpath_overrides_runpath=yes
15222
libname_spec='$name'
15225
library_names_spec='$libname${shared_ext} $libname.a'
15226
dynamic_linker='OS/2 ld.exe'
15227
shlibpath_var=LIBPATH
15230
osf3* | osf4* | osf5*)
15234
soname_spec='${libname}${release}${shared_ext}$major'
15235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236
shlibpath_var=LD_LIBRARY_PATH
15237
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15238
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15245
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246
soname_spec='${libname}${release}${shared_ext}$major'
15247
shlibpath_var=LD_LIBRARY_PATH
15248
shlibpath_overrides_runpath=yes
15249
hardcode_into_libs=yes
15250
# ldd complains unless libraries are executable
15251
postinstall_cmds='chmod +x $lib'
15256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15257
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15258
shlibpath_var=LD_LIBRARY_PATH
15259
shlibpath_overrides_runpath=yes
15260
if test "$with_gnu_ld" = yes; then
15268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269
soname_spec='${libname}${release}${shared_ext}$major'
15270
shlibpath_var=LD_LIBRARY_PATH
15271
case $host_vendor in
15273
shlibpath_overrides_runpath=no
15275
export_dynamic_flag_spec='${wl}-Blargedynsym'
15276
runpath_var=LD_RUN_PATH
15284
shlibpath_overrides_runpath=no
15285
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15291
if test -d /usr/nec ;then
15293
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15294
soname_spec='$libname${shared_ext}.$major'
15295
shlibpath_var=LD_LIBRARY_PATH
15299
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15300
version_type=freebsd-elf
15303
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15304
soname_spec='${libname}${release}${shared_ext}$major'
15305
shlibpath_var=LD_LIBRARY_PATH
15306
hardcode_into_libs=yes
15307
if test "$with_gnu_ld" = yes; then
15308
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15309
shlibpath_overrides_runpath=no
15311
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15312
shlibpath_overrides_runpath=yes
15315
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15319
sys_lib_dlsearch_path_spec='/usr/lib'
15324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325
soname_spec='${libname}${release}${shared_ext}$major'
15326
shlibpath_var=LD_LIBRARY_PATH
15333
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15334
echo "${ECHO_T}$dynamic_linker" >&6
15335
test "$dynamic_linker" = no && can_build_shared=no
15337
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15338
if test "$GCC" = yes; then
15339
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15342
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15343
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15344
hardcode_action_F77=
15345
if test -n "$hardcode_libdir_flag_spec_F77" || \
15346
test -n "$runpath_var_F77" || \
15347
test "X$hardcode_automatic_F77" = "Xyes" ; then
15349
# We can hardcode non-existant directories.
15350
if test "$hardcode_direct_F77" != no &&
15351
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15352
# have to relink, otherwise we might link with an installed library
15353
# when we should be linking with a yet-to-be-installed one
15354
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15355
test "$hardcode_minus_L_F77" != no; then
15356
# Linking always hardcodes the temporary library directory.
15357
hardcode_action_F77=relink
15359
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15360
hardcode_action_F77=immediate
15363
# We cannot hardcode anything, or else we can only hardcode existing
15365
hardcode_action_F77=unsupported
15367
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15368
echo "${ECHO_T}$hardcode_action_F77" >&6
15370
if test "$hardcode_action_F77" = relink; then
15371
# Fast installation is not supported
15372
enable_fast_install=no
15373
elif test "$shlibpath_overrides_runpath" = yes ||
15374
test "$enable_shared" = no; then
15375
# Fast installation is not necessary
15376
enable_fast_install=needless
15380
# The else clause should only fire when bootstrapping the
15381
# libtool distribution, otherwise you forgot to ship ltmain.sh
15382
# with your package, and you will get complaints that there are
15383
# no rules to generate ltmain.sh.
15384
if test -f "$ltmain"; then
15385
# See if we are running on zsh, and set the options which allow our commands through
15386
# without removal of \ escapes.
15387
if test -n "${ZSH_VERSION+set}" ; then
15388
setopt NO_GLOB_SUBST
15390
# Now quote all the things that may contain metacharacters while being
15391
# careful not to overquote the AC_SUBSTed values. We take copies of the
15392
# variables and quote the copies for generation of the libtool script.
15393
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15395
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15396
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15397
deplibs_check_method reload_flag reload_cmds need_locks \
15398
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15399
lt_cv_sys_global_symbol_to_c_name_address \
15400
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15401
old_postinstall_cmds old_postuninstall_cmds \
15405
lt_prog_compiler_wl_F77 \
15406
lt_prog_compiler_pic_F77 \
15407
lt_prog_compiler_static_F77 \
15408
lt_prog_compiler_no_builtin_flag_F77 \
15409
export_dynamic_flag_spec_F77 \
15410
thread_safe_flag_spec_F77 \
15411
whole_archive_flag_spec_F77 \
15412
enable_shared_with_static_runtimes_F77 \
15413
old_archive_cmds_F77 \
15414
old_archive_from_new_cmds_F77 \
15415
predep_objects_F77 \
15416
postdep_objects_F77 \
15419
compiler_lib_search_path_F77 \
15421
archive_expsym_cmds_F77 \
15422
postinstall_cmds_F77 \
15423
postuninstall_cmds_F77 \
15424
old_archive_from_expsyms_cmds_F77 \
15425
allow_undefined_flag_F77 \
15426
no_undefined_flag_F77 \
15427
export_symbols_cmds_F77 \
15428
hardcode_libdir_flag_spec_F77 \
15429
hardcode_libdir_flag_spec_ld_F77 \
15430
hardcode_libdir_separator_F77 \
15431
hardcode_automatic_F77 \
15433
module_expsym_cmds_F77 \
15434
lt_cv_prog_compiler_c_o_F77 \
15435
exclude_expsyms_F77 \
15436
include_expsyms_F77; do
15439
old_archive_cmds_F77 | \
15440
old_archive_from_new_cmds_F77 | \
15441
archive_cmds_F77 | \
15442
archive_expsym_cmds_F77 | \
15443
module_cmds_F77 | \
15444
module_expsym_cmds_F77 | \
15445
old_archive_from_expsyms_cmds_F77 | \
15446
export_symbols_cmds_F77 | \
15447
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15448
postinstall_cmds | postuninstall_cmds | \
15449
old_postinstall_cmds | old_postuninstall_cmds | \
15450
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15451
# Double-quote double-evaled strings.
15452
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15455
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15461
*'\$0 --fallback-echo"')
15462
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15468
cat <<__EOF__ >> "$cfgfile"
15469
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15471
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15473
# Shell to use when invoking shell scripts.
15476
# Whether or not to build shared libraries.
15477
build_libtool_libs=$enable_shared
15479
# Whether or not to build static libraries.
15480
build_old_libs=$enable_static
15482
# Whether or not to add -lc for building shared libraries.
15483
build_libtool_need_lc=$archive_cmds_need_lc_F77
15485
# Whether or not to disallow shared libs when runtime libs are static
15486
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15488
# Whether or not to optimize for fast installation.
15489
fast_install=$enable_fast_install
15492
host_alias=$host_alias
15496
# The build system.
15497
build_alias=$build_alias
15501
# An echo program that does not interpret backslashes.
15506
AR_FLAGS=$lt_AR_FLAGS
15511
# LTCC compiler flags.
15512
LTCFLAGS=$lt_LTCFLAGS
15514
# A language-specific compiler.
15515
CC=$lt_compiler_F77
15517
# Is the compiler the GNU C compiler?
15523
# The linker used to build libraries.
15526
# Whether we need hard or soft links.
15529
# A BSD-compatible nm program.
15532
# A symbol stripping program
15535
# Used to examine libraries when file_magic_cmd begins "file"
15536
MAGIC_CMD=$MAGIC_CMD
15538
# Used on cygwin: DLL creation program.
15541
# Used on cygwin: object dumper.
15544
# Used on cygwin: assembler.
15547
# The name of the directory that contains temporary libtool files.
15550
# How to create reloadable object files.
15551
reload_flag=$lt_reload_flag
15552
reload_cmds=$lt_reload_cmds
15554
# How to pass a linker flag through the compiler.
15555
wl=$lt_lt_prog_compiler_wl_F77
15557
# Object file suffix (normally "o").
15558
objext="$ac_objext"
15560
# Old archive suffix (normally "a").
15563
# Shared library suffix (normally ".so").
15564
shrext_cmds='$shrext_cmds'
15566
# Executable file suffix (normally "").
15569
# Additional compiler flags for building library objects.
15570
pic_flag=$lt_lt_prog_compiler_pic_F77
15573
# What is the maximum length of a command?
15574
max_cmd_len=$lt_cv_sys_max_cmd_len
15576
# Does compiler simultaneously support -c and -o options?
15577
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15579
# Must we lock files when doing compilation?
15580
need_locks=$lt_need_locks
15582
# Do we need the lib prefix for modules?
15583
need_lib_prefix=$need_lib_prefix
15585
# Do we need a version for libraries?
15586
need_version=$need_version
15588
# Whether dlopen is supported.
15589
dlopen_support=$enable_dlopen
15591
# Whether dlopen of programs is supported.
15592
dlopen_self=$enable_dlopen_self
15594
# Whether dlopen of statically linked programs is supported.
15595
dlopen_self_static=$enable_dlopen_self_static
15597
# Compiler flag to prevent dynamic linking.
15598
link_static_flag=$lt_lt_prog_compiler_static_F77
15600
# Compiler flag to turn off builtin functions.
15601
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15603
# Compiler flag to allow reflexive dlopens.
15604
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15606
# Compiler flag to generate shared objects directly from archives.
15607
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15609
# Compiler flag to generate thread-safe objects.
15610
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15612
# Library versioning type.
15613
version_type=$version_type
15615
# Format of library name prefix.
15616
libname_spec=$lt_libname_spec
15618
# List of archive names. First name is the real one, the rest are links.
15619
# The last name is the one that the linker finds with -lNAME.
15620
library_names_spec=$lt_library_names_spec
15622
# The coded name of the library, if different from the real name.
15623
soname_spec=$lt_soname_spec
15625
# Commands used to build and install an old-style archive.
15627
old_archive_cmds=$lt_old_archive_cmds_F77
15628
old_postinstall_cmds=$lt_old_postinstall_cmds
15629
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15631
# Create an old-style archive from a shared archive.
15632
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15634
# Create a temporary old-style archive to link instead of a shared archive.
15635
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15637
# Commands used to build and install a shared archive.
15638
archive_cmds=$lt_archive_cmds_F77
15639
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15640
postinstall_cmds=$lt_postinstall_cmds
15641
postuninstall_cmds=$lt_postuninstall_cmds
15643
# Commands used to build a loadable module (assumed same as above if empty)
15644
module_cmds=$lt_module_cmds_F77
15645
module_expsym_cmds=$lt_module_expsym_cmds_F77
15647
# Commands to strip libraries.
15648
old_striplib=$lt_old_striplib
15649
striplib=$lt_striplib
15651
# Dependencies to place before the objects being linked to create a
15653
predep_objects=$lt_predep_objects_F77
15655
# Dependencies to place after the objects being linked to create a
15657
postdep_objects=$lt_postdep_objects_F77
15659
# Dependencies to place before the objects being linked to create a
15661
predeps=$lt_predeps_F77
15663
# Dependencies to place after the objects being linked to create a
15665
postdeps=$lt_postdeps_F77
15667
# The library search path used internally by the compiler when linking
15668
# a shared library.
15669
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15671
# Method to check whether dependent libraries are shared objects.
15672
deplibs_check_method=$lt_deplibs_check_method
15674
# Command to use when deplibs_check_method == file_magic.
15675
file_magic_cmd=$lt_file_magic_cmd
15677
# Flag that allows shared libraries with undefined symbols to be built.
15678
allow_undefined_flag=$lt_allow_undefined_flag_F77
15680
# Flag that forces no undefined symbols.
15681
no_undefined_flag=$lt_no_undefined_flag_F77
15683
# Commands used to finish a libtool library installation in a directory.
15684
finish_cmds=$lt_finish_cmds
15686
# Same as above, but a single script fragment to be evaled but not shown.
15687
finish_eval=$lt_finish_eval
15689
# Take the output of nm and produce a listing of raw symbols and C names.
15690
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15692
# Transform the output of nm in a proper C declaration
15693
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15695
# Transform the output of nm in a C name address pair
15696
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15698
# This is the shared library runtime path variable.
15699
runpath_var=$runpath_var
15701
# This is the shared library path variable.
15702
shlibpath_var=$shlibpath_var
15704
# Is shlibpath searched before the hard-coded library search path?
15705
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15707
# How to hardcode a shared library path into an executable.
15708
hardcode_action=$hardcode_action_F77
15710
# Whether we should hardcode library paths into libraries.
15711
hardcode_into_libs=$hardcode_into_libs
15713
# Flag to hardcode \$libdir into a binary during linking.
15714
# This must work even if \$libdir does not exist.
15715
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15717
# If ld is used when linking, flag to hardcode \$libdir into
15718
# a binary during linking. This must work even if \$libdir does
15720
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15722
# Whether we need a single -rpath flag with a separated argument.
15723
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15725
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15726
# resulting binary.
15727
hardcode_direct=$hardcode_direct_F77
15729
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15730
# resulting binary.
15731
hardcode_minus_L=$hardcode_minus_L_F77
15733
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15734
# the resulting binary.
15735
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15737
# Set to yes if building a shared library automatically hardcodes DIR into the library
15738
# and all subsequent libraries and executables linked against it.
15739
hardcode_automatic=$hardcode_automatic_F77
15741
# Variables whose values should be saved in libtool wrapper scripts and
15742
# restored at relink time.
15743
variables_saved_for_relink="$variables_saved_for_relink"
15745
# Whether libtool must link a program against all its dependency libraries.
15746
link_all_deplibs=$link_all_deplibs_F77
15748
# Compile-time system search path for libraries
15749
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15751
# Run-time system search path for libraries
15752
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15754
# Fix the shell variable \$srcfile for the compiler.
15755
fix_srcfile_path="$fix_srcfile_path_F77"
15757
# Set to yes if exported symbols are required.
15758
always_export_symbols=$always_export_symbols_F77
15760
# The commands to list exported symbols.
15761
export_symbols_cmds=$lt_export_symbols_cmds_F77
15763
# The commands to extract the exported symbol list from a shared archive.
15764
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15766
# Symbols that should not be listed in the preloaded symbols.
15767
exclude_expsyms=$lt_exclude_expsyms_F77
15769
# Symbols that must always be exported.
15770
include_expsyms=$lt_include_expsyms_F77
15772
# ### END LIBTOOL TAG CONFIG: $tagname
15778
# If there is no Makefile yet, we rely on a make rule to execute
15779
# `config.status --recheck' to rerun these tests and create the
15780
# libtool script then.
15781
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15782
if test -f "$ltmain_in"; then
15783
test -f Makefile && make "$ltmain"
15789
ac_cpp='$CPP $CPPFLAGS'
15790
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15791
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15792
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15802
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15806
# Source file extension for Java test sources.
15809
# Object file extension for compiled Java test sources.
15813
# Code to be used in simple compile tests
15814
lt_simple_compile_test_code="class foo {}\n"
15816
# Code to be used in simple link tests
15817
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15819
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15821
# If no C compiler was specified, use CC.
15824
# If no C compiler flags were specified, use CFLAGS.
15825
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15827
# Allow CC to be a program name with arguments.
15831
# save warnings/boilerplate of simple test code
15832
ac_outfile=conftest.$ac_objext
15833
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15834
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15835
_lt_compiler_boilerplate=`cat conftest.err`
15838
ac_outfile=conftest.$ac_objext
15839
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15840
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15841
_lt_linker_boilerplate=`cat conftest.err`
15845
# Allow CC to be a program name with arguments.
15850
for cc_temp in $compiler""; do
15852
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15853
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15858
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15861
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15862
archive_cmds_need_lc_GCJ=no
15864
old_archive_cmds_GCJ=$old_archive_cmds
15867
lt_prog_compiler_no_builtin_flag_GCJ=
15869
if test "$GCC" = yes; then
15870
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15873
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15874
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15875
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15876
echo $ECHO_N "(cached) $ECHO_C" >&6
15878
lt_cv_prog_compiler_rtti_exceptions=no
15879
ac_outfile=conftest.$ac_objext
15880
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15881
lt_compiler_flag="-fno-rtti -fno-exceptions"
15882
# Insert the option either (1) after the last *FLAGS variable, or
15883
# (2) before a word containing "conftest.", or (3) at the end.
15884
# Note that $ac_compile itself does not contain backslashes and begins
15885
# with a dollar sign (not a hyphen), so the echo should work correctly.
15886
# The option is referenced via a variable to avoid confusing sed.
15887
lt_compile=`echo "$ac_compile" | $SED \
15888
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15889
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15890
-e 's:$: $lt_compiler_flag:'`
15891
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15892
(eval "$lt_compile" 2>conftest.err)
15894
cat conftest.err >&5
15895
echo "$as_me:__oline__: \$? = $ac_status" >&5
15896
if (exit $ac_status) && test -s "$ac_outfile"; then
15897
# The compiler can only warn and ignore the option if not recognized
15898
# So say no if there are warnings other than the usual output.
15899
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15900
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15901
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15902
lt_cv_prog_compiler_rtti_exceptions=yes
15908
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15909
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15911
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15912
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15919
lt_prog_compiler_wl_GCJ=
15920
lt_prog_compiler_pic_GCJ=
15921
lt_prog_compiler_static_GCJ=
15923
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15924
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15926
if test "$GCC" = yes; then
15927
lt_prog_compiler_wl_GCJ='-Wl,'
15928
lt_prog_compiler_static_GCJ='-static'
15932
# All AIX code is PIC.
15933
if test "$host_cpu" = ia64; then
15934
# AIX 5 now supports IA64 processor
15935
lt_prog_compiler_static_GCJ='-Bstatic'
15940
# FIXME: we need at least 68020 code to build shared libraries, but
15941
# adding the `-m68020' flag to GCC prevents building anything better,
15943
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15946
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15947
# PIC is the default for these OSes.
15950
mingw* | pw32* | os2*)
15951
# This hack is so that the source file can tell whether it is being
15952
# built for inclusion in a dll (and should export symbols for example).
15953
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15956
darwin* | rhapsody*)
15957
# PIC is the default on this platform
15958
# Common symbols not allowed in MH_DYLIB files
15959
lt_prog_compiler_pic_GCJ='-fno-common'
15963
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15964
# Instead, we relocate shared libraries at runtime.
15968
# Just because we use GCC doesn't mean we suddenly get shared libraries
15969
# on systems that don't support them.
15970
lt_prog_compiler_can_build_shared_GCJ=no
15975
if test -d /usr/nec; then
15976
lt_prog_compiler_pic_GCJ=-Kconform_pic
15981
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15982
# not for PA HP-UX.
15988
lt_prog_compiler_pic_GCJ='-fPIC'
15994
lt_prog_compiler_pic_GCJ='-fPIC'
15998
# PORTME Check for flag to pass linker flags through the system compiler.
16001
lt_prog_compiler_wl_GCJ='-Wl,'
16002
if test "$host_cpu" = ia64; then
16003
# AIX 5 now supports IA64 processor
16004
lt_prog_compiler_static_GCJ='-Bstatic'
16006
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16010
# PIC is the default on this platform
16011
# Common symbols not allowed in MH_DYLIB files
16012
case $cc_basename in
16014
lt_prog_compiler_pic_GCJ='-qnocommon'
16015
lt_prog_compiler_wl_GCJ='-Wl,'
16020
mingw* | pw32* | os2*)
16021
# This hack is so that the source file can tell whether it is being
16022
# built for inclusion in a dll (and should export symbols for example).
16023
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16026
hpux9* | hpux10* | hpux11*)
16027
lt_prog_compiler_wl_GCJ='-Wl,'
16028
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16029
# not for PA HP-UX.
16035
lt_prog_compiler_pic_GCJ='+Z'
16038
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16039
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16042
irix5* | irix6* | nonstopux*)
16043
lt_prog_compiler_wl_GCJ='-Wl,'
16044
# PIC (with -KPIC) is the default.
16045
lt_prog_compiler_static_GCJ='-non_shared'
16049
lt_prog_compiler_pic_GCJ='-KPIC'
16050
lt_prog_compiler_static_GCJ='-Bstatic'
16054
case $cc_basename in
16056
lt_prog_compiler_wl_GCJ='-Wl,'
16057
lt_prog_compiler_pic_GCJ='-KPIC'
16058
lt_prog_compiler_static_GCJ='-static'
16060
pgcc* | pgf77* | pgf90* | pgf95*)
16061
# Portland Group compilers (*not* the Pentium gcc compiler,
16062
# which looks to be a dead project)
16063
lt_prog_compiler_wl_GCJ='-Wl,'
16064
lt_prog_compiler_pic_GCJ='-fpic'
16065
lt_prog_compiler_static_GCJ='-Bstatic'
16068
lt_prog_compiler_wl_GCJ='-Wl,'
16069
# All Alpha code is PIC.
16070
lt_prog_compiler_static_GCJ='-non_shared'
16075
osf3* | osf4* | osf5*)
16076
lt_prog_compiler_wl_GCJ='-Wl,'
16077
# All OSF/1 code is PIC.
16078
lt_prog_compiler_static_GCJ='-non_shared'
16082
lt_prog_compiler_pic_GCJ='-KPIC'
16083
lt_prog_compiler_static_GCJ='-Bstatic'
16084
case $cc_basename in
16085
f77* | f90* | f95*)
16086
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16088
lt_prog_compiler_wl_GCJ='-Wl,';;
16093
lt_prog_compiler_wl_GCJ='-Qoption ld '
16094
lt_prog_compiler_pic_GCJ='-PIC'
16095
lt_prog_compiler_static_GCJ='-Bstatic'
16098
sysv4 | sysv4.2uw2* | sysv4.3*)
16099
lt_prog_compiler_wl_GCJ='-Wl,'
16100
lt_prog_compiler_pic_GCJ='-KPIC'
16101
lt_prog_compiler_static_GCJ='-Bstatic'
16105
if test -d /usr/nec ;then
16106
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16107
lt_prog_compiler_static_GCJ='-Bstatic'
16111
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16112
lt_prog_compiler_wl_GCJ='-Wl,'
16113
lt_prog_compiler_pic_GCJ='-KPIC'
16114
lt_prog_compiler_static_GCJ='-Bstatic'
16118
lt_prog_compiler_wl_GCJ='-Wl,'
16119
lt_prog_compiler_can_build_shared_GCJ=no
16123
lt_prog_compiler_pic_GCJ='-pic'
16124
lt_prog_compiler_static_GCJ='-Bstatic'
16128
lt_prog_compiler_can_build_shared_GCJ=no
16133
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16134
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16137
# Check to make sure the PIC flag actually works.
16139
if test -n "$lt_prog_compiler_pic_GCJ"; then
16141
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16142
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16143
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16144
echo $ECHO_N "(cached) $ECHO_C" >&6
16146
lt_prog_compiler_pic_works_GCJ=no
16147
ac_outfile=conftest.$ac_objext
16148
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16149
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16150
# Insert the option either (1) after the last *FLAGS variable, or
16151
# (2) before a word containing "conftest.", or (3) at the end.
16152
# Note that $ac_compile itself does not contain backslashes and begins
16153
# with a dollar sign (not a hyphen), so the echo should work correctly.
16154
# The option is referenced via a variable to avoid confusing sed.
16155
lt_compile=`echo "$ac_compile" | $SED \
16156
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16157
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16158
-e 's:$: $lt_compiler_flag:'`
16159
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16160
(eval "$lt_compile" 2>conftest.err)
16162
cat conftest.err >&5
16163
echo "$as_me:__oline__: \$? = $ac_status" >&5
16164
if (exit $ac_status) && test -s "$ac_outfile"; then
16165
# The compiler can only warn and ignore the option if not recognized
16166
# So say no if there are warnings other than the usual output.
16167
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16168
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16169
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16170
lt_prog_compiler_pic_works_GCJ=yes
16176
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16177
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16179
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16180
case $lt_prog_compiler_pic_GCJ in
16182
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16185
lt_prog_compiler_pic_GCJ=
16186
lt_prog_compiler_can_build_shared_GCJ=no
16191
# For platforms which do not support PIC, -DPIC is meaningless:
16193
lt_prog_compiler_pic_GCJ=
16196
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16201
# Check to make sure the static flag actually works.
16203
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16204
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16205
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16206
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16207
echo $ECHO_N "(cached) $ECHO_C" >&6
16209
lt_prog_compiler_static_works_GCJ=no
16210
save_LDFLAGS="$LDFLAGS"
16211
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16212
printf "$lt_simple_link_test_code" > conftest.$ac_ext
16213
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16214
# The linker can only warn and ignore the option if not recognized
16215
# So say no if there are warnings
16216
if test -s conftest.err; then
16217
# Append any errors to the config.log.
16218
cat conftest.err 1>&5
16219
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16220
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16221
if diff conftest.exp conftest.er2 >/dev/null; then
16222
lt_prog_compiler_static_works_GCJ=yes
16225
lt_prog_compiler_static_works_GCJ=yes
16229
LDFLAGS="$save_LDFLAGS"
16232
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16233
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16235
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16238
lt_prog_compiler_static_GCJ=
16242
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16243
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16244
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16245
echo $ECHO_N "(cached) $ECHO_C" >&6
16247
lt_cv_prog_compiler_c_o_GCJ=no
16248
$rm -r conftest 2>/dev/null
16252
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16254
lt_compiler_flag="-o out/conftest2.$ac_objext"
16255
# Insert the option either (1) after the last *FLAGS variable, or
16256
# (2) before a word containing "conftest.", or (3) at the end.
16257
# Note that $ac_compile itself does not contain backslashes and begins
16258
# with a dollar sign (not a hyphen), so the echo should work correctly.
16259
lt_compile=`echo "$ac_compile" | $SED \
16260
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16261
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16262
-e 's:$: $lt_compiler_flag:'`
16263
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16264
(eval "$lt_compile" 2>out/conftest.err)
16266
cat out/conftest.err >&5
16267
echo "$as_me:__oline__: \$? = $ac_status" >&5
16268
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16270
# The compiler can only warn and ignore the option if not recognized
16271
# So say no if there are warnings
16272
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16273
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16274
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16275
lt_cv_prog_compiler_c_o_GCJ=yes
16280
# SGI C++ compiler will create directory out/ii_files/ for
16281
# template instantiation
16282
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16283
$rm out/* && rmdir out
16289
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16290
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16293
hard_links="nottested"
16294
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16295
# do not overwrite the value of need_locks provided by the user
16296
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16297
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16300
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16302
ln conftest.a conftest.b 2>&5 || hard_links=no
16303
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16304
echo "$as_me:$LINENO: result: $hard_links" >&5
16305
echo "${ECHO_T}$hard_links" >&6
16306
if test "$hard_links" = no; then
16307
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16308
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16315
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16316
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16319
allow_undefined_flag_GCJ=
16320
enable_shared_with_static_runtimes_GCJ=no
16322
archive_expsym_cmds_GCJ=
16323
old_archive_From_new_cmds_GCJ=
16324
old_archive_from_expsyms_cmds_GCJ=
16325
export_dynamic_flag_spec_GCJ=
16326
whole_archive_flag_spec_GCJ=
16327
thread_safe_flag_spec_GCJ=
16328
hardcode_libdir_flag_spec_GCJ=
16329
hardcode_libdir_flag_spec_ld_GCJ=
16330
hardcode_libdir_separator_GCJ=
16331
hardcode_direct_GCJ=no
16332
hardcode_minus_L_GCJ=no
16333
hardcode_shlibpath_var_GCJ=unsupported
16334
link_all_deplibs_GCJ=unknown
16335
hardcode_automatic_GCJ=no
16337
module_expsym_cmds_GCJ=
16338
always_export_symbols_GCJ=no
16339
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16340
# include_expsyms should be a list of space-separated symbols to be *always*
16341
# included in the symbol list
16342
include_expsyms_GCJ=
16343
# exclude_expsyms can be an extended regexp of symbols to exclude
16344
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16345
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16346
# as well as any symbol that contains `d'.
16347
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16348
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16349
# platforms (ab)use it in PIC code, but their linkers get confused if
16350
# the symbol is explicitly referenced. Since portable code cannot
16351
# rely on this symbol name, it's probably fine to never include it in
16352
# preloaded symbol tables.
16353
extract_expsyms_cmds=
16354
# Just being paranoid about ensuring that cc_basename is set.
16355
for cc_temp in $compiler""; do
16357
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16358
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16363
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16366
cygwin* | mingw* | pw32*)
16367
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16368
# When not using gcc, we currently assume that we are using
16369
# Microsoft Visual C++.
16370
if test "$GCC" != yes; then
16375
# we just hope/assume this is gcc and not c89 (= MSVC++)
16384
if test "$with_gnu_ld" = yes; then
16385
# If archive_cmds runs LD, not CC, wlarc should be empty
16388
# Set some defaults for GNU ld with shared library support. These
16389
# are reset later if shared libraries are not supported. Putting them
16390
# here allows them to be overridden if necessary.
16391
runpath_var=LD_RUN_PATH
16392
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16393
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16394
# ancient GNU ld didn't support --whole-archive et. al.
16395
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16396
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16398
whole_archive_flag_spec_GCJ=
16400
supports_anon_versioning=no
16401
case `$LD -v 2>/dev/null` in
16402
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16403
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16404
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16405
*\ 2.11.*) ;; # other 2.11 versions
16406
*) supports_anon_versioning=yes ;;
16409
# See if GNU ld supports shared libraries.
16411
aix3* | aix4* | aix5*)
16412
# On AIX/PPC, the GNU linker is very broken
16413
if test "$host_cpu" != ia64; then
16417
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16418
*** to be unable to reliably create shared libraries on AIX.
16419
*** Therefore, libtool is disabling shared libraries support. If you
16420
*** really care for shared libraries, you may want to modify your PATH
16421
*** so that a non-GNU linker is found, and then restart.
16428
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)'
16429
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16430
hardcode_minus_L_GCJ=yes
16432
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16433
# that the semantics of dynamic libraries on AmigaOS, at least up
16434
# to version 4, is to share data among multiple programs linked
16435
# with the same dynamic library. Since this doesn't match the
16436
# behavior of shared libraries on other platforms, we can't use
16442
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16443
allow_undefined_flag_GCJ=unsupported
16444
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16445
# support --undefined. This deserves some investigation. FIXME
16446
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16452
cygwin* | mingw* | pw32*)
16453
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16454
# as there is no search path for DLLs.
16455
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16456
allow_undefined_flag_GCJ=unsupported
16457
always_export_symbols_GCJ=no
16458
enable_shared_with_static_runtimes_GCJ=yes
16459
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16461
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16462
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16463
# If the export-symbols file already is a .def file (1st line
16464
# is EXPORTS), use it as is; otherwise, prepend...
16465
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16466
cp $export_symbols $output_objdir/$soname.def;
16468
echo EXPORTS > $output_objdir/$soname.def;
16469
cat $export_symbols >> $output_objdir/$soname.def;
16471
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16478
hardcode_direct_GCJ=no
16479
hardcode_shlibpath_var_GCJ=no
16480
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16481
export_dynamic_flag_spec_GCJ='${wl}-E'
16482
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16483
# Instead, shared libraries are loaded at an image base (0x10000000 by
16484
# default) and relocated if they conflict, which is a slow very memory
16485
# consuming and fragmenting process. To avoid this, we pick a random,
16486
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16487
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16488
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16489
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16493
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16495
case $cc_basename,$host_cpu in
16496
pgcc*) # Portland Group C compiler
16497
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16498
tmp_addflag=' $pic_flag'
16500
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16501
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16502
tmp_addflag=' $pic_flag -Mnomain' ;;
16503
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16504
tmp_addflag=' -i_dynamic' ;;
16505
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16506
tmp_addflag=' -i_dynamic -nofor_main' ;;
16507
ifc* | ifort*) # Intel Fortran compiler
16508
tmp_addflag=' -nofor_main' ;;
16510
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16512
if test $supports_anon_versioning = yes; then
16513
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16514
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16515
$echo "local: *; };" >> $output_objdir/$libname.ver~
16516
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16524
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16525
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16528
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16529
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16534
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16538
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16539
*** create shared libraries on Solaris systems. Therefore, libtool
16540
*** is disabling shared libraries support. We urge you to upgrade GNU
16541
*** binutils to release 2.9.1 or newer. Another option is to modify
16542
*** your PATH or compiler configuration so that the native linker is
16543
*** used, and then restart.
16546
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16547
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16548
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16554
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16555
case `$LD -v 2>&1` in
16556
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16560
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16561
*** reliably create shared libraries on SCO systems. Therefore, libtool
16562
*** is disabling shared libraries support. We urge you to upgrade GNU
16563
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16564
*** your PATH or compiler configuration so that the native linker is
16565
*** used, and then restart.
16570
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16571
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16572
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16573
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16582
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16584
hardcode_direct_GCJ=yes
16585
hardcode_shlibpath_var_GCJ=no
16589
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16590
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16591
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16598
if test "$ld_shlibs_GCJ" = no; then
16600
hardcode_libdir_flag_spec_GCJ=
16601
export_dynamic_flag_spec_GCJ=
16602
whole_archive_flag_spec_GCJ=
16605
# PORTME fill in a description of your system's linker (not GNU ld)
16608
allow_undefined_flag_GCJ=unsupported
16609
always_export_symbols_GCJ=yes
16610
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'
16611
# Note: this linker hardcodes the directories in LIBPATH if there
16612
# are no directories specified by -L.
16613
hardcode_minus_L_GCJ=yes
16614
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16615
# Neither direct hardcoding nor static linking is supported with a
16617
hardcode_direct_GCJ=unsupported
16622
if test "$host_cpu" = ia64; then
16623
# On IA64, the linker does run time linking by default, so we don't
16624
# have to do anything special.
16625
aix_use_runtimelinking=no
16626
exp_sym_flag='-Bexport'
16629
# If we're using GNU nm, then we don't want the "-C" option.
16630
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16631
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16632
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'
16634
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'
16636
aix_use_runtimelinking=no
16638
# Test if we are trying to use run time linking or normal
16639
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16640
# need to do runtime linking.
16641
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16642
for ld_flag in $LDFLAGS; do
16643
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16644
aix_use_runtimelinking=yes
16651
exp_sym_flag='-bexport'
16652
no_entry_flag='-bnoentry'
16655
# When large executables or shared objects are built, AIX ld can
16656
# have problems creating the table of contents. If linking a library
16657
# or program results in "error TOC overflow" add -mminimal-toc to
16658
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16659
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16661
archive_cmds_GCJ=''
16662
hardcode_direct_GCJ=yes
16663
hardcode_libdir_separator_GCJ=':'
16664
link_all_deplibs_GCJ=yes
16666
if test "$GCC" = yes; then
16667
case $host_os in aix4.[012]|aix4.[012].*)
16668
# We only want to do this on AIX 4.2 and lower, the check
16669
# below for broken collect2 doesn't work under 4.3+
16670
collect2name=`${CC} -print-prog-name=collect2`
16671
if test -f "$collect2name" && \
16672
strings "$collect2name" | grep resolve_lib_name >/dev/null
16674
# We have reworked collect2
16675
hardcode_direct_GCJ=yes
16677
# We have old collect2
16678
hardcode_direct_GCJ=unsupported
16679
# It fails to find uninstalled libraries when the uninstalled
16680
# path is not listed in the libpath. Setting hardcode_minus_L
16681
# to unsupported forces relinking
16682
hardcode_minus_L_GCJ=yes
16683
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16684
hardcode_libdir_separator_GCJ=
16688
shared_flag='-shared'
16689
if test "$aix_use_runtimelinking" = yes; then
16690
shared_flag="$shared_flag "'${wl}-G'
16694
if test "$host_cpu" = ia64; then
16695
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16696
# chokes on -Wl,-G. The following line is correct:
16699
if test "$aix_use_runtimelinking" = yes; then
16700
shared_flag='${wl}-G'
16702
shared_flag='${wl}-bM:SRE'
16707
# It seems that -bexpall does not export symbols beginning with
16708
# underscore (_), so it is better to generate a list of symbols to export.
16709
always_export_symbols_GCJ=yes
16710
if test "$aix_use_runtimelinking" = yes; then
16711
# Warning - without using the other runtime loading flags (-brtl),
16712
# -berok will link without error, but may produce a broken library.
16713
allow_undefined_flag_GCJ='-berok'
16714
# Determine the default libpath from the value encoded in an empty executable.
16715
cat >conftest.$ac_ext <<_ACEOF
16718
cat confdefs.h >>conftest.$ac_ext
16719
cat >>conftest.$ac_ext <<_ACEOF
16720
/* end confdefs.h. */
16730
rm -f conftest.$ac_objext conftest$ac_exeext
16731
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16732
(eval $ac_link) 2>conftest.er1
16734
grep -v '^ *+' conftest.er1 >conftest.err
16736
cat conftest.err >&5
16737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738
(exit $ac_status); } &&
16739
{ ac_try='test -z "$ac_c_werror_flag"
16740
|| test ! -s conftest.err'
16741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742
(eval $ac_try) 2>&5
16744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745
(exit $ac_status); }; } &&
16746
{ ac_try='test -s conftest$ac_exeext'
16747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748
(eval $ac_try) 2>&5
16750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751
(exit $ac_status); }; }; then
16753
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16755
# Check for a 64-bit object if we didn't find anything.
16756
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; }
16759
echo "$as_me: failed program was:" >&5
16760
sed 's/^/| /' conftest.$ac_ext >&5
16763
rm -f conftest.err conftest.$ac_objext \
16764
conftest$ac_exeext conftest.$ac_ext
16765
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16767
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16768
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16770
if test "$host_cpu" = ia64; then
16771
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16772
allow_undefined_flag_GCJ="-z nodefs"
16773
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16775
# Determine the default libpath from the value encoded in an empty executable.
16776
cat >conftest.$ac_ext <<_ACEOF
16779
cat confdefs.h >>conftest.$ac_ext
16780
cat >>conftest.$ac_ext <<_ACEOF
16781
/* end confdefs.h. */
16791
rm -f conftest.$ac_objext conftest$ac_exeext
16792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16793
(eval $ac_link) 2>conftest.er1
16795
grep -v '^ *+' conftest.er1 >conftest.err
16797
cat conftest.err >&5
16798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799
(exit $ac_status); } &&
16800
{ ac_try='test -z "$ac_c_werror_flag"
16801
|| test ! -s conftest.err'
16802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803
(eval $ac_try) 2>&5
16805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806
(exit $ac_status); }; } &&
16807
{ ac_try='test -s conftest$ac_exeext'
16808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809
(eval $ac_try) 2>&5
16811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812
(exit $ac_status); }; }; then
16814
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16816
# Check for a 64-bit object if we didn't find anything.
16817
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; }
16820
echo "$as_me: failed program was:" >&5
16821
sed 's/^/| /' conftest.$ac_ext >&5
16824
rm -f conftest.err conftest.$ac_objext \
16825
conftest$ac_exeext conftest.$ac_ext
16826
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16828
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16829
# Warning - without using the other run time loading flags,
16830
# -berok will link without error, but may produce a broken library.
16831
no_undefined_flag_GCJ=' ${wl}-bernotok'
16832
allow_undefined_flag_GCJ=' ${wl}-berok'
16833
# Exported symbols can be pulled into shared objects from archives
16834
whole_archive_flag_spec_GCJ='$convenience'
16835
archive_cmds_need_lc_GCJ=yes
16836
# This is similar to how AIX traditionally builds its shared libraries.
16837
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16843
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)'
16844
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16845
hardcode_minus_L_GCJ=yes
16846
# see comment about different semantics on the GNU ld section
16851
export_dynamic_flag_spec_GCJ=-rdynamic
16854
cygwin* | mingw* | pw32*)
16855
# When not using gcc, we currently assume that we are using
16856
# Microsoft Visual C++.
16857
# hardcode_libdir_flag_spec is actually meaningless, as there is
16858
# no search path for DLLs.
16859
hardcode_libdir_flag_spec_GCJ=' '
16860
allow_undefined_flag_GCJ=unsupported
16861
# Tell ltmain to make .lib files, not .a files.
16863
# Tell ltmain to make .dll files, not .so files.
16865
# FIXME: Setting linknames here is a bad hack.
16866
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16867
# The linker will automatically build a .lib file if we build a DLL.
16868
old_archive_From_new_cmds_GCJ='true'
16869
# FIXME: Should let the user specify the lib program.
16870
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16871
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16872
enable_shared_with_static_runtimes_GCJ=yes
16875
darwin* | rhapsody*)
16877
rhapsody* | darwin1.[012])
16878
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16881
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16882
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16884
case ${MACOSX_DEPLOYMENT_TARGET} in
16886
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16889
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16895
archive_cmds_need_lc_GCJ=no
16896
hardcode_direct_GCJ=no
16897
hardcode_automatic_GCJ=yes
16898
hardcode_shlibpath_var_GCJ=unsupported
16899
whole_archive_flag_spec_GCJ=''
16900
link_all_deplibs_GCJ=yes
16901
if test "$GCC" = yes ; then
16902
output_verbose_link_cmd='echo'
16903
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16904
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16905
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16906
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16907
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}'
16909
case $cc_basename in
16911
output_verbose_link_cmd='echo'
16912
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16913
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16914
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16915
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16916
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}'
16926
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16927
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16928
hardcode_shlibpath_var_GCJ=no
16935
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16936
# support. Future versions do this automatically, but an explicit c++rt0.o
16937
# does not break anything, and helps significantly (at the cost of a little
16940
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16941
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16942
hardcode_direct_GCJ=yes
16943
hardcode_shlibpath_var_GCJ=no
16946
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16948
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16949
hardcode_direct_GCJ=yes
16950
hardcode_minus_L_GCJ=yes
16951
hardcode_shlibpath_var_GCJ=no
16954
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16955
freebsd* | kfreebsd*-gnu | dragonfly*)
16956
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16957
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16958
hardcode_direct_GCJ=yes
16959
hardcode_shlibpath_var_GCJ=no
16963
if test "$GCC" = yes; then
16964
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'
16966
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'
16968
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16969
hardcode_libdir_separator_GCJ=:
16970
hardcode_direct_GCJ=yes
16972
# hardcode_minus_L: Not really in the search PATH,
16973
# but as the default location of the library.
16974
hardcode_minus_L_GCJ=yes
16975
export_dynamic_flag_spec_GCJ='${wl}-E'
16979
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16980
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16982
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16984
if test "$with_gnu_ld" = no; then
16985
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16986
hardcode_libdir_separator_GCJ=:
16988
hardcode_direct_GCJ=yes
16989
export_dynamic_flag_spec_GCJ='${wl}-E'
16991
# hardcode_minus_L: Not really in the search PATH,
16992
# but as the default location of the library.
16993
hardcode_minus_L_GCJ=yes
16998
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17001
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17004
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17007
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17013
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17016
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17019
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17023
if test "$with_gnu_ld" = no; then
17024
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17025
hardcode_libdir_separator_GCJ=:
17029
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17030
hardcode_direct_GCJ=no
17031
hardcode_shlibpath_var_GCJ=no
17034
hardcode_direct_GCJ=yes
17035
export_dynamic_flag_spec_GCJ='${wl}-E'
17037
# hardcode_minus_L: Not really in the search PATH,
17038
# but as the default location of the library.
17039
hardcode_minus_L_GCJ=yes
17045
irix5* | irix6* | nonstopux*)
17046
if test "$GCC" = yes; then
17047
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'
17049
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'
17050
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17052
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17053
hardcode_libdir_separator_GCJ=:
17054
link_all_deplibs_GCJ=yes
17058
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17059
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17061
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17063
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17064
hardcode_direct_GCJ=yes
17065
hardcode_shlibpath_var_GCJ=no
17069
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070
hardcode_direct_GCJ=yes
17071
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17072
hardcode_libdir_separator_GCJ=:
17073
hardcode_shlibpath_var_GCJ=no
17077
hardcode_direct_GCJ=yes
17078
hardcode_shlibpath_var_GCJ=no
17079
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17080
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17081
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17082
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17083
export_dynamic_flag_spec_GCJ='${wl}-E'
17086
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17087
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17088
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17091
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17092
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17099
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17100
hardcode_minus_L_GCJ=yes
17101
allow_undefined_flag_GCJ=unsupported
17102
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'
17103
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17107
if test "$GCC" = yes; then
17108
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17109
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'
17111
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17112
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'
17114
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17115
hardcode_libdir_separator_GCJ=:
17118
osf4* | osf5*) # as osf3* with the addition of -msym flag
17119
if test "$GCC" = yes; then
17120
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17121
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'
17122
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17124
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17125
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'
17126
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~
17127
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17129
# Both c and cxx compiler support -rpath directly
17130
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17132
hardcode_libdir_separator_GCJ=:
17136
no_undefined_flag_GCJ=' -z text'
17137
if test "$GCC" = yes; then
17139
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17140
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17141
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17144
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17146
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17148
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17149
hardcode_shlibpath_var_GCJ=no
17151
solaris2.[0-5] | solaris2.[0-5].*) ;;
17153
# The compiler driver will combine linker options so we
17154
# cannot just pass the convience library names through
17155
# without $wl, iff we do not link with $LD.
17156
# Luckily, gcc supports the same syntax we need for Sun Studio.
17157
# Supported since Solaris 2.6 (maybe 2.5.1?)
17160
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17162
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17165
link_all_deplibs_GCJ=yes
17169
if test "x$host_vendor" = xsequent; then
17170
# Use $CC to link under sequent, because it throws in some extra .o
17171
# files that make .init and .fini sections work.
17172
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17174
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17176
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17177
hardcode_direct_GCJ=yes
17178
hardcode_minus_L_GCJ=yes
17179
hardcode_shlibpath_var_GCJ=no
17183
case $host_vendor in
17185
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17186
hardcode_direct_GCJ=yes # is this really true???
17189
## LD is ld it makes a PLAMLIB
17190
## CC just makes a GrossModule.
17191
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17192
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17193
hardcode_direct_GCJ=no
17196
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17197
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17200
runpath_var='LD_RUN_PATH'
17201
hardcode_shlibpath_var_GCJ=no
17205
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17206
hardcode_shlibpath_var_GCJ=no
17207
export_dynamic_flag_spec_GCJ='-Bexport'
17211
if test -d /usr/nec; then
17212
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17213
hardcode_shlibpath_var_GCJ=no
17214
runpath_var=LD_RUN_PATH
17215
hardcode_runpath_var=yes
17220
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17221
no_undefined_flag_GCJ='${wl}-z,text'
17222
archive_cmds_need_lc_GCJ=no
17223
hardcode_shlibpath_var_GCJ=no
17224
runpath_var='LD_RUN_PATH'
17226
if test "$GCC" = yes; then
17227
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17228
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17230
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17231
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17235
sysv5* | sco3.2v5* | sco5v6*)
17236
# Note: We can NOT use -z defs as we might desire, because we do not
17237
# link with -lc, and that would cause any symbols used from libc to
17238
# always be unresolved, which means just about no library would
17239
# ever link correctly. If we're not using GNU ld we use -z text
17240
# though, which does catch some bad symbols but isn't as heavy-handed
17242
no_undefined_flag_GCJ='${wl}-z,text'
17243
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17244
archive_cmds_need_lc_GCJ=no
17245
hardcode_shlibpath_var_GCJ=no
17246
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17247
hardcode_libdir_separator_GCJ=':'
17248
link_all_deplibs_GCJ=yes
17249
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17250
runpath_var='LD_RUN_PATH'
17252
if test "$GCC" = yes; then
17253
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17254
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17256
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17257
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17262
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17263
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17264
hardcode_shlibpath_var_GCJ=no
17273
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17274
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17275
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17278
# Do we need to explicitly link libc?
17280
case "x$archive_cmds_need_lc_GCJ" in
17282
# Assume -lc should be added
17283
archive_cmds_need_lc_GCJ=yes
17285
if test "$enable_shared" = yes && test "$GCC" = yes; then
17286
case $archive_cmds_GCJ in
17288
# FIXME: we may have to deal with multi-command sequences.
17291
# Test whether the compiler implicitly links with -lc since on some
17292
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17293
# to ld, don't add -lc before -lgcc.
17294
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17295
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17297
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17300
(eval $ac_compile) 2>&5
17302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303
(exit $ac_status); } 2>conftest.err; then
17306
libobjs=conftest.$ac_objext
17308
wl=$lt_prog_compiler_wl_GCJ
17309
pic_flag=$lt_prog_compiler_pic_GCJ
17315
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17316
allow_undefined_flag_GCJ=
17317
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17318
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321
(exit $ac_status); }
17323
archive_cmds_need_lc_GCJ=no
17325
archive_cmds_need_lc_GCJ=yes
17327
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17329
cat conftest.err 1>&5
17332
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17333
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17340
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17341
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17342
library_names_spec=
17343
libname_spec='lib$name'
17347
postuninstall_cmds=
17351
shlibpath_overrides_runpath=unknown
17353
dynamic_linker="$host_os ld.so"
17354
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17355
if test "$GCC" = yes; then
17356
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17357
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17358
# if the path contains ";" then we assume it to be the separator
17359
# otherwise default to the standard path separator (i.e. ":") - it is
17360
# assumed that no part of a normal pathname contains ";" but that should
17361
# okay in the real world where ";" in dirpaths is itself problematic.
17362
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17364
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17367
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17369
need_lib_prefix=unknown
17370
hardcode_into_libs=no
17372
# when you set need_version to no, make sure it does not cause -set_version
17373
# flags to be left without arguments
17374
need_version=unknown
17379
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17380
shlibpath_var=LIBPATH
17382
# AIX 3 has no versioning support, so we append a major version to the name.
17383
soname_spec='${libname}${release}${shared_ext}$major'
17390
hardcode_into_libs=yes
17391
if test "$host_cpu" = ia64; then
17392
# AIX 5 supports IA64
17393
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17394
shlibpath_var=LD_LIBRARY_PATH
17396
# With GCC up to 2.95.x, collect2 would create an import file
17397
# for dependence libraries. The import file would start with
17398
# the line `#! .'. This would cause the generated library to
17399
# depend on `.', always an invalid library. This was fixed in
17400
# development snapshots of GCC prior to 3.0.
17402
aix4 | aix4.[01] | aix4.[01].*)
17403
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17405
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17408
can_build_shared=no
17412
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17413
# soname into executable. Probably we can add versioning support to
17414
# collect2, so additional links can be useful in future.
17415
if test "$aix_use_runtimelinking" = yes; then
17416
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17417
# instead of lib<name>.a to let people know that these are not
17418
# typical AIX shared libraries.
17419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421
# We preserve .a as extension for shared libraries through AIX4.2
17422
# and later when we are not doing run time linking.
17423
library_names_spec='${libname}${release}.a $libname.a'
17424
soname_spec='${libname}${release}${shared_ext}$major'
17426
shlibpath_var=LIBPATH
17431
library_names_spec='$libname.ixlibrary $libname.a'
17432
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17433
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'
17437
library_names_spec='${libname}${shared_ext}'
17438
dynamic_linker="$host_os ld.so"
17439
shlibpath_var=LIBRARY_PATH
17445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446
soname_spec='${libname}${release}${shared_ext}$major'
17447
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17448
shlibpath_var=LD_LIBRARY_PATH
17449
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17450
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17451
# the default ld.so.conf also contains /usr/contrib/lib and
17452
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17453
# libtool to hard-code these into programs
17456
cygwin* | mingw* | pw32*)
17457
version_type=windows
17462
case $GCC,$host_os in
17463
yes,cygwin* | yes,mingw* | yes,pw32*)
17464
library_names_spec='$libname.dll.a'
17465
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17466
postinstall_cmds='base_file=`basename \${file}`~
17467
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17468
dldir=$destdir/`dirname \$dlpath`~
17469
test -d \$dldir || mkdir -p \$dldir~
17470
$install_prog $dir/$dlname \$dldir/$dlname~
17471
chmod a+x \$dldir/$dlname'
17472
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17473
dlpath=$dir/\$dldll~
17475
shlibpath_overrides_runpath=yes
17479
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17480
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17481
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17484
# MinGW DLLs use traditional 'lib' prefix
17485
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17486
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17487
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17488
# It is most probably a Windows format PATH printed by
17489
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17490
# path with ; separators, and with drive letters. We can handle the
17491
# drive letters (cygwin fileutils understands them), so leave them,
17492
# especially as we might pass files found there to a mingw objdump,
17493
# which wouldn't understand a cygwinified path. Ahh.
17494
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17496
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17500
# pw32 DLLs use 'pw' prefix rather than 'lib'
17501
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17507
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17510
dynamic_linker='Win32 ld.exe'
17511
# FIXME: first we should search . and the directory the executable is in
17515
darwin* | rhapsody*)
17516
dynamic_linker="$host_os dyld"
17517
version_type=darwin
17520
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17521
soname_spec='${libname}${release}${major}$shared_ext'
17522
shlibpath_overrides_runpath=yes
17523
shlibpath_var=DYLD_LIBRARY_PATH
17524
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17525
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17526
if test "$GCC" = yes; then
17527
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"`
17529
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17531
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17539
soname_spec='${libname}${release}${shared_ext}$major'
17540
shlibpath_var=LD_LIBRARY_PATH
17551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17552
soname_spec='${libname}${release}${shared_ext}$major'
17553
shlibpath_var=LD_LIBRARY_PATH
17554
shlibpath_overrides_runpath=no
17555
hardcode_into_libs=yes
17556
dynamic_linker='GNU ld.so'
17559
freebsd* | dragonfly*)
17560
# DragonFly does not have aout. When/if they implement a new
17561
# versioning mechanism, adjust this.
17562
if test -x /usr/bin/objformat; then
17563
objformat=`/usr/bin/objformat`
17566
freebsd[123]*) objformat=aout ;;
17567
*) objformat=elf ;;
17570
version_type=freebsd-$objformat
17571
case $version_type in
17573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17578
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17582
shlibpath_var=LD_LIBRARY_PATH
17585
shlibpath_overrides_runpath=yes
17587
freebsd3.[01]* | freebsdelf3.[01]*)
17588
shlibpath_overrides_runpath=yes
17589
hardcode_into_libs=yes
17591
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17592
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17593
shlibpath_overrides_runpath=no
17594
hardcode_into_libs=yes
17596
freebsd*) # from 4.6 on
17597
shlibpath_overrides_runpath=yes
17598
hardcode_into_libs=yes
17607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17608
soname_spec='${libname}${release}${shared_ext}$major'
17609
shlibpath_var=LD_LIBRARY_PATH
17610
hardcode_into_libs=yes
17613
hpux9* | hpux10* | hpux11*)
17614
# Give a soname corresponding to the major version so that dld.sl refuses to
17615
# link against other versions.
17622
hardcode_into_libs=yes
17623
dynamic_linker="$host_os dld.so"
17624
shlibpath_var=LD_LIBRARY_PATH
17625
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17627
soname_spec='${libname}${release}${shared_ext}$major'
17628
if test "X$HPUX_IA64_MODE" = X32; then
17629
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17631
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17633
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17637
hardcode_into_libs=yes
17638
dynamic_linker="$host_os dld.sl"
17639
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17640
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17642
soname_spec='${libname}${release}${shared_ext}$major'
17643
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17644
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17648
dynamic_linker="$host_os dld.sl"
17649
shlibpath_var=SHLIB_PATH
17650
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17651
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652
soname_spec='${libname}${release}${shared_ext}$major'
17655
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17656
postinstall_cmds='chmod 555 $lib'
17663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17664
soname_spec='${libname}${release}${shared_ext}$major'
17665
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17666
shlibpath_var=LD_LIBRARY_PATH
17667
shlibpath_overrides_runpath=no
17668
hardcode_into_libs=yes
17671
irix5* | irix6* | nonstopux*)
17673
nonstopux*) version_type=nonstopux ;;
17675
if test "$lt_cv_prog_gnu_ld" = yes; then
17683
soname_spec='${libname}${release}${shared_ext}$major'
17684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17686
irix5* | nonstopux*)
17687
libsuff= shlibsuff=
17690
case $LD in # libtool.m4 will add one of these switches to LD
17691
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17692
libsuff= shlibsuff= libmagic=32-bit;;
17693
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17694
libsuff=32 shlibsuff=N32 libmagic=N32;;
17695
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17696
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17697
*) libsuff= shlibsuff= libmagic=never-match;;
17701
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17702
shlibpath_overrides_runpath=no
17703
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17704
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17705
hardcode_into_libs=yes
17708
# No shared lib support for Linux oldld, aout, or coff.
17709
linux*oldld* | linux*aout* | linux*coff*)
17713
# This must be Linux ELF.
17718
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17719
soname_spec='${libname}${release}${shared_ext}$major'
17720
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17721
shlibpath_var=LD_LIBRARY_PATH
17722
shlibpath_overrides_runpath=no
17723
# This implies no fast_install, which is unacceptable.
17724
# Some rework will be needed to allow for fast_install
17725
# before this can be enabled.
17726
hardcode_into_libs=yes
17728
# Append ld.so.conf contents to the search path
17729
if test -f /etc/ld.so.conf; then
17730
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17731
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17734
# We used to test for /lib/ld.so.1 and disable shared libraries on
17735
# powerpc, because MkLinux only supported shared libraries with the
17736
# GNU dynamic linker. Since this was broken with cross compilers,
17737
# most powerpc-linux boxes support dynamic linking these days and
17738
# people can always --disable-shared, the test was removed, and we
17739
# assume the GNU/Linux dynamic linker is in use.
17740
dynamic_linker='GNU/Linux ld.so'
17747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17748
soname_spec='${libname}${release}${shared_ext}$major'
17749
shlibpath_var=LD_LIBRARY_PATH
17750
shlibpath_overrides_runpath=no
17751
hardcode_into_libs=yes
17752
dynamic_linker='GNU ld.so'
17759
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17761
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17762
dynamic_linker='NetBSD (a.out) ld.so'
17764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17765
soname_spec='${libname}${release}${shared_ext}$major'
17766
dynamic_linker='NetBSD ld.elf_so'
17768
shlibpath_var=LD_LIBRARY_PATH
17769
shlibpath_overrides_runpath=yes
17770
hardcode_into_libs=yes
17775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776
shlibpath_var=LD_LIBRARY_PATH
17777
shlibpath_overrides_runpath=yes
17784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17785
soname_spec='${libname}${release}${shared_ext}$major'
17786
shlibpath_var=LD_LIBRARY_PATH
17787
shlibpath_overrides_runpath=yes
17792
sys_lib_dlsearch_path_spec="/usr/lib"
17794
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17796
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17797
*) need_version=no ;;
17799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17800
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17801
shlibpath_var=LD_LIBRARY_PATH
17802
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17804
openbsd2.[89] | openbsd2.[89].*)
17805
shlibpath_overrides_runpath=no
17808
shlibpath_overrides_runpath=yes
17812
shlibpath_overrides_runpath=yes
17817
libname_spec='$name'
17820
library_names_spec='$libname${shared_ext} $libname.a'
17821
dynamic_linker='OS/2 ld.exe'
17822
shlibpath_var=LIBPATH
17825
osf3* | osf4* | osf5*)
17829
soname_spec='${libname}${release}${shared_ext}$major'
17830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17831
shlibpath_var=LD_LIBRARY_PATH
17832
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17833
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841
soname_spec='${libname}${release}${shared_ext}$major'
17842
shlibpath_var=LD_LIBRARY_PATH
17843
shlibpath_overrides_runpath=yes
17844
hardcode_into_libs=yes
17845
# ldd complains unless libraries are executable
17846
postinstall_cmds='chmod +x $lib'
17851
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17852
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17853
shlibpath_var=LD_LIBRARY_PATH
17854
shlibpath_overrides_runpath=yes
17855
if test "$with_gnu_ld" = yes; then
17863
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864
soname_spec='${libname}${release}${shared_ext}$major'
17865
shlibpath_var=LD_LIBRARY_PATH
17866
case $host_vendor in
17868
shlibpath_overrides_runpath=no
17870
export_dynamic_flag_spec='${wl}-Blargedynsym'
17871
runpath_var=LD_RUN_PATH
17879
shlibpath_overrides_runpath=no
17880
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17886
if test -d /usr/nec ;then
17888
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17889
soname_spec='$libname${shared_ext}.$major'
17890
shlibpath_var=LD_LIBRARY_PATH
17894
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17895
version_type=freebsd-elf
17898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17899
soname_spec='${libname}${release}${shared_ext}$major'
17900
shlibpath_var=LD_LIBRARY_PATH
17901
hardcode_into_libs=yes
17902
if test "$with_gnu_ld" = yes; then
17903
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17904
shlibpath_overrides_runpath=no
17906
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17907
shlibpath_overrides_runpath=yes
17910
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17914
sys_lib_dlsearch_path_spec='/usr/lib'
17919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17920
soname_spec='${libname}${release}${shared_ext}$major'
17921
shlibpath_var=LD_LIBRARY_PATH
17928
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17929
echo "${ECHO_T}$dynamic_linker" >&6
17930
test "$dynamic_linker" = no && can_build_shared=no
17932
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17933
if test "$GCC" = yes; then
17934
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17937
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17938
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17939
hardcode_action_GCJ=
17940
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17941
test -n "$runpath_var_GCJ" || \
17942
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17944
# We can hardcode non-existant directories.
17945
if test "$hardcode_direct_GCJ" != no &&
17946
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17947
# have to relink, otherwise we might link with an installed library
17948
# when we should be linking with a yet-to-be-installed one
17949
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17950
test "$hardcode_minus_L_GCJ" != no; then
17951
# Linking always hardcodes the temporary library directory.
17952
hardcode_action_GCJ=relink
17954
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17955
hardcode_action_GCJ=immediate
17958
# We cannot hardcode anything, or else we can only hardcode existing
17960
hardcode_action_GCJ=unsupported
17962
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17963
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17965
if test "$hardcode_action_GCJ" = relink; then
17966
# Fast installation is not supported
17967
enable_fast_install=no
17968
elif test "$shlibpath_overrides_runpath" = yes ||
17969
test "$enable_shared" = no; then
17970
# Fast installation is not necessary
17971
enable_fast_install=needless
17975
# The else clause should only fire when bootstrapping the
17976
# libtool distribution, otherwise you forgot to ship ltmain.sh
17977
# with your package, and you will get complaints that there are
17978
# no rules to generate ltmain.sh.
17979
if test -f "$ltmain"; then
17980
# See if we are running on zsh, and set the options which allow our commands through
17981
# without removal of \ escapes.
17982
if test -n "${ZSH_VERSION+set}" ; then
17983
setopt NO_GLOB_SUBST
17985
# Now quote all the things that may contain metacharacters while being
17986
# careful not to overquote the AC_SUBSTed values. We take copies of the
17987
# variables and quote the copies for generation of the libtool script.
17988
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17990
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17991
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17992
deplibs_check_method reload_flag reload_cmds need_locks \
17993
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17994
lt_cv_sys_global_symbol_to_c_name_address \
17995
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17996
old_postinstall_cmds old_postuninstall_cmds \
18000
lt_prog_compiler_wl_GCJ \
18001
lt_prog_compiler_pic_GCJ \
18002
lt_prog_compiler_static_GCJ \
18003
lt_prog_compiler_no_builtin_flag_GCJ \
18004
export_dynamic_flag_spec_GCJ \
18005
thread_safe_flag_spec_GCJ \
18006
whole_archive_flag_spec_GCJ \
18007
enable_shared_with_static_runtimes_GCJ \
18008
old_archive_cmds_GCJ \
18009
old_archive_from_new_cmds_GCJ \
18010
predep_objects_GCJ \
18011
postdep_objects_GCJ \
18014
compiler_lib_search_path_GCJ \
18016
archive_expsym_cmds_GCJ \
18017
postinstall_cmds_GCJ \
18018
postuninstall_cmds_GCJ \
18019
old_archive_from_expsyms_cmds_GCJ \
18020
allow_undefined_flag_GCJ \
18021
no_undefined_flag_GCJ \
18022
export_symbols_cmds_GCJ \
18023
hardcode_libdir_flag_spec_GCJ \
18024
hardcode_libdir_flag_spec_ld_GCJ \
18025
hardcode_libdir_separator_GCJ \
18026
hardcode_automatic_GCJ \
18028
module_expsym_cmds_GCJ \
18029
lt_cv_prog_compiler_c_o_GCJ \
18030
exclude_expsyms_GCJ \
18031
include_expsyms_GCJ; do
18034
old_archive_cmds_GCJ | \
18035
old_archive_from_new_cmds_GCJ | \
18036
archive_cmds_GCJ | \
18037
archive_expsym_cmds_GCJ | \
18038
module_cmds_GCJ | \
18039
module_expsym_cmds_GCJ | \
18040
old_archive_from_expsyms_cmds_GCJ | \
18041
export_symbols_cmds_GCJ | \
18042
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18043
postinstall_cmds | postuninstall_cmds | \
18044
old_postinstall_cmds | old_postuninstall_cmds | \
18045
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18046
# Double-quote double-evaled strings.
18047
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18050
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18056
*'\$0 --fallback-echo"')
18057
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18063
cat <<__EOF__ >> "$cfgfile"
18064
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18066
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18068
# Shell to use when invoking shell scripts.
18071
# Whether or not to build shared libraries.
18072
build_libtool_libs=$enable_shared
18074
# Whether or not to build static libraries.
18075
build_old_libs=$enable_static
18077
# Whether or not to add -lc for building shared libraries.
18078
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18080
# Whether or not to disallow shared libs when runtime libs are static
18081
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18083
# Whether or not to optimize for fast installation.
18084
fast_install=$enable_fast_install
18087
host_alias=$host_alias
18091
# The build system.
18092
build_alias=$build_alias
18096
# An echo program that does not interpret backslashes.
18101
AR_FLAGS=$lt_AR_FLAGS
18106
# LTCC compiler flags.
18107
LTCFLAGS=$lt_LTCFLAGS
18109
# A language-specific compiler.
18110
CC=$lt_compiler_GCJ
18112
# Is the compiler the GNU C compiler?
18118
# The linker used to build libraries.
18121
# Whether we need hard or soft links.
18124
# A BSD-compatible nm program.
18127
# A symbol stripping program
18130
# Used to examine libraries when file_magic_cmd begins "file"
18131
MAGIC_CMD=$MAGIC_CMD
18133
# Used on cygwin: DLL creation program.
18136
# Used on cygwin: object dumper.
18139
# Used on cygwin: assembler.
18142
# The name of the directory that contains temporary libtool files.
18145
# How to create reloadable object files.
18146
reload_flag=$lt_reload_flag
18147
reload_cmds=$lt_reload_cmds
18149
# How to pass a linker flag through the compiler.
18150
wl=$lt_lt_prog_compiler_wl_GCJ
18152
# Object file suffix (normally "o").
18153
objext="$ac_objext"
18155
# Old archive suffix (normally "a").
18158
# Shared library suffix (normally ".so").
18159
shrext_cmds='$shrext_cmds'
18161
# Executable file suffix (normally "").
18164
# Additional compiler flags for building library objects.
18165
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18168
# What is the maximum length of a command?
18169
max_cmd_len=$lt_cv_sys_max_cmd_len
18171
# Does compiler simultaneously support -c and -o options?
18172
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18174
# Must we lock files when doing compilation?
18175
need_locks=$lt_need_locks
18177
# Do we need the lib prefix for modules?
18178
need_lib_prefix=$need_lib_prefix
18180
# Do we need a version for libraries?
18181
need_version=$need_version
18183
# Whether dlopen is supported.
18184
dlopen_support=$enable_dlopen
18186
# Whether dlopen of programs is supported.
18187
dlopen_self=$enable_dlopen_self
18189
# Whether dlopen of statically linked programs is supported.
18190
dlopen_self_static=$enable_dlopen_self_static
18192
# Compiler flag to prevent dynamic linking.
18193
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18195
# Compiler flag to turn off builtin functions.
18196
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18198
# Compiler flag to allow reflexive dlopens.
18199
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18201
# Compiler flag to generate shared objects directly from archives.
18202
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18204
# Compiler flag to generate thread-safe objects.
18205
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18207
# Library versioning type.
18208
version_type=$version_type
18210
# Format of library name prefix.
18211
libname_spec=$lt_libname_spec
18213
# List of archive names. First name is the real one, the rest are links.
18214
# The last name is the one that the linker finds with -lNAME.
18215
library_names_spec=$lt_library_names_spec
18217
# The coded name of the library, if different from the real name.
18218
soname_spec=$lt_soname_spec
18220
# Commands used to build and install an old-style archive.
18222
old_archive_cmds=$lt_old_archive_cmds_GCJ
18223
old_postinstall_cmds=$lt_old_postinstall_cmds
18224
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18226
# Create an old-style archive from a shared archive.
18227
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18229
# Create a temporary old-style archive to link instead of a shared archive.
18230
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18232
# Commands used to build and install a shared archive.
18233
archive_cmds=$lt_archive_cmds_GCJ
18234
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18235
postinstall_cmds=$lt_postinstall_cmds
18236
postuninstall_cmds=$lt_postuninstall_cmds
18238
# Commands used to build a loadable module (assumed same as above if empty)
18239
module_cmds=$lt_module_cmds_GCJ
18240
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18242
# Commands to strip libraries.
18243
old_striplib=$lt_old_striplib
18244
striplib=$lt_striplib
18246
# Dependencies to place before the objects being linked to create a
18248
predep_objects=$lt_predep_objects_GCJ
18250
# Dependencies to place after the objects being linked to create a
18252
postdep_objects=$lt_postdep_objects_GCJ
18254
# Dependencies to place before the objects being linked to create a
18256
predeps=$lt_predeps_GCJ
18258
# Dependencies to place after the objects being linked to create a
18260
postdeps=$lt_postdeps_GCJ
18262
# The library search path used internally by the compiler when linking
18263
# a shared library.
18264
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18266
# Method to check whether dependent libraries are shared objects.
18267
deplibs_check_method=$lt_deplibs_check_method
18269
# Command to use when deplibs_check_method == file_magic.
18270
file_magic_cmd=$lt_file_magic_cmd
18272
# Flag that allows shared libraries with undefined symbols to be built.
18273
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18275
# Flag that forces no undefined symbols.
18276
no_undefined_flag=$lt_no_undefined_flag_GCJ
18278
# Commands used to finish a libtool library installation in a directory.
18279
finish_cmds=$lt_finish_cmds
18281
# Same as above, but a single script fragment to be evaled but not shown.
18282
finish_eval=$lt_finish_eval
18284
# Take the output of nm and produce a listing of raw symbols and C names.
18285
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18287
# Transform the output of nm in a proper C declaration
18288
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18290
# Transform the output of nm in a C name address pair
18291
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18293
# This is the shared library runtime path variable.
18294
runpath_var=$runpath_var
18296
# This is the shared library path variable.
18297
shlibpath_var=$shlibpath_var
18299
# Is shlibpath searched before the hard-coded library search path?
18300
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18302
# How to hardcode a shared library path into an executable.
18303
hardcode_action=$hardcode_action_GCJ
18305
# Whether we should hardcode library paths into libraries.
18306
hardcode_into_libs=$hardcode_into_libs
18308
# Flag to hardcode \$libdir into a binary during linking.
18309
# This must work even if \$libdir does not exist.
18310
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18312
# If ld is used when linking, flag to hardcode \$libdir into
18313
# a binary during linking. This must work even if \$libdir does
18315
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18317
# Whether we need a single -rpath flag with a separated argument.
18318
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18320
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18321
# resulting binary.
18322
hardcode_direct=$hardcode_direct_GCJ
18324
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18325
# resulting binary.
18326
hardcode_minus_L=$hardcode_minus_L_GCJ
18328
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18329
# the resulting binary.
18330
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18332
# Set to yes if building a shared library automatically hardcodes DIR into the library
18333
# and all subsequent libraries and executables linked against it.
18334
hardcode_automatic=$hardcode_automatic_GCJ
18336
# Variables whose values should be saved in libtool wrapper scripts and
18337
# restored at relink time.
18338
variables_saved_for_relink="$variables_saved_for_relink"
18340
# Whether libtool must link a program against all its dependency libraries.
18341
link_all_deplibs=$link_all_deplibs_GCJ
18343
# Compile-time system search path for libraries
18344
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18346
# Run-time system search path for libraries
18347
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18349
# Fix the shell variable \$srcfile for the compiler.
18350
fix_srcfile_path="$fix_srcfile_path_GCJ"
18352
# Set to yes if exported symbols are required.
18353
always_export_symbols=$always_export_symbols_GCJ
18355
# The commands to list exported symbols.
18356
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18358
# The commands to extract the exported symbol list from a shared archive.
18359
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18361
# Symbols that should not be listed in the preloaded symbols.
18362
exclude_expsyms=$lt_exclude_expsyms_GCJ
18364
# Symbols that must always be exported.
18365
include_expsyms=$lt_include_expsyms_GCJ
18367
# ### END LIBTOOL TAG CONFIG: $tagname
18373
# If there is no Makefile yet, we rely on a make rule to execute
18374
# `config.status --recheck' to rerun these tests and create the
18375
# libtool script then.
18376
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18377
if test -f "$ltmain_in"; then
18378
test -f Makefile && make "$ltmain"
18384
ac_cpp='$CPP $CPPFLAGS'
18385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18386
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18400
# Source file extension for RC test sources.
18403
# Object file extension for compiled RC test sources.
18407
# Code to be used in simple compile tests
18408
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18410
# Code to be used in simple link tests
18411
lt_simple_link_test_code="$lt_simple_compile_test_code"
18413
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18415
# If no C compiler was specified, use CC.
18418
# If no C compiler flags were specified, use CFLAGS.
18419
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18421
# Allow CC to be a program name with arguments.
18425
# save warnings/boilerplate of simple test code
18426
ac_outfile=conftest.$ac_objext
18427
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18428
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18429
_lt_compiler_boilerplate=`cat conftest.err`
18432
ac_outfile=conftest.$ac_objext
18433
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18434
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18435
_lt_linker_boilerplate=`cat conftest.err`
18439
# Allow CC to be a program name with arguments.
18444
for cc_temp in $compiler""; do
18446
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18447
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18452
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18454
lt_cv_prog_compiler_c_o_RC=yes
18456
# The else clause should only fire when bootstrapping the
18457
# libtool distribution, otherwise you forgot to ship ltmain.sh
18458
# with your package, and you will get complaints that there are
18459
# no rules to generate ltmain.sh.
18460
if test -f "$ltmain"; then
18461
# See if we are running on zsh, and set the options which allow our commands through
18462
# without removal of \ escapes.
18463
if test -n "${ZSH_VERSION+set}" ; then
18464
setopt NO_GLOB_SUBST
18466
# Now quote all the things that may contain metacharacters while being
18467
# careful not to overquote the AC_SUBSTed values. We take copies of the
18468
# variables and quote the copies for generation of the libtool script.
18469
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18471
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18472
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18473
deplibs_check_method reload_flag reload_cmds need_locks \
18474
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18475
lt_cv_sys_global_symbol_to_c_name_address \
18476
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18477
old_postinstall_cmds old_postuninstall_cmds \
18481
lt_prog_compiler_wl_RC \
18482
lt_prog_compiler_pic_RC \
18483
lt_prog_compiler_static_RC \
18484
lt_prog_compiler_no_builtin_flag_RC \
18485
export_dynamic_flag_spec_RC \
18486
thread_safe_flag_spec_RC \
18487
whole_archive_flag_spec_RC \
18488
enable_shared_with_static_runtimes_RC \
18489
old_archive_cmds_RC \
18490
old_archive_from_new_cmds_RC \
18491
predep_objects_RC \
18492
postdep_objects_RC \
18495
compiler_lib_search_path_RC \
18497
archive_expsym_cmds_RC \
18498
postinstall_cmds_RC \
18499
postuninstall_cmds_RC \
18500
old_archive_from_expsyms_cmds_RC \
18501
allow_undefined_flag_RC \
18502
no_undefined_flag_RC \
18503
export_symbols_cmds_RC \
18504
hardcode_libdir_flag_spec_RC \
18505
hardcode_libdir_flag_spec_ld_RC \
18506
hardcode_libdir_separator_RC \
18507
hardcode_automatic_RC \
18509
module_expsym_cmds_RC \
18510
lt_cv_prog_compiler_c_o_RC \
18511
exclude_expsyms_RC \
18512
include_expsyms_RC; do
18515
old_archive_cmds_RC | \
18516
old_archive_from_new_cmds_RC | \
18517
archive_cmds_RC | \
18518
archive_expsym_cmds_RC | \
18520
module_expsym_cmds_RC | \
18521
old_archive_from_expsyms_cmds_RC | \
18522
export_symbols_cmds_RC | \
18523
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18524
postinstall_cmds | postuninstall_cmds | \
18525
old_postinstall_cmds | old_postuninstall_cmds | \
18526
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18527
# Double-quote double-evaled strings.
18528
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18531
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18537
*'\$0 --fallback-echo"')
18538
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18544
cat <<__EOF__ >> "$cfgfile"
18545
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18547
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18549
# Shell to use when invoking shell scripts.
18552
# Whether or not to build shared libraries.
18553
build_libtool_libs=$enable_shared
18555
# Whether or not to build static libraries.
18556
build_old_libs=$enable_static
18558
# Whether or not to add -lc for building shared libraries.
18559
build_libtool_need_lc=$archive_cmds_need_lc_RC
18561
# Whether or not to disallow shared libs when runtime libs are static
18562
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18564
# Whether or not to optimize for fast installation.
18565
fast_install=$enable_fast_install
18568
host_alias=$host_alias
18572
# The build system.
18573
build_alias=$build_alias
18577
# An echo program that does not interpret backslashes.
18582
AR_FLAGS=$lt_AR_FLAGS
18587
# LTCC compiler flags.
18588
LTCFLAGS=$lt_LTCFLAGS
18590
# A language-specific compiler.
18593
# Is the compiler the GNU C compiler?
18599
# The linker used to build libraries.
18602
# Whether we need hard or soft links.
18605
# A BSD-compatible nm program.
18608
# A symbol stripping program
18611
# Used to examine libraries when file_magic_cmd begins "file"
18612
MAGIC_CMD=$MAGIC_CMD
18614
# Used on cygwin: DLL creation program.
18617
# Used on cygwin: object dumper.
18620
# Used on cygwin: assembler.
18623
# The name of the directory that contains temporary libtool files.
18626
# How to create reloadable object files.
18627
reload_flag=$lt_reload_flag
18628
reload_cmds=$lt_reload_cmds
18630
# How to pass a linker flag through the compiler.
18631
wl=$lt_lt_prog_compiler_wl_RC
18633
# Object file suffix (normally "o").
18634
objext="$ac_objext"
18636
# Old archive suffix (normally "a").
18639
# Shared library suffix (normally ".so").
18640
shrext_cmds='$shrext_cmds'
18642
# Executable file suffix (normally "").
18645
# Additional compiler flags for building library objects.
18646
pic_flag=$lt_lt_prog_compiler_pic_RC
18649
# What is the maximum length of a command?
18650
max_cmd_len=$lt_cv_sys_max_cmd_len
18652
# Does compiler simultaneously support -c and -o options?
18653
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18655
# Must we lock files when doing compilation?
18656
need_locks=$lt_need_locks
18658
# Do we need the lib prefix for modules?
18659
need_lib_prefix=$need_lib_prefix
18661
# Do we need a version for libraries?
18662
need_version=$need_version
18664
# Whether dlopen is supported.
18665
dlopen_support=$enable_dlopen
18667
# Whether dlopen of programs is supported.
18668
dlopen_self=$enable_dlopen_self
18670
# Whether dlopen of statically linked programs is supported.
18671
dlopen_self_static=$enable_dlopen_self_static
18673
# Compiler flag to prevent dynamic linking.
18674
link_static_flag=$lt_lt_prog_compiler_static_RC
18676
# Compiler flag to turn off builtin functions.
18677
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18679
# Compiler flag to allow reflexive dlopens.
18680
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18682
# Compiler flag to generate shared objects directly from archives.
18683
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18685
# Compiler flag to generate thread-safe objects.
18686
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18688
# Library versioning type.
18689
version_type=$version_type
18691
# Format of library name prefix.
18692
libname_spec=$lt_libname_spec
18694
# List of archive names. First name is the real one, the rest are links.
18695
# The last name is the one that the linker finds with -lNAME.
18696
library_names_spec=$lt_library_names_spec
18698
# The coded name of the library, if different from the real name.
18699
soname_spec=$lt_soname_spec
18701
# Commands used to build and install an old-style archive.
18703
old_archive_cmds=$lt_old_archive_cmds_RC
18704
old_postinstall_cmds=$lt_old_postinstall_cmds
18705
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18707
# Create an old-style archive from a shared archive.
18708
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18710
# Create a temporary old-style archive to link instead of a shared archive.
18711
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18713
# Commands used to build and install a shared archive.
18714
archive_cmds=$lt_archive_cmds_RC
18715
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18716
postinstall_cmds=$lt_postinstall_cmds
18717
postuninstall_cmds=$lt_postuninstall_cmds
18719
# Commands used to build a loadable module (assumed same as above if empty)
18720
module_cmds=$lt_module_cmds_RC
18721
module_expsym_cmds=$lt_module_expsym_cmds_RC
18723
# Commands to strip libraries.
18724
old_striplib=$lt_old_striplib
18725
striplib=$lt_striplib
18727
# Dependencies to place before the objects being linked to create a
18729
predep_objects=$lt_predep_objects_RC
18731
# Dependencies to place after the objects being linked to create a
18733
postdep_objects=$lt_postdep_objects_RC
18735
# Dependencies to place before the objects being linked to create a
18737
predeps=$lt_predeps_RC
18739
# Dependencies to place after the objects being linked to create a
18741
postdeps=$lt_postdeps_RC
18743
# The library search path used internally by the compiler when linking
18744
# a shared library.
18745
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18747
# Method to check whether dependent libraries are shared objects.
18748
deplibs_check_method=$lt_deplibs_check_method
18750
# Command to use when deplibs_check_method == file_magic.
18751
file_magic_cmd=$lt_file_magic_cmd
18753
# Flag that allows shared libraries with undefined symbols to be built.
18754
allow_undefined_flag=$lt_allow_undefined_flag_RC
18756
# Flag that forces no undefined symbols.
18757
no_undefined_flag=$lt_no_undefined_flag_RC
18759
# Commands used to finish a libtool library installation in a directory.
18760
finish_cmds=$lt_finish_cmds
18762
# Same as above, but a single script fragment to be evaled but not shown.
18763
finish_eval=$lt_finish_eval
18765
# Take the output of nm and produce a listing of raw symbols and C names.
18766
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18768
# Transform the output of nm in a proper C declaration
18769
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18771
# Transform the output of nm in a C name address pair
18772
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18774
# This is the shared library runtime path variable.
18775
runpath_var=$runpath_var
18777
# This is the shared library path variable.
18778
shlibpath_var=$shlibpath_var
18780
# Is shlibpath searched before the hard-coded library search path?
18781
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18783
# How to hardcode a shared library path into an executable.
18784
hardcode_action=$hardcode_action_RC
18786
# Whether we should hardcode library paths into libraries.
18787
hardcode_into_libs=$hardcode_into_libs
18789
# Flag to hardcode \$libdir into a binary during linking.
18790
# This must work even if \$libdir does not exist.
18791
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18793
# If ld is used when linking, flag to hardcode \$libdir into
18794
# a binary during linking. This must work even if \$libdir does
18796
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18798
# Whether we need a single -rpath flag with a separated argument.
18799
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18801
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18802
# resulting binary.
18803
hardcode_direct=$hardcode_direct_RC
18805
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18806
# resulting binary.
18807
hardcode_minus_L=$hardcode_minus_L_RC
18809
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18810
# the resulting binary.
18811
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18813
# Set to yes if building a shared library automatically hardcodes DIR into the library
18814
# and all subsequent libraries and executables linked against it.
18815
hardcode_automatic=$hardcode_automatic_RC
18817
# Variables whose values should be saved in libtool wrapper scripts and
18818
# restored at relink time.
18819
variables_saved_for_relink="$variables_saved_for_relink"
18821
# Whether libtool must link a program against all its dependency libraries.
18822
link_all_deplibs=$link_all_deplibs_RC
18824
# Compile-time system search path for libraries
18825
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18827
# Run-time system search path for libraries
18828
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18830
# Fix the shell variable \$srcfile for the compiler.
18831
fix_srcfile_path="$fix_srcfile_path_RC"
18833
# Set to yes if exported symbols are required.
18834
always_export_symbols=$always_export_symbols_RC
18836
# The commands to list exported symbols.
18837
export_symbols_cmds=$lt_export_symbols_cmds_RC
18839
# The commands to extract the exported symbol list from a shared archive.
18840
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18842
# Symbols that should not be listed in the preloaded symbols.
18843
exclude_expsyms=$lt_exclude_expsyms_RC
18845
# Symbols that must always be exported.
18846
include_expsyms=$lt_include_expsyms_RC
18848
# ### END LIBTOOL TAG CONFIG: $tagname
18854
# If there is no Makefile yet, we rely on a make rule to execute
18855
# `config.status --recheck' to rerun these tests and create the
18856
# libtool script then.
18857
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18858
if test -f "$ltmain_in"; then
18859
test -f Makefile && make "$ltmain"
18865
ac_cpp='$CPP $CPPFLAGS'
18866
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18867
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18868
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18875
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18876
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18877
{ (exit 1); exit 1; }; }
18881
# Append the new tag name to the list of available tags.
18882
if test -n "$tagname" ; then
18883
available_tags="$available_tags $tagname"
18889
# Now substitute the updated list of available tags.
18890
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18891
mv "${ofile}T" "$ofile"
18895
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18896
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18897
{ (exit 1); exit 1; }; }
18903
# This can be used to rebuild libtool when needed
18904
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18906
# Always use our own libtool.
18907
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18909
# Prevent multiple expansion
18931
# Check whether --enable-shared or --disable-shared was given.
18932
if test "${enable_shared+set}" = set; then
18933
enableval="$enable_shared"
18934
p=${PACKAGE-default}
18936
yes) enable_shared=yes ;;
18937
no) enable_shared=no ;;
18940
# Look at the argument we got. We use all the common list separators.
18941
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18942
for pkg in $enableval; do
18944
if test "X$pkg" = "X$p"; then
18955
# Check whether --enable-static or --disable-static was given.
18956
if test "${enable_static+set}" = set; then
18957
enableval="$enable_static"
18958
p=${PACKAGE-default}
18960
yes) enable_static=yes ;;
18961
no) enable_static=no ;;
18964
# Look at the argument we got. We use all the common list separators.
18965
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18966
for pkg in $enableval; do
18968
if test "X$pkg" = "X$p"; then
18981
for ac_func in getcwd
18983
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18984
echo "$as_me:$LINENO: checking for $ac_func" >&5
18985
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18986
if eval "test \"\${$as_ac_var+set}\" = set"; then
18987
echo $ECHO_N "(cached) $ECHO_C" >&6
18989
cat >conftest.$ac_ext <<_ACEOF
18992
cat confdefs.h >>conftest.$ac_ext
18993
cat >>conftest.$ac_ext <<_ACEOF
18994
/* end confdefs.h. */
18995
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18996
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18997
#define $ac_func innocuous_$ac_func
18999
/* System header to define __stub macros and hopefully few prototypes,
19000
which can conflict with char $ac_func (); below.
19001
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19002
<limits.h> exists even on freestanding compilers. */
19005
# include <limits.h>
19007
# include <assert.h>
19012
/* Override any gcc2 internal prototype to avoid an error. */
19017
/* We use char because int might match the return type of a gcc2
19018
builtin and then its argument prototype would still apply. */
19020
/* The GNU C library defines this for functions which it implements
19021
to always fail with ENOSYS. Some functions are actually named
19022
something starting with __ and the normal name is an alias. */
19023
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19026
char (*f) () = $ac_func;
19035
return f != $ac_func;
19040
rm -f conftest.$ac_objext conftest$ac_exeext
19041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19042
(eval $ac_link) 2>conftest.er1
19044
grep -v '^ *+' conftest.er1 >conftest.err
19046
cat conftest.err >&5
19047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048
(exit $ac_status); } &&
19049
{ ac_try='test -z "$ac_c_werror_flag"
19050
|| test ! -s conftest.err'
19051
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052
(eval $ac_try) 2>&5
19054
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055
(exit $ac_status); }; } &&
19056
{ ac_try='test -s conftest$ac_exeext'
19057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058
(eval $ac_try) 2>&5
19060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061
(exit $ac_status); }; }; then
19062
eval "$as_ac_var=yes"
19064
echo "$as_me: failed program was:" >&5
19065
sed 's/^/| /' conftest.$ac_ext >&5
19067
eval "$as_ac_var=no"
19069
rm -f conftest.err conftest.$ac_objext \
19070
conftest$ac_exeext conftest.$ac_ext
19072
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19073
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19074
if test `eval echo '${'$as_ac_var'}'` = yes; then
19075
cat >>confdefs.h <<_ACEOF
19076
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19083
for ac_func in memset
19085
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19086
echo "$as_me:$LINENO: checking for $ac_func" >&5
19087
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19088
if eval "test \"\${$as_ac_var+set}\" = set"; then
19089
echo $ECHO_N "(cached) $ECHO_C" >&6
19091
cat >conftest.$ac_ext <<_ACEOF
19094
cat confdefs.h >>conftest.$ac_ext
19095
cat >>conftest.$ac_ext <<_ACEOF
19096
/* end confdefs.h. */
19097
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19098
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19099
#define $ac_func innocuous_$ac_func
19101
/* System header to define __stub macros and hopefully few prototypes,
19102
which can conflict with char $ac_func (); below.
19103
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19104
<limits.h> exists even on freestanding compilers. */
19107
# include <limits.h>
19109
# include <assert.h>
19114
/* Override any gcc2 internal prototype to avoid an error. */
19119
/* We use char because int might match the return type of a gcc2
19120
builtin and then its argument prototype would still apply. */
19122
/* The GNU C library defines this for functions which it implements
19123
to always fail with ENOSYS. Some functions are actually named
19124
something starting with __ and the normal name is an alias. */
19125
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19128
char (*f) () = $ac_func;
19137
return f != $ac_func;
19142
rm -f conftest.$ac_objext conftest$ac_exeext
19143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144
(eval $ac_link) 2>conftest.er1
19146
grep -v '^ *+' conftest.er1 >conftest.err
19148
cat conftest.err >&5
19149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150
(exit $ac_status); } &&
19151
{ ac_try='test -z "$ac_c_werror_flag"
19152
|| test ! -s conftest.err'
19153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154
(eval $ac_try) 2>&5
19156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157
(exit $ac_status); }; } &&
19158
{ ac_try='test -s conftest$ac_exeext'
19159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160
(eval $ac_try) 2>&5
19162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163
(exit $ac_status); }; }; then
19164
eval "$as_ac_var=yes"
19166
echo "$as_me: failed program was:" >&5
19167
sed 's/^/| /' conftest.$ac_ext >&5
19169
eval "$as_ac_var=no"
19171
rm -f conftest.err conftest.$ac_objext \
19172
conftest$ac_exeext conftest.$ac_ext
19174
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19175
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19176
if test `eval echo '${'$as_ac_var'}'` = yes; then
19177
cat >>confdefs.h <<_ACEOF
19178
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19185
for ac_prog in gawk mawk nawk awk
19187
# Extract the first word of "$ac_prog", so it can be a program name with args.
19188
set dummy $ac_prog; ac_word=$2
19189
echo "$as_me:$LINENO: checking for $ac_word" >&5
19190
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19191
if test "${ac_cv_prog_AWK+set}" = set; then
19192
echo $ECHO_N "(cached) $ECHO_C" >&6
19194
if test -n "$AWK"; then
19195
ac_cv_prog_AWK="$AWK" # Let the user override the test.
19197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19198
for as_dir in $PATH
19201
test -z "$as_dir" && as_dir=.
19202
for ac_exec_ext in '' $ac_executable_extensions; do
19203
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19204
ac_cv_prog_AWK="$ac_prog"
19205
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19213
AWK=$ac_cv_prog_AWK
19214
if test -n "$AWK"; then
19215
echo "$as_me:$LINENO: result: $AWK" >&5
19216
echo "${ECHO_T}$AWK" >&6
19218
echo "$as_me:$LINENO: result: no" >&5
19219
echo "${ECHO_T}no" >&6
19222
test -n "$AWK" && break
19225
# Find a good install program. We prefer a C program (faster),
19226
# so one script is as good as another. But avoid the broken or
19227
# incompatible versions:
19228
# SysV /etc/install, /usr/sbin/install
19229
# SunOS /usr/etc/install
19230
# IRIX /sbin/install
19232
# AmigaOS /C/install, which installs bootblocks on floppy discs
19233
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19234
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19235
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19236
# OS/2's system install, which has a completely different semantic
19237
# ./install, which can be erroneously created by make from ./install.sh.
19238
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19239
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19240
if test -z "$INSTALL"; then
19241
if test "${ac_cv_path_install+set}" = set; then
19242
echo $ECHO_N "(cached) $ECHO_C" >&6
19244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19245
for as_dir in $PATH
19248
test -z "$as_dir" && as_dir=.
19249
# Account for people who put trailing slashes in PATH elements.
19251
./ | .// | /cC/* | \
19252
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19253
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19256
# OSF1 and SCO ODT 3.0 have their own names for install.
19257
# Don't use installbsd from OSF since it installs stuff as root
19259
for ac_prog in ginstall scoinst install; do
19260
for ac_exec_ext in '' $ac_executable_extensions; do
19261
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19262
if test $ac_prog = install &&
19263
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19264
# AIX install. It has an incompatible calling convention.
19266
elif test $ac_prog = install &&
19267
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19268
# program-specific install script used by HP pwplus--don't use.
19271
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19283
if test "${ac_cv_path_install+set}" = set; then
19284
INSTALL=$ac_cv_path_install
19286
# As a last resort, use the slow shell script. We don't cache a
19287
# path for INSTALL within a source directory, because that will
19288
# break other packages using the cache if that directory is
19289
# removed, or if the path is relative.
19290
INSTALL=$ac_install_sh
19293
echo "$as_me:$LINENO: result: $INSTALL" >&5
19294
echo "${ECHO_T}$INSTALL" >&6
19296
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19297
# It thinks the first close brace ends the variable substitution.
19298
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19300
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19302
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19304
if test -n "$ac_tool_prefix"; then
19305
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19306
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19307
echo "$as_me:$LINENO: checking for $ac_word" >&5
19308
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19309
if test "${ac_cv_prog_RANLIB+set}" = set; then
19310
echo $ECHO_N "(cached) $ECHO_C" >&6
19312
if test -n "$RANLIB"; then
19313
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19316
for as_dir in $PATH
19319
test -z "$as_dir" && as_dir=.
19320
for ac_exec_ext in '' $ac_executable_extensions; do
19321
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19322
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19323
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19331
RANLIB=$ac_cv_prog_RANLIB
19332
if test -n "$RANLIB"; then
19333
echo "$as_me:$LINENO: result: $RANLIB" >&5
19334
echo "${ECHO_T}$RANLIB" >&6
19336
echo "$as_me:$LINENO: result: no" >&5
19337
echo "${ECHO_T}no" >&6
19341
if test -z "$ac_cv_prog_RANLIB"; then
19342
ac_ct_RANLIB=$RANLIB
19343
# Extract the first word of "ranlib", so it can be a program name with args.
19344
set dummy ranlib; ac_word=$2
19345
echo "$as_me:$LINENO: checking for $ac_word" >&5
19346
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19347
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19348
echo $ECHO_N "(cached) $ECHO_C" >&6
19350
if test -n "$ac_ct_RANLIB"; then
19351
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19354
for as_dir in $PATH
19357
test -z "$as_dir" && as_dir=.
19358
for ac_exec_ext in '' $ac_executable_extensions; do
19359
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19360
ac_cv_prog_ac_ct_RANLIB="ranlib"
19361
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19367
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19370
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19371
if test -n "$ac_ct_RANLIB"; then
19372
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19373
echo "${ECHO_T}$ac_ct_RANLIB" >&6
19375
echo "$as_me:$LINENO: result: no" >&5
19376
echo "${ECHO_T}no" >&6
19379
RANLIB=$ac_ct_RANLIB
19381
RANLIB="$ac_cv_prog_RANLIB"
19385
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19386
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19387
if test "${ac_cv_header_stdc+set}" = set; then
19388
echo $ECHO_N "(cached) $ECHO_C" >&6
19390
cat >conftest.$ac_ext <<_ACEOF
19393
cat confdefs.h >>conftest.$ac_ext
19394
cat >>conftest.$ac_ext <<_ACEOF
19395
/* end confdefs.h. */
19396
#include <stdlib.h>
19397
#include <stdarg.h>
19398
#include <string.h>
19409
rm -f conftest.$ac_objext
19410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19411
(eval $ac_compile) 2>conftest.er1
19413
grep -v '^ *+' conftest.er1 >conftest.err
19415
cat conftest.err >&5
19416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417
(exit $ac_status); } &&
19418
{ ac_try='test -z "$ac_c_werror_flag"
19419
|| test ! -s conftest.err'
19420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421
(eval $ac_try) 2>&5
19423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424
(exit $ac_status); }; } &&
19425
{ ac_try='test -s conftest.$ac_objext'
19426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427
(eval $ac_try) 2>&5
19429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430
(exit $ac_status); }; }; then
19431
ac_cv_header_stdc=yes
19433
echo "$as_me: failed program was:" >&5
19434
sed 's/^/| /' conftest.$ac_ext >&5
19436
ac_cv_header_stdc=no
19438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19440
if test $ac_cv_header_stdc = yes; then
19441
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19442
cat >conftest.$ac_ext <<_ACEOF
19445
cat confdefs.h >>conftest.$ac_ext
19446
cat >>conftest.$ac_ext <<_ACEOF
19447
/* end confdefs.h. */
19448
#include <string.h>
19451
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19452
$EGREP "memchr" >/dev/null 2>&1; then
19455
ac_cv_header_stdc=no
19461
if test $ac_cv_header_stdc = yes; then
19462
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19463
cat >conftest.$ac_ext <<_ACEOF
19466
cat confdefs.h >>conftest.$ac_ext
19467
cat >>conftest.$ac_ext <<_ACEOF
19468
/* end confdefs.h. */
19469
#include <stdlib.h>
19472
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19473
$EGREP "free" >/dev/null 2>&1; then
19476
ac_cv_header_stdc=no
19482
if test $ac_cv_header_stdc = yes; then
19483
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19484
if test "$cross_compiling" = yes; then
19487
cat >conftest.$ac_ext <<_ACEOF
19490
cat confdefs.h >>conftest.$ac_ext
19491
cat >>conftest.$ac_ext <<_ACEOF
19492
/* end confdefs.h. */
19494
#if ((' ' & 0x0FF) == 0x020)
19495
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19496
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19498
# define ISLOWER(c) \
19499
(('a' <= (c) && (c) <= 'i') \
19500
|| ('j' <= (c) && (c) <= 'r') \
19501
|| ('s' <= (c) && (c) <= 'z'))
19502
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19505
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19510
for (i = 0; i < 256; i++)
19511
if (XOR (islower (i), ISLOWER (i))
19512
|| toupper (i) != TOUPPER (i))
19517
rm -f conftest$ac_exeext
19518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19519
(eval $ac_link) 2>&5
19521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19524
(eval $ac_try) 2>&5
19526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527
(exit $ac_status); }; }; then
19530
echo "$as_me: program exited with status $ac_status" >&5
19531
echo "$as_me: failed program was:" >&5
19532
sed 's/^/| /' conftest.$ac_ext >&5
19534
( exit $ac_status )
19535
ac_cv_header_stdc=no
19537
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19541
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19542
echo "${ECHO_T}$ac_cv_header_stdc" >&6
19543
if test $ac_cv_header_stdc = yes; then
19545
cat >>confdefs.h <<\_ACEOF
19546
@%:@define STDC_HEADERS 1
19552
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19553
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19554
if test "${ac_cv_c_const+set}" = set; then
19555
echo $ECHO_N "(cached) $ECHO_C" >&6
19557
cat >conftest.$ac_ext <<_ACEOF
19560
cat confdefs.h >>conftest.$ac_ext
19561
cat >>conftest.$ac_ext <<_ACEOF
19562
/* end confdefs.h. */
19567
/* FIXME: Include the comments suggested by Paul. */
19568
#ifndef __cplusplus
19569
/* Ultrix mips cc rejects this. */
19570
typedef int charset[2];
19572
/* SunOS 4.1.1 cc rejects this. */
19573
char const *const *ccp;
19575
/* NEC SVR4.0.2 mips cc rejects this. */
19576
struct point {int x, y;};
19577
static struct point const zero = {0,0};
19578
/* AIX XL C 1.02.0.0 rejects this.
19579
It does not let you subtract one const X* pointer from another in
19580
an arm of an if-expression whose if-part is not a constant
19582
const char *g = "string";
19583
ccp = &g + (g ? g-g : 0);
19584
/* HPUX 7.0 cc rejects these. */
19587
ccp = (char const *const *) p;
19588
{ /* SCO 3.2v4 cc rejects this. */
19590
char const *s = 0 ? (char *) 0 : (char const *) 0;
19594
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19595
int x[] = {25, 17};
19596
const int *foo = &x[0];
19599
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19600
typedef const int *iptr;
19604
{ /* AIX XL C 1.02.0.0 rejects this saying
19605
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19606
struct s { int j; const int *ap[3]; };
19607
struct s *b; b->j = 5;
19609
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19610
const int foo = 10;
19618
rm -f conftest.$ac_objext
19619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19620
(eval $ac_compile) 2>conftest.er1
19622
grep -v '^ *+' conftest.er1 >conftest.err
19624
cat conftest.err >&5
19625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626
(exit $ac_status); } &&
19627
{ ac_try='test -z "$ac_c_werror_flag"
19628
|| test ! -s conftest.err'
19629
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630
(eval $ac_try) 2>&5
19632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633
(exit $ac_status); }; } &&
19634
{ ac_try='test -s conftest.$ac_objext'
19635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636
(eval $ac_try) 2>&5
19638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639
(exit $ac_status); }; }; then
19642
echo "$as_me: failed program was:" >&5
19643
sed 's/^/| /' conftest.$ac_ext >&5
19647
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19649
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19650
echo "${ECHO_T}$ac_cv_c_const" >&6
19651
if test $ac_cv_c_const = no; then
19653
cat >>confdefs.h <<\_ACEOF
19659
echo "$as_me:$LINENO: checking for size_t" >&5
19660
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19661
if test "${ac_cv_type_size_t+set}" = set; then
19662
echo $ECHO_N "(cached) $ECHO_C" >&6
19664
cat >conftest.$ac_ext <<_ACEOF
19667
cat confdefs.h >>conftest.$ac_ext
19668
cat >>conftest.$ac_ext <<_ACEOF
19669
/* end confdefs.h. */
19670
$ac_includes_default
19676
if (sizeof (size_t))
19682
rm -f conftest.$ac_objext
19683
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684
(eval $ac_compile) 2>conftest.er1
19686
grep -v '^ *+' conftest.er1 >conftest.err
19688
cat conftest.err >&5
19689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690
(exit $ac_status); } &&
19691
{ ac_try='test -z "$ac_c_werror_flag"
19692
|| test ! -s conftest.err'
19693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694
(eval $ac_try) 2>&5
19696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697
(exit $ac_status); }; } &&
19698
{ ac_try='test -s conftest.$ac_objext'
19699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700
(eval $ac_try) 2>&5
19702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703
(exit $ac_status); }; }; then
19704
ac_cv_type_size_t=yes
19706
echo "$as_me: failed program was:" >&5
19707
sed 's/^/| /' conftest.$ac_ext >&5
19709
ac_cv_type_size_t=no
19711
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19713
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19714
echo "${ECHO_T}$ac_cv_type_size_t" >&6
19715
if test $ac_cv_type_size_t = yes; then
19719
cat >>confdefs.h <<_ACEOF
19720
@%:@define size_t unsigned
19729
for ac_header in sys/types.h sys/socket.h unistd.h netinet/in.h
19731
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19732
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19733
echo "$as_me:$LINENO: checking for $ac_header" >&5
19734
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19735
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19736
echo $ECHO_N "(cached) $ECHO_C" >&6
19738
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19739
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19741
# Is the header compilable?
19742
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19743
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19744
cat >conftest.$ac_ext <<_ACEOF
19747
cat confdefs.h >>conftest.$ac_ext
19748
cat >>conftest.$ac_ext <<_ACEOF
19749
/* end confdefs.h. */
19750
$ac_includes_default
19751
@%:@include <$ac_header>
19753
rm -f conftest.$ac_objext
19754
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19755
(eval $ac_compile) 2>conftest.er1
19757
grep -v '^ *+' conftest.er1 >conftest.err
19759
cat conftest.err >&5
19760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761
(exit $ac_status); } &&
19762
{ ac_try='test -z "$ac_c_werror_flag"
19763
|| test ! -s conftest.err'
19764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765
(eval $ac_try) 2>&5
19767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768
(exit $ac_status); }; } &&
19769
{ ac_try='test -s conftest.$ac_objext'
19770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771
(eval $ac_try) 2>&5
19773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774
(exit $ac_status); }; }; then
19775
ac_header_compiler=yes
19777
echo "$as_me: failed program was:" >&5
19778
sed 's/^/| /' conftest.$ac_ext >&5
19780
ac_header_compiler=no
19782
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19783
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19784
echo "${ECHO_T}$ac_header_compiler" >&6
19786
# Is the header present?
19787
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19788
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19789
cat >conftest.$ac_ext <<_ACEOF
19792
cat confdefs.h >>conftest.$ac_ext
19793
cat >>conftest.$ac_ext <<_ACEOF
19794
/* end confdefs.h. */
19795
@%:@include <$ac_header>
19797
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19798
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19800
grep -v '^ *+' conftest.er1 >conftest.err
19802
cat conftest.err >&5
19803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804
(exit $ac_status); } >/dev/null; then
19805
if test -s conftest.err; then
19806
ac_cpp_err=$ac_c_preproc_warn_flag
19807
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19814
if test -z "$ac_cpp_err"; then
19815
ac_header_preproc=yes
19817
echo "$as_me: failed program was:" >&5
19818
sed 's/^/| /' conftest.$ac_ext >&5
19820
ac_header_preproc=no
19822
rm -f conftest.err conftest.$ac_ext
19823
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19824
echo "${ECHO_T}$ac_header_preproc" >&6
19826
# So? What about this header?
19827
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19829
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19830
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19831
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19832
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19833
ac_header_preproc=yes
19836
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19837
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19838
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19839
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19840
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19841
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19842
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19843
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19844
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19845
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19846
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19847
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19850
@%:@@%:@ ------------------------------------------ @%:@@%:@
19851
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
19852
@%:@@%:@ ------------------------------------------ @%:@@%:@
19855
sed "s/^/$as_me: WARNING: /" >&2
19858
echo "$as_me:$LINENO: checking for $ac_header" >&5
19859
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19860
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19861
echo $ECHO_N "(cached) $ECHO_C" >&6
19863
eval "$as_ac_Header=\$ac_header_preproc"
19865
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19866
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19869
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19870
cat >>confdefs.h <<_ACEOF
19871
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19882
for ac_header in arpa/inet.h netdb.h sys/ioctl.h errno.h
19884
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19885
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19886
echo "$as_me:$LINENO: checking for $ac_header" >&5
19887
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19888
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19889
echo $ECHO_N "(cached) $ECHO_C" >&6
19891
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19892
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19894
# Is the header compilable?
19895
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19896
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19897
cat >conftest.$ac_ext <<_ACEOF
19900
cat confdefs.h >>conftest.$ac_ext
19901
cat >>conftest.$ac_ext <<_ACEOF
19902
/* end confdefs.h. */
19903
$ac_includes_default
19904
@%:@include <$ac_header>
19906
rm -f conftest.$ac_objext
19907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19908
(eval $ac_compile) 2>conftest.er1
19910
grep -v '^ *+' conftest.er1 >conftest.err
19912
cat conftest.err >&5
19913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914
(exit $ac_status); } &&
19915
{ ac_try='test -z "$ac_c_werror_flag"
19916
|| test ! -s conftest.err'
19917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918
(eval $ac_try) 2>&5
19920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921
(exit $ac_status); }; } &&
19922
{ ac_try='test -s conftest.$ac_objext'
19923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924
(eval $ac_try) 2>&5
19926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927
(exit $ac_status); }; }; then
19928
ac_header_compiler=yes
19930
echo "$as_me: failed program was:" >&5
19931
sed 's/^/| /' conftest.$ac_ext >&5
19933
ac_header_compiler=no
19935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19936
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19937
echo "${ECHO_T}$ac_header_compiler" >&6
19939
# Is the header present?
19940
echo "$as_me:$LINENO: checking $ac_header presence" >&5
19941
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19942
cat >conftest.$ac_ext <<_ACEOF
19945
cat confdefs.h >>conftest.$ac_ext
19946
cat >>conftest.$ac_ext <<_ACEOF
19947
/* end confdefs.h. */
19948
@%:@include <$ac_header>
19950
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19951
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19953
grep -v '^ *+' conftest.er1 >conftest.err
19955
cat conftest.err >&5
19956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957
(exit $ac_status); } >/dev/null; then
19958
if test -s conftest.err; then
19959
ac_cpp_err=$ac_c_preproc_warn_flag
19960
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19967
if test -z "$ac_cpp_err"; then
19968
ac_header_preproc=yes
19970
echo "$as_me: failed program was:" >&5
19971
sed 's/^/| /' conftest.$ac_ext >&5
19973
ac_header_preproc=no
19975
rm -f conftest.err conftest.$ac_ext
19976
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19977
echo "${ECHO_T}$ac_header_preproc" >&6
19979
# So? What about this header?
19980
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19982
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19983
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19984
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19985
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19986
ac_header_preproc=yes
19989
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19990
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19991
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19992
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19993
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19994
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19995
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19996
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19997
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19998
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19999
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20000
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20003
@%:@@%:@ ------------------------------------------ @%:@@%:@
20004
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20005
@%:@@%:@ ------------------------------------------ @%:@@%:@
20008
sed "s/^/$as_me: WARNING: /" >&2
20011
echo "$as_me:$LINENO: checking for $ac_header" >&5
20012
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20013
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20014
echo $ECHO_N "(cached) $ECHO_C" >&6
20016
eval "$as_ac_Header=\$ac_header_preproc"
20018
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20019
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20022
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20023
cat >>confdefs.h <<_ACEOF
20024
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20032
for ac_header in sys/time.h
20034
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20035
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20036
echo "$as_me:$LINENO: checking for $ac_header" >&5
20037
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20038
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20039
echo $ECHO_N "(cached) $ECHO_C" >&6
20041
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20042
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20044
# Is the header compilable?
20045
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20046
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20047
cat >conftest.$ac_ext <<_ACEOF
20050
cat confdefs.h >>conftest.$ac_ext
20051
cat >>conftest.$ac_ext <<_ACEOF
20052
/* end confdefs.h. */
20053
$ac_includes_default
20054
@%:@include <$ac_header>
20056
rm -f conftest.$ac_objext
20057
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20058
(eval $ac_compile) 2>conftest.er1
20060
grep -v '^ *+' conftest.er1 >conftest.err
20062
cat conftest.err >&5
20063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064
(exit $ac_status); } &&
20065
{ ac_try='test -z "$ac_c_werror_flag"
20066
|| test ! -s conftest.err'
20067
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068
(eval $ac_try) 2>&5
20070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071
(exit $ac_status); }; } &&
20072
{ ac_try='test -s conftest.$ac_objext'
20073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074
(eval $ac_try) 2>&5
20076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077
(exit $ac_status); }; }; then
20078
ac_header_compiler=yes
20080
echo "$as_me: failed program was:" >&5
20081
sed 's/^/| /' conftest.$ac_ext >&5
20083
ac_header_compiler=no
20085
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20086
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20087
echo "${ECHO_T}$ac_header_compiler" >&6
20089
# Is the header present?
20090
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20091
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20092
cat >conftest.$ac_ext <<_ACEOF
20095
cat confdefs.h >>conftest.$ac_ext
20096
cat >>conftest.$ac_ext <<_ACEOF
20097
/* end confdefs.h. */
20098
@%:@include <$ac_header>
20100
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20101
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20103
grep -v '^ *+' conftest.er1 >conftest.err
20105
cat conftest.err >&5
20106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107
(exit $ac_status); } >/dev/null; then
20108
if test -s conftest.err; then
20109
ac_cpp_err=$ac_c_preproc_warn_flag
20110
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20117
if test -z "$ac_cpp_err"; then
20118
ac_header_preproc=yes
20120
echo "$as_me: failed program was:" >&5
20121
sed 's/^/| /' conftest.$ac_ext >&5
20123
ac_header_preproc=no
20125
rm -f conftest.err conftest.$ac_ext
20126
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20127
echo "${ECHO_T}$ac_header_preproc" >&6
20129
# So? What about this header?
20130
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20132
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20133
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20134
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20135
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20136
ac_header_preproc=yes
20139
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20140
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20141
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20142
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20143
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20144
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20145
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20146
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20147
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20148
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20149
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20150
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20153
@%:@@%:@ ------------------------------------------ @%:@@%:@
20154
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20155
@%:@@%:@ ------------------------------------------ @%:@@%:@
20158
sed "s/^/$as_me: WARNING: /" >&2
20161
echo "$as_me:$LINENO: checking for $ac_header" >&5
20162
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20163
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20164
echo $ECHO_N "(cached) $ECHO_C" >&6
20166
eval "$as_ac_Header=\$ac_header_preproc"
20168
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20169
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20172
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20173
cat >>confdefs.h <<_ACEOF
20174
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20182
for ac_header in ltdl.h
20184
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20185
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20186
echo "$as_me:$LINENO: checking for $ac_header" >&5
20187
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20188
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20189
echo $ECHO_N "(cached) $ECHO_C" >&6
20191
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20192
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20194
# Is the header compilable?
20195
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20196
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20197
cat >conftest.$ac_ext <<_ACEOF
20200
cat confdefs.h >>conftest.$ac_ext
20201
cat >>conftest.$ac_ext <<_ACEOF
20202
/* end confdefs.h. */
20203
$ac_includes_default
20204
@%:@include <$ac_header>
20206
rm -f conftest.$ac_objext
20207
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208
(eval $ac_compile) 2>conftest.er1
20210
grep -v '^ *+' conftest.er1 >conftest.err
20212
cat conftest.err >&5
20213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214
(exit $ac_status); } &&
20215
{ ac_try='test -z "$ac_c_werror_flag"
20216
|| test ! -s conftest.err'
20217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218
(eval $ac_try) 2>&5
20220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221
(exit $ac_status); }; } &&
20222
{ ac_try='test -s conftest.$ac_objext'
20223
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224
(eval $ac_try) 2>&5
20226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227
(exit $ac_status); }; }; then
20228
ac_header_compiler=yes
20230
echo "$as_me: failed program was:" >&5
20231
sed 's/^/| /' conftest.$ac_ext >&5
20233
ac_header_compiler=no
20235
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20236
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20237
echo "${ECHO_T}$ac_header_compiler" >&6
20239
# Is the header present?
20240
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20241
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20242
cat >conftest.$ac_ext <<_ACEOF
20245
cat confdefs.h >>conftest.$ac_ext
20246
cat >>conftest.$ac_ext <<_ACEOF
20247
/* end confdefs.h. */
20248
@%:@include <$ac_header>
20250
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20251
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20253
grep -v '^ *+' conftest.er1 >conftest.err
20255
cat conftest.err >&5
20256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257
(exit $ac_status); } >/dev/null; then
20258
if test -s conftest.err; then
20259
ac_cpp_err=$ac_c_preproc_warn_flag
20260
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20267
if test -z "$ac_cpp_err"; then
20268
ac_header_preproc=yes
20270
echo "$as_me: failed program was:" >&5
20271
sed 's/^/| /' conftest.$ac_ext >&5
20273
ac_header_preproc=no
20275
rm -f conftest.err conftest.$ac_ext
20276
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20277
echo "${ECHO_T}$ac_header_preproc" >&6
20279
# So? What about this header?
20280
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20282
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20283
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20284
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20285
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20286
ac_header_preproc=yes
20289
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20290
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20291
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20292
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20293
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20294
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20295
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20296
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20297
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20298
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20299
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20300
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20303
@%:@@%:@ ------------------------------------------ @%:@@%:@
20304
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20305
@%:@@%:@ ------------------------------------------ @%:@@%:@
20308
sed "s/^/$as_me: WARNING: /" >&2
20311
echo "$as_me:$LINENO: checking for $ac_header" >&5
20312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20313
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20314
echo $ECHO_N "(cached) $ECHO_C" >&6
20316
eval "$as_ac_Header=\$ac_header_preproc"
20318
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20319
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20322
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20323
cat >>confdefs.h <<_ACEOF
20324
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20332
for ac_header in stdsoap2.h
20334
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20335
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20336
echo "$as_me:$LINENO: checking for $ac_header" >&5
20337
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20338
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20339
echo $ECHO_N "(cached) $ECHO_C" >&6
20341
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20342
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20344
# Is the header compilable?
20345
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20346
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20347
cat >conftest.$ac_ext <<_ACEOF
20350
cat confdefs.h >>conftest.$ac_ext
20351
cat >>conftest.$ac_ext <<_ACEOF
20352
/* end confdefs.h. */
20353
$ac_includes_default
20354
@%:@include <$ac_header>
20356
rm -f conftest.$ac_objext
20357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20358
(eval $ac_compile) 2>conftest.er1
20360
grep -v '^ *+' conftest.er1 >conftest.err
20362
cat conftest.err >&5
20363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364
(exit $ac_status); } &&
20365
{ ac_try='test -z "$ac_c_werror_flag"
20366
|| test ! -s conftest.err'
20367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368
(eval $ac_try) 2>&5
20370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371
(exit $ac_status); }; } &&
20372
{ ac_try='test -s conftest.$ac_objext'
20373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374
(eval $ac_try) 2>&5
20376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377
(exit $ac_status); }; }; then
20378
ac_header_compiler=yes
20380
echo "$as_me: failed program was:" >&5
20381
sed 's/^/| /' conftest.$ac_ext >&5
20383
ac_header_compiler=no
20385
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20386
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20387
echo "${ECHO_T}$ac_header_compiler" >&6
20389
# Is the header present?
20390
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20391
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20392
cat >conftest.$ac_ext <<_ACEOF
20395
cat confdefs.h >>conftest.$ac_ext
20396
cat >>conftest.$ac_ext <<_ACEOF
20397
/* end confdefs.h. */
20398
@%:@include <$ac_header>
20400
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20401
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20403
grep -v '^ *+' conftest.er1 >conftest.err
20405
cat conftest.err >&5
20406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407
(exit $ac_status); } >/dev/null; then
20408
if test -s conftest.err; then
20409
ac_cpp_err=$ac_c_preproc_warn_flag
20410
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20417
if test -z "$ac_cpp_err"; then
20418
ac_header_preproc=yes
20420
echo "$as_me: failed program was:" >&5
20421
sed 's/^/| /' conftest.$ac_ext >&5
20423
ac_header_preproc=no
20425
rm -f conftest.err conftest.$ac_ext
20426
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20427
echo "${ECHO_T}$ac_header_preproc" >&6
20429
# So? What about this header?
20430
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20432
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20433
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20434
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20435
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20436
ac_header_preproc=yes
20439
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20440
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20441
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20442
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20443
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20444
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20445
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20446
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20447
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20448
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20449
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20450
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20453
@%:@@%:@ ------------------------------------------ @%:@@%:@
20454
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@
20455
@%:@@%:@ ------------------------------------------ @%:@@%:@
20458
sed "s/^/$as_me: WARNING: /" >&2
20461
echo "$as_me:$LINENO: checking for $ac_header" >&5
20462
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20463
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20464
echo $ECHO_N "(cached) $ECHO_C" >&6
20466
eval "$as_ac_Header=\$ac_header_preproc"
20468
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20469
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20472
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20473
cat >>confdefs.h <<_ACEOF
20474
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20484
ac_config_files="$ac_config_files Makefile ConsoleServer/Makefile ConsoleServer/foo/Makefile example/Makefile example/calculator/Makefile mod_gsoap/Makefile"
20485
cat >confcache <<\_ACEOF
20486
# This file is a shell script that caches the results of configure
20487
# tests run on this system so they can be shared between configure
20488
# scripts and configure runs, see configure's option --config-cache.
20489
# It is not useful on other systems. If it contains results you don't
20490
# want to keep, you may remove or edit it.
20492
# config.status only pays attention to the cache file if you give it
20493
# the --recheck option to rerun configure.
20495
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20496
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20497
# following values.
20501
# The following way of writing the cache mishandles newlines in values,
20502
# but we know of no workaround that is simple, portable, and efficient.
20503
# So, don't put newlines in cache variables' values.
20504
# Ultrix sh set writes to stderr and can't be redirected directly,
20505
# and sets the high bit in the cache file unless we assign to the vars.
20508
case `(ac_space=' '; set | grep ac_space) 2>&1` in
20510
# `set' does not quote correctly, so add quotes (double-quote
20511
# substitution turns \\\\ into \\, and sed turns \\ into \).
20514
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20517
# `set' quotes correctly as required by POSIX, so do not add quotes.
20519
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20526
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20528
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20530
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20531
if test -w $cache_file; then
20532
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20533
cat confcache >$cache_file
20535
echo "not updating unwritable cache $cache_file"
20540
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20541
# Let make expand exec_prefix.
20542
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20544
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20545
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20546
# trailing colons and then remove the whole line if VPATH becomes empty
20547
# (actually we leave an empty line to preserve line numbers).
20548
if test "x$srcdir" = x.; then
20549
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20550
s/:*\$(srcdir):*/:/;
20551
s/:*\${srcdir}:*/:/;
20553
s/^\([^=]*=[ ]*\):*/\1/;
20559
DEFS=-DHAVE_CONFIG_H
20563
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20564
# 1. Remove the extension, and $U if already installed.
20565
ac_i=`echo "$ac_i" |
20566
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20568
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20569
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20571
LIB@&t@OBJS=$ac_libobjs
20573
LTLIBOBJS=$ac_ltlibobjs
20576
if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
20577
{ { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
20578
Usually this means the macro was only invoked conditionally." >&5
20579
echo "$as_me: error: conditional \"DEBUG\" was never defined.
20580
Usually this means the macro was only invoked conditionally." >&2;}
20581
{ (exit 1); exit 1; }; }
20583
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20584
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20585
Usually this means the macro was only invoked conditionally." >&5
20586
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20587
Usually this means the macro was only invoked conditionally." >&2;}
20588
{ (exit 1); exit 1; }; }
20590
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20591
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20592
Usually this means the macro was only invoked conditionally." >&5
20593
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20594
Usually this means the macro was only invoked conditionally." >&2;}
20595
{ (exit 1); exit 1; }; }
20597
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20598
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20599
Usually this means the macro was only invoked conditionally." >&5
20600
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20601
Usually this means the macro was only invoked conditionally." >&2;}
20602
{ (exit 1); exit 1; }; }
20605
: ${CONFIG_STATUS=./config.status}
20606
ac_clean_files_save=$ac_clean_files
20607
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20608
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20609
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20610
cat >$CONFIG_STATUS <<_ACEOF
20612
# Generated by $as_me.
20613
# Run this file to recreate the current configuration.
20614
# Compiler output produced by configure, useful for debugging
20615
# configure, is in config.log if it exists.
20618
ac_cs_recheck=false
20620
SHELL=\${CONFIG_SHELL-$SHELL}
20623
cat >>$CONFIG_STATUS <<\_ACEOF
20624
## --------------------- ##
20625
## M4sh Initialization. ##
20626
## --------------------- ##
20628
# Be Bourne compatible
20629
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20632
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20633
# is contrary to our usage. Disable this feature.
20634
alias -g '${1+"$@"}'='"$@"'
20635
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20638
DUALCASE=1; export DUALCASE # for MKS sh
20640
# Support unset when possible.
20641
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20648
# Work around bugs in pre-3.0 UWIN ksh.
20649
$as_unset ENV MAIL MAILPATH
20656
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20657
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20658
LC_TELEPHONE LC_TIME
20660
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20661
eval $as_var=C; export $as_var
20667
# Required to use basename.
20668
if expr a : '\(a\)' >/dev/null 2>&1; then
20674
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20675
as_basename=basename
20681
# Name of the executable.
20682
as_me=`$as_basename "$0" ||
20683
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20684
X"$0" : 'X\(//\)$' \| \
20685
X"$0" : 'X\(/\)$' \| \
20686
. : '\(.\)' 2>/dev/null ||
20688
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20689
/^X\/\(\/\/\)$/{ s//\1/; q; }
20690
/^X\/\(\/\).*/{ s//\1/; q; }
20694
# PATH needs CR, and LINENO needs CR and PATH.
20695
# Avoid depending upon Character Ranges.
20696
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20697
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20698
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20699
as_cr_digits='0123456789'
20700
as_cr_alnum=$as_cr_Letters$as_cr_digits
20702
# The user is always right.
20703
if test "${PATH_SEPARATOR+set}" != set; then
20704
echo "#! /bin/sh" >conf$$.sh
20705
echo "exit 0" >>conf$$.sh
20707
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20716
as_lineno_1=$LINENO
20717
as_lineno_2=$LINENO
20718
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20719
test "x$as_lineno_1" != "x$as_lineno_2" &&
20720
test "x$as_lineno_3" = "x$as_lineno_2" || {
20721
# Find who we are. Look in the path if we contain no path at all
20724
*[\\/]* ) as_myself=$0 ;;
20725
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20726
for as_dir in $PATH
20729
test -z "$as_dir" && as_dir=.
20730
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20735
# We did not find ourselves, most probably we were run as `sh COMMAND'
20736
# in which case we are not to be found in the path.
20737
if test "x$as_myself" = x; then
20740
if test ! -f "$as_myself"; then
20741
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20742
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20743
{ (exit 1); exit 1; }; }
20745
case $CONFIG_SHELL in
20747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20751
test -z "$as_dir" && as_dir=.
20752
for as_base in sh bash ksh sh5; do
20755
if ("$as_dir/$as_base" -c '
20756
as_lineno_1=$LINENO
20757
as_lineno_2=$LINENO
20758
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20759
test "x$as_lineno_1" != "x$as_lineno_2" &&
20760
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20761
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20762
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20763
CONFIG_SHELL=$as_dir/$as_base
20764
export CONFIG_SHELL
20765
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20773
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20774
# uniformly replaced by the line number. The first 'sed' inserts a
20775
# line-number line before each line; the second 'sed' does the real
20776
# work. The second script uses 'N' to pair each line-number line
20777
# with the numbered line, and appends trailing '-' during
20778
# substitution so that $LINENO is not a special case at line end.
20779
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20780
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20781
sed '=' <$as_myself |
20786
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20789
s,^['$as_cr_digits']*\n,,
20790
' >$as_me.lineno &&
20791
chmod +x $as_me.lineno ||
20792
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20793
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20794
{ (exit 1); exit 1; }; }
20796
# Don't try to exec as it changes $[0], causing all sort of problems
20797
# (the dirname of $[0] is not the place where we might find the
20798
# original and so on. Autoconf is especially sensible to this).
20800
# Exit status is that of the last command.
20805
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20806
*c*,-n*) ECHO_N= ECHO_C='
20808
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20809
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20812
if expr a : '\(a\)' >/dev/null 2>&1; then
20818
rm -f conf$$ conf$$.exe conf$$.file
20820
if ln -s conf$$.file conf$$ 2>/dev/null; then
20821
# We could just check for DJGPP; but this test a) works b) is more generic
20822
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20823
if test -f conf$$.exe; then
20824
# Don't use ln at all; we don't have any links
20829
elif ln conf$$.file conf$$ 2>/dev/null; then
20834
rm -f conf$$ conf$$.exe conf$$.file
20836
if mkdir -p . 2>/dev/null; then
20839
test -d ./-p && rmdir ./-p
20843
as_executable_p="test -f"
20845
# Sed expression to map a string onto a valid CPP name.
20846
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20848
# Sed expression to map a string onto a valid variable name.
20849
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20853
# We need space, tab and new line, in precisely that order.
20863
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20864
# report actual input values of CONFIG_FILES etc. instead of their
20865
# values after options handling. Logging --version etc. is OK.
20869
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20870
@%:@@%:@ Running $as_me. @%:@@%:@
20875
This file was extended by $as_me, which was
20876
generated by GNU Autoconf 2.59. Invocation command line was
20878
CONFIG_FILES = $CONFIG_FILES
20879
CONFIG_HEADERS = $CONFIG_HEADERS
20880
CONFIG_LINKS = $CONFIG_LINKS
20881
CONFIG_COMMANDS = $CONFIG_COMMANDS
20885
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20889
# Files that config.status was made for.
20890
if test -n "$ac_config_files"; then
20891
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20894
if test -n "$ac_config_headers"; then
20895
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20898
if test -n "$ac_config_links"; then
20899
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20902
if test -n "$ac_config_commands"; then
20903
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20906
cat >>$CONFIG_STATUS <<\_ACEOF
20909
\`$as_me' instantiates files from templates according to the
20910
current configuration.
20912
Usage: $0 [OPTIONS] [FILE]...
20914
-h, --help print this help, then exit
20915
-V, --version print version number, then exit
20916
-q, --quiet do not print progress messages
20917
-d, --debug don't remove temporary files
20918
--recheck update $as_me by reconfiguring in the same conditions
20919
--file=FILE[:TEMPLATE]
20920
instantiate the configuration file FILE
20921
--header=FILE[:TEMPLATE]
20922
instantiate the configuration header FILE
20924
Configuration files:
20927
Configuration headers:
20930
Configuration commands:
20933
Report bugs to <bug-autoconf@gnu.org>."
20936
cat >>$CONFIG_STATUS <<_ACEOF
20939
configured by $0, generated by GNU Autoconf 2.59,
20940
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20942
Copyright (C) 2003 Free Software Foundation, Inc.
20943
This config.status script is free software; the Free Software Foundation
20944
gives unlimited permission to copy, distribute and modify it."
20949
cat >>$CONFIG_STATUS <<\_ACEOF
20950
# If no file are specified by the user, then we need to provide default
20951
# value. By we need to know if files were specified by the user.
20957
ac_option=`expr "x$1" : 'x\([^=]*\)='`
20958
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20966
*) # This is not an option, so the user has probably given explicit
20969
ac_need_defaults=false;;
20973
# Handling of the options.
20975
cat >>$CONFIG_STATUS <<\_ACEOF
20976
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20978
--version | --vers* | -V )
20979
echo "$ac_cs_version"; exit 0 ;;
20981
# Conflict between --help and --header
20982
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
20983
Try \`$0 --help' for more information." >&5
20984
echo "$as_me: error: ambiguous option: $1
20985
Try \`$0 --help' for more information." >&2;}
20986
{ (exit 1); exit 1; }; };;
20987
--help | --hel | -h )
20988
echo "$ac_cs_usage"; exit 0 ;;
20989
--debug | --d* | -d )
20991
--file | --fil | --fi | --f )
20993
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20994
ac_need_defaults=false;;
20995
--header | --heade | --head | --hea )
20997
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20998
ac_need_defaults=false;;
20999
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
21000
| -silent | --silent | --silen | --sile | --sil | --si | --s)
21003
# This is an error.
21004
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21005
Try \`$0 --help' for more information." >&5
21006
echo "$as_me: error: unrecognized option: $1
21007
Try \`$0 --help' for more information." >&2;}
21008
{ (exit 1); exit 1; }; } ;;
21010
*) ac_config_targets="$ac_config_targets $1" ;;
21016
ac_configure_extra_args=
21018
if $ac_cs_silent; then
21020
ac_configure_extra_args="$ac_configure_extra_args --silent"
21024
cat >>$CONFIG_STATUS <<_ACEOF
21025
if \$ac_cs_recheck; then
21026
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21027
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21032
cat >>$CONFIG_STATUS <<_ACEOF
21034
# INIT-COMMANDS section.
21037
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21043
cat >>$CONFIG_STATUS <<\_ACEOF
21044
for ac_config_target in $ac_config_targets
21046
case "$ac_config_target" in
21047
# Handling of arguments.
21048
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21049
"ConsoleServer/Makefile" ) CONFIG_FILES="$CONFIG_FILES ConsoleServer/Makefile" ;;
21050
"ConsoleServer/foo/Makefile" ) CONFIG_FILES="$CONFIG_FILES ConsoleServer/foo/Makefile" ;;
21051
"example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
21052
"example/calculator/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/calculator/Makefile" ;;
21053
"mod_gsoap/Makefile" ) CONFIG_FILES="$CONFIG_FILES mod_gsoap/Makefile" ;;
21054
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21055
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21056
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21057
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21058
{ (exit 1); exit 1; }; };;
21062
# If the user did not use the arguments to specify the items to instantiate,
21063
# then the envvar interface is used. Set only those that are not.
21064
# We use the long form for the default assignment because of an extremely
21065
# bizarre bug on SunOS 4.1.3.
21066
if $ac_need_defaults; then
21067
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21068
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21069
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21072
# Have a temporary directory for convenience. Make it in the build tree
21073
# simply because there is no reason to put it here, and in addition,
21074
# creating and moving files from /tmp can sometimes cause problems.
21075
# Create a temporary directory, and hook for its removal unless debugging.
21078
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21079
trap '{ (exit 1); exit 1; }' 1 2 13 15
21082
# Create a (secure) tmp directory for tmp files.
21085
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21086
test -n "$tmp" && test -d "$tmp"
21089
tmp=./confstat$$-$RANDOM
21090
(umask 077 && mkdir $tmp)
21093
echo "$me: cannot create a temporary directory in ." >&2
21094
{ (exit 1); exit 1; }
21099
cat >>$CONFIG_STATUS <<_ACEOF
21102
# CONFIG_FILES section.
21105
# No need to generate the scripts if there are no CONFIG_FILES.
21106
# This happens for instance when ./config.status config.h
21107
if test -n "\$CONFIG_FILES"; then
21108
# Protect against being on the right side of a sed subst in config.status.
21109
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21110
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21111
s,@SHELL@,$SHELL,;t t
21112
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21113
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21114
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21115
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21116
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21117
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21118
s,@exec_prefix@,$exec_prefix,;t t
21119
s,@prefix@,$prefix,;t t
21120
s,@program_transform_name@,$program_transform_name,;t t
21121
s,@bindir@,$bindir,;t t
21122
s,@sbindir@,$sbindir,;t t
21123
s,@libexecdir@,$libexecdir,;t t
21124
s,@datadir@,$datadir,;t t
21125
s,@sysconfdir@,$sysconfdir,;t t
21126
s,@sharedstatedir@,$sharedstatedir,;t t
21127
s,@localstatedir@,$localstatedir,;t t
21128
s,@libdir@,$libdir,;t t
21129
s,@includedir@,$includedir,;t t
21130
s,@oldincludedir@,$oldincludedir,;t t
21131
s,@infodir@,$infodir,;t t
21132
s,@mandir@,$mandir,;t t
21133
s,@build_alias@,$build_alias,;t t
21134
s,@host_alias@,$host_alias,;t t
21135
s,@target_alias@,$target_alias,;t t
21136
s,@DEFS@,$DEFS,;t t
21137
s,@ECHO_C@,$ECHO_C,;t t
21138
s,@ECHO_N@,$ECHO_N,;t t
21139
s,@ECHO_T@,$ECHO_T,;t t
21140
s,@LIBS@,$LIBS,;t t
21141
s,@build@,$build,;t t
21142
s,@build_cpu@,$build_cpu,;t t
21143
s,@build_vendor@,$build_vendor,;t t
21144
s,@build_os@,$build_os,;t t
21145
s,@host@,$host,;t t
21146
s,@host_cpu@,$host_cpu,;t t
21147
s,@host_vendor@,$host_vendor,;t t
21148
s,@host_os@,$host_os,;t t
21149
s,@target@,$target,;t t
21150
s,@target_cpu@,$target_cpu,;t t
21151
s,@target_vendor@,$target_vendor,;t t
21152
s,@target_os@,$target_os,;t t
21153
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21154
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21155
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21156
s,@CYGPATH_W@,$CYGPATH_W,;t t
21157
s,@PACKAGE@,$PACKAGE,;t t
21158
s,@VERSION@,$VERSION,;t t
21159
s,@ACLOCAL@,$ACLOCAL,;t t
21160
s,@AUTOCONF@,$AUTOCONF,;t t
21161
s,@AUTOMAKE@,$AUTOMAKE,;t t
21162
s,@AUTOHEADER@,$AUTOHEADER,;t t
21163
s,@MAKEINFO@,$MAKEINFO,;t t
21164
s,@install_sh@,$install_sh,;t t
21165
s,@STRIP@,$STRIP,;t t
21166
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21167
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21168
s,@mkdir_p@,$mkdir_p,;t t
21170
s,@SET_MAKE@,$SET_MAKE,;t t
21171
s,@am__leading_dot@,$am__leading_dot,;t t
21172
s,@AMTAR@,$AMTAR,;t t
21173
s,@am__tar@,$am__tar,;t t
21174
s,@am__untar@,$am__untar,;t t
21175
s,@EXISTS_GSOAP@,$EXISTS_GSOAP,;t t
21176
s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
21177
s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
21178
s,@CXXDEBUGDEFINES@,$CXXDEBUGDEFINES,;t t
21179
s,@APXS_CXX_OPTIONS@,$APXS_CXX_OPTIONS,;t t
21181
s,@CFLAGS@,$CFLAGS,;t t
21182
s,@LDFLAGS@,$LDFLAGS,;t t
21183
s,@CPPFLAGS@,$CPPFLAGS,;t t
21184
s,@ac_ct_CC@,$ac_ct_CC,;t t
21185
s,@EXEEXT@,$EXEEXT,;t t
21186
s,@OBJEXT@,$OBJEXT,;t t
21187
s,@DEPDIR@,$DEPDIR,;t t
21188
s,@am__include@,$am__include,;t t
21189
s,@am__quote@,$am__quote,;t t
21190
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21191
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21192
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21193
s,@CCDEPMODE@,$CCDEPMODE,;t t
21194
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21195
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21198
s,@CXXFLAGS@,$CXXFLAGS,;t t
21199
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21200
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21201
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21202
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21203
s,@EXISTS_APXS@,$EXISTS_APXS,;t t
21204
s,@EGREP@,$EGREP,;t t
21205
s,@LN_S@,$LN_S,;t t
21206
s,@ECHO@,$ECHO,;t t
21208
s,@ac_ct_AR@,$ac_ct_AR,;t t
21209
s,@RANLIB@,$RANLIB,;t t
21210
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21211
s,@DLLTOOL@,$DLLTOOL,;t t
21212
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21214
s,@ac_ct_AS@,$ac_ct_AS,;t t
21215
s,@OBJDUMP@,$OBJDUMP,;t t
21216
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
21217
s,@CXXCPP@,$CXXCPP,;t t
21219
s,@FFLAGS@,$FFLAGS,;t t
21220
s,@ac_ct_F77@,$ac_ct_F77,;t t
21221
s,@LIBTOOL@,$LIBTOOL,;t t
21222
s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
21223
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21224
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21229
cat >>$CONFIG_STATUS <<\_ACEOF
21230
# Split the substitutions into bite-sized pieces for seds with
21231
# small command number limits, like on Digital OSF/1 and HP-UX.
21232
ac_max_sed_lines=48
21233
ac_sed_frag=1 # Number of current file.
21234
ac_beg=1 # First line for current file.
21235
ac_end=$ac_max_sed_lines # Line after last line for current file.
21238
while $ac_more_lines; do
21239
if test $ac_beg -gt 1; then
21240
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21242
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21244
if test ! -s $tmp/subs.frag; then
21245
ac_more_lines=false
21247
# The purpose of the label and of the branching condition is to
21248
# speed up the sed processing (if there are no `@' at all, there
21249
# is no need to browse any of the substitutions).
21250
# These are the two extra sed commands mentioned above.
21252
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21253
if test -z "$ac_sed_cmds"; then
21254
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21256
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21258
ac_sed_frag=`expr $ac_sed_frag + 1`
21260
ac_end=`expr $ac_end + $ac_max_sed_lines`
21263
if test -z "$ac_sed_cmds"; then
21266
fi # test -n "$CONFIG_FILES"
21269
cat >>$CONFIG_STATUS <<\_ACEOF
21270
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21271
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21273
- | *:- | *:-:* ) # input from stdin
21275
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21276
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21277
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21278
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21279
* ) ac_file_in=$ac_file.in ;;
21282
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21283
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21284
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21285
X"$ac_file" : 'X\(//\)[^/]' \| \
21286
X"$ac_file" : 'X\(//\)$' \| \
21287
X"$ac_file" : 'X\(/\)' \| \
21288
. : '\(.\)' 2>/dev/null ||
21290
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21291
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21292
/^X\(\/\/\)$/{ s//\1/; q; }
21293
/^X\(\/\).*/{ s//\1/; q; }
21295
{ if $as_mkdir_p; then
21300
while test ! -d "$as_dir"; do
21301
as_dirs="$as_dir $as_dirs"
21302
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21303
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21304
X"$as_dir" : 'X\(//\)[^/]' \| \
21305
X"$as_dir" : 'X\(//\)$' \| \
21306
X"$as_dir" : 'X\(/\)' \| \
21307
. : '\(.\)' 2>/dev/null ||
21309
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21310
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21311
/^X\(\/\/\)$/{ s//\1/; q; }
21312
/^X\(\/\).*/{ s//\1/; q; }
21315
test ! -n "$as_dirs" || mkdir $as_dirs
21316
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21317
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21318
{ (exit 1); exit 1; }; }; }
21322
if test "$ac_dir" != .; then
21323
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21324
# A "../" for each directory in $ac_dir_suffix.
21325
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21327
ac_dir_suffix= ac_top_builddir=
21331
.) # No --srcdir option. We are building in place.
21333
if test -z "$ac_top_builddir"; then
21336
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21338
[\\/]* | ?:[\\/]* ) # Absolute path.
21339
ac_srcdir=$srcdir$ac_dir_suffix;
21340
ac_top_srcdir=$srcdir ;;
21341
*) # Relative path.
21342
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21343
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21346
# Do not use `cd foo && pwd` to compute absolute paths, because
21347
# the directories may not exist.
21349
.) ac_abs_builddir="$ac_dir";;
21352
.) ac_abs_builddir=`pwd`;;
21353
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21354
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21357
case $ac_abs_builddir in
21358
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21360
case ${ac_top_builddir}. in
21361
.) ac_abs_top_builddir=$ac_abs_builddir;;
21362
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21363
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21366
case $ac_abs_builddir in
21367
.) ac_abs_srcdir=$ac_srcdir;;
21370
.) ac_abs_srcdir=$ac_abs_builddir;;
21371
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21372
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21375
case $ac_abs_builddir in
21376
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21378
case $ac_top_srcdir in
21379
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21380
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21381
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21387
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21388
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21391
if test x"$ac_file" != x-; then
21392
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21393
echo "$as_me: creating $ac_file" >&6;}
21396
# Let's still pretend it is `configure' which instantiates (i.e., don't
21397
# use $as_me), people would be surprised to read:
21398
# /* config.h. Generated by config.status. */
21399
if test x"$ac_file" = x-; then
21402
configure_input="$ac_file. "
21404
configure_input=$configure_input"Generated from `echo $ac_file_in |
21405
sed 's,.*/,,'` by configure."
21407
# First look for the input files in the build tree, otherwise in the
21409
ac_file_inputs=`IFS=:
21410
for f in $ac_file_in; do
21412
-) echo $tmp/stdin ;;
21414
# Absolute (can't be DOS-style, as IFS=:)
21415
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21416
echo "$as_me: error: cannot find input file: $f" >&2;}
21417
{ (exit 1); exit 1; }; }
21420
if test -f "$f"; then
21423
elif test -f "$srcdir/$f"; then
21428
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21429
echo "$as_me: error: cannot find input file: $f" >&2;}
21430
{ (exit 1); exit 1; }; }
21433
done` || { (exit 1); exit 1; }
21435
cat >>$CONFIG_STATUS <<_ACEOF
21439
cat >>$CONFIG_STATUS <<\_ACEOF
21441
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21442
s,@configure_input@,$configure_input,;t t
21443
s,@srcdir@,$ac_srcdir,;t t
21444
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21445
s,@top_srcdir@,$ac_top_srcdir,;t t
21446
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21447
s,@builddir@,$ac_builddir,;t t
21448
s,@abs_builddir@,$ac_abs_builddir,;t t
21449
s,@top_builddir@,$ac_top_builddir,;t t
21450
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21451
s,@INSTALL@,$ac_INSTALL,;t t
21452
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21454
if test x"$ac_file" != x-; then
21455
mv $tmp/out $ac_file
21463
cat >>$CONFIG_STATUS <<\_ACEOF
21466
# CONFIG_HEADER section.
21469
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21470
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21472
# ac_d sets the value in "#define NAME VALUE" lines.
21473
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21474
ac_dB='[ ].*$,\1#\2'
21477
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21478
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21479
ac_uB='$,\1#\2define\3'
21483
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21484
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21486
- | *:- | *:-:* ) # input from stdin
21488
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21489
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21490
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21491
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21492
* ) ac_file_in=$ac_file.in ;;
21495
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21496
echo "$as_me: creating $ac_file" >&6;}
21498
# First look for the input files in the build tree, otherwise in the
21500
ac_file_inputs=`IFS=:
21501
for f in $ac_file_in; do
21503
-) echo $tmp/stdin ;;
21505
# Absolute (can't be DOS-style, as IFS=:)
21506
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21507
echo "$as_me: error: cannot find input file: $f" >&2;}
21508
{ (exit 1); exit 1; }; }
21509
# Do quote $f, to prevent DOS paths from being IFS'd.
21512
if test -f "$f"; then
21515
elif test -f "$srcdir/$f"; then
21520
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21521
echo "$as_me: error: cannot find input file: $f" >&2;}
21522
{ (exit 1); exit 1; }; }
21525
done` || { (exit 1); exit 1; }
21526
# Remove the trailing spaces.
21527
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21531
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21532
# `conftest.undefs', that substitutes the proper values into
21533
# config.h.in to produce config.h. The first handles `#define'
21534
# templates, and the second `#undef' templates.
21535
# And first: Protect against being on the right side of a sed subst in
21536
# config.status. Protect against being in an unquoted here document
21537
# in config.status.
21538
rm -f conftest.defines conftest.undefs
21539
# Using a here document instead of a string reduces the quoting nightmare.
21540
# Putting comments in sed scripts is not portable.
21542
# `end' is used to avoid that the second main sed command (meant for
21543
# 0-ary CPP macros) applies to n-ary macro definitions.
21544
# See the Autoconf documentation for `clear'.
21545
cat >confdef2sed.sed <<\_ACEOF
21550
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21552
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21555
# If some macros were called several times there might be several times
21556
# the same #defines, which is useless. Nevertheless, we may not want to
21557
# sort them, since we want the *last* AC-DEFINE to be honored.
21558
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21559
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21560
rm -f confdef2sed.sed
21562
# This sed command replaces #undef with comments. This is necessary, for
21563
# example, in the case of _POSIX_SOURCE, which is predefined and required
21564
# on some systems where configure will not decide to define it.
21565
cat >>conftest.undefs <<\_ACEOF
21566
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21569
# Break up conftest.defines because some shells have a limit on the size
21570
# of here documents, and old seds have small limits too (100 cmds).
21571
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21572
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21573
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21574
echo ' :' >>$CONFIG_STATUS
21575
rm -f conftest.tail
21576
while grep . conftest.defines >/dev/null
21578
# Write a limited-size here document to $tmp/defines.sed.
21579
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21580
# Speed up: don't consider the non `#define' lines.
21581
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21582
# Work around the forget-to-reset-the-flag bug.
21583
echo 't clr' >>$CONFIG_STATUS
21584
echo ': clr' >>$CONFIG_STATUS
21585
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21587
sed -f $tmp/defines.sed $tmp/in >$tmp/out
21589
mv $tmp/out $tmp/in
21591
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21592
rm -f conftest.defines
21593
mv conftest.tail conftest.defines
21595
rm -f conftest.defines
21596
echo ' fi # grep' >>$CONFIG_STATUS
21597
echo >>$CONFIG_STATUS
21599
# Break up conftest.undefs because some shells have a limit on the size
21600
# of here documents, and old seds have small limits too (100 cmds).
21601
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21602
rm -f conftest.tail
21603
while grep . conftest.undefs >/dev/null
21605
# Write a limited-size here document to $tmp/undefs.sed.
21606
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21607
# Speed up: don't consider the non `#undef'
21608
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21609
# Work around the forget-to-reset-the-flag bug.
21610
echo 't clr' >>$CONFIG_STATUS
21611
echo ': clr' >>$CONFIG_STATUS
21612
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21614
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21616
mv $tmp/out $tmp/in
21618
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21619
rm -f conftest.undefs
21620
mv conftest.tail conftest.undefs
21622
rm -f conftest.undefs
21624
cat >>$CONFIG_STATUS <<\_ACEOF
21625
# Let's still pretend it is `configure' which instantiates (i.e., don't
21626
# use $as_me), people would be surprised to read:
21627
# /* config.h. Generated by config.status. */
21628
if test x"$ac_file" = x-; then
21629
echo "/* Generated by configure. */" >$tmp/config.h
21631
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21633
cat $tmp/in >>$tmp/config.h
21635
if test x"$ac_file" != x-; then
21636
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21637
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21638
echo "$as_me: $ac_file is unchanged" >&6;}
21640
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21641
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21642
X"$ac_file" : 'X\(//\)[^/]' \| \
21643
X"$ac_file" : 'X\(//\)$' \| \
21644
X"$ac_file" : 'X\(/\)' \| \
21645
. : '\(.\)' 2>/dev/null ||
21647
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21648
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21649
/^X\(\/\/\)$/{ s//\1/; q; }
21650
/^X\(\/\).*/{ s//\1/; q; }
21652
{ if $as_mkdir_p; then
21657
while test ! -d "$as_dir"; do
21658
as_dirs="$as_dir $as_dirs"
21659
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21660
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21661
X"$as_dir" : 'X\(//\)[^/]' \| \
21662
X"$as_dir" : 'X\(//\)$' \| \
21663
X"$as_dir" : 'X\(/\)' \| \
21664
. : '\(.\)' 2>/dev/null ||
21666
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21667
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21668
/^X\(\/\/\)$/{ s//\1/; q; }
21669
/^X\(\/\).*/{ s//\1/; q; }
21672
test ! -n "$as_dirs" || mkdir $as_dirs
21673
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21674
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21675
{ (exit 1); exit 1; }; }; }
21678
mv $tmp/config.h $ac_file
21682
rm -f $tmp/config.h
21684
# Compute $ac_file's index in $config_headers.
21686
for _am_header in $config_headers :; do
21687
case $_am_header in
21688
$ac_file | $ac_file:* )
21691
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21694
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21695
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21696
X$ac_file : 'X\(//\)[^/]' \| \
21697
X$ac_file : 'X\(//\)$' \| \
21698
X$ac_file : 'X\(/\)' \| \
21699
. : '\(.\)' 2>/dev/null ||
21701
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21702
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21703
/^X\(\/\/\)$/{ s//\1/; q; }
21704
/^X\(\/\).*/{ s//\1/; q; }
21705
s/.*/./; q'`/stamp-h$_am_stamp_count
21708
cat >>$CONFIG_STATUS <<\_ACEOF
21711
# CONFIG_COMMANDS section.
21713
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21714
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21715
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21716
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21717
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21718
X"$ac_dest" : 'X\(//\)[^/]' \| \
21719
X"$ac_dest" : 'X\(//\)$' \| \
21720
X"$ac_dest" : 'X\(/\)' \| \
21721
. : '\(.\)' 2>/dev/null ||
21723
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21724
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21725
/^X\(\/\/\)$/{ s//\1/; q; }
21726
/^X\(\/\).*/{ s//\1/; q; }
21728
{ if $as_mkdir_p; then
21733
while test ! -d "$as_dir"; do
21734
as_dirs="$as_dir $as_dirs"
21735
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21736
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737
X"$as_dir" : 'X\(//\)[^/]' \| \
21738
X"$as_dir" : 'X\(//\)$' \| \
21739
X"$as_dir" : 'X\(/\)' \| \
21740
. : '\(.\)' 2>/dev/null ||
21742
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744
/^X\(\/\/\)$/{ s//\1/; q; }
21745
/^X\(\/\).*/{ s//\1/; q; }
21748
test ! -n "$as_dirs" || mkdir $as_dirs
21749
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21750
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21751
{ (exit 1); exit 1; }; }; }
21755
if test "$ac_dir" != .; then
21756
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21757
# A "../" for each directory in $ac_dir_suffix.
21758
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21760
ac_dir_suffix= ac_top_builddir=
21764
.) # No --srcdir option. We are building in place.
21766
if test -z "$ac_top_builddir"; then
21769
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21771
[\\/]* | ?:[\\/]* ) # Absolute path.
21772
ac_srcdir=$srcdir$ac_dir_suffix;
21773
ac_top_srcdir=$srcdir ;;
21774
*) # Relative path.
21775
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21776
ac_top_srcdir=$ac_top_builddir$srcdir ;;
21779
# Do not use `cd foo && pwd` to compute absolute paths, because
21780
# the directories may not exist.
21782
.) ac_abs_builddir="$ac_dir";;
21785
.) ac_abs_builddir=`pwd`;;
21786
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21787
*) ac_abs_builddir=`pwd`/"$ac_dir";;
21790
case $ac_abs_builddir in
21791
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21793
case ${ac_top_builddir}. in
21794
.) ac_abs_top_builddir=$ac_abs_builddir;;
21795
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21796
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21799
case $ac_abs_builddir in
21800
.) ac_abs_srcdir=$ac_srcdir;;
21803
.) ac_abs_srcdir=$ac_abs_builddir;;
21804
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21805
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21808
case $ac_abs_builddir in
21809
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21811
case $ac_top_srcdir in
21812
.) ac_abs_top_srcdir=$ac_abs_builddir;;
21813
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21814
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21819
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21820
echo "$as_me: executing $ac_dest commands" >&6;}
21822
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21823
# Strip MF so we end up with the name of the file.
21824
mf=`echo "$mf" | sed -e 's/:.*$//'`
21825
# Check whether this is an Automake generated Makefile or not.
21826
# We used to match only the files named `Makefile.in', but
21827
# some people rename them; so instead we look at the file content.
21828
# Grep'ing the first line is not enough: some people post-process
21829
# each Makefile.in and add a new line on top of each file to say so.
21830
# So let's grep whole file.
21831
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21832
dirpart=`(dirname "$mf") 2>/dev/null ||
21833
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21834
X"$mf" : 'X\(//\)[^/]' \| \
21835
X"$mf" : 'X\(//\)$' \| \
21836
X"$mf" : 'X\(/\)' \| \
21837
. : '\(.\)' 2>/dev/null ||
21839
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21840
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21841
/^X\(\/\/\)$/{ s//\1/; q; }
21842
/^X\(\/\).*/{ s//\1/; q; }
21847
# Extract the definition of DEPDIR, am__include, and am__quote
21848
# from the Makefile without running `make'.
21849
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21850
test -z "$DEPDIR" && continue
21851
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21852
test -z "am__include" && continue
21853
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21854
# When using ansi2knr, U may be empty or an underscore; expand it
21855
U=`sed -n 's/^U = //p' < "$mf"`
21856
# Find all dependency output files, they are included files with
21857
# $(DEPDIR) in their names. We invoke sed twice because it is the
21858
# simplest approach to changing $(DEPDIR) to its actual value in the
21860
for file in `sed -n "
21861
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21862
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21863
# Make sure the directory exists.
21864
test -f "$dirpart/$file" && continue
21865
fdir=`(dirname "$file") 2>/dev/null ||
21866
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21867
X"$file" : 'X\(//\)[^/]' \| \
21868
X"$file" : 'X\(//\)$' \| \
21869
X"$file" : 'X\(/\)' \| \
21870
. : '\(.\)' 2>/dev/null ||
21872
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21873
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21874
/^X\(\/\/\)$/{ s//\1/; q; }
21875
/^X\(\/\).*/{ s//\1/; q; }
21877
{ if $as_mkdir_p; then
21878
mkdir -p $dirpart/$fdir
21880
as_dir=$dirpart/$fdir
21882
while test ! -d "$as_dir"; do
21883
as_dirs="$as_dir $as_dirs"
21884
as_dir=`(dirname "$as_dir") 2>/dev/null ||
21885
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21886
X"$as_dir" : 'X\(//\)[^/]' \| \
21887
X"$as_dir" : 'X\(//\)$' \| \
21888
X"$as_dir" : 'X\(/\)' \| \
21889
. : '\(.\)' 2>/dev/null ||
21891
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21892
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
21893
/^X\(\/\/\)$/{ s//\1/; q; }
21894
/^X\(\/\).*/{ s//\1/; q; }
21897
test ! -n "$as_dirs" || mkdir $as_dirs
21898
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21899
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21900
{ (exit 1); exit 1; }; }; }
21902
# echo "creating $dirpart/$file"
21903
echo '# dummy' > "$dirpart/$file"
21911
cat >>$CONFIG_STATUS <<\_ACEOF
21913
{ (exit 0); exit 0; }
21915
chmod +x $CONFIG_STATUS
21916
ac_clean_files=$ac_clean_files_save
21919
# configure is writing to config.log, and then calls config.status.
21920
# config.status does its own redirection, appending to config.log.
21921
# Unfortunately, on DOS this fails, as config.log is still kept open
21922
# by configure, so config.status won't be able to write to it; its
21923
# output is simply discarded. So we exec the FD to /dev/null,
21924
# effectively closing config.log, so it can be properly (re)opened and
21925
# appended to by config.status. When coming back to configure, we
21926
# need to make the FD available again.
21927
if test "$no_create" != yes; then
21929
ac_config_status_args=
21930
test "$silent" = yes &&
21931
ac_config_status_args="$ac_config_status_args --quiet"
21933
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21935
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21936
# would make configure fail if this is the last instruction.
21937
$ac_cs_success || { (exit 1); exit 1; }