2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for umem 1.0.1.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289
echo_test_string=`eval $cmd` &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
423
PACKAGE_TARNAME='umem'
424
PACKAGE_VERSION='1.0.1'
425
PACKAGE_STRING='umem 1.0.1'
428
# Factoring default headers for most tests.
429
ac_includes_default="\
432
# include <sys/types.h>
435
# include <sys/stat.h>
446
# if !STDC_HEADERS && HAVE_MEMORY_H
452
# include <strings.h>
455
# include <inttypes.h>
465
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
468
# Initialize some variables set by options.
470
ac_init_version=false
471
# The variables have the same names as the options, with
472
# dashes changed to underlines.
480
program_transform_name=s,x,x,
488
# Installation directory options.
489
# These are left unexpanded so users can "make install exec_prefix=/foo"
490
# and all the variables that are supposed to be based on exec_prefix
491
# by default will actually change.
492
# Use braces instead of parens because sh, perl, etc. also accept them.
493
bindir='${exec_prefix}/bin'
494
sbindir='${exec_prefix}/sbin'
495
libexecdir='${exec_prefix}/libexec'
496
datadir='${prefix}/share'
497
sysconfdir='${prefix}/etc'
498
sharedstatedir='${prefix}/com'
499
localstatedir='${prefix}/var'
500
libdir='${exec_prefix}/lib'
501
includedir='${prefix}/include'
502
oldincludedir='/usr/include'
503
infodir='${prefix}/info'
504
mandir='${prefix}/man'
509
# If the previous option needs an argument, assign it.
510
if test -n "$ac_prev"; then
511
eval "$ac_prev=\$ac_option"
516
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
# Accept the important Cygnus configure options, so we can diagnose typos.
522
-bindir | --bindir | --bindi | --bind | --bin | --bi)
524
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527
-build | --build | --buil | --bui | --bu)
528
ac_prev=build_alias ;;
529
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
530
build_alias=$ac_optarg ;;
532
-cache-file | --cache-file | --cache-fil | --cache-fi \
533
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534
ac_prev=cache_file ;;
535
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537
cache_file=$ac_optarg ;;
540
cache_file=config.cache ;;
542
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546
datadir=$ac_optarg ;;
548
-disable-* | --disable-*)
549
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550
# Reject names that are not valid shell variable names.
551
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
553
{ (exit 1); exit 1; }; }
554
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555
eval "enable_$ac_feature=no" ;;
557
-enable-* | --enable-*)
558
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559
# Reject names that are not valid shell variable names.
560
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
562
{ (exit 1); exit 1; }; }
563
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568
eval "enable_$ac_feature='$ac_optarg'" ;;
570
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572
| --exec | --exe | --ex)
573
ac_prev=exec_prefix ;;
574
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576
| --exec=* | --exe=* | --ex=*)
577
exec_prefix=$ac_optarg ;;
579
-gas | --gas | --ga | --g)
580
# Obsolete; use --with-gas.
583
-help | --help | --hel | --he | -h)
585
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586
ac_init_help=recursive ;;
587
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588
ac_init_help=short ;;
590
-host | --host | --hos | --ho)
591
ac_prev=host_alias ;;
592
-host=* | --host=* | --hos=* | --ho=*)
593
host_alias=$ac_optarg ;;
595
-includedir | --includedir | --includedi | --included | --include \
596
| --includ | --inclu | --incl | --inc)
597
ac_prev=includedir ;;
598
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599
| --includ=* | --inclu=* | --incl=* | --inc=*)
600
includedir=$ac_optarg ;;
602
-infodir | --infodir | --infodi | --infod | --info | --inf)
604
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605
infodir=$ac_optarg ;;
607
-libdir | --libdir | --libdi | --libd)
609
-libdir=* | --libdir=* | --libdi=* | --libd=*)
612
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613
| --libexe | --libex | --libe)
614
ac_prev=libexecdir ;;
615
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616
| --libexe=* | --libex=* | --libe=*)
617
libexecdir=$ac_optarg ;;
619
-localstatedir | --localstatedir | --localstatedi | --localstated \
620
| --localstate | --localstat | --localsta | --localst \
621
| --locals | --local | --loca | --loc | --lo)
622
ac_prev=localstatedir ;;
623
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
625
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626
localstatedir=$ac_optarg ;;
628
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634
# Obsolete; use --without-fp.
637
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
638
| --no-cr | --no-c | -n)
641
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
642
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647
| --oldin | --oldi | --old | --ol | --o)
648
ac_prev=oldincludedir ;;
649
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652
oldincludedir=$ac_optarg ;;
654
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659
-program-prefix | --program-prefix | --program-prefi | --program-pref \
660
| --program-pre | --program-pr | --program-p)
661
ac_prev=program_prefix ;;
662
-program-prefix=* | --program-prefix=* | --program-prefi=* \
663
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664
program_prefix=$ac_optarg ;;
666
-program-suffix | --program-suffix | --program-suffi | --program-suff \
667
| --program-suf | --program-su | --program-s)
668
ac_prev=program_suffix ;;
669
-program-suffix=* | --program-suffix=* | --program-suffi=* \
670
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671
program_suffix=$ac_optarg ;;
673
-program-transform-name | --program-transform-name \
674
| --program-transform-nam | --program-transform-na \
675
| --program-transform-n | --program-transform- \
676
| --program-transform | --program-transfor \
677
| --program-transfo | --program-transf \
678
| --program-trans | --program-tran \
679
| --progr-tra | --program-tr | --program-t)
680
ac_prev=program_transform_name ;;
681
-program-transform-name=* | --program-transform-name=* \
682
| --program-transform-nam=* | --program-transform-na=* \
683
| --program-transform-n=* | --program-transform-=* \
684
| --program-transform=* | --program-transfor=* \
685
| --program-transfo=* | --program-transf=* \
686
| --program-trans=* | --program-tran=* \
687
| --progr-tra=* | --program-tr=* | --program-t=*)
688
program_transform_name=$ac_optarg ;;
690
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
691
| -silent | --silent | --silen | --sile | --sil)
694
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698
sbindir=$ac_optarg ;;
700
-sharedstatedir | --sharedstatedir | --sharedstatedi \
701
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702
| --sharedst | --shareds | --shared | --share | --shar \
704
ac_prev=sharedstatedir ;;
705
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709
sharedstatedir=$ac_optarg ;;
711
-site | --site | --sit)
713
-site=* | --site=* | --sit=*)
716
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722
| --syscon | --sysco | --sysc | --sys | --sy)
723
ac_prev=sysconfdir ;;
724
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726
sysconfdir=$ac_optarg ;;
728
-target | --target | --targe | --targ | --tar | --ta | --t)
729
ac_prev=target_alias ;;
730
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731
target_alias=$ac_optarg ;;
733
-v | -verbose | --verbose | --verbos | --verbo | --verb)
736
-version | --version | --versio | --versi | --vers | -V)
740
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741
# Reject names that are not valid shell variable names.
742
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743
{ echo "$as_me: error: invalid package name: $ac_package" >&2
744
{ (exit 1); exit 1; }; }
745
ac_package=`echo $ac_package| sed 's/-/_/g'`
747
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750
eval "with_$ac_package='$ac_optarg'" ;;
752
-without-* | --without-*)
753
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754
# Reject names that are not valid shell variable names.
755
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756
{ echo "$as_me: error: invalid package name: $ac_package" >&2
757
{ (exit 1); exit 1; }; }
758
ac_package=`echo $ac_package | sed 's/-/_/g'`
759
eval "with_$ac_package=no" ;;
762
# Obsolete; use --with-x.
765
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766
| --x-incl | --x-inc | --x-in | --x-i)
767
ac_prev=x_includes ;;
768
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770
x_includes=$ac_optarg ;;
772
-x-libraries | --x-libraries | --x-librarie | --x-librari \
773
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774
ac_prev=x_libraries ;;
775
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777
x_libraries=$ac_optarg ;;
779
-*) { echo "$as_me: error: unrecognized option: $ac_option
780
Try \`$0 --help' for more information." >&2
781
{ (exit 1); exit 1; }; }
785
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786
# Reject names that are not valid shell variable names.
787
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789
{ (exit 1); exit 1; }; }
790
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791
eval "$ac_envvar='$ac_optarg'"
795
# FIXME: should be removed in autoconf 3.0.
796
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805
if test -n "$ac_prev"; then
806
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807
{ echo "$as_me: error: missing argument to $ac_option" >&2
808
{ (exit 1); exit 1; }; }
811
# Be sure to have absolute paths.
812
for ac_var in exec_prefix prefix
814
eval ac_val=$`echo $ac_var`
816
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818
{ (exit 1); exit 1; }; };;
822
# Be sure to have absolute paths.
823
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824
localstatedir libdir includedir oldincludedir infodir mandir
826
eval ac_val=$`echo $ac_var`
828
[\\/$]* | ?:[\\/]* ) ;;
829
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830
{ (exit 1); exit 1; }; };;
834
# There might be people who depend on the old broken behavior: `$host'
835
# used to hold the argument of --host etc.
836
# FIXME: To remove some day.
841
# FIXME: To remove some day.
842
if test "x$host_alias" != x; then
843
if test "x$build_alias" = x; then
844
cross_compiling=maybe
845
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846
If a cross compiler is detected then cross compile mode will be used." >&2
847
elif test "x$build_alias" != "x$host_alias"; then
853
test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
test "$silent" = yes && exec 6>/dev/null
858
# Find the source files, if location was not specified.
859
if test -z "$srcdir"; then
860
ac_srcdir_defaulted=yes
861
# Try the directory containing this script, then its parent.
862
ac_confdir=`(dirname "$0") 2>/dev/null ||
863
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864
X"$0" : 'X\(//\)[^/]' \| \
865
X"$0" : 'X\(//\)$' \| \
866
X"$0" : 'X\(/\)' \| \
867
. : '\(.\)' 2>/dev/null ||
869
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
871
/^X\(\/\/\)$/{ s//\1/; q; }
872
/^X\(\/\).*/{ s//\1/; q; }
875
if test ! -r $srcdir/$ac_unique_file; then
879
ac_srcdir_defaulted=no
881
if test ! -r $srcdir/$ac_unique_file; then
882
if test "$ac_srcdir_defaulted" = yes; then
883
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884
{ (exit 1); exit 1; }; }
886
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887
{ (exit 1); exit 1; }; }
890
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892
{ (exit 1); exit 1; }; }
893
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894
ac_env_build_alias_set=${build_alias+set}
895
ac_env_build_alias_value=$build_alias
896
ac_cv_env_build_alias_set=${build_alias+set}
897
ac_cv_env_build_alias_value=$build_alias
898
ac_env_host_alias_set=${host_alias+set}
899
ac_env_host_alias_value=$host_alias
900
ac_cv_env_host_alias_set=${host_alias+set}
901
ac_cv_env_host_alias_value=$host_alias
902
ac_env_target_alias_set=${target_alias+set}
903
ac_env_target_alias_value=$target_alias
904
ac_cv_env_target_alias_set=${target_alias+set}
905
ac_cv_env_target_alias_value=$target_alias
906
ac_env_CC_set=${CC+set}
908
ac_cv_env_CC_set=${CC+set}
909
ac_cv_env_CC_value=$CC
910
ac_env_CFLAGS_set=${CFLAGS+set}
911
ac_env_CFLAGS_value=$CFLAGS
912
ac_cv_env_CFLAGS_set=${CFLAGS+set}
913
ac_cv_env_CFLAGS_value=$CFLAGS
914
ac_env_LDFLAGS_set=${LDFLAGS+set}
915
ac_env_LDFLAGS_value=$LDFLAGS
916
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_cv_env_LDFLAGS_value=$LDFLAGS
918
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919
ac_env_CPPFLAGS_value=$CPPFLAGS
920
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922
ac_env_CCAS_set=${CCAS+set}
923
ac_env_CCAS_value=$CCAS
924
ac_cv_env_CCAS_set=${CCAS+set}
925
ac_cv_env_CCAS_value=$CCAS
926
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
927
ac_env_CCASFLAGS_value=$CCASFLAGS
928
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
929
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
930
ac_env_CPP_set=${CPP+set}
931
ac_env_CPP_value=$CPP
932
ac_cv_env_CPP_set=${CPP+set}
933
ac_cv_env_CPP_value=$CPP
934
ac_env_CXX_set=${CXX+set}
935
ac_env_CXX_value=$CXX
936
ac_cv_env_CXX_set=${CXX+set}
937
ac_cv_env_CXX_value=$CXX
938
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
939
ac_env_CXXFLAGS_value=$CXXFLAGS
940
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
941
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
942
ac_env_CXXCPP_set=${CXXCPP+set}
943
ac_env_CXXCPP_value=$CXXCPP
944
ac_cv_env_CXXCPP_set=${CXXCPP+set}
945
ac_cv_env_CXXCPP_value=$CXXCPP
946
ac_env_F77_set=${F77+set}
947
ac_env_F77_value=$F77
948
ac_cv_env_F77_set=${F77+set}
949
ac_cv_env_F77_value=$F77
950
ac_env_FFLAGS_set=${FFLAGS+set}
951
ac_env_FFLAGS_value=$FFLAGS
952
ac_cv_env_FFLAGS_set=${FFLAGS+set}
953
ac_cv_env_FFLAGS_value=$FFLAGS
956
# Report the --help message.
958
if test "$ac_init_help" = "long"; then
959
# Omit some internal or obsolete options to make the list less imposing.
960
# This message is too long to be a string in the A/UX 3.1 sh.
962
\`configure' configures umem 1.0.1 to adapt to many kinds of systems.
964
Usage: $0 [OPTION]... [VAR=VALUE]...
966
To assign environment variables (e.g., CC, CFLAGS...), specify them as
967
VAR=VALUE. See below for descriptions of some of the useful variables.
969
Defaults for the options are specified in brackets.
972
-h, --help display this help and exit
973
--help=short display options specific to this package
974
--help=recursive display the short help of all the included packages
975
-V, --version display version information and exit
976
-q, --quiet, --silent do not print \`checking...' messages
977
--cache-file=FILE cache test results in FILE [disabled]
978
-C, --config-cache alias for \`--cache-file=config.cache'
979
-n, --no-create do not create output files
980
--srcdir=DIR find the sources in DIR [configure dir or \`..']
985
Installation directories:
986
--prefix=PREFIX install architecture-independent files in PREFIX
988
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
991
By default, \`make install' will install all the files in
992
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
993
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
994
for instance \`--prefix=\$HOME'.
996
For better control, use the options below.
998
Fine tuning of the installation directories:
999
--bindir=DIR user executables [EPREFIX/bin]
1000
--sbindir=DIR system admin executables [EPREFIX/sbin]
1001
--libexecdir=DIR program executables [EPREFIX/libexec]
1002
--datadir=DIR read-only architecture-independent data [PREFIX/share]
1003
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1004
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1005
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1006
--libdir=DIR object code libraries [EPREFIX/lib]
1007
--includedir=DIR C header files [PREFIX/include]
1008
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1009
--infodir=DIR info documentation [PREFIX/info]
1010
--mandir=DIR man documentation [PREFIX/man]
1016
--program-prefix=PREFIX prepend PREFIX to installed program names
1017
--program-suffix=SUFFIX append SUFFIX to installed program names
1018
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1021
--build=BUILD configure for building on BUILD [guessed]
1022
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1026
if test -n "$ac_init_help"; then
1027
case $ac_init_help in
1028
short | recursive ) echo "Configuration of umem 1.0.1:";;
1033
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1035
--disable-dependency-tracking speeds up one-time build
1036
--enable-dependency-tracking do not reject slow dependency extractors
1037
--enable-shared[=PKGS]
1038
build shared libraries [default=yes]
1039
--enable-static[=PKGS]
1040
build static libraries [default=yes]
1041
--enable-fast-install[=PKGS]
1042
optimize for fast installation [default=yes]
1043
--disable-libtool-lock avoid locking (might break parallel builds)
1046
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049
--with-pic try to use only PIC/non-PIC objects [default=use
1052
include additional configurations [automatic]
1054
Some influential environment variables:
1055
CC C compiler command
1056
CFLAGS C compiler flags
1057
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058
nonstandard directory <lib dir>
1059
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060
headers in a nonstandard directory <include dir>
1061
CCAS assembler compiler command (defaults to CC)
1062
CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1064
CXX C++ compiler command
1065
CXXFLAGS C++ compiler flags
1066
CXXCPP C++ preprocessor
1067
F77 Fortran 77 compiler command
1068
FFLAGS Fortran 77 compiler flags
1070
Use these variables to override the choices made by `configure' or to help
1071
it to find libraries and programs with nonstandard names/locations.
1076
if test "$ac_init_help" = "recursive"; then
1077
# If there are subdirs, report their specific --help.
1079
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080
test -d $ac_dir || continue
1083
if test "$ac_dir" != .; then
1084
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085
# A "../" for each directory in $ac_dir_suffix.
1086
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088
ac_dir_suffix= ac_top_builddir=
1092
.) # No --srcdir option. We are building in place.
1094
if test -z "$ac_top_builddir"; then
1097
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099
[\\/]* | ?:[\\/]* ) # Absolute path.
1100
ac_srcdir=$srcdir$ac_dir_suffix;
1101
ac_top_srcdir=$srcdir ;;
1103
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107
# Do not use `cd foo && pwd` to compute absolute paths, because
1108
# the directories may not exist.
1110
.) ac_abs_builddir="$ac_dir";;
1113
.) ac_abs_builddir=`pwd`;;
1114
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1118
case $ac_abs_builddir in
1119
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1121
case ${ac_top_builddir}. in
1122
.) ac_abs_top_builddir=$ac_abs_builddir;;
1123
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127
case $ac_abs_builddir in
1128
.) ac_abs_srcdir=$ac_srcdir;;
1131
.) ac_abs_srcdir=$ac_abs_builddir;;
1132
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136
case $ac_abs_builddir in
1137
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1139
case $ac_top_srcdir in
1140
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1141
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147
# Check for guested configure; otherwise get Cygnus style configure.
1148
if test -f $ac_srcdir/configure.gnu; then
1150
$SHELL $ac_srcdir/configure.gnu --help=recursive
1151
elif test -f $ac_srcdir/configure; then
1153
$SHELL $ac_srcdir/configure --help=recursive
1154
elif test -f $ac_srcdir/configure.ac ||
1155
test -f $ac_srcdir/configure.in; then
1157
$ac_configure --help
1159
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165
test -n "$ac_init_help" && exit 0
1166
if $ac_init_version; then
1168
umem configure 1.0.1
1169
generated by GNU Autoconf 2.59
1171
Copyright (C) 2003 Free Software Foundation, Inc.
1172
This configure script is free software; the Free Software Foundation
1173
gives unlimited permission to copy, distribute and modify it.
1179
This file contains any messages produced by compilers while
1180
running configure, to aid debugging if configure makes a mistake.
1182
It was created by umem $as_me 1.0.1, which was
1183
generated by GNU Autoconf 2.59. Invocation command line was
1194
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217
test -z "$as_dir" && as_dir=.
1218
echo "PATH: $as_dir"
1233
# Keep a trace of the command line.
1234
# Strip out --no-create and --no-recursion so they do not pile up.
1235
# Strip out --silent because we don't want to record it for future runs.
1236
# Also quote any args containing shell meta-characters.
1237
# Make two passes to allow for proper duplicate-argument suppression.
1242
ac_must_keep_next=false
1248
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250
| -silent | --silent | --silen | --sile | --sil)
1252
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259
if test $ac_must_keep_next = true; then
1260
ac_must_keep_next=false # Got value, back to normal.
1263
*=* | --config-cache | -C | -disable-* | --disable-* \
1264
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266
| -with-* | --with-* | -without-* | --without-* | --x)
1267
case "$ac_configure_args0 " in
1268
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271
-* ) ac_must_keep_next=true ;;
1274
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275
# Get rid of the leading space.
1281
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
# When interrupted or exit'd, cleanup temporary files, and complete
1285
# config.log. We remove comments because anyway the quotes in there
1286
# would cause problems or look ugly.
1287
# WARNING: Be sure not to use single quotes in there, as some shells,
1288
# such as our DU 5.0 friend, will then `close' the trap.
1289
trap 'exit_status=$?
1290
# Save into config.log some information that might help in debugging.
1295
## ---------------- ##
1296
## Cache variables. ##
1297
## ---------------- ##
1300
# The following way of writing the cache mishandles newlines in values,
1303
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318
## ----------------- ##
1319
## Output variables. ##
1320
## ----------------- ##
1323
for ac_var in $ac_subst_vars
1325
eval ac_val=$`echo $ac_var`
1326
echo "$ac_var='"'"'$ac_val'"'"'"
1330
if test -n "$ac_subst_files"; then
1337
for ac_var in $ac_subst_files
1339
eval ac_val=$`echo $ac_var`
1340
echo "$ac_var='"'"'$ac_val'"'"'"
1345
if test -s confdefs.h; then
1352
sed "/^$/d" confdefs.h | sort
1355
test "$ac_signal" != 0 &&
1356
echo "$as_me: caught signal $ac_signal"
1357
echo "$as_me: exit $exit_status"
1359
rm -f core *.core &&
1360
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363
for ac_signal in 1 2 13 15; do
1364
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369
rm -rf conftest* confdefs.h
1370
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373
# Predefined preprocessor variables.
1375
cat >>confdefs.h <<_ACEOF
1376
#define PACKAGE_NAME "$PACKAGE_NAME"
1380
cat >>confdefs.h <<_ACEOF
1381
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385
cat >>confdefs.h <<_ACEOF
1386
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1390
cat >>confdefs.h <<_ACEOF
1391
#define PACKAGE_STRING "$PACKAGE_STRING"
1395
cat >>confdefs.h <<_ACEOF
1396
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400
# Let the site file select an alternate cache file if it wants to.
1401
# Prefer explicitly selected file to automatically selected ones.
1402
if test -z "$CONFIG_SITE"; then
1403
if test "x$prefix" != xNONE; then
1404
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409
for ac_site_file in $CONFIG_SITE; do
1410
if test -r "$ac_site_file"; then
1411
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412
echo "$as_me: loading site script $ac_site_file" >&6;}
1413
sed 's/^/| /' "$ac_site_file" >&5
1418
if test -r "$cache_file"; then
1419
# Some versions of bash will fail to source /dev/null (special
1420
# files actually), so we avoid doing that.
1421
if test -f "$cache_file"; then
1422
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423
echo "$as_me: loading cache $cache_file" >&6;}
1425
[\\/]* | ?:[\\/]* ) . $cache_file;;
1426
*) . ./$cache_file;;
1430
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431
echo "$as_me: creating cache $cache_file" >&6;}
1435
# Check that the precious variables saved in the cache have kept the same
1437
ac_cache_corrupted=false
1438
for ac_var in `(set) 2>&1 |
1439
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441
eval ac_new_set=\$ac_env_${ac_var}_set
1442
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443
eval ac_new_val="\$ac_env_${ac_var}_value"
1444
case $ac_old_set,$ac_new_set in
1446
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448
ac_cache_corrupted=: ;;
1450
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452
ac_cache_corrupted=: ;;
1455
if test "x$ac_old_val" != "x$ac_new_val"; then
1456
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459
echo "$as_me: former value: $ac_old_val" >&2;}
1460
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461
echo "$as_me: current value: $ac_new_val" >&2;}
1462
ac_cache_corrupted=:
1465
# Pass precious variables to config.status.
1466
if test "$ac_new_set" = set; then
1468
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470
*) ac_arg=$ac_var=$ac_new_val ;;
1472
case " $ac_configure_args " in
1473
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478
if $ac_cache_corrupted; then
1479
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483
{ (exit 1); exit 1; }; }
1487
ac_cpp='$CPP $CPPFLAGS'
1488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518
am__api_version="1.9"
1520
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521
if test -f $ac_dir/install-sh; then
1523
ac_install_sh="$ac_aux_dir/install-sh -c"
1525
elif test -f $ac_dir/install.sh; then
1527
ac_install_sh="$ac_aux_dir/install.sh -c"
1529
elif test -f $ac_dir/shtool; then
1531
ac_install_sh="$ac_aux_dir/shtool install -c"
1535
if test -z "$ac_aux_dir"; then
1536
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538
{ (exit 1); exit 1; }; }
1540
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
# Find a good install program. We prefer a C program (faster),
1545
# so one script is as good as another. But avoid the broken or
1546
# incompatible versions:
1547
# SysV /etc/install, /usr/sbin/install
1548
# SunOS /usr/etc/install
1549
# IRIX /sbin/install
1551
# AmigaOS /C/install, which installs bootblocks on floppy discs
1552
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555
# OS/2's system install, which has a completely different semantic
1556
# ./install, which can be erroneously created by make from ./install.sh.
1557
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559
if test -z "$INSTALL"; then
1560
if test "${ac_cv_path_install+set}" = set; then
1561
echo $ECHO_N "(cached) $ECHO_C" >&6
1563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567
test -z "$as_dir" && as_dir=.
1568
# Account for people who put trailing slashes in PATH elements.
1570
./ | .// | /cC/* | \
1571
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1575
# OSF1 and SCO ODT 3.0 have their own names for install.
1576
# Don't use installbsd from OSF since it installs stuff as root
1578
for ac_prog in ginstall scoinst install; do
1579
for ac_exec_ext in '' $ac_executable_extensions; do
1580
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581
if test $ac_prog = install &&
1582
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583
# AIX install. It has an incompatible calling convention.
1585
elif test $ac_prog = install &&
1586
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587
# program-specific install script used by HP pwplus--don't use.
1590
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1602
if test "${ac_cv_path_install+set}" = set; then
1603
INSTALL=$ac_cv_path_install
1605
# As a last resort, use the slow shell script. We don't cache a
1606
# path for INSTALL within a source directory, because that will
1607
# break other packages using the cache if that directory is
1608
# removed, or if the path is relative.
1609
INSTALL=$ac_install_sh
1612
echo "$as_me:$LINENO: result: $INSTALL" >&5
1613
echo "${ECHO_T}$INSTALL" >&6
1615
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616
# It thinks the first close brace ends the variable substitution.
1617
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627
echo timestamp > conftest.file
1628
# Do `set' in a subshell so we don't clobber the current shell's
1629
# arguments. Must try -L first in case configure is actually a
1630
# symlink; some systems play weird games with the mod time of symlinks
1631
# (eg FreeBSD returns the mod time of the symlink's containing
1634
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635
if test "$*" = "X"; then
1637
set X `ls -t $srcdir/configure conftest.file`
1640
if test "$*" != "X $srcdir/configure conftest.file" \
1641
&& test "$*" != "X conftest.file $srcdir/configure"; then
1643
# If neither matched, then we have a broken ls. This can happen
1644
# if, for instance, CONFIG_SHELL is bash and it inherits a
1645
# broken ls alias from the environment. This has actually
1646
# happened. Such a system could not be considered "sane".
1647
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1648
alias in your environment" >&5
1649
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1650
alias in your environment" >&2;}
1651
{ (exit 1); exit 1; }; }
1654
test "$2" = conftest.file
1660
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661
Check your system clock" >&5
1662
echo "$as_me: error: newly created file is older than distributed files!
1663
Check your system clock" >&2;}
1664
{ (exit 1); exit 1; }; }
1666
echo "$as_me:$LINENO: result: yes" >&5
1667
echo "${ECHO_T}yes" >&6
1668
test "$program_prefix" != NONE &&
1669
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670
# Use a double $ so make ignores it.
1671
test "$program_suffix" != NONE &&
1672
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673
# Double any \ or $. echo might interpret backslashes.
1674
# By default was `s,x,x', remove it if useless.
1675
cat <<\_ACEOF >conftest.sed
1676
s/[\\$]/&&/g;s/;s,x,x,$//
1678
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681
# expand $ac_aux_dir to an absolute path
1682
am_aux_dir=`cd $ac_aux_dir && pwd`
1684
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685
# Use eval to expand $SHELL
1686
if eval "$MISSING --run true"; then
1687
am_missing_run="$MISSING --run "
1690
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1694
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695
# We used to keeping the `.' as first argument, in order to
1696
# allow $(mkdir_p) to be used without argument. As in
1697
# $(mkdir_p) $(somedir)
1698
# where $(somedir) is conditionally defined. However this is wrong
1700
# 1. if the package is installed by a user who cannot write `.'
1701
# make install will fail,
1702
# 2. the above comment should most certainly read
1703
# $(mkdir_p) $(DESTDIR)$(somedir)
1704
# so it does not work when $(somedir) is undefined and
1705
# $(DESTDIR) is not.
1706
# To support the latter case, we have to write
1707
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708
# so the `.' trick is pointless.
1709
mkdir_p='mkdir -p --'
1711
# On NextStep and OpenStep, the `mkdir' command does not
1712
# recognize any option. It will interpret all options as
1713
# directories to create, and then abort because `.' already
1715
for d in ./-p ./--version;
1717
test -d $d && rmdir $d
1719
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720
if test -f "$ac_aux_dir/mkinstalldirs"; then
1721
mkdir_p='$(mkinstalldirs)'
1723
mkdir_p='$(install_sh) -d'
1727
for ac_prog in gawk mawk nawk awk
1729
# Extract the first word of "$ac_prog", so it can be a program name with args.
1730
set dummy $ac_prog; ac_word=$2
1731
echo "$as_me:$LINENO: checking for $ac_word" >&5
1732
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733
if test "${ac_cv_prog_AWK+set}" = set; then
1734
echo $ECHO_N "(cached) $ECHO_C" >&6
1736
if test -n "$AWK"; then
1737
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743
test -z "$as_dir" && as_dir=.
1744
for ac_exec_ext in '' $ac_executable_extensions; do
1745
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746
ac_cv_prog_AWK="$ac_prog"
1747
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756
if test -n "$AWK"; then
1757
echo "$as_me:$LINENO: result: $AWK" >&5
1758
echo "${ECHO_T}$AWK" >&6
1760
echo "$as_me:$LINENO: result: no" >&5
1761
echo "${ECHO_T}no" >&6
1764
test -n "$AWK" && break
1767
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771
echo $ECHO_N "(cached) $ECHO_C" >&6
1773
cat >conftest.make <<\_ACEOF
1775
@echo 'ac_maketemp="$(MAKE)"'
1777
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779
if test -n "$ac_maketemp"; then
1780
eval ac_cv_prog_make_${ac_make}_set=yes
1782
eval ac_cv_prog_make_${ac_make}_set=no
1786
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787
echo "$as_me:$LINENO: result: yes" >&5
1788
echo "${ECHO_T}yes" >&6
1791
echo "$as_me:$LINENO: result: no" >&5
1792
echo "${ECHO_T}no" >&6
1793
SET_MAKE="MAKE=${MAKE-make}"
1796
rm -rf .tst 2>/dev/null
1797
mkdir .tst 2>/dev/null
1798
if test -d .tst; then
1803
rmdir .tst 2>/dev/null
1805
# test to see if srcdir already configured
1806
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807
test -f $srcdir/config.status; then
1808
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810
{ (exit 1); exit 1; }; }
1813
# test whether we have cygpath
1814
if test -z "$CYGPATH_W"; then
1815
if (cygpath --version) >/dev/null 2>/dev/null; then
1816
CYGPATH_W='cygpath -w'
1823
# Define the identity of the package.
1828
cat >>confdefs.h <<_ACEOF
1829
#define PACKAGE "$PACKAGE"
1833
cat >>confdefs.h <<_ACEOF
1834
#define VERSION "$VERSION"
1837
# Some tools Automake needs.
1839
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1842
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1845
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1848
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1851
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1853
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855
# Installed binaries are usually stripped using `strip' when the user
1856
# run `make install-strip'. However `strip' might not be the right
1857
# tool to use in cross-compilation environments, therefore Automake
1858
# will honor the `STRIP' environment variable to overrule this program.
1859
if test "$cross_compiling" != no; then
1860
if test -n "$ac_tool_prefix"; then
1861
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862
set dummy ${ac_tool_prefix}strip; ac_word=$2
1863
echo "$as_me:$LINENO: checking for $ac_word" >&5
1864
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865
if test "${ac_cv_prog_STRIP+set}" = set; then
1866
echo $ECHO_N "(cached) $ECHO_C" >&6
1868
if test -n "$STRIP"; then
1869
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875
test -z "$as_dir" && as_dir=.
1876
for ac_exec_ext in '' $ac_executable_extensions; do
1877
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887
STRIP=$ac_cv_prog_STRIP
1888
if test -n "$STRIP"; then
1889
echo "$as_me:$LINENO: result: $STRIP" >&5
1890
echo "${ECHO_T}$STRIP" >&6
1892
echo "$as_me:$LINENO: result: no" >&5
1893
echo "${ECHO_T}no" >&6
1897
if test -z "$ac_cv_prog_STRIP"; then
1899
# Extract the first word of "strip", so it can be a program name with args.
1900
set dummy strip; ac_word=$2
1901
echo "$as_me:$LINENO: checking for $ac_word" >&5
1902
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904
echo $ECHO_N "(cached) $ECHO_C" >&6
1906
if test -n "$ac_ct_STRIP"; then
1907
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913
test -z "$as_dir" && as_dir=.
1914
for ac_exec_ext in '' $ac_executable_extensions; do
1915
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916
ac_cv_prog_ac_ct_STRIP="strip"
1917
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1926
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927
if test -n "$ac_ct_STRIP"; then
1928
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929
echo "${ECHO_T}$ac_ct_STRIP" >&6
1931
echo "$as_me:$LINENO: result: no" >&5
1932
echo "${ECHO_T}no" >&6
1937
STRIP="$ac_cv_prog_STRIP"
1941
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943
# We need awk for the "check" target. The system "awk" is bad on
1945
# Always define AMTAR for backward compatibility.
1947
AMTAR=${AMTAR-"${am_missing_run}tar"}
1949
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1957
ac_cpp='$CPP $CPPFLAGS'
1958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961
if test -n "$ac_tool_prefix"; then
1962
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1963
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1964
echo "$as_me:$LINENO: checking for $ac_word" >&5
1965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966
if test "${ac_cv_prog_CC+set}" = set; then
1967
echo $ECHO_N "(cached) $ECHO_C" >&6
1969
if test -n "$CC"; then
1970
ac_cv_prog_CC="$CC" # Let the user override the test.
1972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976
test -z "$as_dir" && as_dir=.
1977
for ac_exec_ext in '' $ac_executable_extensions; do
1978
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1980
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989
if test -n "$CC"; then
1990
echo "$as_me:$LINENO: result: $CC" >&5
1991
echo "${ECHO_T}$CC" >&6
1993
echo "$as_me:$LINENO: result: no" >&5
1994
echo "${ECHO_T}no" >&6
1998
if test -z "$ac_cv_prog_CC"; then
2000
# Extract the first word of "gcc", so it can be a program name with args.
2001
set dummy gcc; ac_word=$2
2002
echo "$as_me:$LINENO: checking for $ac_word" >&5
2003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005
echo $ECHO_N "(cached) $ECHO_C" >&6
2007
if test -n "$ac_ct_CC"; then
2008
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014
test -z "$as_dir" && as_dir=.
2015
for ac_exec_ext in '' $ac_executable_extensions; do
2016
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017
ac_cv_prog_ac_ct_CC="gcc"
2018
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027
if test -n "$ac_ct_CC"; then
2028
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029
echo "${ECHO_T}$ac_ct_CC" >&6
2031
echo "$as_me:$LINENO: result: no" >&5
2032
echo "${ECHO_T}no" >&6
2040
if test -z "$CC"; then
2041
if test -n "$ac_tool_prefix"; then
2042
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2043
set dummy ${ac_tool_prefix}cc; ac_word=$2
2044
echo "$as_me:$LINENO: checking for $ac_word" >&5
2045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046
if test "${ac_cv_prog_CC+set}" = set; then
2047
echo $ECHO_N "(cached) $ECHO_C" >&6
2049
if test -n "$CC"; then
2050
ac_cv_prog_CC="$CC" # Let the user override the test.
2052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056
test -z "$as_dir" && as_dir=.
2057
for ac_exec_ext in '' $ac_executable_extensions; do
2058
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059
ac_cv_prog_CC="${ac_tool_prefix}cc"
2060
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069
if test -n "$CC"; then
2070
echo "$as_me:$LINENO: result: $CC" >&5
2071
echo "${ECHO_T}$CC" >&6
2073
echo "$as_me:$LINENO: result: no" >&5
2074
echo "${ECHO_T}no" >&6
2078
if test -z "$ac_cv_prog_CC"; then
2080
# Extract the first word of "cc", so it can be a program name with args.
2081
set dummy cc; ac_word=$2
2082
echo "$as_me:$LINENO: checking for $ac_word" >&5
2083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2085
echo $ECHO_N "(cached) $ECHO_C" >&6
2087
if test -n "$ac_ct_CC"; then
2088
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094
test -z "$as_dir" && as_dir=.
2095
for ac_exec_ext in '' $ac_executable_extensions; do
2096
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097
ac_cv_prog_ac_ct_CC="cc"
2098
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2107
if test -n "$ac_ct_CC"; then
2108
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2109
echo "${ECHO_T}$ac_ct_CC" >&6
2111
echo "$as_me:$LINENO: result: no" >&5
2112
echo "${ECHO_T}no" >&6
2121
if test -z "$CC"; then
2122
# Extract the first word of "cc", so it can be a program name with args.
2123
set dummy cc; ac_word=$2
2124
echo "$as_me:$LINENO: checking for $ac_word" >&5
2125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126
if test "${ac_cv_prog_CC+set}" = set; then
2127
echo $ECHO_N "(cached) $ECHO_C" >&6
2129
if test -n "$CC"; then
2130
ac_cv_prog_CC="$CC" # Let the user override the test.
2133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137
test -z "$as_dir" && as_dir=.
2138
for ac_exec_ext in '' $ac_executable_extensions; do
2139
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2141
ac_prog_rejected=yes
2145
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151
if test $ac_prog_rejected = yes; then
2152
# We found a bogon in the path, so make sure we never use it.
2153
set dummy $ac_cv_prog_CC
2155
if test $# != 0; then
2156
# We chose a different compiler from the bogus one.
2157
# However, it has the same basename, so the bogon will be chosen
2158
# first if we set CC to just the basename; use the full file name.
2160
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2166
if test -n "$CC"; then
2167
echo "$as_me:$LINENO: result: $CC" >&5
2168
echo "${ECHO_T}$CC" >&6
2170
echo "$as_me:$LINENO: result: no" >&5
2171
echo "${ECHO_T}no" >&6
2175
if test -z "$CC"; then
2176
if test -n "$ac_tool_prefix"; then
2179
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2180
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2181
echo "$as_me:$LINENO: checking for $ac_word" >&5
2182
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183
if test "${ac_cv_prog_CC+set}" = set; then
2184
echo $ECHO_N "(cached) $ECHO_C" >&6
2186
if test -n "$CC"; then
2187
ac_cv_prog_CC="$CC" # Let the user override the test.
2189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193
test -z "$as_dir" && as_dir=.
2194
for ac_exec_ext in '' $ac_executable_extensions; do
2195
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2196
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2197
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206
if test -n "$CC"; then
2207
echo "$as_me:$LINENO: result: $CC" >&5
2208
echo "${ECHO_T}$CC" >&6
2210
echo "$as_me:$LINENO: result: no" >&5
2211
echo "${ECHO_T}no" >&6
2214
test -n "$CC" && break
2217
if test -z "$CC"; then
2221
# Extract the first word of "$ac_prog", so it can be a program name with args.
2222
set dummy $ac_prog; ac_word=$2
2223
echo "$as_me:$LINENO: checking for $ac_word" >&5
2224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2226
echo $ECHO_N "(cached) $ECHO_C" >&6
2228
if test -n "$ac_ct_CC"; then
2229
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235
test -z "$as_dir" && as_dir=.
2236
for ac_exec_ext in '' $ac_executable_extensions; do
2237
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238
ac_cv_prog_ac_ct_CC="$ac_prog"
2239
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248
if test -n "$ac_ct_CC"; then
2249
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2250
echo "${ECHO_T}$ac_ct_CC" >&6
2252
echo "$as_me:$LINENO: result: no" >&5
2253
echo "${ECHO_T}no" >&6
2256
test -n "$ac_ct_CC" && break
2265
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2266
See \`config.log' for more details." >&5
2267
echo "$as_me: error: no acceptable C compiler found in \$PATH
2268
See \`config.log' for more details." >&2;}
2269
{ (exit 1); exit 1; }; }
2271
# Provide some information about the compiler.
2272
echo "$as_me:$LINENO:" \
2273
"checking for C compiler version" >&5
2274
ac_compiler=`set X $ac_compile; echo $2`
2275
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2276
(eval $ac_compiler --version </dev/null >&5) 2>&5
2278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279
(exit $ac_status); }
2280
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2281
(eval $ac_compiler -v </dev/null >&5) 2>&5
2283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284
(exit $ac_status); }
2285
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2286
(eval $ac_compiler -V </dev/null >&5) 2>&5
2288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289
(exit $ac_status); }
2291
cat >conftest.$ac_ext <<_ACEOF
2294
cat confdefs.h >>conftest.$ac_ext
2295
cat >>conftest.$ac_ext <<_ACEOF
2296
/* end confdefs.h. */
2306
ac_clean_files_save=$ac_clean_files
2307
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2308
# Try to create an executable without -o first, disregard a.out.
2309
# It will help us diagnose broken compilers, and finding out an intuition
2311
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2312
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2313
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2314
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2315
(eval $ac_link_default) 2>&5
2317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318
(exit $ac_status); }; then
2319
# Find the output, starting from the most likely. This scheme is
2320
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2323
# Be careful to initialize this variable, since it used to be cached.
2324
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2326
# b.out is created by i960 compilers.
2327
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2329
test -f "$ac_file" || continue
2331
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2334
# This is the source file.
2337
# We found the default executable, but exeext='' is most
2341
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2342
# FIXME: I believe we export ac_cv_exeext for Libtool,
2343
# but it would be cool to find out if it's true. Does anybody
2344
# maintain Libtool? --akim.
2352
echo "$as_me: failed program was:" >&5
2353
sed 's/^/| /' conftest.$ac_ext >&5
2355
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2356
See \`config.log' for more details." >&5
2357
echo "$as_me: error: C compiler cannot create executables
2358
See \`config.log' for more details." >&2;}
2359
{ (exit 77); exit 77; }; }
2362
ac_exeext=$ac_cv_exeext
2363
echo "$as_me:$LINENO: result: $ac_file" >&5
2364
echo "${ECHO_T}$ac_file" >&6
2366
# Check the compiler produces executables we can run. If not, either
2367
# the compiler is broken, or we cross compile.
2368
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2369
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2370
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2371
# If not cross compiling, check that we can run a simple program.
2372
if test "$cross_compiling" != yes; then
2373
if { ac_try='./$ac_file'
2374
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378
(exit $ac_status); }; }; then
2381
if test "$cross_compiling" = maybe; then
2384
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2385
If you meant to cross compile, use \`--host'.
2386
See \`config.log' for more details." >&5
2387
echo "$as_me: error: cannot run C compiled programs.
2388
If you meant to cross compile, use \`--host'.
2389
See \`config.log' for more details." >&2;}
2390
{ (exit 1); exit 1; }; }
2394
echo "$as_me:$LINENO: result: yes" >&5
2395
echo "${ECHO_T}yes" >&6
2397
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2398
ac_clean_files=$ac_clean_files_save
2399
# Check the compiler produces executables we can run. If not, either
2400
# the compiler is broken, or we cross compile.
2401
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2402
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2403
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2404
echo "${ECHO_T}$cross_compiling" >&6
2406
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2407
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2409
(eval $ac_link) 2>&5
2411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412
(exit $ac_status); }; then
2413
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2414
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2415
# work properly (i.e., refer to `conftest.exe'), while it won't with
2417
for ac_file in conftest.exe conftest conftest.*; do
2418
test -f "$ac_file" || continue
2420
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2421
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2429
See \`config.log' for more details." >&5
2430
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2431
See \`config.log' for more details." >&2;}
2432
{ (exit 1); exit 1; }; }
2435
rm -f conftest$ac_cv_exeext
2436
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2437
echo "${ECHO_T}$ac_cv_exeext" >&6
2439
rm -f conftest.$ac_ext
2440
EXEEXT=$ac_cv_exeext
2442
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2443
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2444
if test "${ac_cv_objext+set}" = set; then
2445
echo $ECHO_N "(cached) $ECHO_C" >&6
2447
cat >conftest.$ac_ext <<_ACEOF
2450
cat confdefs.h >>conftest.$ac_ext
2451
cat >>conftest.$ac_ext <<_ACEOF
2452
/* end confdefs.h. */
2462
rm -f conftest.o conftest.obj
2463
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464
(eval $ac_compile) 2>&5
2466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467
(exit $ac_status); }; then
2468
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2470
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2471
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476
echo "$as_me: failed program was:" >&5
2477
sed 's/^/| /' conftest.$ac_ext >&5
2479
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2480
See \`config.log' for more details." >&5
2481
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2482
See \`config.log' for more details." >&2;}
2483
{ (exit 1); exit 1; }; }
2486
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2488
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2489
echo "${ECHO_T}$ac_cv_objext" >&6
2490
OBJEXT=$ac_cv_objext
2492
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2493
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2494
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2495
echo $ECHO_N "(cached) $ECHO_C" >&6
2497
cat >conftest.$ac_ext <<_ACEOF
2500
cat confdefs.h >>conftest.$ac_ext
2501
cat >>conftest.$ac_ext <<_ACEOF
2502
/* end confdefs.h. */
2515
rm -f conftest.$ac_objext
2516
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517
(eval $ac_compile) 2>conftest.er1
2519
grep -v '^ *+' conftest.er1 >conftest.err
2521
cat conftest.err >&5
2522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523
(exit $ac_status); } &&
2524
{ ac_try='test -z "$ac_c_werror_flag"
2525
|| test ! -s conftest.err'
2526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530
(exit $ac_status); }; } &&
2531
{ ac_try='test -s conftest.$ac_objext'
2532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536
(exit $ac_status); }; }; then
2539
echo "$as_me: failed program was:" >&5
2540
sed 's/^/| /' conftest.$ac_ext >&5
2544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2548
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2549
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2550
GCC=`test $ac_compiler_gnu = yes && echo yes`
2551
ac_test_CFLAGS=${CFLAGS+set}
2552
ac_save_CFLAGS=$CFLAGS
2554
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2555
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2556
if test "${ac_cv_prog_cc_g+set}" = set; then
2557
echo $ECHO_N "(cached) $ECHO_C" >&6
2559
cat >conftest.$ac_ext <<_ACEOF
2562
cat confdefs.h >>conftest.$ac_ext
2563
cat >>conftest.$ac_ext <<_ACEOF
2564
/* end confdefs.h. */
2574
rm -f conftest.$ac_objext
2575
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576
(eval $ac_compile) 2>conftest.er1
2578
grep -v '^ *+' conftest.er1 >conftest.err
2580
cat conftest.err >&5
2581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582
(exit $ac_status); } &&
2583
{ ac_try='test -z "$ac_c_werror_flag"
2584
|| test ! -s conftest.err'
2585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589
(exit $ac_status); }; } &&
2590
{ ac_try='test -s conftest.$ac_objext'
2591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595
(exit $ac_status); }; }; then
2598
echo "$as_me: failed program was:" >&5
2599
sed 's/^/| /' conftest.$ac_ext >&5
2603
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2605
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2606
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2607
if test "$ac_test_CFLAGS" = set; then
2608
CFLAGS=$ac_save_CFLAGS
2609
elif test $ac_cv_prog_cc_g = yes; then
2610
if test "$GCC" = yes; then
2616
if test "$GCC" = yes; then
2622
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2623
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2624
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2625
echo $ECHO_N "(cached) $ECHO_C" >&6
2627
ac_cv_prog_cc_stdc=no
2629
cat >conftest.$ac_ext <<_ACEOF
2632
cat confdefs.h >>conftest.$ac_ext
2633
cat >>conftest.$ac_ext <<_ACEOF
2634
/* end confdefs.h. */
2637
#include <sys/types.h>
2638
#include <sys/stat.h>
2639
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2640
struct buf { int x; };
2641
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2642
static char *e (p, i)
2648
static char *f (char * (*g) (char **, int), char **p, ...)
2653
s = g (p, va_arg (v,int));
2658
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2659
function prototypes and stuff, but not '\xHH' hex character constants.
2660
These don't provoke an error unfortunately, instead are silently treated
2661
as 'x'. The following induces an error, until -std1 is added to get
2662
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2663
array size at least. It's necessary to write '\x00'==0 to get something
2664
that's true only with -std1. */
2665
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2667
int test (int i, double x);
2668
struct s1 {int (*f) (int a);};
2669
struct s2 {int (*f) (double a);};
2670
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2681
# Don't try gcc -ansi; that turns off useful extensions and
2682
# breaks some systems' header files.
2683
# AIX -qlanglvl=ansi
2684
# Ultrix and OSF/1 -std1
2685
# HP-UX 10.20 and later -Ae
2686
# HP-UX older versions -Aa -D_HPUX_SOURCE
2687
# SVR4 -Xc -D__EXTENSIONS__
2688
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2690
CC="$ac_save_CC $ac_arg"
2691
rm -f conftest.$ac_objext
2692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693
(eval $ac_compile) 2>conftest.er1
2695
grep -v '^ *+' conftest.er1 >conftest.err
2697
cat conftest.err >&5
2698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699
(exit $ac_status); } &&
2700
{ ac_try='test -z "$ac_c_werror_flag"
2701
|| test ! -s conftest.err'
2702
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706
(exit $ac_status); }; } &&
2707
{ ac_try='test -s conftest.$ac_objext'
2708
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712
(exit $ac_status); }; }; then
2713
ac_cv_prog_cc_stdc=$ac_arg
2716
echo "$as_me: failed program was:" >&5
2717
sed 's/^/| /' conftest.$ac_ext >&5
2720
rm -f conftest.err conftest.$ac_objext
2722
rm -f conftest.$ac_ext conftest.$ac_objext
2727
case "x$ac_cv_prog_cc_stdc" in
2729
echo "$as_me:$LINENO: result: none needed" >&5
2730
echo "${ECHO_T}none needed" >&6 ;;
2732
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2733
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2734
CC="$CC $ac_cv_prog_cc_stdc" ;;
2737
# Some people use a C++ compiler to compile C. Since we use `exit',
2738
# in C++ we need to declare it. In case someone uses the same compiler
2739
# for both compiling C and C++ we need to have the C++ compiler decide
2740
# the declaration of exit, since it's the most demanding environment.
2741
cat >conftest.$ac_ext <<_ACEOF
2746
rm -f conftest.$ac_objext
2747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748
(eval $ac_compile) 2>conftest.er1
2750
grep -v '^ *+' conftest.er1 >conftest.err
2752
cat conftest.err >&5
2753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754
(exit $ac_status); } &&
2755
{ ac_try='test -z "$ac_c_werror_flag"
2756
|| test ! -s conftest.err'
2757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
(exit $ac_status); }; } &&
2762
{ ac_try='test -s conftest.$ac_objext'
2763
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767
(exit $ac_status); }; }; then
2768
for ac_declaration in \
2770
'extern "C" void std::exit (int) throw (); using std::exit;' \
2771
'extern "C" void std::exit (int); using std::exit;' \
2772
'extern "C" void exit (int) throw ();' \
2773
'extern "C" void exit (int);' \
2776
cat >conftest.$ac_ext <<_ACEOF
2779
cat confdefs.h >>conftest.$ac_ext
2780
cat >>conftest.$ac_ext <<_ACEOF
2781
/* end confdefs.h. */
2792
rm -f conftest.$ac_objext
2793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794
(eval $ac_compile) 2>conftest.er1
2796
grep -v '^ *+' conftest.er1 >conftest.err
2798
cat conftest.err >&5
2799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800
(exit $ac_status); } &&
2801
{ ac_try='test -z "$ac_c_werror_flag"
2802
|| test ! -s conftest.err'
2803
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807
(exit $ac_status); }; } &&
2808
{ ac_try='test -s conftest.$ac_objext'
2809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813
(exit $ac_status); }; }; then
2816
echo "$as_me: failed program was:" >&5
2817
sed 's/^/| /' conftest.$ac_ext >&5
2821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2822
cat >conftest.$ac_ext <<_ACEOF
2825
cat confdefs.h >>conftest.$ac_ext
2826
cat >>conftest.$ac_ext <<_ACEOF
2827
/* end confdefs.h. */
2837
rm -f conftest.$ac_objext
2838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839
(eval $ac_compile) 2>conftest.er1
2841
grep -v '^ *+' conftest.er1 >conftest.err
2843
cat conftest.err >&5
2844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845
(exit $ac_status); } &&
2846
{ ac_try='test -z "$ac_c_werror_flag"
2847
|| test ! -s conftest.err'
2848
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852
(exit $ac_status); }; } &&
2853
{ ac_try='test -s conftest.$ac_objext'
2854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858
(exit $ac_status); }; }; then
2861
echo "$as_me: failed program was:" >&5
2862
sed 's/^/| /' conftest.$ac_ext >&5
2865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868
if test -n "$ac_declaration"; then
2869
echo '#ifdef __cplusplus' >>confdefs.h
2870
echo $ac_declaration >>confdefs.h
2871
echo '#endif' >>confdefs.h
2875
echo "$as_me: failed program was:" >&5
2876
sed 's/^/| /' conftest.$ac_ext >&5
2879
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2881
ac_cpp='$CPP $CPPFLAGS'
2882
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885
DEPDIR="${am__leading_dot}deps"
2887
ac_config_commands="$ac_config_commands depfiles"
2890
am_make=${MAKE-make}
2891
cat > confinc << 'END'
2896
# If we don't find an include directive, just comment out the code.
2897
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2898
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2902
# First try GNU make style include.
2903
echo "include confinc" > confmf
2904
# We grep out `Entering directory' and `Leaving directory'
2905
# messages which can occur if `w' ends up in MAKEFLAGS.
2906
# In particular we don't look at `^make:' because GNU make might
2907
# be invoked under some other name (usually "gmake"), in which
2908
# case it prints its new name instead of `make'.
2909
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2914
# Now try BSD make style include.
2915
if test "$am__include" = "#"; then
2916
echo '.include "confinc"' > confmf
2917
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2918
am__include=.include
2925
echo "$as_me:$LINENO: result: $_am_result" >&5
2926
echo "${ECHO_T}$_am_result" >&6
2927
rm -f confinc confmf
2929
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2930
if test "${enable_dependency_tracking+set}" = set; then
2931
enableval="$enable_dependency_tracking"
2934
if test "x$enable_dependency_tracking" != xno; then
2935
am_depcomp="$ac_aux_dir/depcomp"
2940
if test "x$enable_dependency_tracking" != xno; then
2951
depcc="$CC" am_compiler_list=
2953
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2954
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2955
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2956
echo $ECHO_N "(cached) $ECHO_C" >&6
2958
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2959
# We make a subdir and do the tests there. Otherwise we can end up
2960
# making bogus files that we don't know about and never remove. For
2961
# instance it was reported that on HP-UX the gcc test will end up
2962
# making a dummy file named `D' -- because `-MD' means `put the output
2965
# Copy depcomp to subdir because otherwise we won't find it if we're
2966
# using a relative directory.
2967
cp "$am_depcomp" conftest.dir
2969
# We will build objects and dependencies in a subdirectory because
2970
# it helps to detect inapplicable dependency modes. For instance
2971
# both Tru64's cc and ICC support -MD to output dependencies as a
2972
# side effect of compilation, but ICC will put the dependencies in
2973
# the current directory while Tru64 will put them in the object
2977
am_cv_CC_dependencies_compiler_type=none
2978
if test "$am_compiler_list" = ""; then
2979
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2981
for depmode in $am_compiler_list; do
2982
# Setup a source with many dependencies, because some compilers
2983
# like to wrap large dependency lists on column 80 (with \), and
2984
# we should not choose a depcomp mode which is confused by this.
2986
# We need to recreate these files for each test, as the compiler may
2987
# overwrite some of them when testing with obscure command lines.
2988
# This happens at least with the AIX C compiler.
2990
for i in 1 2 3 4 5 6; do
2991
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2992
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2993
# Solaris 8's {/usr,}/bin/sh.
2994
touch sub/conftst$i.h
2996
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3000
# after this tag, mechanisms are not by side-effect, so they'll
3001
# only be used when explicitly requested
3002
if test "x$enable_dependency_tracking" = xyes; then
3010
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3011
# mode. It turns out that the SunPro C++ compiler does not properly
3012
# handle `-M -o', and we need to detect this.
3013
if depmode=$depmode \
3014
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3015
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3016
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3017
>/dev/null 2>conftest.err &&
3018
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3019
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3020
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3021
# icc doesn't choke on unknown options, it will just issue warnings
3022
# or remarks (even with -Werror). So we grep stderr for any message
3023
# that says an option was ignored or not supported.
3024
# When given -MP, icc 7.0 and 7.1 complain thusly:
3025
# icc: Command line warning: ignoring option '-M'; no argument required
3026
# The diagnosis changed in icc 8.0:
3027
# icc: Command line remark: option '-MP' not supported
3028
if (grep 'ignoring option' conftest.err ||
3029
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3030
am_cv_CC_dependencies_compiler_type=$depmode
3039
am_cv_CC_dependencies_compiler_type=none
3043
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3044
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3045
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3050
test "x$enable_dependency_tracking" != xno \
3051
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3053
am__fastdepCC_FALSE='#'
3055
am__fastdepCC_TRUE='#'
3056
am__fastdepCC_FALSE=
3060
# By default we simply use the C compiler to build assembly code.
3062
test "${CCAS+set}" = set || CCAS=$CC
3063
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3067
# Check whether --enable-shared or --disable-shared was given.
3068
if test "${enable_shared+set}" = set; then
3069
enableval="$enable_shared"
3070
p=${PACKAGE-default}
3072
yes) enable_shared=yes ;;
3073
no) enable_shared=no ;;
3076
# Look at the argument we got. We use all the common list separators.
3077
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3078
for pkg in $enableval; do
3080
if test "X$pkg" = "X$p"; then
3091
# Check whether --enable-static or --disable-static was given.
3092
if test "${enable_static+set}" = set; then
3093
enableval="$enable_static"
3094
p=${PACKAGE-default}
3096
yes) enable_static=yes ;;
3097
no) enable_static=no ;;
3100
# Look at the argument we got. We use all the common list separators.
3101
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3102
for pkg in $enableval; do
3104
if test "X$pkg" = "X$p"; then
3115
# Check whether --enable-fast-install or --disable-fast-install was given.
3116
if test "${enable_fast_install+set}" = set; then
3117
enableval="$enable_fast_install"
3118
p=${PACKAGE-default}
3120
yes) enable_fast_install=yes ;;
3121
no) enable_fast_install=no ;;
3123
enable_fast_install=no
3124
# Look at the argument we got. We use all the common list separators.
3125
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3126
for pkg in $enableval; do
3128
if test "X$pkg" = "X$p"; then
3129
enable_fast_install=yes
3136
enable_fast_install=yes
3139
# Make sure we can run config.sub.
3140
$ac_config_sub sun4 >/dev/null 2>&1 ||
3141
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3142
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3143
{ (exit 1); exit 1; }; }
3145
echo "$as_me:$LINENO: checking build system type" >&5
3146
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3147
if test "${ac_cv_build+set}" = set; then
3148
echo $ECHO_N "(cached) $ECHO_C" >&6
3150
ac_cv_build_alias=$build_alias
3151
test -z "$ac_cv_build_alias" &&
3152
ac_cv_build_alias=`$ac_config_guess`
3153
test -z "$ac_cv_build_alias" &&
3154
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3155
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3156
{ (exit 1); exit 1; }; }
3157
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3158
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3159
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3160
{ (exit 1); exit 1; }; }
3163
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3164
echo "${ECHO_T}$ac_cv_build" >&6
3166
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3167
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3168
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3171
echo "$as_me:$LINENO: checking host system type" >&5
3172
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3173
if test "${ac_cv_host+set}" = set; then
3174
echo $ECHO_N "(cached) $ECHO_C" >&6
3176
ac_cv_host_alias=$host_alias
3177
test -z "$ac_cv_host_alias" &&
3178
ac_cv_host_alias=$ac_cv_build_alias
3179
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3180
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3181
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3182
{ (exit 1); exit 1; }; }
3185
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3186
echo "${ECHO_T}$ac_cv_host" >&6
3188
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3189
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3190
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3193
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3194
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3195
if test "${lt_cv_path_SED+set}" = set; then
3196
echo $ECHO_N "(cached) $ECHO_C" >&6
3198
# Loop through the user's path and test for sed and gsed.
3199
# Then use that list of sed's as ones to test for truncation.
3200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204
test -z "$as_dir" && as_dir=.
3205
for lt_ac_prog in sed gsed; do
3206
for ac_exec_ext in '' $ac_executable_extensions; do
3207
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3208
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3216
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3217
# along with /bin/sed that truncates output.
3218
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3219
test ! -f $lt_ac_sed && continue
3220
cat /dev/null > conftest.in
3222
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3223
# Check for GNU sed and select it if it is found.
3224
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3225
lt_cv_path_SED=$lt_ac_sed
3229
cat conftest.in conftest.in >conftest.tmp
3230
mv conftest.tmp conftest.in
3231
cp conftest.in conftest.nl
3233
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3234
cmp -s conftest.out conftest.nl || break
3235
# 10000 chars as input seems more than enough
3236
test $lt_ac_count -gt 10 && break
3237
lt_ac_count=`expr $lt_ac_count + 1`
3238
if test $lt_ac_count -gt $lt_ac_max; then
3239
lt_ac_max=$lt_ac_count
3240
lt_cv_path_SED=$lt_ac_sed
3249
echo "$as_me:$LINENO: result: $SED" >&5
3250
echo "${ECHO_T}$SED" >&6
3252
echo "$as_me:$LINENO: checking for egrep" >&5
3253
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3254
if test "${ac_cv_prog_egrep+set}" = set; then
3255
echo $ECHO_N "(cached) $ECHO_C" >&6
3257
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3258
then ac_cv_prog_egrep='grep -E'
3259
else ac_cv_prog_egrep='egrep'
3262
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3263
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3264
EGREP=$ac_cv_prog_egrep
3268
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3269
if test "${with_gnu_ld+set}" = set; then
3270
withval="$with_gnu_ld"
3271
test "$withval" = no || with_gnu_ld=yes
3276
if test "$GCC" = yes; then
3277
# Check if gcc -print-prog-name=ld gives a path.
3278
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3279
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3282
# gcc leaves a trailing carriage return which upsets mingw
3283
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3285
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3288
# Accept absolute paths.
3290
re_direlt='/[^/][^/]*/\.\./'
3291
# Canonicalize the pathname of ld
3292
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3293
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3294
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3296
test -z "$LD" && LD="$ac_prog"
3299
# If it fails, then pretend we aren't using GCC.
3303
# If it is relative, then search for the first ld in PATH.
3307
elif test "$with_gnu_ld" = yes; then
3308
echo "$as_me:$LINENO: checking for GNU ld" >&5
3309
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3311
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3312
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3314
if test "${lt_cv_path_LD+set}" = set; then
3315
echo $ECHO_N "(cached) $ECHO_C" >&6
3317
if test -z "$LD"; then
3318
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3319
for ac_dir in $PATH; do
3321
test -z "$ac_dir" && ac_dir=.
3322
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3323
lt_cv_path_LD="$ac_dir/$ac_prog"
3324
# Check to see if the program is GNU ld. I'd rather use --version,
3325
# but apparently some variants of GNU ld only accept -v.
3326
# Break only if it was the GNU/non-GNU ld that we prefer.
3327
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3328
*GNU* | *'with BFD'*)
3329
test "$with_gnu_ld" != no && break
3332
test "$with_gnu_ld" != yes && break
3339
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3344
if test -n "$LD"; then
3345
echo "$as_me:$LINENO: result: $LD" >&5
3346
echo "${ECHO_T}$LD" >&6
3348
echo "$as_me:$LINENO: result: no" >&5
3349
echo "${ECHO_T}no" >&6
3351
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3352
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3353
{ (exit 1); exit 1; }; }
3354
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3355
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3356
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3357
echo $ECHO_N "(cached) $ECHO_C" >&6
3359
# I'd rather use --version here, but apparently some GNU lds only accept -v.
3360
case `$LD -v 2>&1 </dev/null` in
3361
*GNU* | *'with BFD'*)
3362
lt_cv_prog_gnu_ld=yes
3365
lt_cv_prog_gnu_ld=no
3369
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3370
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3371
with_gnu_ld=$lt_cv_prog_gnu_ld
3374
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3375
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3376
if test "${lt_cv_ld_reload_flag+set}" = set; then
3377
echo $ECHO_N "(cached) $ECHO_C" >&6
3379
lt_cv_ld_reload_flag='-r'
3381
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3382
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3383
reload_flag=$lt_cv_ld_reload_flag
3384
case $reload_flag in
3386
*) reload_flag=" $reload_flag" ;;
3388
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3391
if test "$GCC" = yes; then
3392
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3394
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3399
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3400
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3401
if test "${lt_cv_path_NM+set}" = set; then
3402
echo $ECHO_N "(cached) $ECHO_C" >&6
3404
if test -n "$NM"; then
3405
# Let the user override the test.
3408
lt_nm_to_check="${ac_tool_prefix}nm"
3409
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3410
lt_nm_to_check="$lt_nm_to_check nm"
3412
for lt_tmp_nm in $lt_nm_to_check; do
3413
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3414
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3416
test -z "$ac_dir" && ac_dir=.
3417
tmp_nm="$ac_dir/$lt_tmp_nm"
3418
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3419
# Check to see if the nm accepts a BSD-compat flag.
3420
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3421
# nm: unknown option "B" ignored
3422
# Tru64's nm complains that /dev/null is an invalid object file
3423
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3424
*/dev/null* | *'Invalid file or object type'*)
3425
lt_cv_path_NM="$tmp_nm -B"
3429
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3431
lt_cv_path_NM="$tmp_nm -p"
3435
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3436
continue # so that we can try to find one that supports BSD flags
3445
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3448
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3449
echo "${ECHO_T}$lt_cv_path_NM" >&6
3452
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3453
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3455
if test "$LN_S" = "ln -s"; then
3456
echo "$as_me:$LINENO: result: yes" >&5
3457
echo "${ECHO_T}yes" >&6
3459
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3460
echo "${ECHO_T}no, using $LN_S" >&6
3463
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3464
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3465
if test "${lt_cv_deplibs_check_method+set}" = set; then
3466
echo $ECHO_N "(cached) $ECHO_C" >&6
3468
lt_cv_file_magic_cmd='$MAGIC_CMD'
3469
lt_cv_file_magic_test_file=
3470
lt_cv_deplibs_check_method='unknown'
3471
# Need to set the preceding variable on all platforms that support
3472
# interlibrary dependencies.
3473
# 'none' -- dependencies not supported.
3474
# `unknown' -- same as none, but documents that we really don't know.
3475
# 'pass_all' -- all dependencies passed with no checks.
3476
# 'test_compile' -- check by making test program.
3477
# 'file_magic [[regex]]' -- check by looking for files in library path
3478
# which responds to the $file_magic_cmd with a given extended regex.
3479
# If you have `file' or equivalent on your system and you're not sure
3480
# whether `pass_all' will *always* work, you probably want this one.
3484
lt_cv_deplibs_check_method=pass_all
3488
lt_cv_deplibs_check_method=pass_all
3492
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3493
lt_cv_file_magic_cmd='/usr/bin/file -L'
3494
lt_cv_file_magic_test_file=/shlib/libc.so
3498
# func_win32_libid is a shell function defined in ltmain.sh
3499
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3500
lt_cv_file_magic_cmd='func_win32_libid'
3504
# Base MSYS/MinGW do not provide the 'file' command needed by
3505
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3506
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3507
lt_cv_file_magic_cmd='$OBJDUMP -f'
3510
darwin* | rhapsody*)
3511
lt_cv_deplibs_check_method=pass_all
3514
freebsd* | kfreebsd*-gnu | dragonfly*)
3515
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3518
# Not sure whether the presence of OpenBSD here was a mistake.
3519
# Let's accept both of them until this is cleared up.
3520
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3521
lt_cv_file_magic_cmd=/usr/bin/file
3522
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3526
lt_cv_deplibs_check_method=pass_all
3531
lt_cv_deplibs_check_method=pass_all
3534
hpux10.20* | hpux11*)
3535
lt_cv_file_magic_cmd=/usr/bin/file
3538
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3539
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3542
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]'
3543
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3546
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3553
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3554
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3557
irix5* | irix6* | nonstopux*)
3559
*-32|*"-32 ") libmagic=32-bit;;
3560
*-n32|*"-n32 ") libmagic=N32;;
3561
*-64|*"-64 ") libmagic=64-bit;;
3562
*) libmagic=never-match;;
3564
lt_cv_deplibs_check_method=pass_all
3567
# This must be Linux ELF.
3569
lt_cv_deplibs_check_method=pass_all
3573
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3574
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3576
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3581
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3582
lt_cv_file_magic_cmd=/usr/bin/file
3583
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3587
lt_cv_deplibs_check_method=unknown
3591
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3592
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3594
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3598
osf3* | osf4* | osf5*)
3599
lt_cv_deplibs_check_method=pass_all
3603
lt_cv_deplibs_check_method=pass_all
3607
case $host_vendor in
3609
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]'
3610
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3613
lt_cv_deplibs_check_method=pass_all
3616
lt_cv_file_magic_cmd='/bin/file'
3617
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3620
lt_cv_file_magic_cmd='/bin/file'
3621
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3622
lt_cv_file_magic_test_file=/lib/libc.so
3625
lt_cv_deplibs_check_method=pass_all
3628
lt_cv_deplibs_check_method=pass_all
3633
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3634
lt_cv_deplibs_check_method=pass_all
3639
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3640
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3641
file_magic_cmd=$lt_cv_file_magic_cmd
3642
deplibs_check_method=$lt_cv_deplibs_check_method
3643
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3648
# If no C compiler was specified, use CC.
3651
# If no C compiler flags were specified, use CFLAGS.
3652
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3654
# Allow CC to be a program name with arguments.
3658
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3659
if test "${enable_libtool_lock+set}" = set; then
3660
enableval="$enable_libtool_lock"
3663
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3665
# Some flags need to be propagated to the compiler or linker for good
3669
# Find out which ABI we are using.
3670
echo 'int i;' > conftest.$ac_ext
3671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672
(eval $ac_compile) 2>&5
3674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675
(exit $ac_status); }; then
3676
case `/usr/bin/file conftest.$ac_objext` in
3688
# Find out which ABI we are using.
3689
echo '#line 3689 "configure"' > conftest.$ac_ext
3690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691
(eval $ac_compile) 2>&5
3693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694
(exit $ac_status); }; then
3695
if test "$lt_cv_prog_gnu_ld" = yes; then
3696
case `/usr/bin/file conftest.$ac_objext` in
3698
LD="${LD-ld} -melf32bsmip"
3701
LD="${LD-ld} -melf32bmipn32"
3704
LD="${LD-ld} -melf64bmip"
3708
case `/usr/bin/file conftest.$ac_objext` in
3724
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3725
# Find out which ABI we are using.
3726
echo 'int i;' > conftest.$ac_ext
3727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728
(eval $ac_compile) 2>&5
3730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731
(exit $ac_status); }; then
3732
case `/usr/bin/file conftest.o` in
3736
LD="${LD-ld} -m elf_i386"
3738
ppc64-*linux*|powerpc64-*linux*)
3739
LD="${LD-ld} -m elf32ppclinux"
3742
LD="${LD-ld} -m elf_s390"
3745
LD="${LD-ld} -m elf32_sparc"
3752
LD="${LD-ld} -m elf_x86_64"
3754
ppc*-*linux*|powerpc*-*linux*)
3755
LD="${LD-ld} -m elf64ppc"
3758
LD="${LD-ld} -m elf64_s390"
3761
LD="${LD-ld} -m elf64_sparc"
3771
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3772
SAVE_CFLAGS="$CFLAGS"
3773
CFLAGS="$CFLAGS -belf"
3774
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3775
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3776
if test "${lt_cv_cc_needs_belf+set}" = set; then
3777
echo $ECHO_N "(cached) $ECHO_C" >&6
3780
ac_cpp='$CPP $CPPFLAGS'
3781
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
cat >conftest.$ac_ext <<_ACEOF
3788
cat confdefs.h >>conftest.$ac_ext
3789
cat >>conftest.$ac_ext <<_ACEOF
3790
/* end confdefs.h. */
3800
rm -f conftest.$ac_objext conftest$ac_exeext
3801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3802
(eval $ac_link) 2>conftest.er1
3804
grep -v '^ *+' conftest.er1 >conftest.err
3806
cat conftest.err >&5
3807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808
(exit $ac_status); } &&
3809
{ ac_try='test -z "$ac_c_werror_flag"
3810
|| test ! -s conftest.err'
3811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815
(exit $ac_status); }; } &&
3816
{ ac_try='test -s conftest$ac_exeext'
3817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821
(exit $ac_status); }; }; then
3822
lt_cv_cc_needs_belf=yes
3824
echo "$as_me: failed program was:" >&5
3825
sed 's/^/| /' conftest.$ac_ext >&5
3827
lt_cv_cc_needs_belf=no
3829
rm -f conftest.err conftest.$ac_objext \
3830
conftest$ac_exeext conftest.$ac_ext
3832
ac_cpp='$CPP $CPPFLAGS'
3833
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3839
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3840
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3841
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3842
CFLAGS="$SAVE_CFLAGS"
3846
# Find out which ABI we are using.
3847
echo 'int i;' > conftest.$ac_ext
3848
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849
(eval $ac_compile) 2>&5
3851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852
(exit $ac_status); }; then
3853
case `/usr/bin/file conftest.o` in
3855
case $lt_cv_prog_gnu_ld in
3856
yes*) LD="${LD-ld} -m elf64_sparc" ;;
3857
*) LD="${LD-ld} -64" ;;
3868
need_locks="$enable_libtool_lock"
3872
ac_cpp='$CPP $CPPFLAGS'
3873
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3877
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3878
# On Suns, sometimes $CPP names a directory.
3879
if test -n "$CPP" && test -d "$CPP"; then
3882
if test -z "$CPP"; then
3883
if test "${ac_cv_prog_CPP+set}" = set; then
3884
echo $ECHO_N "(cached) $ECHO_C" >&6
3886
# Double quotes because CPP needs to be expanded
3887
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3890
for ac_c_preproc_warn_flag in '' yes
3892
# Use a header file that comes with gcc, so configuring glibc
3893
# with a fresh cross-compiler works.
3894
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3895
# <limits.h> exists even on freestanding compilers.
3896
# On the NeXT, cc -E runs the code through the compiler's parser,
3897
# not just through cpp. "Syntax error" is here to catch this case.
3898
cat >conftest.$ac_ext <<_ACEOF
3901
cat confdefs.h >>conftest.$ac_ext
3902
cat >>conftest.$ac_ext <<_ACEOF
3903
/* end confdefs.h. */
3905
# include <limits.h>
3907
# include <assert.h>
3911
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3912
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3914
grep -v '^ *+' conftest.er1 >conftest.err
3916
cat conftest.err >&5
3917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
(exit $ac_status); } >/dev/null; then
3919
if test -s conftest.err; then
3920
ac_cpp_err=$ac_c_preproc_warn_flag
3921
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3928
if test -z "$ac_cpp_err"; then
3931
echo "$as_me: failed program was:" >&5
3932
sed 's/^/| /' conftest.$ac_ext >&5
3934
# Broken: fails on valid input.
3937
rm -f conftest.err conftest.$ac_ext
3939
# OK, works on sane cases. Now check whether non-existent headers
3940
# can be detected and how.
3941
cat >conftest.$ac_ext <<_ACEOF
3944
cat confdefs.h >>conftest.$ac_ext
3945
cat >>conftest.$ac_ext <<_ACEOF
3946
/* end confdefs.h. */
3947
#include <ac_nonexistent.h>
3949
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3950
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952
grep -v '^ *+' conftest.er1 >conftest.err
3954
cat conftest.err >&5
3955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
(exit $ac_status); } >/dev/null; then
3957
if test -s conftest.err; then
3958
ac_cpp_err=$ac_c_preproc_warn_flag
3959
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3966
if test -z "$ac_cpp_err"; then
3967
# Broken: success on invalid input.
3970
echo "$as_me: failed program was:" >&5
3971
sed 's/^/| /' conftest.$ac_ext >&5
3973
# Passes both tests.
3977
rm -f conftest.err conftest.$ac_ext
3980
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981
rm -f conftest.err conftest.$ac_ext
3982
if $ac_preproc_ok; then
3994
echo "$as_me:$LINENO: result: $CPP" >&5
3995
echo "${ECHO_T}$CPP" >&6
3997
for ac_c_preproc_warn_flag in '' yes
3999
# Use a header file that comes with gcc, so configuring glibc
4000
# with a fresh cross-compiler works.
4001
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4002
# <limits.h> exists even on freestanding compilers.
4003
# On the NeXT, cc -E runs the code through the compiler's parser,
4004
# not just through cpp. "Syntax error" is here to catch this case.
4005
cat >conftest.$ac_ext <<_ACEOF
4008
cat confdefs.h >>conftest.$ac_ext
4009
cat >>conftest.$ac_ext <<_ACEOF
4010
/* end confdefs.h. */
4012
# include <limits.h>
4014
# include <assert.h>
4018
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4019
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4021
grep -v '^ *+' conftest.er1 >conftest.err
4023
cat conftest.err >&5
4024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
(exit $ac_status); } >/dev/null; then
4026
if test -s conftest.err; then
4027
ac_cpp_err=$ac_c_preproc_warn_flag
4028
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4035
if test -z "$ac_cpp_err"; then
4038
echo "$as_me: failed program was:" >&5
4039
sed 's/^/| /' conftest.$ac_ext >&5
4041
# Broken: fails on valid input.
4044
rm -f conftest.err conftest.$ac_ext
4046
# OK, works on sane cases. Now check whether non-existent headers
4047
# can be detected and how.
4048
cat >conftest.$ac_ext <<_ACEOF
4051
cat confdefs.h >>conftest.$ac_ext
4052
cat >>conftest.$ac_ext <<_ACEOF
4053
/* end confdefs.h. */
4054
#include <ac_nonexistent.h>
4056
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4057
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4059
grep -v '^ *+' conftest.er1 >conftest.err
4061
cat conftest.err >&5
4062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063
(exit $ac_status); } >/dev/null; then
4064
if test -s conftest.err; then
4065
ac_cpp_err=$ac_c_preproc_warn_flag
4066
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4073
if test -z "$ac_cpp_err"; then
4074
# Broken: success on invalid input.
4077
echo "$as_me: failed program was:" >&5
4078
sed 's/^/| /' conftest.$ac_ext >&5
4080
# Passes both tests.
4084
rm -f conftest.err conftest.$ac_ext
4087
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4088
rm -f conftest.err conftest.$ac_ext
4089
if $ac_preproc_ok; then
4092
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4093
See \`config.log' for more details." >&5
4094
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4095
See \`config.log' for more details." >&2;}
4096
{ (exit 1); exit 1; }; }
4100
ac_cpp='$CPP $CPPFLAGS'
4101
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4107
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4108
if test "${ac_cv_header_stdc+set}" = set; then
4109
echo $ECHO_N "(cached) $ECHO_C" >&6
4111
cat >conftest.$ac_ext <<_ACEOF
4114
cat confdefs.h >>conftest.$ac_ext
4115
cat >>conftest.$ac_ext <<_ACEOF
4116
/* end confdefs.h. */
4130
rm -f conftest.$ac_objext
4131
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132
(eval $ac_compile) 2>conftest.er1
4134
grep -v '^ *+' conftest.er1 >conftest.err
4136
cat conftest.err >&5
4137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138
(exit $ac_status); } &&
4139
{ ac_try='test -z "$ac_c_werror_flag"
4140
|| test ! -s conftest.err'
4141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145
(exit $ac_status); }; } &&
4146
{ ac_try='test -s conftest.$ac_objext'
4147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151
(exit $ac_status); }; }; then
4152
ac_cv_header_stdc=yes
4154
echo "$as_me: failed program was:" >&5
4155
sed 's/^/| /' conftest.$ac_ext >&5
4157
ac_cv_header_stdc=no
4159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4161
if test $ac_cv_header_stdc = yes; then
4162
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4163
cat >conftest.$ac_ext <<_ACEOF
4166
cat confdefs.h >>conftest.$ac_ext
4167
cat >>conftest.$ac_ext <<_ACEOF
4168
/* end confdefs.h. */
4172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173
$EGREP "memchr" >/dev/null 2>&1; then
4176
ac_cv_header_stdc=no
4182
if test $ac_cv_header_stdc = yes; then
4183
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4184
cat >conftest.$ac_ext <<_ACEOF
4187
cat confdefs.h >>conftest.$ac_ext
4188
cat >>conftest.$ac_ext <<_ACEOF
4189
/* end confdefs.h. */
4193
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194
$EGREP "free" >/dev/null 2>&1; then
4197
ac_cv_header_stdc=no
4203
if test $ac_cv_header_stdc = yes; then
4204
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4205
if test "$cross_compiling" = yes; then
4208
cat >conftest.$ac_ext <<_ACEOF
4211
cat confdefs.h >>conftest.$ac_ext
4212
cat >>conftest.$ac_ext <<_ACEOF
4213
/* end confdefs.h. */
4215
#if ((' ' & 0x0FF) == 0x020)
4216
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4217
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4219
# define ISLOWER(c) \
4220
(('a' <= (c) && (c) <= 'i') \
4221
|| ('j' <= (c) && (c) <= 'r') \
4222
|| ('s' <= (c) && (c) <= 'z'))
4223
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4226
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4231
for (i = 0; i < 256; i++)
4232
if (XOR (islower (i), ISLOWER (i))
4233
|| toupper (i) != TOUPPER (i))
4238
rm -f conftest$ac_exeext
4239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240
(eval $ac_link) 2>&5
4242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248
(exit $ac_status); }; }; then
4251
echo "$as_me: program exited with status $ac_status" >&5
4252
echo "$as_me: failed program was:" >&5
4253
sed 's/^/| /' conftest.$ac_ext >&5
4256
ac_cv_header_stdc=no
4258
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4262
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4263
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4264
if test $ac_cv_header_stdc = yes; then
4266
cat >>confdefs.h <<\_ACEOF
4267
#define STDC_HEADERS 1
4272
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4282
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4283
inttypes.h stdint.h unistd.h
4285
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4286
echo "$as_me:$LINENO: checking for $ac_header" >&5
4287
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4288
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4289
echo $ECHO_N "(cached) $ECHO_C" >&6
4291
cat >conftest.$ac_ext <<_ACEOF
4294
cat confdefs.h >>conftest.$ac_ext
4295
cat >>conftest.$ac_ext <<_ACEOF
4296
/* end confdefs.h. */
4297
$ac_includes_default
4299
#include <$ac_header>
4301
rm -f conftest.$ac_objext
4302
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303
(eval $ac_compile) 2>conftest.er1
4305
grep -v '^ *+' conftest.er1 >conftest.err
4307
cat conftest.err >&5
4308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309
(exit $ac_status); } &&
4310
{ ac_try='test -z "$ac_c_werror_flag"
4311
|| test ! -s conftest.err'
4312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316
(exit $ac_status); }; } &&
4317
{ ac_try='test -s conftest.$ac_objext'
4318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322
(exit $ac_status); }; }; then
4323
eval "$as_ac_Header=yes"
4325
echo "$as_me: failed program was:" >&5
4326
sed 's/^/| /' conftest.$ac_ext >&5
4328
eval "$as_ac_Header=no"
4330
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4333
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4334
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4335
cat >>confdefs.h <<_ACEOF
4336
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4345
for ac_header in dlfcn.h
4347
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4348
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349
echo "$as_me:$LINENO: checking for $ac_header" >&5
4350
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4351
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4352
echo $ECHO_N "(cached) $ECHO_C" >&6
4354
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4355
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4357
# Is the header compilable?
4358
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4359
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4360
cat >conftest.$ac_ext <<_ACEOF
4363
cat confdefs.h >>conftest.$ac_ext
4364
cat >>conftest.$ac_ext <<_ACEOF
4365
/* end confdefs.h. */
4366
$ac_includes_default
4367
#include <$ac_header>
4369
rm -f conftest.$ac_objext
4370
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371
(eval $ac_compile) 2>conftest.er1
4373
grep -v '^ *+' conftest.er1 >conftest.err
4375
cat conftest.err >&5
4376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377
(exit $ac_status); } &&
4378
{ ac_try='test -z "$ac_c_werror_flag"
4379
|| test ! -s conftest.err'
4380
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384
(exit $ac_status); }; } &&
4385
{ ac_try='test -s conftest.$ac_objext'
4386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390
(exit $ac_status); }; }; then
4391
ac_header_compiler=yes
4393
echo "$as_me: failed program was:" >&5
4394
sed 's/^/| /' conftest.$ac_ext >&5
4396
ac_header_compiler=no
4398
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4399
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4400
echo "${ECHO_T}$ac_header_compiler" >&6
4402
# Is the header present?
4403
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4404
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4405
cat >conftest.$ac_ext <<_ACEOF
4408
cat confdefs.h >>conftest.$ac_ext
4409
cat >>conftest.$ac_ext <<_ACEOF
4410
/* end confdefs.h. */
4411
#include <$ac_header>
4413
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4414
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4416
grep -v '^ *+' conftest.er1 >conftest.err
4418
cat conftest.err >&5
4419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420
(exit $ac_status); } >/dev/null; then
4421
if test -s conftest.err; then
4422
ac_cpp_err=$ac_c_preproc_warn_flag
4423
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4430
if test -z "$ac_cpp_err"; then
4431
ac_header_preproc=yes
4433
echo "$as_me: failed program was:" >&5
4434
sed 's/^/| /' conftest.$ac_ext >&5
4436
ac_header_preproc=no
4438
rm -f conftest.err conftest.$ac_ext
4439
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4440
echo "${ECHO_T}$ac_header_preproc" >&6
4442
# So? What about this header?
4443
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4445
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4446
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4447
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4448
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4449
ac_header_preproc=yes
4452
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4453
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4454
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4455
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4456
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4457
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4458
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4459
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4460
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4461
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4462
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4463
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4466
## ------------------------------- ##
4467
## Report this to the umem lists. ##
4468
## ------------------------------- ##
4471
sed "s/^/$as_me: WARNING: /" >&2
4474
echo "$as_me:$LINENO: checking for $ac_header" >&5
4475
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4476
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4477
echo $ECHO_N "(cached) $ECHO_C" >&6
4479
eval "$as_ac_Header=\$ac_header_preproc"
4481
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4482
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4485
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4486
cat >>confdefs.h <<_ACEOF
4487
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4495
ac_cpp='$CXXCPP $CPPFLAGS'
4496
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4499
if test -n "$ac_tool_prefix"; then
4500
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4502
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4503
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4504
echo "$as_me:$LINENO: checking for $ac_word" >&5
4505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506
if test "${ac_cv_prog_CXX+set}" = set; then
4507
echo $ECHO_N "(cached) $ECHO_C" >&6
4509
if test -n "$CXX"; then
4510
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516
test -z "$as_dir" && as_dir=.
4517
for ac_exec_ext in '' $ac_executable_extensions; do
4518
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4520
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529
if test -n "$CXX"; then
4530
echo "$as_me:$LINENO: result: $CXX" >&5
4531
echo "${ECHO_T}$CXX" >&6
4533
echo "$as_me:$LINENO: result: no" >&5
4534
echo "${ECHO_T}no" >&6
4537
test -n "$CXX" && break
4540
if test -z "$CXX"; then
4542
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4544
# Extract the first word of "$ac_prog", so it can be a program name with args.
4545
set dummy $ac_prog; ac_word=$2
4546
echo "$as_me:$LINENO: checking for $ac_word" >&5
4547
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4548
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4549
echo $ECHO_N "(cached) $ECHO_C" >&6
4551
if test -n "$ac_ct_CXX"; then
4552
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558
test -z "$as_dir" && as_dir=.
4559
for ac_exec_ext in '' $ac_executable_extensions; do
4560
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561
ac_cv_prog_ac_ct_CXX="$ac_prog"
4562
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4571
if test -n "$ac_ct_CXX"; then
4572
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4573
echo "${ECHO_T}$ac_ct_CXX" >&6
4575
echo "$as_me:$LINENO: result: no" >&5
4576
echo "${ECHO_T}no" >&6
4579
test -n "$ac_ct_CXX" && break
4581
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4587
# Provide some information about the compiler.
4588
echo "$as_me:$LINENO:" \
4589
"checking for C++ compiler version" >&5
4590
ac_compiler=`set X $ac_compile; echo $2`
4591
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4592
(eval $ac_compiler --version </dev/null >&5) 2>&5
4594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595
(exit $ac_status); }
4596
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4597
(eval $ac_compiler -v </dev/null >&5) 2>&5
4599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600
(exit $ac_status); }
4601
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4602
(eval $ac_compiler -V </dev/null >&5) 2>&5
4604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605
(exit $ac_status); }
4607
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4608
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4609
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4610
echo $ECHO_N "(cached) $ECHO_C" >&6
4612
cat >conftest.$ac_ext <<_ACEOF
4615
cat confdefs.h >>conftest.$ac_ext
4616
cat >>conftest.$ac_ext <<_ACEOF
4617
/* end confdefs.h. */
4630
rm -f conftest.$ac_objext
4631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632
(eval $ac_compile) 2>conftest.er1
4634
grep -v '^ *+' conftest.er1 >conftest.err
4636
cat conftest.err >&5
4637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638
(exit $ac_status); } &&
4639
{ ac_try='test -z "$ac_cxx_werror_flag"
4640
|| test ! -s conftest.err'
4641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645
(exit $ac_status); }; } &&
4646
{ ac_try='test -s conftest.$ac_objext'
4647
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651
(exit $ac_status); }; }; then
4654
echo "$as_me: failed program was:" >&5
4655
sed 's/^/| /' conftest.$ac_ext >&5
4659
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4660
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4664
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4665
GXX=`test $ac_compiler_gnu = yes && echo yes`
4666
ac_test_CXXFLAGS=${CXXFLAGS+set}
4667
ac_save_CXXFLAGS=$CXXFLAGS
4669
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4670
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4671
if test "${ac_cv_prog_cxx_g+set}" = set; then
4672
echo $ECHO_N "(cached) $ECHO_C" >&6
4674
cat >conftest.$ac_ext <<_ACEOF
4677
cat confdefs.h >>conftest.$ac_ext
4678
cat >>conftest.$ac_ext <<_ACEOF
4679
/* end confdefs.h. */
4689
rm -f conftest.$ac_objext
4690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4691
(eval $ac_compile) 2>conftest.er1
4693
grep -v '^ *+' conftest.er1 >conftest.err
4695
cat conftest.err >&5
4696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697
(exit $ac_status); } &&
4698
{ ac_try='test -z "$ac_cxx_werror_flag"
4699
|| test ! -s conftest.err'
4700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704
(exit $ac_status); }; } &&
4705
{ ac_try='test -s conftest.$ac_objext'
4706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710
(exit $ac_status); }; }; then
4711
ac_cv_prog_cxx_g=yes
4713
echo "$as_me: failed program was:" >&5
4714
sed 's/^/| /' conftest.$ac_ext >&5
4718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4720
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4721
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4722
if test "$ac_test_CXXFLAGS" = set; then
4723
CXXFLAGS=$ac_save_CXXFLAGS
4724
elif test $ac_cv_prog_cxx_g = yes; then
4725
if test "$GXX" = yes; then
4731
if test "$GXX" = yes; then
4737
for ac_declaration in \
4739
'extern "C" void std::exit (int) throw (); using std::exit;' \
4740
'extern "C" void std::exit (int); using std::exit;' \
4741
'extern "C" void exit (int) throw ();' \
4742
'extern "C" void exit (int);' \
4745
cat >conftest.$ac_ext <<_ACEOF
4748
cat confdefs.h >>conftest.$ac_ext
4749
cat >>conftest.$ac_ext <<_ACEOF
4750
/* end confdefs.h. */
4761
rm -f conftest.$ac_objext
4762
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763
(eval $ac_compile) 2>conftest.er1
4765
grep -v '^ *+' conftest.er1 >conftest.err
4767
cat conftest.err >&5
4768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769
(exit $ac_status); } &&
4770
{ ac_try='test -z "$ac_cxx_werror_flag"
4771
|| test ! -s conftest.err'
4772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776
(exit $ac_status); }; } &&
4777
{ ac_try='test -s conftest.$ac_objext'
4778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782
(exit $ac_status); }; }; then
4785
echo "$as_me: failed program was:" >&5
4786
sed 's/^/| /' conftest.$ac_ext >&5
4790
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4791
cat >conftest.$ac_ext <<_ACEOF
4794
cat confdefs.h >>conftest.$ac_ext
4795
cat >>conftest.$ac_ext <<_ACEOF
4796
/* end confdefs.h. */
4806
rm -f conftest.$ac_objext
4807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808
(eval $ac_compile) 2>conftest.er1
4810
grep -v '^ *+' conftest.er1 >conftest.err
4812
cat conftest.err >&5
4813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814
(exit $ac_status); } &&
4815
{ ac_try='test -z "$ac_cxx_werror_flag"
4816
|| test ! -s conftest.err'
4817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
(exit $ac_status); }; } &&
4822
{ ac_try='test -s conftest.$ac_objext'
4823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827
(exit $ac_status); }; }; then
4830
echo "$as_me: failed program was:" >&5
4831
sed 's/^/| /' conftest.$ac_ext >&5
4834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837
if test -n "$ac_declaration"; then
4838
echo '#ifdef __cplusplus' >>confdefs.h
4839
echo $ac_declaration >>confdefs.h
4840
echo '#endif' >>confdefs.h
4844
ac_cpp='$CXXCPP $CPPFLAGS'
4845
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4849
depcc="$CXX" am_compiler_list=
4851
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4852
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4853
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4854
echo $ECHO_N "(cached) $ECHO_C" >&6
4856
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4857
# We make a subdir and do the tests there. Otherwise we can end up
4858
# making bogus files that we don't know about and never remove. For
4859
# instance it was reported that on HP-UX the gcc test will end up
4860
# making a dummy file named `D' -- because `-MD' means `put the output
4863
# Copy depcomp to subdir because otherwise we won't find it if we're
4864
# using a relative directory.
4865
cp "$am_depcomp" conftest.dir
4867
# We will build objects and dependencies in a subdirectory because
4868
# it helps to detect inapplicable dependency modes. For instance
4869
# both Tru64's cc and ICC support -MD to output dependencies as a
4870
# side effect of compilation, but ICC will put the dependencies in
4871
# the current directory while Tru64 will put them in the object
4875
am_cv_CXX_dependencies_compiler_type=none
4876
if test "$am_compiler_list" = ""; then
4877
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4879
for depmode in $am_compiler_list; do
4880
# Setup a source with many dependencies, because some compilers
4881
# like to wrap large dependency lists on column 80 (with \), and
4882
# we should not choose a depcomp mode which is confused by this.
4884
# We need to recreate these files for each test, as the compiler may
4885
# overwrite some of them when testing with obscure command lines.
4886
# This happens at least with the AIX C compiler.
4888
for i in 1 2 3 4 5 6; do
4889
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4890
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4891
# Solaris 8's {/usr,}/bin/sh.
4892
touch sub/conftst$i.h
4894
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4898
# after this tag, mechanisms are not by side-effect, so they'll
4899
# only be used when explicitly requested
4900
if test "x$enable_dependency_tracking" = xyes; then
4908
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4909
# mode. It turns out that the SunPro C++ compiler does not properly
4910
# handle `-M -o', and we need to detect this.
4911
if depmode=$depmode \
4912
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4913
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4914
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4915
>/dev/null 2>conftest.err &&
4916
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4917
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4918
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4919
# icc doesn't choke on unknown options, it will just issue warnings
4920
# or remarks (even with -Werror). So we grep stderr for any message
4921
# that says an option was ignored or not supported.
4922
# When given -MP, icc 7.0 and 7.1 complain thusly:
4923
# icc: Command line warning: ignoring option '-M'; no argument required
4924
# The diagnosis changed in icc 8.0:
4925
# icc: Command line remark: option '-MP' not supported
4926
if (grep 'ignoring option' conftest.err ||
4927
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4928
am_cv_CXX_dependencies_compiler_type=$depmode
4937
am_cv_CXX_dependencies_compiler_type=none
4941
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4942
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4943
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4948
test "x$enable_dependency_tracking" != xno \
4949
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4950
am__fastdepCXX_TRUE=
4951
am__fastdepCXX_FALSE='#'
4953
am__fastdepCXX_TRUE='#'
4954
am__fastdepCXX_FALSE=
4960
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4961
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4962
(test "X$CXX" != "Xg++"))) ; then
4964
ac_cpp='$CXXCPP $CPPFLAGS'
4965
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4968
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4969
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4970
if test -z "$CXXCPP"; then
4971
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4972
echo $ECHO_N "(cached) $ECHO_C" >&6
4974
# Double quotes because CXXCPP needs to be expanded
4975
for CXXCPP in "$CXX -E" "/lib/cpp"
4978
for ac_cxx_preproc_warn_flag in '' yes
4980
# Use a header file that comes with gcc, so configuring glibc
4981
# with a fresh cross-compiler works.
4982
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983
# <limits.h> exists even on freestanding compilers.
4984
# On the NeXT, cc -E runs the code through the compiler's parser,
4985
# not just through cpp. "Syntax error" is here to catch this case.
4986
cat >conftest.$ac_ext <<_ACEOF
4989
cat confdefs.h >>conftest.$ac_ext
4990
cat >>conftest.$ac_ext <<_ACEOF
4991
/* end confdefs.h. */
4993
# include <limits.h>
4995
# include <assert.h>
4999
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5000
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5002
grep -v '^ *+' conftest.er1 >conftest.err
5004
cat conftest.err >&5
5005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006
(exit $ac_status); } >/dev/null; then
5007
if test -s conftest.err; then
5008
ac_cpp_err=$ac_cxx_preproc_warn_flag
5009
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5016
if test -z "$ac_cpp_err"; then
5019
echo "$as_me: failed program was:" >&5
5020
sed 's/^/| /' conftest.$ac_ext >&5
5022
# Broken: fails on valid input.
5025
rm -f conftest.err conftest.$ac_ext
5027
# OK, works on sane cases. Now check whether non-existent headers
5028
# can be detected and how.
5029
cat >conftest.$ac_ext <<_ACEOF
5032
cat confdefs.h >>conftest.$ac_ext
5033
cat >>conftest.$ac_ext <<_ACEOF
5034
/* end confdefs.h. */
5035
#include <ac_nonexistent.h>
5037
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5038
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040
grep -v '^ *+' conftest.er1 >conftest.err
5042
cat conftest.err >&5
5043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044
(exit $ac_status); } >/dev/null; then
5045
if test -s conftest.err; then
5046
ac_cpp_err=$ac_cxx_preproc_warn_flag
5047
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5054
if test -z "$ac_cpp_err"; then
5055
# Broken: success on invalid input.
5058
echo "$as_me: failed program was:" >&5
5059
sed 's/^/| /' conftest.$ac_ext >&5
5061
# Passes both tests.
5065
rm -f conftest.err conftest.$ac_ext
5068
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069
rm -f conftest.err conftest.$ac_ext
5070
if $ac_preproc_ok; then
5075
ac_cv_prog_CXXCPP=$CXXCPP
5078
CXXCPP=$ac_cv_prog_CXXCPP
5080
ac_cv_prog_CXXCPP=$CXXCPP
5082
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5083
echo "${ECHO_T}$CXXCPP" >&6
5085
for ac_cxx_preproc_warn_flag in '' yes
5087
# Use a header file that comes with gcc, so configuring glibc
5088
# with a fresh cross-compiler works.
5089
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090
# <limits.h> exists even on freestanding compilers.
5091
# On the NeXT, cc -E runs the code through the compiler's parser,
5092
# not just through cpp. "Syntax error" is here to catch this case.
5093
cat >conftest.$ac_ext <<_ACEOF
5096
cat confdefs.h >>conftest.$ac_ext
5097
cat >>conftest.$ac_ext <<_ACEOF
5098
/* end confdefs.h. */
5100
# include <limits.h>
5102
# include <assert.h>
5106
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5107
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109
grep -v '^ *+' conftest.er1 >conftest.err
5111
cat conftest.err >&5
5112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113
(exit $ac_status); } >/dev/null; then
5114
if test -s conftest.err; then
5115
ac_cpp_err=$ac_cxx_preproc_warn_flag
5116
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5123
if test -z "$ac_cpp_err"; then
5126
echo "$as_me: failed program was:" >&5
5127
sed 's/^/| /' conftest.$ac_ext >&5
5129
# Broken: fails on valid input.
5132
rm -f conftest.err conftest.$ac_ext
5134
# OK, works on sane cases. Now check whether non-existent headers
5135
# can be detected and how.
5136
cat >conftest.$ac_ext <<_ACEOF
5139
cat confdefs.h >>conftest.$ac_ext
5140
cat >>conftest.$ac_ext <<_ACEOF
5141
/* end confdefs.h. */
5142
#include <ac_nonexistent.h>
5144
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5145
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5147
grep -v '^ *+' conftest.er1 >conftest.err
5149
cat conftest.err >&5
5150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151
(exit $ac_status); } >/dev/null; then
5152
if test -s conftest.err; then
5153
ac_cpp_err=$ac_cxx_preproc_warn_flag
5154
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5161
if test -z "$ac_cpp_err"; then
5162
# Broken: success on invalid input.
5165
echo "$as_me: failed program was:" >&5
5166
sed 's/^/| /' conftest.$ac_ext >&5
5168
# Passes both tests.
5172
rm -f conftest.err conftest.$ac_ext
5175
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176
rm -f conftest.err conftest.$ac_ext
5177
if $ac_preproc_ok; then
5180
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5181
See \`config.log' for more details." >&5
5182
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5183
See \`config.log' for more details." >&2;}
5184
{ (exit 1); exit 1; }; }
5188
ac_cpp='$CXXCPP $CPPFLAGS'
5189
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5197
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5198
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5200
if test -n "$ac_tool_prefix"; then
5201
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5203
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205
echo "$as_me:$LINENO: checking for $ac_word" >&5
5206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207
if test "${ac_cv_prog_F77+set}" = set; then
5208
echo $ECHO_N "(cached) $ECHO_C" >&6
5210
if test -n "$F77"; then
5211
ac_cv_prog_F77="$F77" # Let the user override the test.
5213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217
test -z "$as_dir" && as_dir=.
5218
for ac_exec_ext in '' $ac_executable_extensions; do
5219
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5221
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230
if test -n "$F77"; then
5231
echo "$as_me:$LINENO: result: $F77" >&5
5232
echo "${ECHO_T}$F77" >&6
5234
echo "$as_me:$LINENO: result: no" >&5
5235
echo "${ECHO_T}no" >&6
5238
test -n "$F77" && break
5241
if test -z "$F77"; then
5243
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5245
# Extract the first word of "$ac_prog", so it can be a program name with args.
5246
set dummy $ac_prog; ac_word=$2
5247
echo "$as_me:$LINENO: checking for $ac_word" >&5
5248
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5250
echo $ECHO_N "(cached) $ECHO_C" >&6
5252
if test -n "$ac_ct_F77"; then
5253
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5255
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259
test -z "$as_dir" && as_dir=.
5260
for ac_exec_ext in '' $ac_executable_extensions; do
5261
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262
ac_cv_prog_ac_ct_F77="$ac_prog"
5263
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5271
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5272
if test -n "$ac_ct_F77"; then
5273
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5274
echo "${ECHO_T}$ac_ct_F77" >&6
5276
echo "$as_me:$LINENO: result: no" >&5
5277
echo "${ECHO_T}no" >&6
5280
test -n "$ac_ct_F77" && break
5287
# Provide some information about the compiler.
5288
echo "$as_me:5288:" \
5289
"checking for Fortran 77 compiler version" >&5
5290
ac_compiler=`set X $ac_compile; echo $2`
5291
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5292
(eval $ac_compiler --version </dev/null >&5) 2>&5
5294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
(exit $ac_status); }
5296
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5297
(eval $ac_compiler -v </dev/null >&5) 2>&5
5299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300
(exit $ac_status); }
5301
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5302
(eval $ac_compiler -V </dev/null >&5) 2>&5
5304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305
(exit $ac_status); }
5308
# If we don't use `.F' as extension, the preprocessor is not run on the
5309
# input file. (Note that this only needs to work for GNU compilers.)
5312
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5313
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5314
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5315
echo $ECHO_N "(cached) $ECHO_C" >&6
5317
cat >conftest.$ac_ext <<_ACEOF
5325
rm -f conftest.$ac_objext
5326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327
(eval $ac_compile) 2>conftest.er1
5329
grep -v '^ *+' conftest.er1 >conftest.err
5331
cat conftest.err >&5
5332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333
(exit $ac_status); } &&
5334
{ ac_try='test -z "$ac_f77_werror_flag"
5335
|| test ! -s conftest.err'
5336
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340
(exit $ac_status); }; } &&
5341
{ ac_try='test -s conftest.$ac_objext'
5342
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346
(exit $ac_status); }; }; then
5349
echo "$as_me: failed program was:" >&5
5350
sed 's/^/| /' conftest.$ac_ext >&5
5354
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5358
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5359
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5361
ac_test_FFLAGS=${FFLAGS+set}
5362
ac_save_FFLAGS=$FFLAGS
5364
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5365
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5366
if test "${ac_cv_prog_f77_g+set}" = set; then
5367
echo $ECHO_N "(cached) $ECHO_C" >&6
5370
cat >conftest.$ac_ext <<_ACEOF
5375
rm -f conftest.$ac_objext
5376
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377
(eval $ac_compile) 2>conftest.er1
5379
grep -v '^ *+' conftest.er1 >conftest.err
5381
cat conftest.err >&5
5382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383
(exit $ac_status); } &&
5384
{ ac_try='test -z "$ac_f77_werror_flag"
5385
|| test ! -s conftest.err'
5386
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390
(exit $ac_status); }; } &&
5391
{ ac_try='test -s conftest.$ac_objext'
5392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396
(exit $ac_status); }; }; then
5397
ac_cv_prog_f77_g=yes
5399
echo "$as_me: failed program was:" >&5
5400
sed 's/^/| /' conftest.$ac_ext >&5
5404
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5407
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5408
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5409
if test "$ac_test_FFLAGS" = set; then
5410
FFLAGS=$ac_save_FFLAGS
5411
elif test $ac_cv_prog_f77_g = yes; then
5412
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5418
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5425
G77=`test $ac_compiler_gnu = yes && echo yes`
5427
ac_cpp='$CPP $CPPFLAGS'
5428
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5436
# find the maximum length of command line arguments
5437
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5438
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5439
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5440
echo $ECHO_N "(cached) $ECHO_C" >&6
5447
# On DJGPP, this test can blow up pretty badly due to problems in libc
5448
# (any single argument exceeding 2000 bytes causes a buffer overrun
5449
# during glob expansion). Even if it were fixed, the result of this
5450
# check would be larger than it should be.
5451
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5455
# Under GNU Hurd, this test is not required because there is
5456
# no limit to the length of command line arguments.
5457
# Libtool will interpret -1 as no limit whatsoever
5458
lt_cv_sys_max_cmd_len=-1;
5462
# On Win9x/ME, this test blows up -- it succeeds, but takes
5463
# about 5 minutes as the teststring grows exponentially.
5464
# Worse, since 9x/ME are not pre-emptively multitasking,
5465
# you end up with a "frozen" computer, even though with patience
5466
# the test eventually succeeds (with a max line length of 256k).
5467
# Instead, let's just punt: use the minimum linelength reported by
5468
# all of the supported platforms: 8192 (on NT/2K/XP).
5469
lt_cv_sys_max_cmd_len=8192;
5473
# On AmigaOS with pdksh, this test takes hours, literally.
5474
# So we just punt and use a minimum line length of 8192.
5475
lt_cv_sys_max_cmd_len=8192;
5478
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5479
# This has been around since 386BSD, at least. Likely further.
5480
if test -x /sbin/sysctl; then
5481
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5482
elif test -x /usr/sbin/sysctl; then
5483
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5485
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5487
# And add a safety zone
5488
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5489
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5493
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5494
lt_cv_sys_max_cmd_len=196608
5498
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5499
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5500
# nice to cause kernel panics so lets avoid the loop below.
5501
# First set a reasonable default.
5502
lt_cv_sys_max_cmd_len=16384
5504
if test -x /sbin/sysconfig; then
5505
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5506
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5511
lt_cv_sys_max_cmd_len=102400
5513
sysv5* | sco5v6* | sysv4.2uw2*)
5514
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5515
if test -n "$kargmax"; then
5516
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5518
lt_cv_sys_max_cmd_len=32768
5522
# If test is not a shell built-in, we'll probably end up computing a
5523
# maximum length that is only half of the actual maximum length, but
5525
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5526
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5527
= "XX$teststring") >/dev/null 2>&1 &&
5528
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5529
lt_cv_sys_max_cmd_len=$new_result &&
5530
test $i != 17 # 1/2 MB should be enough
5533
teststring=$teststring$teststring
5536
# Add a significant safety factor because C++ compilers can tack on massive
5537
# amounts of additional arguments before passing them to the linker.
5538
# It appears as though 1/2 is a usable value.
5539
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5545
if test -n $lt_cv_sys_max_cmd_len ; then
5546
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5547
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5549
echo "$as_me:$LINENO: result: none" >&5
5550
echo "${ECHO_T}none" >&6
5556
# Check for command to grab the raw symbol name followed by C symbol from nm.
5557
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5558
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5559
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5560
echo $ECHO_N "(cached) $ECHO_C" >&6
5563
# These are sane defaults that work on at least a few old systems.
5564
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5566
# Character class describing NM global symbol codes.
5567
symcode='[BCDEGRST]'
5569
# Regexp to match symbols that can be accessed directly from C.
5570
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5572
# Transform an extracted symbol line into a proper C declaration
5573
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5575
# Transform an extracted symbol line into symbol name and symbol address
5576
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'"
5578
# Define system-specific variables.
5583
cygwin* | mingw* | pw32*)
5584
symcode='[ABCDGISTW]'
5586
hpux*) # Its linker distinguishes data from code symbols
5587
if test "$host_cpu" = ia64; then
5588
symcode='[ABCDEGRST]'
5590
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5591
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'"
5594
if test "$host_cpu" = ia64; then
5595
symcode='[ABCDGIRSTW]'
5596
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5597
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'"
5601
symcode='[BCDEGRST]'
5604
symcode='[BCDEGQRST]'
5615
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5623
# Handle CRLF in mingw tool chain
5627
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5631
# If we're using GNU nm, then use its standard symbol codes.
5632
case `$NM -V 2>&1` in
5633
*GNU* | *'with BFD'*)
5634
symcode='[ABCDGIRSTW]' ;;
5637
# Try without a prefix undercore, then with it.
5638
for ac_symprfx in "" "_"; do
5640
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5641
symxfrm="\\1 $ac_symprfx\\2 \\2"
5643
# Write the raw and C identifiers.
5644
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5646
# Check to see that the pipe works correctly.
5650
cat > conftest.$ac_ext <<EOF
5655
void nm_test_func(){}
5659
int main(){nm_test_var='a';nm_test_func();return(0);}
5662
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663
(eval $ac_compile) 2>&5
5665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666
(exit $ac_status); }; then
5667
# Now try to grab the symbols.
5669
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5670
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
(exit $ac_status); } && test -s "$nlist"; then
5674
# Try sorting and uniquifying the output.
5675
if sort "$nlist" | uniq > "$nlist"T; then
5676
mv -f "$nlist"T "$nlist"
5681
# Make sure that we snagged all the symbols we need.
5682
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5683
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5684
cat <<EOF > conftest.$ac_ext
5690
# Now generate the symbol file.
5691
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5693
cat <<EOF >> conftest.$ac_ext
5694
#if defined (__STDC__) && __STDC__
5695
# define lt_ptr_t void *
5697
# define lt_ptr_t char *
5701
/* The mapping between symbol names and symbols. */
5706
lt_preloaded_symbols[] =
5709
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5710
cat <<\EOF >> conftest.$ac_ext
5718
# Now try linking the two files.
5719
mv conftest.$ac_objext conftstm.$ac_objext
5720
lt_save_LIBS="$LIBS"
5721
lt_save_CFLAGS="$CFLAGS"
5722
LIBS="conftstm.$ac_objext"
5723
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725
(eval $ac_link) 2>&5
5727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5731
LIBS="$lt_save_LIBS"
5732
CFLAGS="$lt_save_CFLAGS"
5734
echo "cannot find nm_test_func in $nlist" >&5
5737
echo "cannot find nm_test_var in $nlist" >&5
5740
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5743
echo "$progname: failed program was:" >&5
5744
cat conftest.$ac_ext >&5
5746
rm -f conftest* conftst*
5748
# Do not use the global_symbol_pipe unless it works.
5749
if test "$pipe_works" = yes; then
5752
lt_cv_sys_global_symbol_pipe=
5758
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5759
lt_cv_sys_global_symbol_to_cdecl=
5761
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5762
echo "$as_me:$LINENO: result: failed" >&5
5763
echo "${ECHO_T}failed" >&6
5765
echo "$as_me:$LINENO: result: ok" >&5
5766
echo "${ECHO_T}ok" >&6
5769
echo "$as_me:$LINENO: checking for objdir" >&5
5770
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5771
if test "${lt_cv_objdir+set}" = set; then
5772
echo $ECHO_N "(cached) $ECHO_C" >&6
5774
rm -f .libs 2>/dev/null
5775
mkdir .libs 2>/dev/null
5776
if test -d .libs; then
5779
# MS-DOS does not allow filenames that begin with a dot.
5782
rmdir .libs 2>/dev/null
5784
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5785
echo "${ECHO_T}$lt_cv_objdir" >&6
5786
objdir=$lt_cv_objdir
5794
# AIX sometimes has problems with the GCC collect2 program. For some
5795
# reason, if we set the COLLECT_NAMES environment variable, the problems
5796
# vanish in a puff of smoke.
5797
if test "X${COLLECT_NAMES+set}" != Xset; then
5799
export COLLECT_NAMES
5804
# Sed substitution that helps us do robust quoting. It backslashifies
5805
# metacharacters that are still active within double-quoted strings.
5806
Xsed='sed -e 1s/^X//'
5807
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5809
# Same as above, but do not quote variable references.
5810
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5812
# Sed substitution to delay expansion of an escaped shell variable in a
5813
# double_quote_subst'ed string.
5814
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5816
# Sed substitution to avoid accidental globbing in evaled expressions
5817
no_glob_subst='s/\*/\\\*/g'
5823
default_ofile=libtool
5824
can_build_shared=yes
5826
# All known linkers require a `.a' archive for static linking (except MSVC,
5827
# which needs '.lib').
5829
ltmain="$ac_aux_dir/ltmain.sh"
5830
ofile="$default_ofile"
5831
with_gnu_ld="$lt_cv_prog_gnu_ld"
5833
if test -n "$ac_tool_prefix"; then
5834
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5835
set dummy ${ac_tool_prefix}ar; ac_word=$2
5836
echo "$as_me:$LINENO: checking for $ac_word" >&5
5837
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838
if test "${ac_cv_prog_AR+set}" = set; then
5839
echo $ECHO_N "(cached) $ECHO_C" >&6
5841
if test -n "$AR"; then
5842
ac_cv_prog_AR="$AR" # Let the user override the test.
5844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848
test -z "$as_dir" && as_dir=.
5849
for ac_exec_ext in '' $ac_executable_extensions; do
5850
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851
ac_cv_prog_AR="${ac_tool_prefix}ar"
5852
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861
if test -n "$AR"; then
5862
echo "$as_me:$LINENO: result: $AR" >&5
5863
echo "${ECHO_T}$AR" >&6
5865
echo "$as_me:$LINENO: result: no" >&5
5866
echo "${ECHO_T}no" >&6
5870
if test -z "$ac_cv_prog_AR"; then
5872
# Extract the first word of "ar", so it can be a program name with args.
5873
set dummy ar; ac_word=$2
5874
echo "$as_me:$LINENO: checking for $ac_word" >&5
5875
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5877
echo $ECHO_N "(cached) $ECHO_C" >&6
5879
if test -n "$ac_ct_AR"; then
5880
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886
test -z "$as_dir" && as_dir=.
5887
for ac_exec_ext in '' $ac_executable_extensions; do
5888
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889
ac_cv_prog_ac_ct_AR="ar"
5890
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5899
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5900
if test -n "$ac_ct_AR"; then
5901
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5902
echo "${ECHO_T}$ac_ct_AR" >&6
5904
echo "$as_me:$LINENO: result: no" >&5
5905
echo "${ECHO_T}no" >&6
5913
if test -n "$ac_tool_prefix"; then
5914
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5915
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5916
echo "$as_me:$LINENO: checking for $ac_word" >&5
5917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918
if test "${ac_cv_prog_RANLIB+set}" = set; then
5919
echo $ECHO_N "(cached) $ECHO_C" >&6
5921
if test -n "$RANLIB"; then
5922
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928
test -z "$as_dir" && as_dir=.
5929
for ac_exec_ext in '' $ac_executable_extensions; do
5930
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5932
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940
RANLIB=$ac_cv_prog_RANLIB
5941
if test -n "$RANLIB"; then
5942
echo "$as_me:$LINENO: result: $RANLIB" >&5
5943
echo "${ECHO_T}$RANLIB" >&6
5945
echo "$as_me:$LINENO: result: no" >&5
5946
echo "${ECHO_T}no" >&6
5950
if test -z "$ac_cv_prog_RANLIB"; then
5951
ac_ct_RANLIB=$RANLIB
5952
# Extract the first word of "ranlib", so it can be a program name with args.
5953
set dummy ranlib; ac_word=$2
5954
echo "$as_me:$LINENO: checking for $ac_word" >&5
5955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5957
echo $ECHO_N "(cached) $ECHO_C" >&6
5959
if test -n "$ac_ct_RANLIB"; then
5960
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966
test -z "$as_dir" && as_dir=.
5967
for ac_exec_ext in '' $ac_executable_extensions; do
5968
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969
ac_cv_prog_ac_ct_RANLIB="ranlib"
5970
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5979
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5980
if test -n "$ac_ct_RANLIB"; then
5981
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5982
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5984
echo "$as_me:$LINENO: result: no" >&5
5985
echo "${ECHO_T}no" >&6
5988
RANLIB=$ac_ct_RANLIB
5990
RANLIB="$ac_cv_prog_RANLIB"
5993
if test -n "$ac_tool_prefix"; then
5994
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5995
set dummy ${ac_tool_prefix}strip; ac_word=$2
5996
echo "$as_me:$LINENO: checking for $ac_word" >&5
5997
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998
if test "${ac_cv_prog_STRIP+set}" = set; then
5999
echo $ECHO_N "(cached) $ECHO_C" >&6
6001
if test -n "$STRIP"; then
6002
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008
test -z "$as_dir" && as_dir=.
6009
for ac_exec_ext in '' $ac_executable_extensions; do
6010
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6012
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020
STRIP=$ac_cv_prog_STRIP
6021
if test -n "$STRIP"; then
6022
echo "$as_me:$LINENO: result: $STRIP" >&5
6023
echo "${ECHO_T}$STRIP" >&6
6025
echo "$as_me:$LINENO: result: no" >&5
6026
echo "${ECHO_T}no" >&6
6030
if test -z "$ac_cv_prog_STRIP"; then
6032
# Extract the first word of "strip", so it can be a program name with args.
6033
set dummy strip; ac_word=$2
6034
echo "$as_me:$LINENO: checking for $ac_word" >&5
6035
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6037
echo $ECHO_N "(cached) $ECHO_C" >&6
6039
if test -n "$ac_ct_STRIP"; then
6040
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046
test -z "$as_dir" && as_dir=.
6047
for ac_exec_ext in '' $ac_executable_extensions; do
6048
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049
ac_cv_prog_ac_ct_STRIP="strip"
6050
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6059
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6060
if test -n "$ac_ct_STRIP"; then
6061
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6062
echo "${ECHO_T}$ac_ct_STRIP" >&6
6064
echo "$as_me:$LINENO: result: no" >&5
6065
echo "${ECHO_T}no" >&6
6070
STRIP="$ac_cv_prog_STRIP"
6075
old_CFLAGS="$CFLAGS"
6077
# Set sane defaults for various variables
6078
test -z "$AR" && AR=ar
6079
test -z "$AR_FLAGS" && AR_FLAGS=cru
6080
test -z "$AS" && AS=as
6081
test -z "$CC" && CC=cc
6082
test -z "$LTCC" && LTCC=$CC
6083
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6084
test -z "$DLLTOOL" && DLLTOOL=dlltool
6085
test -z "$LD" && LD=ld
6086
test -z "$LN_S" && LN_S="ln -s"
6087
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6088
test -z "$NM" && NM=nm
6089
test -z "$SED" && SED=sed
6090
test -z "$OBJDUMP" && OBJDUMP=objdump
6091
test -z "$RANLIB" && RANLIB=:
6092
test -z "$STRIP" && STRIP=:
6093
test -z "$ac_objext" && ac_objext=o
6095
# Determine commands to create old-style static archives.
6096
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6097
old_postinstall_cmds='chmod 644 $oldlib'
6098
old_postuninstall_cmds=
6100
if test -n "$RANLIB"; then
6103
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6106
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6109
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6112
for cc_temp in $compiler""; do
6114
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6115
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6120
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6123
# Only perform the check for file, if the check method requires it
6124
case $deplibs_check_method in
6126
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6127
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6128
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6129
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6130
echo $ECHO_N "(cached) $ECHO_C" >&6
6134
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6137
lt_save_MAGIC_CMD="$MAGIC_CMD"
6138
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6139
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6140
for ac_dir in $ac_dummy; do
6142
test -z "$ac_dir" && ac_dir=.
6143
if test -f $ac_dir/${ac_tool_prefix}file; then
6144
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6145
if test -n "$file_magic_test_file"; then
6146
case $deplibs_check_method in
6148
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6149
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6150
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6151
$EGREP "$file_magic_regex" > /dev/null; then
6156
*** Warning: the command libtool uses to detect shared libraries,
6157
*** $file_magic_cmd, produces output that libtool cannot recognize.
6158
*** The result is that libtool may fail to recognize shared libraries
6159
*** as such. This will affect the creation of libtool libraries that
6160
*** depend on shared libraries, but programs linked with such libtool
6161
*** libraries will work regardless of this problem. Nevertheless, you
6162
*** may want to report the problem to your system manager and/or to
6163
*** bug-libtool@gnu.org
6173
MAGIC_CMD="$lt_save_MAGIC_CMD"
6178
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6179
if test -n "$MAGIC_CMD"; then
6180
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6181
echo "${ECHO_T}$MAGIC_CMD" >&6
6183
echo "$as_me:$LINENO: result: no" >&5
6184
echo "${ECHO_T}no" >&6
6187
if test -z "$lt_cv_path_MAGIC_CMD"; then
6188
if test -n "$ac_tool_prefix"; then
6189
echo "$as_me:$LINENO: checking for file" >&5
6190
echo $ECHO_N "checking for file... $ECHO_C" >&6
6191
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6192
echo $ECHO_N "(cached) $ECHO_C" >&6
6196
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6199
lt_save_MAGIC_CMD="$MAGIC_CMD"
6200
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6201
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6202
for ac_dir in $ac_dummy; do
6204
test -z "$ac_dir" && ac_dir=.
6205
if test -f $ac_dir/file; then
6206
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6207
if test -n "$file_magic_test_file"; then
6208
case $deplibs_check_method in
6210
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6211
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6212
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6213
$EGREP "$file_magic_regex" > /dev/null; then
6218
*** Warning: the command libtool uses to detect shared libraries,
6219
*** $file_magic_cmd, produces output that libtool cannot recognize.
6220
*** The result is that libtool may fail to recognize shared libraries
6221
*** as such. This will affect the creation of libtool libraries that
6222
*** depend on shared libraries, but programs linked with such libtool
6223
*** libraries will work regardless of this problem. Nevertheless, you
6224
*** may want to report the problem to your system manager and/or to
6225
*** bug-libtool@gnu.org
6235
MAGIC_CMD="$lt_save_MAGIC_CMD"
6240
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6241
if test -n "$MAGIC_CMD"; then
6242
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6243
echo "${ECHO_T}$MAGIC_CMD" >&6
6245
echo "$as_me:$LINENO: result: no" >&5
6246
echo "${ECHO_T}no" >&6
6261
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6262
if test "${enable_libtool_lock+set}" = set; then
6263
enableval="$enable_libtool_lock"
6266
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6269
# Check whether --with-pic or --without-pic was given.
6270
if test "${with_pic+set}" = set; then
6276
test -z "$pic_mode" && pic_mode=default
6278
# Use C for the default configuration in the libtool script
6282
ac_cpp='$CPP $CPPFLAGS'
6283
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6288
# Source file extension for C test sources.
6291
# Object file extension for compiled C test sources.
6295
# Code to be used in simple compile tests
6296
lt_simple_compile_test_code="int some_variable = 0;\n"
6298
# Code to be used in simple link tests
6299
lt_simple_link_test_code='int main(){return(0);}\n'
6302
# If no C compiler was specified, use CC.
6305
# If no C compiler flags were specified, use CFLAGS.
6306
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6308
# Allow CC to be a program name with arguments.
6312
# save warnings/boilerplate of simple test code
6313
ac_outfile=conftest.$ac_objext
6314
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6315
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6316
_lt_compiler_boilerplate=`cat conftest.err`
6319
ac_outfile=conftest.$ac_objext
6320
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6321
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6322
_lt_linker_boilerplate=`cat conftest.err`
6327
lt_prog_compiler_no_builtin_flag=
6329
if test "$GCC" = yes; then
6330
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6333
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6334
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6335
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6336
echo $ECHO_N "(cached) $ECHO_C" >&6
6338
lt_cv_prog_compiler_rtti_exceptions=no
6339
ac_outfile=conftest.$ac_objext
6340
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6341
lt_compiler_flag="-fno-rtti -fno-exceptions"
6342
# Insert the option either (1) after the last *FLAGS variable, or
6343
# (2) before a word containing "conftest.", or (3) at the end.
6344
# Note that $ac_compile itself does not contain backslashes and begins
6345
# with a dollar sign (not a hyphen), so the echo should work correctly.
6346
# The option is referenced via a variable to avoid confusing sed.
6347
lt_compile=`echo "$ac_compile" | $SED \
6348
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6349
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6350
-e 's:$: $lt_compiler_flag:'`
6351
(eval echo "\"\$as_me:6351: $lt_compile\"" >&5)
6352
(eval "$lt_compile" 2>conftest.err)
6354
cat conftest.err >&5
6355
echo "$as_me:6355: \$? = $ac_status" >&5
6356
if (exit $ac_status) && test -s "$ac_outfile"; then
6357
# The compiler can only warn and ignore the option if not recognized
6358
# So say no if there are warnings other than the usual output.
6359
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6360
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6361
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6362
lt_cv_prog_compiler_rtti_exceptions=yes
6368
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6369
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6371
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6372
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6379
lt_prog_compiler_wl=
6380
lt_prog_compiler_pic=
6381
lt_prog_compiler_static=
6383
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6384
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6386
if test "$GCC" = yes; then
6387
lt_prog_compiler_wl='-Wl,'
6388
lt_prog_compiler_static='-static'
6392
# All AIX code is PIC.
6393
if test "$host_cpu" = ia64; then
6394
# AIX 5 now supports IA64 processor
6395
lt_prog_compiler_static='-Bstatic'
6400
# FIXME: we need at least 68020 code to build shared libraries, but
6401
# adding the `-m68020' flag to GCC prevents building anything better,
6403
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6406
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6407
# PIC is the default for these OSes.
6410
mingw* | pw32* | os2*)
6411
# This hack is so that the source file can tell whether it is being
6412
# built for inclusion in a dll (and should export symbols for example).
6413
lt_prog_compiler_pic='-DDLL_EXPORT'
6416
darwin* | rhapsody*)
6417
# PIC is the default on this platform
6418
# Common symbols not allowed in MH_DYLIB files
6419
lt_prog_compiler_pic='-fno-common'
6423
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6424
# Instead, we relocate shared libraries at runtime.
6428
# Just because we use GCC doesn't mean we suddenly get shared libraries
6429
# on systems that don't support them.
6430
lt_prog_compiler_can_build_shared=no
6435
if test -d /usr/nec; then
6436
lt_prog_compiler_pic=-Kconform_pic
6441
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6448
lt_prog_compiler_pic='-fPIC'
6454
lt_prog_compiler_pic='-fPIC'
6458
# PORTME Check for flag to pass linker flags through the system compiler.
6461
lt_prog_compiler_wl='-Wl,'
6462
if test "$host_cpu" = ia64; then
6463
# AIX 5 now supports IA64 processor
6464
lt_prog_compiler_static='-Bstatic'
6466
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6470
# PIC is the default on this platform
6471
# Common symbols not allowed in MH_DYLIB files
6472
case $cc_basename in
6474
lt_prog_compiler_pic='-qnocommon'
6475
lt_prog_compiler_wl='-Wl,'
6480
mingw* | pw32* | os2*)
6481
# This hack is so that the source file can tell whether it is being
6482
# built for inclusion in a dll (and should export symbols for example).
6483
lt_prog_compiler_pic='-DDLL_EXPORT'
6486
hpux9* | hpux10* | hpux11*)
6487
lt_prog_compiler_wl='-Wl,'
6488
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6495
lt_prog_compiler_pic='+Z'
6498
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6499
lt_prog_compiler_static='${wl}-a ${wl}archive'
6502
irix5* | irix6* | nonstopux*)
6503
lt_prog_compiler_wl='-Wl,'
6504
# PIC (with -KPIC) is the default.
6505
lt_prog_compiler_static='-non_shared'
6509
lt_prog_compiler_pic='-KPIC'
6510
lt_prog_compiler_static='-Bstatic'
6514
case $cc_basename in
6516
lt_prog_compiler_wl='-Wl,'
6517
lt_prog_compiler_pic='-KPIC'
6518
lt_prog_compiler_static='-static'
6520
pgcc* | pgf77* | pgf90* | pgf95*)
6521
# Portland Group compilers (*not* the Pentium gcc compiler,
6522
# which looks to be a dead project)
6523
lt_prog_compiler_wl='-Wl,'
6524
lt_prog_compiler_pic='-fpic'
6525
lt_prog_compiler_static='-Bstatic'
6528
lt_prog_compiler_wl='-Wl,'
6529
# All Alpha code is PIC.
6530
lt_prog_compiler_static='-non_shared'
6535
osf3* | osf4* | osf5*)
6536
lt_prog_compiler_wl='-Wl,'
6537
# All OSF/1 code is PIC.
6538
lt_prog_compiler_static='-non_shared'
6542
lt_prog_compiler_pic='-KPIC'
6543
lt_prog_compiler_static='-Bstatic'
6544
case $cc_basename in
6546
lt_prog_compiler_wl='-Qoption ld ';;
6548
lt_prog_compiler_wl='-Wl,';;
6553
lt_prog_compiler_wl='-Qoption ld '
6554
lt_prog_compiler_pic='-PIC'
6555
lt_prog_compiler_static='-Bstatic'
6558
sysv4 | sysv4.2uw2* | sysv4.3*)
6559
lt_prog_compiler_wl='-Wl,'
6560
lt_prog_compiler_pic='-KPIC'
6561
lt_prog_compiler_static='-Bstatic'
6565
if test -d /usr/nec ;then
6566
lt_prog_compiler_pic='-Kconform_pic'
6567
lt_prog_compiler_static='-Bstatic'
6571
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6572
lt_prog_compiler_wl='-Wl,'
6573
lt_prog_compiler_pic='-KPIC'
6574
lt_prog_compiler_static='-Bstatic'
6578
lt_prog_compiler_wl='-Wl,'
6579
lt_prog_compiler_can_build_shared=no
6583
lt_prog_compiler_pic='-pic'
6584
lt_prog_compiler_static='-Bstatic'
6588
lt_prog_compiler_can_build_shared=no
6593
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6594
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6597
# Check to make sure the PIC flag actually works.
6599
if test -n "$lt_prog_compiler_pic"; then
6601
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6602
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6603
if test "${lt_prog_compiler_pic_works+set}" = set; then
6604
echo $ECHO_N "(cached) $ECHO_C" >&6
6606
lt_prog_compiler_pic_works=no
6607
ac_outfile=conftest.$ac_objext
6608
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6609
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6610
# Insert the option either (1) after the last *FLAGS variable, or
6611
# (2) before a word containing "conftest.", or (3) at the end.
6612
# Note that $ac_compile itself does not contain backslashes and begins
6613
# with a dollar sign (not a hyphen), so the echo should work correctly.
6614
# The option is referenced via a variable to avoid confusing sed.
6615
lt_compile=`echo "$ac_compile" | $SED \
6616
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6617
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6618
-e 's:$: $lt_compiler_flag:'`
6619
(eval echo "\"\$as_me:6619: $lt_compile\"" >&5)
6620
(eval "$lt_compile" 2>conftest.err)
6622
cat conftest.err >&5
6623
echo "$as_me:6623: \$? = $ac_status" >&5
6624
if (exit $ac_status) && test -s "$ac_outfile"; then
6625
# The compiler can only warn and ignore the option if not recognized
6626
# So say no if there are warnings other than the usual output.
6627
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6628
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6629
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6630
lt_prog_compiler_pic_works=yes
6636
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6637
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6639
if test x"$lt_prog_compiler_pic_works" = xyes; then
6640
case $lt_prog_compiler_pic in
6642
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6645
lt_prog_compiler_pic=
6646
lt_prog_compiler_can_build_shared=no
6651
# For platforms which do not support PIC, -DPIC is meaningless:
6653
lt_prog_compiler_pic=
6656
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6661
# Check to make sure the static flag actually works.
6663
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6664
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6665
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6666
if test "${lt_prog_compiler_static_works+set}" = set; then
6667
echo $ECHO_N "(cached) $ECHO_C" >&6
6669
lt_prog_compiler_static_works=no
6670
save_LDFLAGS="$LDFLAGS"
6671
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6672
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6673
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6674
# The linker can only warn and ignore the option if not recognized
6675
# So say no if there are warnings
6676
if test -s conftest.err; then
6677
# Append any errors to the config.log.
6678
cat conftest.err 1>&5
6679
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6680
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6681
if diff conftest.exp conftest.er2 >/dev/null; then
6682
lt_prog_compiler_static_works=yes
6685
lt_prog_compiler_static_works=yes
6689
LDFLAGS="$save_LDFLAGS"
6692
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6693
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6695
if test x"$lt_prog_compiler_static_works" = xyes; then
6698
lt_prog_compiler_static=
6702
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6703
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6704
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6705
echo $ECHO_N "(cached) $ECHO_C" >&6
6707
lt_cv_prog_compiler_c_o=no
6708
$rm -r conftest 2>/dev/null
6712
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6714
lt_compiler_flag="-o out/conftest2.$ac_objext"
6715
# Insert the option either (1) after the last *FLAGS variable, or
6716
# (2) before a word containing "conftest.", or (3) at the end.
6717
# Note that $ac_compile itself does not contain backslashes and begins
6718
# with a dollar sign (not a hyphen), so the echo should work correctly.
6719
lt_compile=`echo "$ac_compile" | $SED \
6720
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6721
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6722
-e 's:$: $lt_compiler_flag:'`
6723
(eval echo "\"\$as_me:6723: $lt_compile\"" >&5)
6724
(eval "$lt_compile" 2>out/conftest.err)
6726
cat out/conftest.err >&5
6727
echo "$as_me:6727: \$? = $ac_status" >&5
6728
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6730
# The compiler can only warn and ignore the option if not recognized
6731
# So say no if there are warnings
6732
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6733
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6734
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6735
lt_cv_prog_compiler_c_o=yes
6740
# SGI C++ compiler will create directory out/ii_files/ for
6741
# template instantiation
6742
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6743
$rm out/* && rmdir out
6749
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6750
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6753
hard_links="nottested"
6754
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6755
# do not overwrite the value of need_locks provided by the user
6756
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6757
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6760
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6762
ln conftest.a conftest.b 2>&5 || hard_links=no
6763
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6764
echo "$as_me:$LINENO: result: $hard_links" >&5
6765
echo "${ECHO_T}$hard_links" >&6
6766
if test "$hard_links" = no; then
6767
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6768
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6775
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6776
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6779
allow_undefined_flag=
6780
enable_shared_with_static_runtimes=no
6782
archive_expsym_cmds=
6783
old_archive_From_new_cmds=
6784
old_archive_from_expsyms_cmds=
6785
export_dynamic_flag_spec=
6786
whole_archive_flag_spec=
6787
thread_safe_flag_spec=
6788
hardcode_libdir_flag_spec=
6789
hardcode_libdir_flag_spec_ld=
6790
hardcode_libdir_separator=
6793
hardcode_shlibpath_var=unsupported
6794
link_all_deplibs=unknown
6795
hardcode_automatic=no
6798
always_export_symbols=no
6799
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6800
# include_expsyms should be a list of space-separated symbols to be *always*
6801
# included in the symbol list
6803
# exclude_expsyms can be an extended regexp of symbols to exclude
6804
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6805
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6806
# as well as any symbol that contains `d'.
6807
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6808
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6809
# platforms (ab)use it in PIC code, but their linkers get confused if
6810
# the symbol is explicitly referenced. Since portable code cannot
6811
# rely on this symbol name, it's probably fine to never include it in
6812
# preloaded symbol tables.
6813
extract_expsyms_cmds=
6814
# Just being paranoid about ensuring that cc_basename is set.
6815
for cc_temp in $compiler""; do
6817
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6818
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6823
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6826
cygwin* | mingw* | pw32*)
6827
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6828
# When not using gcc, we currently assume that we are using
6829
# Microsoft Visual C++.
6830
if test "$GCC" != yes; then
6835
# we just hope/assume this is gcc and not c89 (= MSVC++)
6844
if test "$with_gnu_ld" = yes; then
6845
# If archive_cmds runs LD, not CC, wlarc should be empty
6848
# Set some defaults for GNU ld with shared library support. These
6849
# are reset later if shared libraries are not supported. Putting them
6850
# here allows them to be overridden if necessary.
6851
runpath_var=LD_RUN_PATH
6852
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6853
export_dynamic_flag_spec='${wl}--export-dynamic'
6854
# ancient GNU ld didn't support --whole-archive et. al.
6855
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6856
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6858
whole_archive_flag_spec=
6860
supports_anon_versioning=no
6861
case `$LD -v 2>/dev/null` in
6862
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6863
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6864
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6865
*\ 2.11.*) ;; # other 2.11 versions
6866
*) supports_anon_versioning=yes ;;
6869
# See if GNU ld supports shared libraries.
6871
aix3* | aix4* | aix5*)
6872
# On AIX/PPC, the GNU linker is very broken
6873
if test "$host_cpu" != ia64; then
6877
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6878
*** to be unable to reliably create shared libraries on AIX.
6879
*** Therefore, libtool is disabling shared libraries support. If you
6880
*** really care for shared libraries, you may want to modify your PATH
6881
*** so that a non-GNU linker is found, and then restart.
6888
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)'
6889
hardcode_libdir_flag_spec='-L$libdir'
6890
hardcode_minus_L=yes
6892
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6893
# that the semantics of dynamic libraries on AmigaOS, at least up
6894
# to version 4, is to share data among multiple programs linked
6895
# with the same dynamic library. Since this doesn't match the
6896
# behavior of shared libraries on other platforms, we can't use
6902
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6903
allow_undefined_flag=unsupported
6904
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6905
# support --undefined. This deserves some investigation. FIXME
6906
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6912
cygwin* | mingw* | pw32*)
6913
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6914
# as there is no search path for DLLs.
6915
hardcode_libdir_flag_spec='-L$libdir'
6916
allow_undefined_flag=unsupported
6917
always_export_symbols=no
6918
enable_shared_with_static_runtimes=yes
6919
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6921
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6922
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6923
# If the export-symbols file already is a .def file (1st line
6924
# is EXPORTS), use it as is; otherwise, prepend...
6925
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6926
cp $export_symbols $output_objdir/$soname.def;
6928
echo EXPORTS > $output_objdir/$soname.def;
6929
cat $export_symbols >> $output_objdir/$soname.def;
6931
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6939
hardcode_shlibpath_var=no
6940
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6941
export_dynamic_flag_spec='${wl}-E'
6942
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6943
# Instead, shared libraries are loaded at an image base (0x10000000 by
6944
# default) and relocated if they conflict, which is a slow very memory
6945
# consuming and fragmenting process. To avoid this, we pick a random,
6946
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6947
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6948
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6949
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'
6953
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6955
case $cc_basename,$host_cpu in
6956
pgcc*) # Portland Group C compiler
6957
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'
6958
tmp_addflag=' $pic_flag'
6960
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6961
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'
6962
tmp_addflag=' $pic_flag -Mnomain' ;;
6963
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6964
tmp_addflag=' -i_dynamic' ;;
6965
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6966
tmp_addflag=' -i_dynamic -nofor_main' ;;
6967
ifc* | ifort*) # Intel Fortran compiler
6968
tmp_addflag=' -nofor_main' ;;
6970
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6972
if test $supports_anon_versioning = yes; then
6973
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6974
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6975
$echo "local: *; };" >> $output_objdir/$libname.ver~
6976
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6984
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6985
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6988
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6989
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6994
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6998
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6999
*** create shared libraries on Solaris systems. Therefore, libtool
7000
*** is disabling shared libraries support. We urge you to upgrade GNU
7001
*** binutils to release 2.9.1 or newer. Another option is to modify
7002
*** your PATH or compiler configuration so that the native linker is
7003
*** used, and then restart.
7006
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7007
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7008
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7014
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7015
case `$LD -v 2>&1` in
7016
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7020
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7021
*** reliably create shared libraries on SCO systems. Therefore, libtool
7022
*** is disabling shared libraries support. We urge you to upgrade GNU
7023
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7024
*** your PATH or compiler configuration so that the native linker is
7025
*** used, and then restart.
7030
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7031
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7032
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7033
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7042
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7045
hardcode_shlibpath_var=no
7049
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7050
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7051
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7058
if test "$ld_shlibs" = no; then
7060
hardcode_libdir_flag_spec=
7061
export_dynamic_flag_spec=
7062
whole_archive_flag_spec=
7065
# PORTME fill in a description of your system's linker (not GNU ld)
7068
allow_undefined_flag=unsupported
7069
always_export_symbols=yes
7070
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'
7071
# Note: this linker hardcodes the directories in LIBPATH if there
7072
# are no directories specified by -L.
7073
hardcode_minus_L=yes
7074
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7075
# Neither direct hardcoding nor static linking is supported with a
7077
hardcode_direct=unsupported
7082
if test "$host_cpu" = ia64; then
7083
# On IA64, the linker does run time linking by default, so we don't
7084
# have to do anything special.
7085
aix_use_runtimelinking=no
7086
exp_sym_flag='-Bexport'
7089
# If we're using GNU nm, then we don't want the "-C" option.
7090
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7091
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7092
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'
7094
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'
7096
aix_use_runtimelinking=no
7098
# Test if we are trying to use run time linking or normal
7099
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7100
# need to do runtime linking.
7101
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7102
for ld_flag in $LDFLAGS; do
7103
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7104
aix_use_runtimelinking=yes
7111
exp_sym_flag='-bexport'
7112
no_entry_flag='-bnoentry'
7115
# When large executables or shared objects are built, AIX ld can
7116
# have problems creating the table of contents. If linking a library
7117
# or program results in "error TOC overflow" add -mminimal-toc to
7118
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7119
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7123
hardcode_libdir_separator=':'
7124
link_all_deplibs=yes
7126
if test "$GCC" = yes; then
7127
case $host_os in aix4.[012]|aix4.[012].*)
7128
# We only want to do this on AIX 4.2 and lower, the check
7129
# below for broken collect2 doesn't work under 4.3+
7130
collect2name=`${CC} -print-prog-name=collect2`
7131
if test -f "$collect2name" && \
7132
strings "$collect2name" | grep resolve_lib_name >/dev/null
7134
# We have reworked collect2
7137
# We have old collect2
7138
hardcode_direct=unsupported
7139
# It fails to find uninstalled libraries when the uninstalled
7140
# path is not listed in the libpath. Setting hardcode_minus_L
7141
# to unsupported forces relinking
7142
hardcode_minus_L=yes
7143
hardcode_libdir_flag_spec='-L$libdir'
7144
hardcode_libdir_separator=
7148
shared_flag='-shared'
7149
if test "$aix_use_runtimelinking" = yes; then
7150
shared_flag="$shared_flag "'${wl}-G'
7154
if test "$host_cpu" = ia64; then
7155
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7156
# chokes on -Wl,-G. The following line is correct:
7159
if test "$aix_use_runtimelinking" = yes; then
7160
shared_flag='${wl}-G'
7162
shared_flag='${wl}-bM:SRE'
7167
# It seems that -bexpall does not export symbols beginning with
7168
# underscore (_), so it is better to generate a list of symbols to export.
7169
always_export_symbols=yes
7170
if test "$aix_use_runtimelinking" = yes; then
7171
# Warning - without using the other runtime loading flags (-brtl),
7172
# -berok will link without error, but may produce a broken library.
7173
allow_undefined_flag='-berok'
7174
# Determine the default libpath from the value encoded in an empty executable.
7175
cat >conftest.$ac_ext <<_ACEOF
7178
cat confdefs.h >>conftest.$ac_ext
7179
cat >>conftest.$ac_ext <<_ACEOF
7180
/* end confdefs.h. */
7190
rm -f conftest.$ac_objext conftest$ac_exeext
7191
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192
(eval $ac_link) 2>conftest.er1
7194
grep -v '^ *+' conftest.er1 >conftest.err
7196
cat conftest.err >&5
7197
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198
(exit $ac_status); } &&
7199
{ ac_try='test -z "$ac_c_werror_flag"
7200
|| test ! -s conftest.err'
7201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205
(exit $ac_status); }; } &&
7206
{ ac_try='test -s conftest$ac_exeext'
7207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211
(exit $ac_status); }; }; then
7213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7215
# Check for a 64-bit object if we didn't find anything.
7216
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; }
7219
echo "$as_me: failed program was:" >&5
7220
sed 's/^/| /' conftest.$ac_ext >&5
7223
rm -f conftest.err conftest.$ac_objext \
7224
conftest$ac_exeext conftest.$ac_ext
7225
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7227
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7228
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"
7230
if test "$host_cpu" = ia64; then
7231
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7232
allow_undefined_flag="-z nodefs"
7233
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"
7235
# Determine the default libpath from the value encoded in an empty executable.
7236
cat >conftest.$ac_ext <<_ACEOF
7239
cat confdefs.h >>conftest.$ac_ext
7240
cat >>conftest.$ac_ext <<_ACEOF
7241
/* end confdefs.h. */
7251
rm -f conftest.$ac_objext conftest$ac_exeext
7252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7253
(eval $ac_link) 2>conftest.er1
7255
grep -v '^ *+' conftest.er1 >conftest.err
7257
cat conftest.err >&5
7258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259
(exit $ac_status); } &&
7260
{ ac_try='test -z "$ac_c_werror_flag"
7261
|| test ! -s conftest.err'
7262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266
(exit $ac_status); }; } &&
7267
{ ac_try='test -s conftest$ac_exeext'
7268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272
(exit $ac_status); }; }; then
7274
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7276
# Check for a 64-bit object if we didn't find anything.
7277
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; }
7280
echo "$as_me: failed program was:" >&5
7281
sed 's/^/| /' conftest.$ac_ext >&5
7284
rm -f conftest.err conftest.$ac_objext \
7285
conftest$ac_exeext conftest.$ac_ext
7286
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7288
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7289
# Warning - without using the other run time loading flags,
7290
# -berok will link without error, but may produce a broken library.
7291
no_undefined_flag=' ${wl}-bernotok'
7292
allow_undefined_flag=' ${wl}-berok'
7293
# Exported symbols can be pulled into shared objects from archives
7294
whole_archive_flag_spec='$convenience'
7295
archive_cmds_need_lc=yes
7296
# This is similar to how AIX traditionally builds its shared libraries.
7297
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'
7303
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)'
7304
hardcode_libdir_flag_spec='-L$libdir'
7305
hardcode_minus_L=yes
7306
# see comment about different semantics on the GNU ld section
7311
export_dynamic_flag_spec=-rdynamic
7314
cygwin* | mingw* | pw32*)
7315
# When not using gcc, we currently assume that we are using
7316
# Microsoft Visual C++.
7317
# hardcode_libdir_flag_spec is actually meaningless, as there is
7318
# no search path for DLLs.
7319
hardcode_libdir_flag_spec=' '
7320
allow_undefined_flag=unsupported
7321
# Tell ltmain to make .lib files, not .a files.
7323
# Tell ltmain to make .dll files, not .so files.
7325
# FIXME: Setting linknames here is a bad hack.
7326
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7327
# The linker will automatically build a .lib file if we build a DLL.
7328
old_archive_From_new_cmds='true'
7329
# FIXME: Should let the user specify the lib program.
7330
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7331
fix_srcfile_path='`cygpath -w "$srcfile"`'
7332
enable_shared_with_static_runtimes=yes
7335
darwin* | rhapsody*)
7337
rhapsody* | darwin1.[012])
7338
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7341
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7342
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7344
case ${MACOSX_DEPLOYMENT_TARGET} in
7346
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7349
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7355
archive_cmds_need_lc=no
7357
hardcode_automatic=yes
7358
hardcode_shlibpath_var=unsupported
7359
whole_archive_flag_spec=''
7360
link_all_deplibs=yes
7361
if test "$GCC" = yes ; then
7362
output_verbose_link_cmd='echo'
7363
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7364
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7365
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7366
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}'
7367
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}'
7369
case $cc_basename in
7371
output_verbose_link_cmd='echo'
7372
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7373
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7374
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7375
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}'
7376
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}'
7386
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387
hardcode_libdir_flag_spec='-L$libdir'
7388
hardcode_shlibpath_var=no
7395
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7396
# support. Future versions do this automatically, but an explicit c++rt0.o
7397
# does not break anything, and helps significantly (at the cost of a little
7400
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7401
hardcode_libdir_flag_spec='-R$libdir'
7403
hardcode_shlibpath_var=no
7406
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7408
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7410
hardcode_minus_L=yes
7411
hardcode_shlibpath_var=no
7414
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7415
freebsd* | kfreebsd*-gnu | dragonfly*)
7416
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7417
hardcode_libdir_flag_spec='-R$libdir'
7419
hardcode_shlibpath_var=no
7423
if test "$GCC" = yes; then
7424
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'
7426
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'
7428
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7429
hardcode_libdir_separator=:
7432
# hardcode_minus_L: Not really in the search PATH,
7433
# but as the default location of the library.
7434
hardcode_minus_L=yes
7435
export_dynamic_flag_spec='${wl}-E'
7439
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7440
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7442
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7444
if test "$with_gnu_ld" = no; then
7445
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7446
hardcode_libdir_separator=:
7449
export_dynamic_flag_spec='${wl}-E'
7451
# hardcode_minus_L: Not really in the search PATH,
7452
# but as the default location of the library.
7453
hardcode_minus_L=yes
7458
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7461
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7464
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7467
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7473
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7476
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7479
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7483
if test "$with_gnu_ld" = no; then
7484
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7485
hardcode_libdir_separator=:
7489
hardcode_libdir_flag_spec_ld='+b $libdir'
7491
hardcode_shlibpath_var=no
7495
export_dynamic_flag_spec='${wl}-E'
7497
# hardcode_minus_L: Not really in the search PATH,
7498
# but as the default location of the library.
7499
hardcode_minus_L=yes
7505
irix5* | irix6* | nonstopux*)
7506
if test "$GCC" = yes; then
7507
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'
7509
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'
7510
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7512
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7513
hardcode_libdir_separator=:
7514
link_all_deplibs=yes
7518
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7519
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7521
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7523
hardcode_libdir_flag_spec='-R$libdir'
7525
hardcode_shlibpath_var=no
7529
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7531
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7532
hardcode_libdir_separator=:
7533
hardcode_shlibpath_var=no
7538
hardcode_shlibpath_var=no
7539
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7540
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7541
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7542
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7543
export_dynamic_flag_spec='${wl}-E'
7546
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7547
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7548
hardcode_libdir_flag_spec='-R$libdir'
7551
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7552
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7559
hardcode_libdir_flag_spec='-L$libdir'
7560
hardcode_minus_L=yes
7561
allow_undefined_flag=unsupported
7562
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'
7563
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7567
if test "$GCC" = yes; then
7568
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7569
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'
7571
allow_undefined_flag=' -expect_unresolved \*'
7572
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'
7574
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7575
hardcode_libdir_separator=:
7578
osf4* | osf5*) # as osf3* with the addition of -msym flag
7579
if test "$GCC" = yes; then
7580
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7581
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'
7582
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7584
allow_undefined_flag=' -expect_unresolved \*'
7585
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'
7586
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7587
$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'
7589
# Both c and cxx compiler support -rpath directly
7590
hardcode_libdir_flag_spec='-rpath $libdir'
7592
hardcode_libdir_separator=:
7596
no_undefined_flag=' -z text'
7597
if test "$GCC" = yes; then
7599
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7600
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7601
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7604
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7605
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7606
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7608
hardcode_libdir_flag_spec='-R$libdir'
7609
hardcode_shlibpath_var=no
7611
solaris2.[0-5] | solaris2.[0-5].*) ;;
7613
# The compiler driver will combine linker options so we
7614
# cannot just pass the convience library names through
7615
# without $wl, iff we do not link with $LD.
7616
# Luckily, gcc supports the same syntax we need for Sun Studio.
7617
# Supported since Solaris 2.6 (maybe 2.5.1?)
7620
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7622
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' ;;
7625
link_all_deplibs=yes
7629
if test "x$host_vendor" = xsequent; then
7630
# Use $CC to link under sequent, because it throws in some extra .o
7631
# files that make .init and .fini sections work.
7632
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7634
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7636
hardcode_libdir_flag_spec='-L$libdir'
7638
hardcode_minus_L=yes
7639
hardcode_shlibpath_var=no
7643
case $host_vendor in
7645
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646
hardcode_direct=yes # is this really true???
7649
## LD is ld it makes a PLAMLIB
7650
## CC just makes a GrossModule.
7651
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7652
reload_cmds='$CC -r -o $output$reload_objs'
7656
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7657
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7660
runpath_var='LD_RUN_PATH'
7661
hardcode_shlibpath_var=no
7665
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666
hardcode_shlibpath_var=no
7667
export_dynamic_flag_spec='-Bexport'
7671
if test -d /usr/nec; then
7672
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7673
hardcode_shlibpath_var=no
7674
runpath_var=LD_RUN_PATH
7675
hardcode_runpath_var=yes
7680
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7681
no_undefined_flag='${wl}-z,text'
7682
archive_cmds_need_lc=no
7683
hardcode_shlibpath_var=no
7684
runpath_var='LD_RUN_PATH'
7686
if test "$GCC" = yes; then
7687
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7688
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7690
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7691
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7695
sysv5* | sco3.2v5* | sco5v6*)
7696
# Note: We can NOT use -z defs as we might desire, because we do not
7697
# link with -lc, and that would cause any symbols used from libc to
7698
# always be unresolved, which means just about no library would
7699
# ever link correctly. If we're not using GNU ld we use -z text
7700
# though, which does catch some bad symbols but isn't as heavy-handed
7702
no_undefined_flag='${wl}-z,text'
7703
allow_undefined_flag='${wl}-z,nodefs'
7704
archive_cmds_need_lc=no
7705
hardcode_shlibpath_var=no
7706
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7707
hardcode_libdir_separator=':'
7708
link_all_deplibs=yes
7709
export_dynamic_flag_spec='${wl}-Bexport'
7710
runpath_var='LD_RUN_PATH'
7712
if test "$GCC" = yes; then
7713
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7714
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7716
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7717
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7723
hardcode_libdir_flag_spec='-L$libdir'
7724
hardcode_shlibpath_var=no
7733
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7734
echo "${ECHO_T}$ld_shlibs" >&6
7735
test "$ld_shlibs" = no && can_build_shared=no
7738
# Do we need to explicitly link libc?
7740
case "x$archive_cmds_need_lc" in
7742
# Assume -lc should be added
7743
archive_cmds_need_lc=yes
7745
if test "$enable_shared" = yes && test "$GCC" = yes; then
7746
case $archive_cmds in
7748
# FIXME: we may have to deal with multi-command sequences.
7751
# Test whether the compiler implicitly links with -lc since on some
7752
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7753
# to ld, don't add -lc before -lgcc.
7754
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7755
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7757
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7759
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760
(eval $ac_compile) 2>&5
7762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763
(exit $ac_status); } 2>conftest.err; then
7766
libobjs=conftest.$ac_objext
7768
wl=$lt_prog_compiler_wl
7769
pic_flag=$lt_prog_compiler_pic
7775
lt_save_allow_undefined_flag=$allow_undefined_flag
7776
allow_undefined_flag=
7777
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7778
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781
(exit $ac_status); }
7783
archive_cmds_need_lc=no
7785
archive_cmds_need_lc=yes
7787
allow_undefined_flag=$lt_save_allow_undefined_flag
7789
cat conftest.err 1>&5
7792
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7793
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7800
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7801
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7803
libname_spec='lib$name'
7811
shlibpath_overrides_runpath=unknown
7813
dynamic_linker="$host_os ld.so"
7814
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7815
if test "$GCC" = yes; then
7816
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7817
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7818
# if the path contains ";" then we assume it to be the separator
7819
# otherwise default to the standard path separator (i.e. ":") - it is
7820
# assumed that no part of a normal pathname contains ";" but that should
7821
# okay in the real world where ";" in dirpaths is itself problematic.
7822
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7824
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7827
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7829
need_lib_prefix=unknown
7830
hardcode_into_libs=no
7832
# when you set need_version to no, make sure it does not cause -set_version
7833
# flags to be left without arguments
7834
need_version=unknown
7839
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7840
shlibpath_var=LIBPATH
7842
# AIX 3 has no versioning support, so we append a major version to the name.
7843
soname_spec='${libname}${release}${shared_ext}$major'
7850
hardcode_into_libs=yes
7851
if test "$host_cpu" = ia64; then
7852
# AIX 5 supports IA64
7853
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7854
shlibpath_var=LD_LIBRARY_PATH
7856
# With GCC up to 2.95.x, collect2 would create an import file
7857
# for dependence libraries. The import file would start with
7858
# the line `#! .'. This would cause the generated library to
7859
# depend on `.', always an invalid library. This was fixed in
7860
# development snapshots of GCC prior to 3.0.
7862
aix4 | aix4.[01] | aix4.[01].*)
7863
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7865
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7872
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7873
# soname into executable. Probably we can add versioning support to
7874
# collect2, so additional links can be useful in future.
7875
if test "$aix_use_runtimelinking" = yes; then
7876
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7877
# instead of lib<name>.a to let people know that these are not
7878
# typical AIX shared libraries.
7879
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881
# We preserve .a as extension for shared libraries through AIX4.2
7882
# and later when we are not doing run time linking.
7883
library_names_spec='${libname}${release}.a $libname.a'
7884
soname_spec='${libname}${release}${shared_ext}$major'
7886
shlibpath_var=LIBPATH
7891
library_names_spec='$libname.ixlibrary $libname.a'
7892
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7893
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'
7897
library_names_spec='${libname}${shared_ext}'
7898
dynamic_linker="$host_os ld.so"
7899
shlibpath_var=LIBRARY_PATH
7905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906
soname_spec='${libname}${release}${shared_ext}$major'
7907
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7908
shlibpath_var=LD_LIBRARY_PATH
7909
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7910
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7911
# the default ld.so.conf also contains /usr/contrib/lib and
7912
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7913
# libtool to hard-code these into programs
7916
cygwin* | mingw* | pw32*)
7917
version_type=windows
7922
case $GCC,$host_os in
7923
yes,cygwin* | yes,mingw* | yes,pw32*)
7924
library_names_spec='$libname.dll.a'
7925
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7926
postinstall_cmds='base_file=`basename \${file}`~
7927
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7928
dldir=$destdir/`dirname \$dlpath`~
7929
test -d \$dldir || mkdir -p \$dldir~
7930
$install_prog $dir/$dlname \$dldir/$dlname~
7931
chmod a+x \$dldir/$dlname'
7932
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7933
dlpath=$dir/\$dldll~
7935
shlibpath_overrides_runpath=yes
7939
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7940
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7941
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7944
# MinGW DLLs use traditional 'lib' prefix
7945
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7946
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7947
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7948
# It is most probably a Windows format PATH printed by
7949
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7950
# path with ; separators, and with drive letters. We can handle the
7951
# drive letters (cygwin fileutils understands them), so leave them,
7952
# especially as we might pass files found there to a mingw objdump,
7953
# which wouldn't understand a cygwinified path. Ahh.
7954
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7956
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7960
# pw32 DLLs use 'pw' prefix rather than 'lib'
7961
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7967
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7970
dynamic_linker='Win32 ld.exe'
7971
# FIXME: first we should search . and the directory the executable is in
7975
darwin* | rhapsody*)
7976
dynamic_linker="$host_os dyld"
7980
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7981
soname_spec='${libname}${release}${major}$shared_ext'
7982
shlibpath_overrides_runpath=yes
7983
shlibpath_var=DYLD_LIBRARY_PATH
7984
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7985
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7986
if test "$GCC" = yes; then
7987
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"`
7989
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7991
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7999
soname_spec='${libname}${release}${shared_ext}$major'
8000
shlibpath_var=LD_LIBRARY_PATH
8011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8012
soname_spec='${libname}${release}${shared_ext}$major'
8013
shlibpath_var=LD_LIBRARY_PATH
8014
shlibpath_overrides_runpath=no
8015
hardcode_into_libs=yes
8016
dynamic_linker='GNU ld.so'
8019
freebsd* | dragonfly*)
8020
# DragonFly does not have aout. When/if they implement a new
8021
# versioning mechanism, adjust this.
8022
if test -x /usr/bin/objformat; then
8023
objformat=`/usr/bin/objformat`
8026
freebsd[123]*) objformat=aout ;;
8030
version_type=freebsd-$objformat
8031
case $version_type in
8033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8038
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8042
shlibpath_var=LD_LIBRARY_PATH
8045
shlibpath_overrides_runpath=yes
8047
freebsd3.[01]* | freebsdelf3.[01]*)
8048
shlibpath_overrides_runpath=yes
8049
hardcode_into_libs=yes
8051
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8052
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8053
shlibpath_overrides_runpath=no
8054
hardcode_into_libs=yes
8056
freebsd*) # from 4.6 on
8057
shlibpath_overrides_runpath=yes
8058
hardcode_into_libs=yes
8067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8068
soname_spec='${libname}${release}${shared_ext}$major'
8069
shlibpath_var=LD_LIBRARY_PATH
8070
hardcode_into_libs=yes
8073
hpux9* | hpux10* | hpux11*)
8074
# Give a soname corresponding to the major version so that dld.sl refuses to
8075
# link against other versions.
8082
hardcode_into_libs=yes
8083
dynamic_linker="$host_os dld.so"
8084
shlibpath_var=LD_LIBRARY_PATH
8085
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087
soname_spec='${libname}${release}${shared_ext}$major'
8088
if test "X$HPUX_IA64_MODE" = X32; then
8089
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8091
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8093
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8097
hardcode_into_libs=yes
8098
dynamic_linker="$host_os dld.sl"
8099
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8100
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8102
soname_spec='${libname}${release}${shared_ext}$major'
8103
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8104
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8108
dynamic_linker="$host_os dld.sl"
8109
shlibpath_var=SHLIB_PATH
8110
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112
soname_spec='${libname}${release}${shared_ext}$major'
8115
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8116
postinstall_cmds='chmod 555 $lib'
8123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8124
soname_spec='${libname}${release}${shared_ext}$major'
8125
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8126
shlibpath_var=LD_LIBRARY_PATH
8127
shlibpath_overrides_runpath=no
8128
hardcode_into_libs=yes
8131
irix5* | irix6* | nonstopux*)
8133
nonstopux*) version_type=nonstopux ;;
8135
if test "$lt_cv_prog_gnu_ld" = yes; then
8143
soname_spec='${libname}${release}${shared_ext}$major'
8144
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8146
irix5* | nonstopux*)
8150
case $LD in # libtool.m4 will add one of these switches to LD
8151
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8152
libsuff= shlibsuff= libmagic=32-bit;;
8153
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8154
libsuff=32 shlibsuff=N32 libmagic=N32;;
8155
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8156
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8157
*) libsuff= shlibsuff= libmagic=never-match;;
8161
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8162
shlibpath_overrides_runpath=no
8163
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8164
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8165
hardcode_into_libs=yes
8168
# No shared lib support for Linux oldld, aout, or coff.
8169
linux*oldld* | linux*aout* | linux*coff*)
8173
# This must be Linux ELF.
8178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8179
soname_spec='${libname}${release}${shared_ext}$major'
8180
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8181
shlibpath_var=LD_LIBRARY_PATH
8182
shlibpath_overrides_runpath=no
8183
# This implies no fast_install, which is unacceptable.
8184
# Some rework will be needed to allow for fast_install
8185
# before this can be enabled.
8186
hardcode_into_libs=yes
8188
# find out which ABI we are using
8191
x86_64*|s390x*|powerpc64*)
8192
echo '#line 8192 "configure"' > conftest.$ac_ext
8193
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194
(eval $ac_compile) 2>&5
8196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197
(exit $ac_status); }; then
8198
case `/usr/bin/file conftest.$ac_objext` in
8201
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8209
# Append ld.so.conf contents to the search path
8210
if test -f /etc/ld.so.conf; then
8211
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8212
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8215
# We used to test for /lib/ld.so.1 and disable shared libraries on
8216
# powerpc, because MkLinux only supported shared libraries with the
8217
# GNU dynamic linker. Since this was broken with cross compilers,
8218
# most powerpc-linux boxes support dynamic linking these days and
8219
# people can always --disable-shared, the test was removed, and we
8220
# assume the GNU/Linux dynamic linker is in use.
8221
dynamic_linker='GNU/Linux ld.so'
8228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8229
soname_spec='${libname}${release}${shared_ext}$major'
8230
shlibpath_var=LD_LIBRARY_PATH
8231
shlibpath_overrides_runpath=no
8232
hardcode_into_libs=yes
8233
dynamic_linker='GNU ld.so'
8240
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8242
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8243
dynamic_linker='NetBSD (a.out) ld.so'
8245
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8246
soname_spec='${libname}${release}${shared_ext}$major'
8247
dynamic_linker='NetBSD ld.elf_so'
8249
shlibpath_var=LD_LIBRARY_PATH
8250
shlibpath_overrides_runpath=yes
8251
hardcode_into_libs=yes
8256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8257
shlibpath_var=LD_LIBRARY_PATH
8258
shlibpath_overrides_runpath=yes
8265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8266
soname_spec='${libname}${release}${shared_ext}$major'
8267
shlibpath_var=LD_LIBRARY_PATH
8268
shlibpath_overrides_runpath=yes
8273
sys_lib_dlsearch_path_spec="/usr/lib"
8275
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8277
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8278
*) need_version=no ;;
8280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8281
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8282
shlibpath_var=LD_LIBRARY_PATH
8283
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8285
openbsd2.[89] | openbsd2.[89].*)
8286
shlibpath_overrides_runpath=no
8289
shlibpath_overrides_runpath=yes
8293
shlibpath_overrides_runpath=yes
8298
libname_spec='$name'
8301
library_names_spec='$libname${shared_ext} $libname.a'
8302
dynamic_linker='OS/2 ld.exe'
8303
shlibpath_var=LIBPATH
8306
osf3* | osf4* | osf5*)
8310
soname_spec='${libname}${release}${shared_ext}$major'
8311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8312
shlibpath_var=LD_LIBRARY_PATH
8313
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8314
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8322
soname_spec='${libname}${release}${shared_ext}$major'
8323
shlibpath_var=LD_LIBRARY_PATH
8324
shlibpath_overrides_runpath=yes
8325
hardcode_into_libs=yes
8326
# ldd complains unless libraries are executable
8327
postinstall_cmds='chmod +x $lib'
8332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8333
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8334
shlibpath_var=LD_LIBRARY_PATH
8335
shlibpath_overrides_runpath=yes
8336
if test "$with_gnu_ld" = yes; then
8344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8345
soname_spec='${libname}${release}${shared_ext}$major'
8346
shlibpath_var=LD_LIBRARY_PATH
8347
case $host_vendor in
8349
shlibpath_overrides_runpath=no
8351
export_dynamic_flag_spec='${wl}-Blargedynsym'
8352
runpath_var=LD_RUN_PATH
8360
shlibpath_overrides_runpath=no
8361
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8367
if test -d /usr/nec ;then
8369
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8370
soname_spec='$libname${shared_ext}.$major'
8371
shlibpath_var=LD_LIBRARY_PATH
8375
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8376
version_type=freebsd-elf
8379
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8380
soname_spec='${libname}${release}${shared_ext}$major'
8381
shlibpath_var=LD_LIBRARY_PATH
8382
hardcode_into_libs=yes
8383
if test "$with_gnu_ld" = yes; then
8384
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8385
shlibpath_overrides_runpath=no
8387
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8388
shlibpath_overrides_runpath=yes
8391
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8395
sys_lib_dlsearch_path_spec='/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
8409
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8410
echo "${ECHO_T}$dynamic_linker" >&6
8411
test "$dynamic_linker" = no && can_build_shared=no
8413
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8414
if test "$GCC" = yes; then
8415
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8418
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8419
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8421
if test -n "$hardcode_libdir_flag_spec" || \
8422
test -n "$runpath_var" || \
8423
test "X$hardcode_automatic" = "Xyes" ; then
8425
# We can hardcode non-existant directories.
8426
if test "$hardcode_direct" != no &&
8427
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8428
# have to relink, otherwise we might link with an installed library
8429
# when we should be linking with a yet-to-be-installed one
8430
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8431
test "$hardcode_minus_L" != no; then
8432
# Linking always hardcodes the temporary library directory.
8433
hardcode_action=relink
8435
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8436
hardcode_action=immediate
8439
# We cannot hardcode anything, or else we can only hardcode existing
8441
hardcode_action=unsupported
8443
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8444
echo "${ECHO_T}$hardcode_action" >&6
8446
if test "$hardcode_action" = relink; then
8447
# Fast installation is not supported
8448
enable_fast_install=no
8449
elif test "$shlibpath_overrides_runpath" = yes ||
8450
test "$enable_shared" = no; then
8451
# Fast installation is not necessary
8452
enable_fast_install=needless
8457
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8458
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8459
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8460
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8461
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8462
echo "$as_me:$LINENO: result: yes" >&5
8463
echo "${ECHO_T}yes" >&6
8465
# FIXME - insert some real tests, host_os isn't really good enough
8468
if test -n "$STRIP" ; then
8469
striplib="$STRIP -x"
8470
echo "$as_me:$LINENO: result: yes" >&5
8471
echo "${ECHO_T}yes" >&6
8473
echo "$as_me:$LINENO: result: no" >&5
8474
echo "${ECHO_T}no" >&6
8478
echo "$as_me:$LINENO: result: no" >&5
8479
echo "${ECHO_T}no" >&6
8484
if test "x$enable_dlopen" != xyes; then
8485
enable_dlopen=unknown
8486
enable_dlopen_self=unknown
8487
enable_dlopen_self_static=unknown
8494
lt_cv_dlopen="load_add_on"
8496
lt_cv_dlopen_self=yes
8500
lt_cv_dlopen="LoadLibrary"
8505
lt_cv_dlopen="dlopen"
8510
# if libdl is installed we need to link against it
8511
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8512
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8513
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8514
echo $ECHO_N "(cached) $ECHO_C" >&6
8516
ac_check_lib_save_LIBS=$LIBS
8518
cat >conftest.$ac_ext <<_ACEOF
8521
cat confdefs.h >>conftest.$ac_ext
8522
cat >>conftest.$ac_ext <<_ACEOF
8523
/* end confdefs.h. */
8525
/* Override any gcc2 internal prototype to avoid an error. */
8529
/* We use char because int might match the return type of a gcc2
8530
builtin and then its argument prototype would still apply. */
8540
rm -f conftest.$ac_objext conftest$ac_exeext
8541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542
(eval $ac_link) 2>conftest.er1
8544
grep -v '^ *+' conftest.er1 >conftest.err
8546
cat conftest.err >&5
8547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548
(exit $ac_status); } &&
8549
{ ac_try='test -z "$ac_c_werror_flag"
8550
|| test ! -s conftest.err'
8551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555
(exit $ac_status); }; } &&
8556
{ ac_try='test -s conftest$ac_exeext'
8557
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561
(exit $ac_status); }; }; then
8562
ac_cv_lib_dl_dlopen=yes
8564
echo "$as_me: failed program was:" >&5
8565
sed 's/^/| /' conftest.$ac_ext >&5
8567
ac_cv_lib_dl_dlopen=no
8569
rm -f conftest.err conftest.$ac_objext \
8570
conftest$ac_exeext conftest.$ac_ext
8571
LIBS=$ac_check_lib_save_LIBS
8573
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8574
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8575
if test $ac_cv_lib_dl_dlopen = yes; then
8576
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8581
lt_cv_dlopen_self=yes
8588
echo "$as_me:$LINENO: checking for shl_load" >&5
8589
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8590
if test "${ac_cv_func_shl_load+set}" = set; then
8591
echo $ECHO_N "(cached) $ECHO_C" >&6
8593
cat >conftest.$ac_ext <<_ACEOF
8596
cat confdefs.h >>conftest.$ac_ext
8597
cat >>conftest.$ac_ext <<_ACEOF
8598
/* end confdefs.h. */
8599
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8600
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8601
#define shl_load innocuous_shl_load
8603
/* System header to define __stub macros and hopefully few prototypes,
8604
which can conflict with char shl_load (); below.
8605
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8606
<limits.h> exists even on freestanding compilers. */
8609
# include <limits.h>
8611
# include <assert.h>
8616
/* Override any gcc2 internal prototype to avoid an error. */
8621
/* We use char because int might match the return type of a gcc2
8622
builtin and then its argument prototype would still apply. */
8624
/* The GNU C library defines this for functions which it implements
8625
to always fail with ENOSYS. Some functions are actually named
8626
something starting with __ and the normal name is an alias. */
8627
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8630
char (*f) () = shl_load;
8639
return f != shl_load;
8644
rm -f conftest.$ac_objext conftest$ac_exeext
8645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646
(eval $ac_link) 2>conftest.er1
8648
grep -v '^ *+' conftest.er1 >conftest.err
8650
cat conftest.err >&5
8651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652
(exit $ac_status); } &&
8653
{ ac_try='test -z "$ac_c_werror_flag"
8654
|| test ! -s conftest.err'
8655
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659
(exit $ac_status); }; } &&
8660
{ ac_try='test -s conftest$ac_exeext'
8661
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665
(exit $ac_status); }; }; then
8666
ac_cv_func_shl_load=yes
8668
echo "$as_me: failed program was:" >&5
8669
sed 's/^/| /' conftest.$ac_ext >&5
8671
ac_cv_func_shl_load=no
8673
rm -f conftest.err conftest.$ac_objext \
8674
conftest$ac_exeext conftest.$ac_ext
8676
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8677
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8678
if test $ac_cv_func_shl_load = yes; then
8679
lt_cv_dlopen="shl_load"
8681
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8682
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8683
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8684
echo $ECHO_N "(cached) $ECHO_C" >&6
8686
ac_check_lib_save_LIBS=$LIBS
8688
cat >conftest.$ac_ext <<_ACEOF
8691
cat confdefs.h >>conftest.$ac_ext
8692
cat >>conftest.$ac_ext <<_ACEOF
8693
/* end confdefs.h. */
8695
/* Override any gcc2 internal prototype to avoid an error. */
8699
/* We use char because int might match the return type of a gcc2
8700
builtin and then its argument prototype would still apply. */
8710
rm -f conftest.$ac_objext conftest$ac_exeext
8711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712
(eval $ac_link) 2>conftest.er1
8714
grep -v '^ *+' conftest.er1 >conftest.err
8716
cat conftest.err >&5
8717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718
(exit $ac_status); } &&
8719
{ ac_try='test -z "$ac_c_werror_flag"
8720
|| test ! -s conftest.err'
8721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725
(exit $ac_status); }; } &&
8726
{ ac_try='test -s conftest$ac_exeext'
8727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731
(exit $ac_status); }; }; then
8732
ac_cv_lib_dld_shl_load=yes
8734
echo "$as_me: failed program was:" >&5
8735
sed 's/^/| /' conftest.$ac_ext >&5
8737
ac_cv_lib_dld_shl_load=no
8739
rm -f conftest.err conftest.$ac_objext \
8740
conftest$ac_exeext conftest.$ac_ext
8741
LIBS=$ac_check_lib_save_LIBS
8743
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8744
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8745
if test $ac_cv_lib_dld_shl_load = yes; then
8746
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8748
echo "$as_me:$LINENO: checking for dlopen" >&5
8749
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8750
if test "${ac_cv_func_dlopen+set}" = set; then
8751
echo $ECHO_N "(cached) $ECHO_C" >&6
8753
cat >conftest.$ac_ext <<_ACEOF
8756
cat confdefs.h >>conftest.$ac_ext
8757
cat >>conftest.$ac_ext <<_ACEOF
8758
/* end confdefs.h. */
8759
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8760
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8761
#define dlopen innocuous_dlopen
8763
/* System header to define __stub macros and hopefully few prototypes,
8764
which can conflict with char dlopen (); below.
8765
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8766
<limits.h> exists even on freestanding compilers. */
8769
# include <limits.h>
8771
# include <assert.h>
8776
/* Override any gcc2 internal prototype to avoid an error. */
8781
/* We use char because int might match the return type of a gcc2
8782
builtin and then its argument prototype would still apply. */
8784
/* The GNU C library defines this for functions which it implements
8785
to always fail with ENOSYS. Some functions are actually named
8786
something starting with __ and the normal name is an alias. */
8787
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8790
char (*f) () = dlopen;
8804
rm -f conftest.$ac_objext conftest$ac_exeext
8805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806
(eval $ac_link) 2>conftest.er1
8808
grep -v '^ *+' conftest.er1 >conftest.err
8810
cat conftest.err >&5
8811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812
(exit $ac_status); } &&
8813
{ ac_try='test -z "$ac_c_werror_flag"
8814
|| test ! -s conftest.err'
8815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819
(exit $ac_status); }; } &&
8820
{ ac_try='test -s conftest$ac_exeext'
8821
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825
(exit $ac_status); }; }; then
8826
ac_cv_func_dlopen=yes
8828
echo "$as_me: failed program was:" >&5
8829
sed 's/^/| /' conftest.$ac_ext >&5
8831
ac_cv_func_dlopen=no
8833
rm -f conftest.err conftest.$ac_objext \
8834
conftest$ac_exeext conftest.$ac_ext
8836
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8837
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8838
if test $ac_cv_func_dlopen = yes; then
8839
lt_cv_dlopen="dlopen"
8841
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8842
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8843
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8844
echo $ECHO_N "(cached) $ECHO_C" >&6
8846
ac_check_lib_save_LIBS=$LIBS
8848
cat >conftest.$ac_ext <<_ACEOF
8851
cat confdefs.h >>conftest.$ac_ext
8852
cat >>conftest.$ac_ext <<_ACEOF
8853
/* end confdefs.h. */
8855
/* Override any gcc2 internal prototype to avoid an error. */
8859
/* We use char because int might match the return type of a gcc2
8860
builtin and then its argument prototype would still apply. */
8870
rm -f conftest.$ac_objext conftest$ac_exeext
8871
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872
(eval $ac_link) 2>conftest.er1
8874
grep -v '^ *+' conftest.er1 >conftest.err
8876
cat conftest.err >&5
8877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878
(exit $ac_status); } &&
8879
{ ac_try='test -z "$ac_c_werror_flag"
8880
|| test ! -s conftest.err'
8881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885
(exit $ac_status); }; } &&
8886
{ ac_try='test -s conftest$ac_exeext'
8887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891
(exit $ac_status); }; }; then
8892
ac_cv_lib_dl_dlopen=yes
8894
echo "$as_me: failed program was:" >&5
8895
sed 's/^/| /' conftest.$ac_ext >&5
8897
ac_cv_lib_dl_dlopen=no
8899
rm -f conftest.err conftest.$ac_objext \
8900
conftest$ac_exeext conftest.$ac_ext
8901
LIBS=$ac_check_lib_save_LIBS
8903
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8904
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8905
if test $ac_cv_lib_dl_dlopen = yes; then
8906
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8908
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8909
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8910
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8911
echo $ECHO_N "(cached) $ECHO_C" >&6
8913
ac_check_lib_save_LIBS=$LIBS
8915
cat >conftest.$ac_ext <<_ACEOF
8918
cat confdefs.h >>conftest.$ac_ext
8919
cat >>conftest.$ac_ext <<_ACEOF
8920
/* end confdefs.h. */
8922
/* Override any gcc2 internal prototype to avoid an error. */
8926
/* We use char because int might match the return type of a gcc2
8927
builtin and then its argument prototype would still apply. */
8937
rm -f conftest.$ac_objext conftest$ac_exeext
8938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939
(eval $ac_link) 2>conftest.er1
8941
grep -v '^ *+' conftest.er1 >conftest.err
8943
cat conftest.err >&5
8944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945
(exit $ac_status); } &&
8946
{ ac_try='test -z "$ac_c_werror_flag"
8947
|| test ! -s conftest.err'
8948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952
(exit $ac_status); }; } &&
8953
{ ac_try='test -s conftest$ac_exeext'
8954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958
(exit $ac_status); }; }; then
8959
ac_cv_lib_svld_dlopen=yes
8961
echo "$as_me: failed program was:" >&5
8962
sed 's/^/| /' conftest.$ac_ext >&5
8964
ac_cv_lib_svld_dlopen=no
8966
rm -f conftest.err conftest.$ac_objext \
8967
conftest$ac_exeext conftest.$ac_ext
8968
LIBS=$ac_check_lib_save_LIBS
8970
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8971
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8972
if test $ac_cv_lib_svld_dlopen = yes; then
8973
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8975
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8976
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8977
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8978
echo $ECHO_N "(cached) $ECHO_C" >&6
8980
ac_check_lib_save_LIBS=$LIBS
8982
cat >conftest.$ac_ext <<_ACEOF
8985
cat confdefs.h >>conftest.$ac_ext
8986
cat >>conftest.$ac_ext <<_ACEOF
8987
/* end confdefs.h. */
8989
/* Override any gcc2 internal prototype to avoid an error. */
8993
/* We use char because int might match the return type of a gcc2
8994
builtin and then its argument prototype would still apply. */
9004
rm -f conftest.$ac_objext conftest$ac_exeext
9005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006
(eval $ac_link) 2>conftest.er1
9008
grep -v '^ *+' conftest.er1 >conftest.err
9010
cat conftest.err >&5
9011
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012
(exit $ac_status); } &&
9013
{ ac_try='test -z "$ac_c_werror_flag"
9014
|| test ! -s conftest.err'
9015
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019
(exit $ac_status); }; } &&
9020
{ ac_try='test -s conftest$ac_exeext'
9021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025
(exit $ac_status); }; }; then
9026
ac_cv_lib_dld_dld_link=yes
9028
echo "$as_me: failed program was:" >&5
9029
sed 's/^/| /' conftest.$ac_ext >&5
9031
ac_cv_lib_dld_dld_link=no
9033
rm -f conftest.err conftest.$ac_objext \
9034
conftest$ac_exeext conftest.$ac_ext
9035
LIBS=$ac_check_lib_save_LIBS
9037
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9038
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9039
if test $ac_cv_lib_dld_dld_link = yes; then
9040
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9061
if test "x$lt_cv_dlopen" != xno; then
9067
case $lt_cv_dlopen in
9069
save_CPPFLAGS="$CPPFLAGS"
9070
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9072
save_LDFLAGS="$LDFLAGS"
9073
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9076
LIBS="$lt_cv_dlopen_libs $LIBS"
9078
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9079
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9080
if test "${lt_cv_dlopen_self+set}" = set; then
9081
echo $ECHO_N "(cached) $ECHO_C" >&6
9083
if test "$cross_compiling" = yes; then :
9084
lt_cv_dlopen_self=cross
9086
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9087
lt_status=$lt_dlunknown
9088
cat > conftest.$ac_ext <<EOF
9089
#line 9089 "configure"
9090
#include "confdefs.h"
9099
# define LT_DLGLOBAL RTLD_GLOBAL
9102
# define LT_DLGLOBAL DL_GLOBAL
9104
# define LT_DLGLOBAL 0
9108
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9109
find out it does not work in some platform. */
9110
#ifndef LT_DLLAZY_OR_NOW
9112
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9115
# define LT_DLLAZY_OR_NOW DL_LAZY
9118
# define LT_DLLAZY_OR_NOW RTLD_NOW
9121
# define LT_DLLAZY_OR_NOW DL_NOW
9123
# define LT_DLLAZY_OR_NOW 0
9131
extern "C" void exit (int);
9134
void fnord() { int i=42;}
9137
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9138
int status = $lt_dlunknown;
9142
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9143
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9144
/* dlclose (self); */
9152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153
(eval $ac_link) 2>&5
9155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9157
(./conftest; exit; ) >&5 2>/dev/null
9160
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9161
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9162
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9165
# compilation failed
9166
lt_cv_dlopen_self=no
9173
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9174
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9176
if test "x$lt_cv_dlopen_self" = xyes; then
9177
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9178
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9179
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9180
if test "${lt_cv_dlopen_self_static+set}" = set; then
9181
echo $ECHO_N "(cached) $ECHO_C" >&6
9183
if test "$cross_compiling" = yes; then :
9184
lt_cv_dlopen_self_static=cross
9186
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9187
lt_status=$lt_dlunknown
9188
cat > conftest.$ac_ext <<EOF
9189
#line 9189 "configure"
9190
#include "confdefs.h"
9199
# define LT_DLGLOBAL RTLD_GLOBAL
9202
# define LT_DLGLOBAL DL_GLOBAL
9204
# define LT_DLGLOBAL 0
9208
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9209
find out it does not work in some platform. */
9210
#ifndef LT_DLLAZY_OR_NOW
9212
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9215
# define LT_DLLAZY_OR_NOW DL_LAZY
9218
# define LT_DLLAZY_OR_NOW RTLD_NOW
9221
# define LT_DLLAZY_OR_NOW DL_NOW
9223
# define LT_DLLAZY_OR_NOW 0
9231
extern "C" void exit (int);
9234
void fnord() { int i=42;}
9237
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9238
int status = $lt_dlunknown;
9242
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9243
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9244
/* dlclose (self); */
9252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253
(eval $ac_link) 2>&5
9255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9257
(./conftest; exit; ) >&5 2>/dev/null
9260
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9261
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9262
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9265
# compilation failed
9266
lt_cv_dlopen_self_static=no
9273
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9274
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9277
CPPFLAGS="$save_CPPFLAGS"
9278
LDFLAGS="$save_LDFLAGS"
9283
case $lt_cv_dlopen_self in
9284
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9285
*) enable_dlopen_self=unknown ;;
9288
case $lt_cv_dlopen_self_static in
9289
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9290
*) enable_dlopen_self_static=unknown ;;
9295
# Report which library types will actually be built
9296
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9297
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9298
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9299
echo "${ECHO_T}$can_build_shared" >&6
9301
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9302
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9303
test "$can_build_shared" = "no" && enable_shared=no
9305
# On AIX, shared libraries and static libraries use the same namespace, and
9306
# are all built from PIC.
9309
test "$enable_shared" = yes && enable_static=no
9310
if test -n "$RANLIB"; then
9311
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9312
postinstall_cmds='$RANLIB $lib'
9317
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9318
test "$enable_shared" = yes && enable_static=no
9322
echo "$as_me:$LINENO: result: $enable_shared" >&5
9323
echo "${ECHO_T}$enable_shared" >&6
9325
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9326
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9327
# Make sure either enable_shared or enable_static is yes.
9328
test "$enable_shared" = yes || enable_static=yes
9329
echo "$as_me:$LINENO: result: $enable_static" >&5
9330
echo "${ECHO_T}$enable_static" >&6
9332
# The else clause should only fire when bootstrapping the
9333
# libtool distribution, otherwise you forgot to ship ltmain.sh
9334
# with your package, and you will get complaints that there are
9335
# no rules to generate ltmain.sh.
9336
if test -f "$ltmain"; then
9337
# See if we are running on zsh, and set the options which allow our commands through
9338
# without removal of \ escapes.
9339
if test -n "${ZSH_VERSION+set}" ; then
9340
setopt NO_GLOB_SUBST
9342
# Now quote all the things that may contain metacharacters while being
9343
# careful not to overquote the AC_SUBSTed values. We take copies of the
9344
# variables and quote the copies for generation of the libtool script.
9345
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9347
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9348
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9349
deplibs_check_method reload_flag reload_cmds need_locks \
9350
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9351
lt_cv_sys_global_symbol_to_c_name_address \
9352
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9353
old_postinstall_cmds old_postuninstall_cmds \
9357
lt_prog_compiler_wl \
9358
lt_prog_compiler_pic \
9359
lt_prog_compiler_static \
9360
lt_prog_compiler_no_builtin_flag \
9361
export_dynamic_flag_spec \
9362
thread_safe_flag_spec \
9363
whole_archive_flag_spec \
9364
enable_shared_with_static_runtimes \
9366
old_archive_from_new_cmds \
9371
compiler_lib_search_path \
9373
archive_expsym_cmds \
9375
postuninstall_cmds \
9376
old_archive_from_expsyms_cmds \
9377
allow_undefined_flag \
9379
export_symbols_cmds \
9380
hardcode_libdir_flag_spec \
9381
hardcode_libdir_flag_spec_ld \
9382
hardcode_libdir_separator \
9383
hardcode_automatic \
9385
module_expsym_cmds \
9386
lt_cv_prog_compiler_c_o \
9391
old_archive_cmds | \
9392
old_archive_from_new_cmds | \
9394
archive_expsym_cmds | \
9396
module_expsym_cmds | \
9397
old_archive_from_expsyms_cmds | \
9398
export_symbols_cmds | \
9399
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9400
postinstall_cmds | postuninstall_cmds | \
9401
old_postinstall_cmds | old_postuninstall_cmds | \
9402
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9403
# Double-quote double-evaled strings.
9404
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9407
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9413
*'\$0 --fallback-echo"')
9414
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9419
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9421
{ echo "$as_me:$LINENO: creating $ofile" >&5
9422
echo "$as_me: creating $ofile" >&6;}
9424
cat <<__EOF__ >> "$cfgfile"
9427
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9428
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9429
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9431
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9432
# Free Software Foundation, Inc.
9434
# This file is part of GNU Libtool:
9435
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9437
# This program is free software; you can redistribute it and/or modify
9438
# it under the terms of the GNU General Public License as published by
9439
# the Free Software Foundation; either version 2 of the License, or
9440
# (at your option) any later version.
9442
# This program is distributed in the hope that it will be useful, but
9443
# WITHOUT ANY WARRANTY; without even the implied warranty of
9444
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9445
# General Public License for more details.
9447
# You should have received a copy of the GNU General Public License
9448
# along with this program; if not, write to the Free Software
9449
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9451
# As a special exception to the GNU General Public License, if you
9452
# distribute this file as part of a program that contains a
9453
# configuration script generated by Autoconf, you may include it under
9454
# the same distribution terms that you use for the rest of that program.
9456
# A sed program that does not truncate output.
9459
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9460
Xsed="$SED -e 1s/^X//"
9462
# The HP-UX ksh and POSIX shell print the target directory to stdout
9464
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9466
# The names of the tagged configurations supported by this script.
9469
# ### BEGIN LIBTOOL CONFIG
9471
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9473
# Shell to use when invoking shell scripts.
9476
# Whether or not to build shared libraries.
9477
build_libtool_libs=$enable_shared
9479
# Whether or not to build static libraries.
9480
build_old_libs=$enable_static
9482
# Whether or not to add -lc for building shared libraries.
9483
build_libtool_need_lc=$archive_cmds_need_lc
9485
# Whether or not to disallow shared libs when runtime libs are static
9486
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9488
# Whether or not to optimize for fast installation.
9489
fast_install=$enable_fast_install
9492
host_alias=$host_alias
9497
build_alias=$build_alias
9501
# An echo program that does not interpret backslashes.
9506
AR_FLAGS=$lt_AR_FLAGS
9511
# LTCC compiler flags.
9512
LTCFLAGS=$lt_LTCFLAGS
9514
# A language-specific compiler.
9517
# Is the compiler the GNU C compiler?
9520
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9521
gcc_ver=\`gcc -dumpversion\`
9526
# The linker used to build libraries.
9529
# Whether we need hard or soft links.
9532
# A BSD-compatible nm program.
9535
# A symbol stripping program
9538
# Used to examine libraries when file_magic_cmd begins "file"
9539
MAGIC_CMD=$MAGIC_CMD
9541
# Used on cygwin: DLL creation program.
9544
# Used on cygwin: object dumper.
9547
# Used on cygwin: assembler.
9550
# The name of the directory that contains temporary libtool files.
9553
# How to create reloadable object files.
9554
reload_flag=$lt_reload_flag
9555
reload_cmds=$lt_reload_cmds
9557
# How to pass a linker flag through the compiler.
9558
wl=$lt_lt_prog_compiler_wl
9560
# Object file suffix (normally "o").
9563
# Old archive suffix (normally "a").
9566
# Shared library suffix (normally ".so").
9567
shrext_cmds='$shrext_cmds'
9569
# Executable file suffix (normally "").
9572
# Additional compiler flags for building library objects.
9573
pic_flag=$lt_lt_prog_compiler_pic
9576
# What is the maximum length of a command?
9577
max_cmd_len=$lt_cv_sys_max_cmd_len
9579
# Does compiler simultaneously support -c and -o options?
9580
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9582
# Must we lock files when doing compilation?
9583
need_locks=$lt_need_locks
9585
# Do we need the lib prefix for modules?
9586
need_lib_prefix=$need_lib_prefix
9588
# Do we need a version for libraries?
9589
need_version=$need_version
9591
# Whether dlopen is supported.
9592
dlopen_support=$enable_dlopen
9594
# Whether dlopen of programs is supported.
9595
dlopen_self=$enable_dlopen_self
9597
# Whether dlopen of statically linked programs is supported.
9598
dlopen_self_static=$enable_dlopen_self_static
9600
# Compiler flag to prevent dynamic linking.
9601
link_static_flag=$lt_lt_prog_compiler_static
9603
# Compiler flag to turn off builtin functions.
9604
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9606
# Compiler flag to allow reflexive dlopens.
9607
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9609
# Compiler flag to generate shared objects directly from archives.
9610
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9612
# Compiler flag to generate thread-safe objects.
9613
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9615
# Library versioning type.
9616
version_type=$version_type
9618
# Format of library name prefix.
9619
libname_spec=$lt_libname_spec
9621
# List of archive names. First name is the real one, the rest are links.
9622
# The last name is the one that the linker finds with -lNAME.
9623
library_names_spec=$lt_library_names_spec
9625
# The coded name of the library, if different from the real name.
9626
soname_spec=$lt_soname_spec
9628
# Commands used to build and install an old-style archive.
9630
old_archive_cmds=$lt_old_archive_cmds
9631
old_postinstall_cmds=$lt_old_postinstall_cmds
9632
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9634
# Create an old-style archive from a shared archive.
9635
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9637
# Create a temporary old-style archive to link instead of a shared archive.
9638
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9640
# Commands used to build and install a shared archive.
9641
archive_cmds=$lt_archive_cmds
9642
archive_expsym_cmds=$lt_archive_expsym_cmds
9643
postinstall_cmds=$lt_postinstall_cmds
9644
postuninstall_cmds=$lt_postuninstall_cmds
9646
# Commands used to build a loadable module (assumed same as above if empty)
9647
module_cmds=$lt_module_cmds
9648
module_expsym_cmds=$lt_module_expsym_cmds
9650
# Commands to strip libraries.
9651
old_striplib=$lt_old_striplib
9652
striplib=$lt_striplib
9654
# Dependencies to place before the objects being linked to create a
9656
predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9658
# Dependencies to place after the objects being linked to create a
9660
postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9662
# Dependencies to place before the objects being linked to create a
9666
# Dependencies to place after the objects being linked to create a
9668
postdeps=$lt_postdeps
9670
# The library search path used internally by the compiler when linking
9672
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9674
# Method to check whether dependent libraries are shared objects.
9675
deplibs_check_method=$lt_deplibs_check_method
9677
# Command to use when deplibs_check_method == file_magic.
9678
file_magic_cmd=$lt_file_magic_cmd
9680
# Flag that allows shared libraries with undefined symbols to be built.
9681
allow_undefined_flag=$lt_allow_undefined_flag
9683
# Flag that forces no undefined symbols.
9684
no_undefined_flag=$lt_no_undefined_flag
9686
# Commands used to finish a libtool library installation in a directory.
9687
finish_cmds=$lt_finish_cmds
9689
# Same as above, but a single script fragment to be evaled but not shown.
9690
finish_eval=$lt_finish_eval
9692
# Take the output of nm and produce a listing of raw symbols and C names.
9693
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9695
# Transform the output of nm in a proper C declaration
9696
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9698
# Transform the output of nm in a C name address pair
9699
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9701
# This is the shared library runtime path variable.
9702
runpath_var=$runpath_var
9704
# This is the shared library path variable.
9705
shlibpath_var=$shlibpath_var
9707
# Is shlibpath searched before the hard-coded library search path?
9708
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9710
# How to hardcode a shared library path into an executable.
9711
hardcode_action=$hardcode_action
9713
# Whether we should hardcode library paths into libraries.
9714
hardcode_into_libs=$hardcode_into_libs
9716
# Flag to hardcode \$libdir into a binary during linking.
9717
# This must work even if \$libdir does not exist.
9718
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9720
# If ld is used when linking, flag to hardcode \$libdir into
9721
# a binary during linking. This must work even if \$libdir does
9723
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9725
# Whether we need a single -rpath flag with a separated argument.
9726
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9728
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9730
hardcode_direct=$hardcode_direct
9732
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9734
hardcode_minus_L=$hardcode_minus_L
9736
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9737
# the resulting binary.
9738
hardcode_shlibpath_var=$hardcode_shlibpath_var
9740
# Set to yes if building a shared library automatically hardcodes DIR into the library
9741
# and all subsequent libraries and executables linked against it.
9742
hardcode_automatic=$hardcode_automatic
9744
# Variables whose values should be saved in libtool wrapper scripts and
9745
# restored at relink time.
9746
variables_saved_for_relink="$variables_saved_for_relink"
9748
# Whether libtool must link a program against all its dependency libraries.
9749
link_all_deplibs=$link_all_deplibs
9751
# Compile-time system search path for libraries
9752
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9754
# Run-time system search path for libraries
9755
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9757
# Fix the shell variable \$srcfile for the compiler.
9758
fix_srcfile_path="$fix_srcfile_path"
9760
# Set to yes if exported symbols are required.
9761
always_export_symbols=$always_export_symbols
9763
# The commands to list exported symbols.
9764
export_symbols_cmds=$lt_export_symbols_cmds
9766
# The commands to extract the exported symbol list from a shared archive.
9767
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9769
# Symbols that should not be listed in the preloaded symbols.
9770
exclude_expsyms=$lt_exclude_expsyms
9772
# Symbols that must always be exported.
9773
include_expsyms=$lt_include_expsyms
9775
# ### END LIBTOOL CONFIG
9782
cat <<\EOF >> "$cfgfile"
9784
# AIX sometimes has problems with the GCC collect2 program. For some
9785
# reason, if we set the COLLECT_NAMES environment variable, the problems
9786
# vanish in a puff of smoke.
9787
if test "X${COLLECT_NAMES+set}" != Xset; then
9789
export COLLECT_NAMES
9795
# We use sed instead of cat because bash on DJGPP gets confused if
9796
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9797
# text mode, it properly converts lines to CR/LF. This bash problem
9798
# is reportedly fixed, but why not run on old versions too?
9799
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9801
mv -f "$cfgfile" "$ofile" || \
9802
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9806
# If there is no Makefile yet, we rely on a make rule to execute
9807
# `config.status --recheck' to rerun these tests and create the
9808
# libtool script then.
9809
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9810
if test -f "$ltmain_in"; then
9811
test -f Makefile && make "$ltmain"
9817
ac_cpp='$CPP $CPPFLAGS'
9818
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9819
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9820
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9825
# Check whether --with-tags or --without-tags was given.
9826
if test "${with_tags+set}" = set; then
9827
withval="$with_tags"
9831
if test -f "$ltmain" && test -n "$tagnames"; then
9832
if test ! -f "${ofile}"; then
9833
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9834
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9837
if test -z "$LTCC"; then
9838
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9839
if test -z "$LTCC"; then
9840
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9841
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9843
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9844
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9847
if test -z "$LTCFLAGS"; then
9848
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9851
# Extract list of available tagged configurations in $ofile.
9852
# Note that this assumes the entire list is on one line.
9853
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9855
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9856
for tagname in $tagnames; do
9858
# Check whether tagname contains only valid characters
9859
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9861
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9862
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9863
{ (exit 1); exit 1; }; }
9867
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9869
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9870
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9871
{ (exit 1); exit 1; }; }
9874
# Update the list of available tags.
9875
if test -n "$tagname"; then
9876
echo appending configuration tag \"$tagname\" to $ofile
9880
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9881
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9882
(test "X$CXX" != "Xg++"))) ; then
9884
ac_cpp='$CXXCPP $CPPFLAGS'
9885
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9886
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9887
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9892
archive_cmds_need_lc_CXX=no
9893
allow_undefined_flag_CXX=
9894
always_export_symbols_CXX=no
9895
archive_expsym_cmds_CXX=
9896
export_dynamic_flag_spec_CXX=
9897
hardcode_direct_CXX=no
9898
hardcode_libdir_flag_spec_CXX=
9899
hardcode_libdir_flag_spec_ld_CXX=
9900
hardcode_libdir_separator_CXX=
9901
hardcode_minus_L_CXX=no
9902
hardcode_shlibpath_var_CXX=unsupported
9903
hardcode_automatic_CXX=no
9905
module_expsym_cmds_CXX=
9906
link_all_deplibs_CXX=unknown
9907
old_archive_cmds_CXX=$old_archive_cmds
9908
no_undefined_flag_CXX=
9909
whole_archive_flag_spec_CXX=
9910
enable_shared_with_static_runtimes_CXX=no
9912
# Dependencies to place before and after the object being linked:
9914
postdep_objects_CXX=
9917
compiler_lib_search_path_CXX=
9919
# Source file extension for C++ test sources.
9922
# Object file extension for compiled C++ test sources.
9926
# Code to be used in simple compile tests
9927
lt_simple_compile_test_code="int some_variable = 0;\n"
9929
# Code to be used in simple link tests
9930
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9932
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9934
# If no C compiler was specified, use CC.
9937
# If no C compiler flags were specified, use CFLAGS.
9938
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9940
# Allow CC to be a program name with arguments.
9944
# save warnings/boilerplate of simple test code
9945
ac_outfile=conftest.$ac_objext
9946
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9947
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9948
_lt_compiler_boilerplate=`cat conftest.err`
9951
ac_outfile=conftest.$ac_objext
9952
printf "$lt_simple_link_test_code" >conftest.$ac_ext
9953
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9954
_lt_linker_boilerplate=`cat conftest.err`
9958
# Allow CC to be a program name with arguments.
9963
lt_save_with_gnu_ld=$with_gnu_ld
9964
lt_save_path_LD=$lt_cv_path_LD
9965
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9966
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9968
$as_unset lt_cv_prog_gnu_ld
9970
if test -n "${lt_cv_path_LDCXX+set}"; then
9971
lt_cv_path_LD=$lt_cv_path_LDCXX
9973
$as_unset lt_cv_path_LD
9975
test -z "${LDCXX+set}" || LD=$LDCXX
9979
for cc_temp in $compiler""; do
9981
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9982
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9987
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9990
# We don't want -fno-exception wen compiling C++ code, so set the
9991
# no_builtin_flag separately
9992
if test "$GXX" = yes; then
9993
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9995
lt_prog_compiler_no_builtin_flag_CXX=
9998
if test "$GXX" = yes; then
9999
# Set up default GNU C++ configuration
10002
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10003
if test "${with_gnu_ld+set}" = set; then
10004
withval="$with_gnu_ld"
10005
test "$withval" = no || with_gnu_ld=yes
10010
if test "$GCC" = yes; then
10011
# Check if gcc -print-prog-name=ld gives a path.
10012
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10013
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10016
# gcc leaves a trailing carriage return which upsets mingw
10017
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10019
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10022
# Accept absolute paths.
10024
re_direlt='/[^/][^/]*/\.\./'
10025
# Canonicalize the pathname of ld
10026
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10027
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10028
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10030
test -z "$LD" && LD="$ac_prog"
10033
# If it fails, then pretend we aren't using GCC.
10037
# If it is relative, then search for the first ld in PATH.
10038
with_gnu_ld=unknown
10041
elif test "$with_gnu_ld" = yes; then
10042
echo "$as_me:$LINENO: checking for GNU ld" >&5
10043
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10045
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10046
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10048
if test "${lt_cv_path_LD+set}" = set; then
10049
echo $ECHO_N "(cached) $ECHO_C" >&6
10051
if test -z "$LD"; then
10052
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10053
for ac_dir in $PATH; do
10055
test -z "$ac_dir" && ac_dir=.
10056
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10057
lt_cv_path_LD="$ac_dir/$ac_prog"
10058
# Check to see if the program is GNU ld. I'd rather use --version,
10059
# but apparently some variants of GNU ld only accept -v.
10060
# Break only if it was the GNU/non-GNU ld that we prefer.
10061
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10062
*GNU* | *'with BFD'*)
10063
test "$with_gnu_ld" != no && break
10066
test "$with_gnu_ld" != yes && break
10073
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10077
LD="$lt_cv_path_LD"
10078
if test -n "$LD"; then
10079
echo "$as_me:$LINENO: result: $LD" >&5
10080
echo "${ECHO_T}$LD" >&6
10082
echo "$as_me:$LINENO: result: no" >&5
10083
echo "${ECHO_T}no" >&6
10085
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10086
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10087
{ (exit 1); exit 1; }; }
10088
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10089
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10090
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10091
echo $ECHO_N "(cached) $ECHO_C" >&6
10093
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10094
case `$LD -v 2>&1 </dev/null` in
10095
*GNU* | *'with BFD'*)
10096
lt_cv_prog_gnu_ld=yes
10099
lt_cv_prog_gnu_ld=no
10103
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10104
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10105
with_gnu_ld=$lt_cv_prog_gnu_ld
10109
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10110
# archiving commands below assume that GNU ld is being used.
10111
if test "$with_gnu_ld" = yes; then
10112
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113
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'
10115
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10116
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10118
# If archive_cmds runs LD, not CC, wlarc should be empty
10119
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10120
# investigate it a little bit more. (MM)
10123
# ancient GNU ld didn't support --whole-archive et. al.
10124
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10125
grep 'no-whole-archive' > /dev/null; then
10126
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10128
whole_archive_flag_spec_CXX=
10134
# A generic and very simple default shared library creation
10135
# command for GNU C++ for the case where it uses the native
10136
# linker, instead of GNU ld. If possible, this setting should
10137
# overridden to take advantage of the native linker features on
10138
# the platform it is being used on.
10139
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10142
# Commands to make compiler produce verbose output that lists
10143
# what "hidden" libraries, object files and flags are used when
10144
# linking a shared library.
10145
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10153
# PORTME: fill in a description of your system's C++ link characteristics
10154
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10155
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10159
# FIXME: insert proper C++ library support
10163
if test "$host_cpu" = ia64; then
10164
# On IA64, the linker does run time linking by default, so we don't
10165
# have to do anything special.
10166
aix_use_runtimelinking=no
10167
exp_sym_flag='-Bexport'
10170
aix_use_runtimelinking=no
10172
# Test if we are trying to use run time linking or normal
10173
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10174
# need to do runtime linking.
10175
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10176
for ld_flag in $LDFLAGS; do
10179
aix_use_runtimelinking=yes
10187
exp_sym_flag='-bexport'
10188
no_entry_flag='-bnoentry'
10191
# When large executables or shared objects are built, AIX ld can
10192
# have problems creating the table of contents. If linking a library
10193
# or program results in "error TOC overflow" add -mminimal-toc to
10194
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10195
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10197
archive_cmds_CXX=''
10198
hardcode_direct_CXX=yes
10199
hardcode_libdir_separator_CXX=':'
10200
link_all_deplibs_CXX=yes
10202
if test "$GXX" = yes; then
10203
case $host_os in aix4.[012]|aix4.[012].*)
10204
# We only want to do this on AIX 4.2 and lower, the check
10205
# below for broken collect2 doesn't work under 4.3+
10206
collect2name=`${CC} -print-prog-name=collect2`
10207
if test -f "$collect2name" && \
10208
strings "$collect2name" | grep resolve_lib_name >/dev/null
10210
# We have reworked collect2
10211
hardcode_direct_CXX=yes
10213
# We have old collect2
10214
hardcode_direct_CXX=unsupported
10215
# It fails to find uninstalled libraries when the uninstalled
10216
# path is not listed in the libpath. Setting hardcode_minus_L
10217
# to unsupported forces relinking
10218
hardcode_minus_L_CXX=yes
10219
hardcode_libdir_flag_spec_CXX='-L$libdir'
10220
hardcode_libdir_separator_CXX=
10224
shared_flag='-shared'
10225
if test "$aix_use_runtimelinking" = yes; then
10226
shared_flag="$shared_flag "'${wl}-G'
10230
if test "$host_cpu" = ia64; then
10231
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10232
# chokes on -Wl,-G. The following line is correct:
10235
if test "$aix_use_runtimelinking" = yes; then
10236
shared_flag='${wl}-G'
10238
shared_flag='${wl}-bM:SRE'
10243
# It seems that -bexpall does not export symbols beginning with
10244
# underscore (_), so it is better to generate a list of symbols to export.
10245
always_export_symbols_CXX=yes
10246
if test "$aix_use_runtimelinking" = yes; then
10247
# Warning - without using the other runtime loading flags (-brtl),
10248
# -berok will link without error, but may produce a broken library.
10249
allow_undefined_flag_CXX='-berok'
10250
# Determine the default libpath from the value encoded in an empty executable.
10251
cat >conftest.$ac_ext <<_ACEOF
10254
cat confdefs.h >>conftest.$ac_ext
10255
cat >>conftest.$ac_ext <<_ACEOF
10256
/* end confdefs.h. */
10266
rm -f conftest.$ac_objext conftest$ac_exeext
10267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268
(eval $ac_link) 2>conftest.er1
10270
grep -v '^ *+' conftest.er1 >conftest.err
10272
cat conftest.err >&5
10273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274
(exit $ac_status); } &&
10275
{ ac_try='test -z "$ac_cxx_werror_flag"
10276
|| test ! -s conftest.err'
10277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278
(eval $ac_try) 2>&5
10280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281
(exit $ac_status); }; } &&
10282
{ ac_try='test -s conftest$ac_exeext'
10283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284
(eval $ac_try) 2>&5
10286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287
(exit $ac_status); }; }; then
10289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10291
# Check for a 64-bit object if we didn't find anything.
10292
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; }
10295
echo "$as_me: failed program was:" >&5
10296
sed 's/^/| /' conftest.$ac_ext >&5
10299
rm -f conftest.err conftest.$ac_objext \
10300
conftest$ac_exeext conftest.$ac_ext
10301
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10303
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10305
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"
10307
if test "$host_cpu" = ia64; then
10308
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10309
allow_undefined_flag_CXX="-z nodefs"
10310
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"
10312
# Determine the default libpath from the value encoded in an empty executable.
10313
cat >conftest.$ac_ext <<_ACEOF
10316
cat confdefs.h >>conftest.$ac_ext
10317
cat >>conftest.$ac_ext <<_ACEOF
10318
/* end confdefs.h. */
10328
rm -f conftest.$ac_objext conftest$ac_exeext
10329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330
(eval $ac_link) 2>conftest.er1
10332
grep -v '^ *+' conftest.er1 >conftest.err
10334
cat conftest.err >&5
10335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336
(exit $ac_status); } &&
10337
{ ac_try='test -z "$ac_cxx_werror_flag"
10338
|| test ! -s conftest.err'
10339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340
(eval $ac_try) 2>&5
10342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343
(exit $ac_status); }; } &&
10344
{ ac_try='test -s conftest$ac_exeext'
10345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346
(eval $ac_try) 2>&5
10348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349
(exit $ac_status); }; }; then
10351
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10353
# Check for a 64-bit object if we didn't find anything.
10354
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; }
10357
echo "$as_me: failed program was:" >&5
10358
sed 's/^/| /' conftest.$ac_ext >&5
10361
rm -f conftest.err conftest.$ac_objext \
10362
conftest$ac_exeext conftest.$ac_ext
10363
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10365
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10366
# Warning - without using the other run time loading flags,
10367
# -berok will link without error, but may produce a broken library.
10368
no_undefined_flag_CXX=' ${wl}-bernotok'
10369
allow_undefined_flag_CXX=' ${wl}-berok'
10370
# Exported symbols can be pulled into shared objects from archives
10371
whole_archive_flag_spec_CXX='$convenience'
10372
archive_cmds_need_lc_CXX=yes
10373
# This is similar to how AIX traditionally builds its shared libraries.
10374
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'
10380
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10381
allow_undefined_flag_CXX=unsupported
10382
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10383
# support --undefined. This deserves some investigation. FIXME
10384
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10391
case $cc_basename in
10393
# FIXME: insert proper C++ library support
10399
cygwin* | mingw* | pw32*)
10400
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10401
# as there is no search path for DLLs.
10402
hardcode_libdir_flag_spec_CXX='-L$libdir'
10403
allow_undefined_flag_CXX=unsupported
10404
always_export_symbols_CXX=no
10405
enable_shared_with_static_runtimes_CXX=yes
10407
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10408
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'
10409
# If the export-symbols file already is a .def file (1st line
10410
# is EXPORTS), use it as is; otherwise, prepend...
10411
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10412
cp $export_symbols $output_objdir/$soname.def;
10414
echo EXPORTS > $output_objdir/$soname.def;
10415
cat $export_symbols >> $output_objdir/$soname.def;
10417
$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'
10422
darwin* | rhapsody*)
10424
rhapsody* | darwin1.[012])
10425
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10428
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10429
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10431
case ${MACOSX_DEPLOYMENT_TARGET} in
10433
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10436
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10442
archive_cmds_need_lc_CXX=no
10443
hardcode_direct_CXX=no
10444
hardcode_automatic_CXX=yes
10445
hardcode_shlibpath_var_CXX=unsupported
10446
whole_archive_flag_spec_CXX=''
10447
link_all_deplibs_CXX=yes
10449
if test "$GXX" = yes ; then
10450
lt_int_apple_cc_single_mod=no
10451
output_verbose_link_cmd='echo'
10452
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10453
lt_int_apple_cc_single_mod=yes
10455
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10456
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10458
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'
10460
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10461
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10462
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10463
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}'
10465
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}'
10467
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}'
10469
case $cc_basename in
10471
output_verbose_link_cmd='echo'
10472
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'
10473
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10474
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10475
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}'
10476
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}'
10486
case $cc_basename in
10488
# FIXME: insert proper C++ library support
10492
# Green Hills C++ Compiler
10493
# FIXME: insert proper C++ library support
10497
# FIXME: insert proper C++ library support
10503
# C++ shared libraries reported to be fairly broken before switch to ELF
10507
archive_cmds_need_lc_CXX=no
10509
freebsd* | kfreebsd*-gnu | dragonfly*)
10510
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10517
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10518
hardcode_libdir_separator_CXX=:
10519
export_dynamic_flag_spec_CXX='${wl}-E'
10520
hardcode_direct_CXX=yes
10521
hardcode_minus_L_CXX=yes # Not in the search PATH,
10522
# but as the default
10523
# location of the library.
10525
case $cc_basename in
10527
# FIXME: insert proper C++ library support
10531
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'
10532
# Commands to make compiler produce verbose output that lists
10533
# what "hidden" libraries, object files and flags are used when
10534
# linking a shared library.
10536
# There doesn't appear to be a way to prevent this compiler from
10537
# explicitly linking system object files so we need to strip them
10538
# from the output so that they don't get included in the library
10540
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'
10543
if test "$GXX" = yes; then
10544
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'
10546
# FIXME: insert proper C++ library support
10553
if test $with_gnu_ld = no; then
10554
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10555
hardcode_libdir_separator_CXX=:
10559
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10562
export_dynamic_flag_spec_CXX='${wl}-E'
10568
hardcode_direct_CXX=no
10569
hardcode_shlibpath_var_CXX=no
10572
hardcode_direct_CXX=yes
10573
hardcode_minus_L_CXX=yes # Not in the search PATH,
10574
# but as the default
10575
# location of the library.
10579
case $cc_basename in
10581
# FIXME: insert proper C++ library support
10587
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10590
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10593
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10596
# Commands to make compiler produce verbose output that lists
10597
# what "hidden" libraries, object files and flags are used when
10598
# linking a shared library.
10600
# There doesn't appear to be a way to prevent this compiler from
10601
# explicitly linking system object files so we need to strip them
10602
# from the output so that they don't get included in the library
10604
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'
10607
if test "$GXX" = yes; then
10608
if test $with_gnu_ld = no; then
10611
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10614
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10617
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'
10622
# FIXME: insert proper C++ library support
10629
hardcode_direct_CXX=no
10630
hardcode_shlibpath_var_CXX=no
10631
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10632
export_dynamic_flag_spec_CXX='${wl}-E'
10633
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10634
# Instead, shared libraries are loaded at an image base (0x10000000 by
10635
# default) and relocated if they conflict, which is a slow very memory
10636
# consuming and fragmenting process. To avoid this, we pick a random,
10637
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10638
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10639
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'
10640
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'
10643
case $cc_basename in
10646
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'
10648
# Archives containing C++ object files must be created using
10649
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10650
# necessary to make sure instantiated templates are included
10652
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10655
if test "$GXX" = yes; then
10656
if test "$with_gnu_ld" = no; then
10657
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'
10659
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'
10662
link_all_deplibs_CXX=yes
10665
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10666
hardcode_libdir_separator_CXX=:
10669
case $cc_basename in
10671
# Kuck and Associates, Inc. (KAI) C++ Compiler
10673
# KCC will only create a shared library if the output file
10674
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10675
# to its proper name (with version) after linking.
10676
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'
10677
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'
10678
# Commands to make compiler produce verbose output that lists
10679
# what "hidden" libraries, object files and flags are used when
10680
# linking a shared library.
10682
# There doesn't appear to be a way to prevent this compiler from
10683
# explicitly linking system object files so we need to strip them
10684
# from the output so that they don't get included in the library
10686
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'
10688
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10689
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10691
# Archives containing C++ object files must be created using
10692
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10693
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10698
# version 8.0 and above of icpc choke on multiply defined symbols
10699
# if we add $predep_objects and $postdep_objects, however 7.1 and
10700
# earlier do not add the objects themselves.
10701
case `$CC -V 2>&1` in
10703
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10704
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'
10706
*) # Version 8.0 or newer
10709
ia64*) tmp_idyn=' -i_dynamic';;
10711
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10712
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'
10715
archive_cmds_need_lc_CXX=no
10716
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10717
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10718
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10721
# Portland Group C++ compiler
10722
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10723
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'
10725
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10726
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10727
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'
10731
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10732
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'
10734
runpath_var=LD_RUN_PATH
10735
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10736
hardcode_libdir_separator_CXX=:
10738
# Commands to make compiler produce verbose output that lists
10739
# what "hidden" libraries, object files and flags are used when
10740
# linking a shared library.
10742
# There doesn't appear to be a way to prevent this compiler from
10743
# explicitly linking system object files so we need to strip them
10744
# from the output so that they don't get included in the library
10746
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'
10751
# FIXME: insert proper C++ library support
10755
# FIXME: insert proper C++ library support
10759
case $cc_basename in
10761
# FIXME: insert proper C++ library support
10765
# FIXME: insert proper C++ library support
10771
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10772
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10774
hardcode_libdir_flag_spec_CXX='-R$libdir'
10775
hardcode_direct_CXX=yes
10776
hardcode_shlibpath_var_CXX=no
10778
# Workaround some broken pre-1.5 toolchains
10779
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10782
# C++ shared libraries are fairly broken
10786
hardcode_direct_CXX=yes
10787
hardcode_shlibpath_var_CXX=no
10788
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10789
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10790
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10791
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10792
export_dynamic_flag_spec_CXX='${wl}-E'
10793
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10795
output_verbose_link_cmd='echo'
10798
case $cc_basename in
10800
# Kuck and Associates, Inc. (KAI) C++ Compiler
10802
# KCC will only create a shared library if the output file
10803
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10804
# to its proper name (with version) after linking.
10805
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'
10807
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10808
hardcode_libdir_separator_CXX=:
10810
# Archives containing C++ object files must be created using
10811
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10812
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10816
# Rational C++ 2.4.1
10817
# FIXME: insert proper C++ library support
10821
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10822
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'
10824
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10825
hardcode_libdir_separator_CXX=:
10827
# Commands to make compiler produce verbose output that lists
10828
# what "hidden" libraries, object files and flags are used when
10829
# linking a shared library.
10831
# There doesn't appear to be a way to prevent this compiler from
10832
# explicitly linking system object files so we need to strip them
10833
# from the output so that they don't get included in the library
10835
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'
10838
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10839
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10840
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'
10842
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10843
hardcode_libdir_separator_CXX=:
10845
# Commands to make compiler produce verbose output that lists
10846
# what "hidden" libraries, object files and flags are used when
10847
# linking a shared library.
10848
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10851
# FIXME: insert proper C++ library support
10858
case $cc_basename in
10860
# Kuck and Associates, Inc. (KAI) C++ Compiler
10862
# KCC will only create a shared library if the output file
10863
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10864
# to its proper name (with version) after linking.
10865
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'
10867
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10868
hardcode_libdir_separator_CXX=:
10870
# Archives containing C++ object files must be created using
10871
# the KAI C++ compiler.
10872
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10875
# Rational C++ 2.4.1
10876
# FIXME: insert proper C++ library support
10880
allow_undefined_flag_CXX=' -expect_unresolved \*'
10881
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'
10882
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10883
echo "-hidden">> $lib.exp~
10884
$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~
10887
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10888
hardcode_libdir_separator_CXX=:
10890
# Commands to make compiler produce verbose output that lists
10891
# what "hidden" libraries, object files and flags are used when
10892
# linking a shared library.
10894
# There doesn't appear to be a way to prevent this compiler from
10895
# explicitly linking system object files so we need to strip them
10896
# from the output so that they don't get included in the library
10898
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'
10901
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10902
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10903
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'
10905
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10906
hardcode_libdir_separator_CXX=:
10908
# Commands to make compiler produce verbose output that lists
10909
# what "hidden" libraries, object files and flags are used when
10910
# linking a shared library.
10911
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10914
# FIXME: insert proper C++ library support
10921
# FIXME: insert proper C++ library support
10925
case $cc_basename in
10928
# FIXME: insert proper C++ library support
10933
# FIXME: insert proper C++ library support
10937
# FIXME: insert proper C++ library support
10943
case $cc_basename in
10945
# Sun C++ 4.2, 5.x and Centerline C++
10946
archive_cmds_need_lc_CXX=yes
10947
no_undefined_flag_CXX=' -zdefs'
10948
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10949
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10950
$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'
10952
hardcode_libdir_flag_spec_CXX='-R$libdir'
10953
hardcode_shlibpath_var_CXX=no
10955
solaris2.[0-5] | solaris2.[0-5].*) ;;
10957
# The C++ compiler is used as linker so we must use $wl
10958
# flag to pass the commands to the underlying system
10959
# linker. We must also pass each convience library through
10960
# to the system linker between allextract/defaultextract.
10961
# The C++ compiler will combine linker options so we
10962
# cannot just pass the convience library names through
10964
# Supported since Solaris 2.6 (maybe 2.5.1?)
10965
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'
10968
link_all_deplibs_CXX=yes
10970
output_verbose_link_cmd='echo'
10972
# Archives containing C++ object files must be created using
10973
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10974
# necessary to make sure instantiated templates are included
10976
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10979
# Green Hills C++ Compiler
10980
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10982
# The C++ compiler must be used to create the archive.
10983
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10986
# GNU C++ compiler with Solaris linker
10987
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10988
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10989
if $CC --version | grep -v '^2\.7' > /dev/null; then
10990
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10991
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10992
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10994
# Commands to make compiler produce verbose output that lists
10995
# what "hidden" libraries, object files and flags are used when
10996
# linking a shared library.
10997
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10999
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11001
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11002
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11003
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11005
# Commands to make compiler produce verbose output that lists
11006
# what "hidden" libraries, object files and flags are used when
11007
# linking a shared library.
11008
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11011
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11016
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11017
no_undefined_flag_CXX='${wl}-z,text'
11018
archive_cmds_need_lc_CXX=no
11019
hardcode_shlibpath_var_CXX=no
11020
runpath_var='LD_RUN_PATH'
11022
case $cc_basename in
11024
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033
sysv5* | sco3.2v5* | sco5v6*)
11034
# Note: We can NOT use -z defs as we might desire, because we do not
11035
# link with -lc, and that would cause any symbols used from libc to
11036
# always be unresolved, which means just about no library would
11037
# ever link correctly. If we're not using GNU ld we use -z text
11038
# though, which does catch some bad symbols but isn't as heavy-handed
11040
# For security reasons, it is highly recommended that you always
11041
# use absolute paths for naming shared libraries, and exclude the
11042
# DT_RUNPATH tag from executables and libraries. But doing so
11043
# requires that you compile everything twice, which is a pain.
11044
# So that behaviour is only enabled if SCOABSPATH is set to a
11045
# non-empty value in the environment. Most likely only useful for
11046
# creating official distributions of packages.
11047
# This is a hack until libtool officially supports absolute path
11048
# names for shared libraries.
11049
no_undefined_flag_CXX='${wl}-z,text'
11050
allow_undefined_flag_CXX='${wl}-z,nodefs'
11051
archive_cmds_need_lc_CXX=no
11052
hardcode_shlibpath_var_CXX=no
11053
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11054
hardcode_libdir_separator_CXX=':'
11055
link_all_deplibs_CXX=yes
11056
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11057
runpath_var='LD_RUN_PATH'
11059
case $cc_basename in
11061
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11062
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11065
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11066
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071
case $cc_basename in
11073
# NonStop-UX NCC 3.20
11074
# FIXME: insert proper C++ library support
11078
# FIXME: insert proper C++ library support
11084
# FIXME: insert proper C++ library support
11088
# FIXME: insert proper C++ library support
11092
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11093
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11094
test "$ld_shlibs_CXX" = no && can_build_shared=no
11100
cat > conftest.$ac_ext <<EOF
11104
Foo (void) { a = 0; }
11110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11111
(eval $ac_compile) 2>&5
11113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114
(exit $ac_status); }; then
11115
# Parse the compiler output and extract the necessary
11116
# objects, libraries and library flags.
11118
# Sentinel used to keep track of whether or not we are before
11119
# the conftest object file.
11120
pre_test_object_deps_done=no
11122
# The `*' in the case matches for architectures that use `case' in
11123
# $output_verbose_cmd can trigger glob expansion during the loop
11124
# eval without this substitution.
11125
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11127
for p in `eval $output_verbose_link_cmd`; do
11131
# Some compilers place space between "-{L,R}" and the path.
11132
# Remove the space.
11133
if test $p = "-L" \
11134
|| test $p = "-R"; then
11141
if test "$pre_test_object_deps_done" = no; then
11144
# Internal compiler library paths should come after those
11145
# provided the user. The postdeps already come after the
11146
# user supplied libs so there is no need to process them.
11147
if test -z "$compiler_lib_search_path_CXX"; then
11148
compiler_lib_search_path_CXX="${prev}${p}"
11150
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11153
# The "-l" case would never come before the object being
11154
# linked, so don't bother handling this case.
11157
if test -z "$postdeps_CXX"; then
11158
postdeps_CXX="${prev}${p}"
11160
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11166
# This assumes that the test object file only shows up
11167
# once in the compiler output.
11168
if test "$p" = "conftest.$objext"; then
11169
pre_test_object_deps_done=yes
11173
if test "$pre_test_object_deps_done" = no; then
11174
if test -z "$predep_objects_CXX"; then
11175
predep_objects_CXX="$p"
11177
predep_objects_CXX="$predep_objects_CXX $p"
11180
if test -z "$postdep_objects_CXX"; then
11181
postdep_objects_CXX="$p"
11183
postdep_objects_CXX="$postdep_objects_CXX $p"
11188
*) ;; # Ignore the rest.
11196
echo "libtool.m4: error: problem compiling CXX test program"
11199
$rm -f confest.$objext
11201
# PORTME: override above test on systems where it is broken
11204
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11205
# hack all around it, let's just trust "g++" to DTRT.
11206
predep_objects_CXX=
11207
postdep_objects_CXX=
11212
case $cc_basename in
11214
# Adding this requires a known-good setup of shared libraries for
11215
# Sun compiler versions before 5.6, else PIC objects from an old
11216
# archive will be linked into the output, leading to subtle bugs.
11217
postdeps_CXX='-lCstd -lCrun'
11224
case " $postdeps_CXX " in
11225
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11228
lt_prog_compiler_wl_CXX=
11229
lt_prog_compiler_pic_CXX=
11230
lt_prog_compiler_static_CXX=
11232
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11233
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11235
# C++ specific cases for pic, static, wl, etc.
11236
if test "$GXX" = yes; then
11237
lt_prog_compiler_wl_CXX='-Wl,'
11238
lt_prog_compiler_static_CXX='-static'
11242
# All AIX code is PIC.
11243
if test "$host_cpu" = ia64; then
11244
# AIX 5 now supports IA64 processor
11245
lt_prog_compiler_static_CXX='-Bstatic'
11249
# FIXME: we need at least 68020 code to build shared libraries, but
11250
# adding the `-m68020' flag to GCC prevents building anything better,
11252
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11254
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11255
# PIC is the default for these OSes.
11257
mingw* | os2* | pw32*)
11258
# This hack is so that the source file can tell whether it is being
11259
# built for inclusion in a dll (and should export symbols for example).
11260
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11262
darwin* | rhapsody*)
11263
# PIC is the default on this platform
11264
# Common symbols not allowed in MH_DYLIB files
11265
lt_prog_compiler_pic_CXX='-fno-common'
11268
# DJGPP does not support shared libraries at all
11269
lt_prog_compiler_pic_CXX=
11272
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11273
# Instead, we relocate shared libraries at runtime.
11276
if test -d /usr/nec; then
11277
lt_prog_compiler_pic_CXX=-Kconform_pic
11281
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11282
# not for PA HP-UX.
11287
lt_prog_compiler_pic_CXX='-fPIC'
11292
lt_prog_compiler_pic_CXX='-fPIC'
11298
# All AIX code is PIC.
11299
if test "$host_cpu" = ia64; then
11300
# AIX 5 now supports IA64 processor
11301
lt_prog_compiler_static_CXX='-Bstatic'
11303
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11307
case $cc_basename in
11309
# Green Hills C++ Compiler
11310
# _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"
11315
# PIC is the default on this platform
11316
# Common symbols not allowed in MH_DYLIB files
11317
case $cc_basename in
11319
lt_prog_compiler_pic_CXX='-qnocommon'
11320
lt_prog_compiler_wl_CXX='-Wl,'
11325
case $cc_basename in
11327
lt_prog_compiler_pic_CXX='-KPIC'
11330
# Green Hills C++ Compiler
11331
lt_prog_compiler_pic_CXX='-pic'
11337
freebsd* | kfreebsd*-gnu | dragonfly*)
11338
# FreeBSD uses GNU C++
11340
hpux9* | hpux10* | hpux11*)
11341
case $cc_basename in
11343
lt_prog_compiler_wl_CXX='-Wl,'
11344
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11345
if test "$host_cpu" != ia64; then
11346
lt_prog_compiler_pic_CXX='+Z'
11350
lt_prog_compiler_wl_CXX='-Wl,'
11351
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11357
lt_prog_compiler_pic_CXX='+Z'
11366
# This is c89, which is MS Visual C++ (no shared libs)
11367
# Anyone wants to do a port?
11369
irix5* | irix6* | nonstopux*)
11370
case $cc_basename in
11372
lt_prog_compiler_wl_CXX='-Wl,'
11373
lt_prog_compiler_static_CXX='-non_shared'
11374
# CC pic flag -KPIC is the default.
11381
case $cc_basename in
11384
lt_prog_compiler_wl_CXX='--backend -Wl,'
11385
lt_prog_compiler_pic_CXX='-fPIC'
11389
lt_prog_compiler_wl_CXX='-Wl,'
11390
lt_prog_compiler_pic_CXX='-KPIC'
11391
lt_prog_compiler_static_CXX='-static'
11394
# Portland Group C++ compiler.
11395
lt_prog_compiler_wl_CXX='-Wl,'
11396
lt_prog_compiler_pic_CXX='-fpic'
11397
lt_prog_compiler_static_CXX='-Bstatic'
11401
# Make sure the PIC flag is empty. It appears that all Alpha
11402
# Linux and Compaq Tru64 Unix objects are PIC.
11403
lt_prog_compiler_pic_CXX=
11404
lt_prog_compiler_static_CXX='-non_shared'
11415
case $cc_basename in
11417
lt_prog_compiler_pic_CXX='-W c,exportall'
11425
osf3* | osf4* | osf5*)
11426
case $cc_basename in
11428
lt_prog_compiler_wl_CXX='--backend -Wl,'
11431
# Rational C++ 2.4.1
11432
lt_prog_compiler_pic_CXX='-pic'
11435
# Digital/Compaq C++
11436
lt_prog_compiler_wl_CXX='-Wl,'
11437
# Make sure the PIC flag is empty. It appears that all Alpha
11438
# Linux and Compaq Tru64 Unix objects are PIC.
11439
lt_prog_compiler_pic_CXX=
11440
lt_prog_compiler_static_CXX='-non_shared'
11449
case $cc_basename in
11451
# Sun C++ 4.2, 5.x and Centerline C++
11452
lt_prog_compiler_pic_CXX='-KPIC'
11453
lt_prog_compiler_static_CXX='-Bstatic'
11454
lt_prog_compiler_wl_CXX='-Qoption ld '
11457
# Green Hills C++ Compiler
11458
lt_prog_compiler_pic_CXX='-PIC'
11465
case $cc_basename in
11468
lt_prog_compiler_pic_CXX='-pic'
11469
lt_prog_compiler_static_CXX='-Bstatic'
11473
lt_prog_compiler_pic_CXX='-pic'
11480
case $cc_basename in
11482
# NonStop-UX NCC 3.20
11483
lt_prog_compiler_pic_CXX='-KPIC'
11489
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11490
case $cc_basename in
11492
lt_prog_compiler_wl_CXX='-Wl,'
11493
lt_prog_compiler_pic_CXX='-KPIC'
11494
lt_prog_compiler_static_CXX='-Bstatic'
11501
lt_prog_compiler_can_build_shared_CXX=no
11506
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11507
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11510
# Check to make sure the PIC flag actually works.
11512
if test -n "$lt_prog_compiler_pic_CXX"; then
11514
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11515
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11516
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11517
echo $ECHO_N "(cached) $ECHO_C" >&6
11519
lt_prog_compiler_pic_works_CXX=no
11520
ac_outfile=conftest.$ac_objext
11521
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11522
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11523
# Insert the option either (1) after the last *FLAGS variable, or
11524
# (2) before a word containing "conftest.", or (3) at the end.
11525
# Note that $ac_compile itself does not contain backslashes and begins
11526
# with a dollar sign (not a hyphen), so the echo should work correctly.
11527
# The option is referenced via a variable to avoid confusing sed.
11528
lt_compile=`echo "$ac_compile" | $SED \
11529
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11530
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11531
-e 's:$: $lt_compiler_flag:'`
11532
(eval echo "\"\$as_me:11532: $lt_compile\"" >&5)
11533
(eval "$lt_compile" 2>conftest.err)
11535
cat conftest.err >&5
11536
echo "$as_me:11536: \$? = $ac_status" >&5
11537
if (exit $ac_status) && test -s "$ac_outfile"; then
11538
# The compiler can only warn and ignore the option if not recognized
11539
# So say no if there are warnings other than the usual output.
11540
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11541
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11542
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11543
lt_prog_compiler_pic_works_CXX=yes
11549
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11550
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11552
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11553
case $lt_prog_compiler_pic_CXX in
11555
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11558
lt_prog_compiler_pic_CXX=
11559
lt_prog_compiler_can_build_shared_CXX=no
11564
# For platforms which do not support PIC, -DPIC is meaningless:
11566
lt_prog_compiler_pic_CXX=
11569
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11574
# Check to make sure the static flag actually works.
11576
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11577
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11578
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11579
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11580
echo $ECHO_N "(cached) $ECHO_C" >&6
11582
lt_prog_compiler_static_works_CXX=no
11583
save_LDFLAGS="$LDFLAGS"
11584
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11585
printf "$lt_simple_link_test_code" > conftest.$ac_ext
11586
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11587
# The linker can only warn and ignore the option if not recognized
11588
# So say no if there are warnings
11589
if test -s conftest.err; then
11590
# Append any errors to the config.log.
11591
cat conftest.err 1>&5
11592
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11593
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11594
if diff conftest.exp conftest.er2 >/dev/null; then
11595
lt_prog_compiler_static_works_CXX=yes
11598
lt_prog_compiler_static_works_CXX=yes
11602
LDFLAGS="$save_LDFLAGS"
11605
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11606
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11608
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11611
lt_prog_compiler_static_CXX=
11615
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11616
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11617
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11618
echo $ECHO_N "(cached) $ECHO_C" >&6
11620
lt_cv_prog_compiler_c_o_CXX=no
11621
$rm -r conftest 2>/dev/null
11625
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11627
lt_compiler_flag="-o out/conftest2.$ac_objext"
11628
# Insert the option either (1) after the last *FLAGS variable, or
11629
# (2) before a word containing "conftest.", or (3) at the end.
11630
# Note that $ac_compile itself does not contain backslashes and begins
11631
# with a dollar sign (not a hyphen), so the echo should work correctly.
11632
lt_compile=`echo "$ac_compile" | $SED \
11633
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11634
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11635
-e 's:$: $lt_compiler_flag:'`
11636
(eval echo "\"\$as_me:11636: $lt_compile\"" >&5)
11637
(eval "$lt_compile" 2>out/conftest.err)
11639
cat out/conftest.err >&5
11640
echo "$as_me:11640: \$? = $ac_status" >&5
11641
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11643
# The compiler can only warn and ignore the option if not recognized
11644
# So say no if there are warnings
11645
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11646
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11647
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11648
lt_cv_prog_compiler_c_o_CXX=yes
11653
# SGI C++ compiler will create directory out/ii_files/ for
11654
# template instantiation
11655
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11656
$rm out/* && rmdir out
11662
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11663
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11666
hard_links="nottested"
11667
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11668
# do not overwrite the value of need_locks provided by the user
11669
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11670
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11673
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11675
ln conftest.a conftest.b 2>&5 || hard_links=no
11676
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11677
echo "$as_me:$LINENO: result: $hard_links" >&5
11678
echo "${ECHO_T}$hard_links" >&6
11679
if test "$hard_links" = no; then
11680
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11681
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11688
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11689
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11691
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11694
# If we're using GNU nm, then we don't want the "-C" option.
11695
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11696
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11697
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'
11699
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'
11703
export_symbols_cmds_CXX="$ltdll_cmds"
11706
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'
11709
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11713
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11714
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11715
test "$ld_shlibs_CXX" = no && can_build_shared=no
11718
# Do we need to explicitly link libc?
11720
case "x$archive_cmds_need_lc_CXX" in
11722
# Assume -lc should be added
11723
archive_cmds_need_lc_CXX=yes
11725
if test "$enable_shared" = yes && test "$GCC" = yes; then
11726
case $archive_cmds_CXX in
11728
# FIXME: we may have to deal with multi-command sequences.
11731
# Test whether the compiler implicitly links with -lc since on some
11732
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11733
# to ld, don't add -lc before -lgcc.
11734
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11735
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11737
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740
(eval $ac_compile) 2>&5
11742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743
(exit $ac_status); } 2>conftest.err; then
11746
libobjs=conftest.$ac_objext
11748
wl=$lt_prog_compiler_wl_CXX
11749
pic_flag=$lt_prog_compiler_pic_CXX
11755
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11756
allow_undefined_flag_CXX=
11757
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11758
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761
(exit $ac_status); }
11763
archive_cmds_need_lc_CXX=no
11765
archive_cmds_need_lc_CXX=yes
11767
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11769
cat conftest.err 1>&5
11772
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11773
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11780
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11781
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11782
library_names_spec=
11783
libname_spec='lib$name'
11787
postuninstall_cmds=
11791
shlibpath_overrides_runpath=unknown
11793
dynamic_linker="$host_os ld.so"
11794
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11795
if test "$GCC" = yes; then
11796
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11797
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11798
# if the path contains ";" then we assume it to be the separator
11799
# otherwise default to the standard path separator (i.e. ":") - it is
11800
# assumed that no part of a normal pathname contains ";" but that should
11801
# okay in the real world where ";" in dirpaths is itself problematic.
11802
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11804
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11807
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11809
need_lib_prefix=unknown
11810
hardcode_into_libs=no
11812
# when you set need_version to no, make sure it does not cause -set_version
11813
# flags to be left without arguments
11814
need_version=unknown
11819
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11820
shlibpath_var=LIBPATH
11822
# AIX 3 has no versioning support, so we append a major version to the name.
11823
soname_spec='${libname}${release}${shared_ext}$major'
11830
hardcode_into_libs=yes
11831
if test "$host_cpu" = ia64; then
11832
# AIX 5 supports IA64
11833
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11834
shlibpath_var=LD_LIBRARY_PATH
11836
# With GCC up to 2.95.x, collect2 would create an import file
11837
# for dependence libraries. The import file would start with
11838
# the line `#! .'. This would cause the generated library to
11839
# depend on `.', always an invalid library. This was fixed in
11840
# development snapshots of GCC prior to 3.0.
11842
aix4 | aix4.[01] | aix4.[01].*)
11843
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11845
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11848
can_build_shared=no
11852
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11853
# soname into executable. Probably we can add versioning support to
11854
# collect2, so additional links can be useful in future.
11855
if test "$aix_use_runtimelinking" = yes; then
11856
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11857
# instead of lib<name>.a to let people know that these are not
11858
# typical AIX shared libraries.
11859
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861
# We preserve .a as extension for shared libraries through AIX4.2
11862
# and later when we are not doing run time linking.
11863
library_names_spec='${libname}${release}.a $libname.a'
11864
soname_spec='${libname}${release}${shared_ext}$major'
11866
shlibpath_var=LIBPATH
11871
library_names_spec='$libname.ixlibrary $libname.a'
11872
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11873
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'
11877
library_names_spec='${libname}${shared_ext}'
11878
dynamic_linker="$host_os ld.so"
11879
shlibpath_var=LIBRARY_PATH
11885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886
soname_spec='${libname}${release}${shared_ext}$major'
11887
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11888
shlibpath_var=LD_LIBRARY_PATH
11889
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11890
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11891
# the default ld.so.conf also contains /usr/contrib/lib and
11892
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11893
# libtool to hard-code these into programs
11896
cygwin* | mingw* | pw32*)
11897
version_type=windows
11902
case $GCC,$host_os in
11903
yes,cygwin* | yes,mingw* | yes,pw32*)
11904
library_names_spec='$libname.dll.a'
11905
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11906
postinstall_cmds='base_file=`basename \${file}`~
11907
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11908
dldir=$destdir/`dirname \$dlpath`~
11909
test -d \$dldir || mkdir -p \$dldir~
11910
$install_prog $dir/$dlname \$dldir/$dlname~
11911
chmod a+x \$dldir/$dlname'
11912
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11913
dlpath=$dir/\$dldll~
11915
shlibpath_overrides_runpath=yes
11919
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11920
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11921
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11924
# MinGW DLLs use traditional 'lib' prefix
11925
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11926
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11927
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11928
# It is most probably a Windows format PATH printed by
11929
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11930
# path with ; separators, and with drive letters. We can handle the
11931
# drive letters (cygwin fileutils understands them), so leave them,
11932
# especially as we might pass files found there to a mingw objdump,
11933
# which wouldn't understand a cygwinified path. Ahh.
11934
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11936
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11940
# pw32 DLLs use 'pw' prefix rather than 'lib'
11941
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11947
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11950
dynamic_linker='Win32 ld.exe'
11951
# FIXME: first we should search . and the directory the executable is in
11955
darwin* | rhapsody*)
11956
dynamic_linker="$host_os dyld"
11957
version_type=darwin
11960
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11961
soname_spec='${libname}${release}${major}$shared_ext'
11962
shlibpath_overrides_runpath=yes
11963
shlibpath_var=DYLD_LIBRARY_PATH
11964
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11965
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11966
if test "$GCC" = yes; then
11967
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"`
11969
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11971
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11979
soname_spec='${libname}${release}${shared_ext}$major'
11980
shlibpath_var=LD_LIBRARY_PATH
11991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11992
soname_spec='${libname}${release}${shared_ext}$major'
11993
shlibpath_var=LD_LIBRARY_PATH
11994
shlibpath_overrides_runpath=no
11995
hardcode_into_libs=yes
11996
dynamic_linker='GNU ld.so'
11999
freebsd* | dragonfly*)
12000
# DragonFly does not have aout. When/if they implement a new
12001
# versioning mechanism, adjust this.
12002
if test -x /usr/bin/objformat; then
12003
objformat=`/usr/bin/objformat`
12006
freebsd[123]*) objformat=aout ;;
12007
*) objformat=elf ;;
12010
version_type=freebsd-$objformat
12011
case $version_type in
12013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12018
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12022
shlibpath_var=LD_LIBRARY_PATH
12025
shlibpath_overrides_runpath=yes
12027
freebsd3.[01]* | freebsdelf3.[01]*)
12028
shlibpath_overrides_runpath=yes
12029
hardcode_into_libs=yes
12031
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12032
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12033
shlibpath_overrides_runpath=no
12034
hardcode_into_libs=yes
12036
freebsd*) # from 4.6 on
12037
shlibpath_overrides_runpath=yes
12038
hardcode_into_libs=yes
12047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12048
soname_spec='${libname}${release}${shared_ext}$major'
12049
shlibpath_var=LD_LIBRARY_PATH
12050
hardcode_into_libs=yes
12053
hpux9* | hpux10* | hpux11*)
12054
# Give a soname corresponding to the major version so that dld.sl refuses to
12055
# link against other versions.
12062
hardcode_into_libs=yes
12063
dynamic_linker="$host_os dld.so"
12064
shlibpath_var=LD_LIBRARY_PATH
12065
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12066
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067
soname_spec='${libname}${release}${shared_ext}$major'
12068
if test "X$HPUX_IA64_MODE" = X32; then
12069
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12071
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12073
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12077
hardcode_into_libs=yes
12078
dynamic_linker="$host_os dld.sl"
12079
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12080
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082
soname_spec='${libname}${release}${shared_ext}$major'
12083
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12084
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12088
dynamic_linker="$host_os dld.sl"
12089
shlibpath_var=SHLIB_PATH
12090
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092
soname_spec='${libname}${release}${shared_ext}$major'
12095
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12096
postinstall_cmds='chmod 555 $lib'
12103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12104
soname_spec='${libname}${release}${shared_ext}$major'
12105
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12106
shlibpath_var=LD_LIBRARY_PATH
12107
shlibpath_overrides_runpath=no
12108
hardcode_into_libs=yes
12111
irix5* | irix6* | nonstopux*)
12113
nonstopux*) version_type=nonstopux ;;
12115
if test "$lt_cv_prog_gnu_ld" = yes; then
12123
soname_spec='${libname}${release}${shared_ext}$major'
12124
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12126
irix5* | nonstopux*)
12127
libsuff= shlibsuff=
12130
case $LD in # libtool.m4 will add one of these switches to LD
12131
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12132
libsuff= shlibsuff= libmagic=32-bit;;
12133
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12134
libsuff=32 shlibsuff=N32 libmagic=N32;;
12135
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12136
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12137
*) libsuff= shlibsuff= libmagic=never-match;;
12141
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12142
shlibpath_overrides_runpath=no
12143
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12144
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12145
hardcode_into_libs=yes
12148
# No shared lib support for Linux oldld, aout, or coff.
12149
linux*oldld* | linux*aout* | linux*coff*)
12153
# This must be Linux ELF.
12158
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12159
soname_spec='${libname}${release}${shared_ext}$major'
12160
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12161
shlibpath_var=LD_LIBRARY_PATH
12162
shlibpath_overrides_runpath=no
12163
# This implies no fast_install, which is unacceptable.
12164
# Some rework will be needed to allow for fast_install
12165
# before this can be enabled.
12166
hardcode_into_libs=yes
12168
# find out which ABI we are using
12170
case "$host_cpu" in
12171
x86_64*|s390x*|powerpc64*)
12172
echo '#line 12172 "configure"' > conftest.$ac_ext
12173
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12174
(eval $ac_compile) 2>&5
12176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177
(exit $ac_status); }; then
12178
case `/usr/bin/file conftest.$ac_objext` in
12181
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12189
# Append ld.so.conf contents to the search path
12190
if test -f /etc/ld.so.conf; then
12191
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12192
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12195
# We used to test for /lib/ld.so.1 and disable shared libraries on
12196
# powerpc, because MkLinux only supported shared libraries with the
12197
# GNU dynamic linker. Since this was broken with cross compilers,
12198
# most powerpc-linux boxes support dynamic linking these days and
12199
# people can always --disable-shared, the test was removed, and we
12200
# assume the GNU/Linux dynamic linker is in use.
12201
dynamic_linker='GNU/Linux ld.so'
12208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12209
soname_spec='${libname}${release}${shared_ext}$major'
12210
shlibpath_var=LD_LIBRARY_PATH
12211
shlibpath_overrides_runpath=no
12212
hardcode_into_libs=yes
12213
dynamic_linker='GNU ld.so'
12220
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12222
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12223
dynamic_linker='NetBSD (a.out) ld.so'
12225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12226
soname_spec='${libname}${release}${shared_ext}$major'
12227
dynamic_linker='NetBSD ld.elf_so'
12229
shlibpath_var=LD_LIBRARY_PATH
12230
shlibpath_overrides_runpath=yes
12231
hardcode_into_libs=yes
12236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12237
shlibpath_var=LD_LIBRARY_PATH
12238
shlibpath_overrides_runpath=yes
12245
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12246
soname_spec='${libname}${release}${shared_ext}$major'
12247
shlibpath_var=LD_LIBRARY_PATH
12248
shlibpath_overrides_runpath=yes
12253
sys_lib_dlsearch_path_spec="/usr/lib"
12255
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12257
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12258
*) need_version=no ;;
12260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12261
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12262
shlibpath_var=LD_LIBRARY_PATH
12263
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12265
openbsd2.[89] | openbsd2.[89].*)
12266
shlibpath_overrides_runpath=no
12269
shlibpath_overrides_runpath=yes
12273
shlibpath_overrides_runpath=yes
12278
libname_spec='$name'
12281
library_names_spec='$libname${shared_ext} $libname.a'
12282
dynamic_linker='OS/2 ld.exe'
12283
shlibpath_var=LIBPATH
12286
osf3* | osf4* | osf5*)
12290
soname_spec='${libname}${release}${shared_ext}$major'
12291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292
shlibpath_var=LD_LIBRARY_PATH
12293
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12294
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302
soname_spec='${libname}${release}${shared_ext}$major'
12303
shlibpath_var=LD_LIBRARY_PATH
12304
shlibpath_overrides_runpath=yes
12305
hardcode_into_libs=yes
12306
# ldd complains unless libraries are executable
12307
postinstall_cmds='chmod +x $lib'
12312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12313
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12314
shlibpath_var=LD_LIBRARY_PATH
12315
shlibpath_overrides_runpath=yes
12316
if test "$with_gnu_ld" = yes; then
12324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325
soname_spec='${libname}${release}${shared_ext}$major'
12326
shlibpath_var=LD_LIBRARY_PATH
12327
case $host_vendor in
12329
shlibpath_overrides_runpath=no
12331
export_dynamic_flag_spec='${wl}-Blargedynsym'
12332
runpath_var=LD_RUN_PATH
12340
shlibpath_overrides_runpath=no
12341
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12347
if test -d /usr/nec ;then
12349
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12350
soname_spec='$libname${shared_ext}.$major'
12351
shlibpath_var=LD_LIBRARY_PATH
12355
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12356
version_type=freebsd-elf
12359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12360
soname_spec='${libname}${release}${shared_ext}$major'
12361
shlibpath_var=LD_LIBRARY_PATH
12362
hardcode_into_libs=yes
12363
if test "$with_gnu_ld" = yes; then
12364
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12365
shlibpath_overrides_runpath=no
12367
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12368
shlibpath_overrides_runpath=yes
12371
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12375
sys_lib_dlsearch_path_spec='/usr/lib'
12380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12381
soname_spec='${libname}${release}${shared_ext}$major'
12382
shlibpath_var=LD_LIBRARY_PATH
12389
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12390
echo "${ECHO_T}$dynamic_linker" >&6
12391
test "$dynamic_linker" = no && can_build_shared=no
12393
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12394
if test "$GCC" = yes; then
12395
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12398
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12399
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12400
hardcode_action_CXX=
12401
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12402
test -n "$runpath_var_CXX" || \
12403
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12405
# We can hardcode non-existant directories.
12406
if test "$hardcode_direct_CXX" != no &&
12407
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12408
# have to relink, otherwise we might link with an installed library
12409
# when we should be linking with a yet-to-be-installed one
12410
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12411
test "$hardcode_minus_L_CXX" != no; then
12412
# Linking always hardcodes the temporary library directory.
12413
hardcode_action_CXX=relink
12415
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12416
hardcode_action_CXX=immediate
12419
# We cannot hardcode anything, or else we can only hardcode existing
12421
hardcode_action_CXX=unsupported
12423
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12424
echo "${ECHO_T}$hardcode_action_CXX" >&6
12426
if test "$hardcode_action_CXX" = relink; then
12427
# Fast installation is not supported
12428
enable_fast_install=no
12429
elif test "$shlibpath_overrides_runpath" = yes ||
12430
test "$enable_shared" = no; then
12431
# Fast installation is not necessary
12432
enable_fast_install=needless
12436
# The else clause should only fire when bootstrapping the
12437
# libtool distribution, otherwise you forgot to ship ltmain.sh
12438
# with your package, and you will get complaints that there are
12439
# no rules to generate ltmain.sh.
12440
if test -f "$ltmain"; then
12441
# See if we are running on zsh, and set the options which allow our commands through
12442
# without removal of \ escapes.
12443
if test -n "${ZSH_VERSION+set}" ; then
12444
setopt NO_GLOB_SUBST
12446
# Now quote all the things that may contain metacharacters while being
12447
# careful not to overquote the AC_SUBSTed values. We take copies of the
12448
# variables and quote the copies for generation of the libtool script.
12449
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12451
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12452
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12453
deplibs_check_method reload_flag reload_cmds need_locks \
12454
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12455
lt_cv_sys_global_symbol_to_c_name_address \
12456
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12457
old_postinstall_cmds old_postuninstall_cmds \
12461
lt_prog_compiler_wl_CXX \
12462
lt_prog_compiler_pic_CXX \
12463
lt_prog_compiler_static_CXX \
12464
lt_prog_compiler_no_builtin_flag_CXX \
12465
export_dynamic_flag_spec_CXX \
12466
thread_safe_flag_spec_CXX \
12467
whole_archive_flag_spec_CXX \
12468
enable_shared_with_static_runtimes_CXX \
12469
old_archive_cmds_CXX \
12470
old_archive_from_new_cmds_CXX \
12471
predep_objects_CXX \
12472
postdep_objects_CXX \
12475
compiler_lib_search_path_CXX \
12477
archive_expsym_cmds_CXX \
12478
postinstall_cmds_CXX \
12479
postuninstall_cmds_CXX \
12480
old_archive_from_expsyms_cmds_CXX \
12481
allow_undefined_flag_CXX \
12482
no_undefined_flag_CXX \
12483
export_symbols_cmds_CXX \
12484
hardcode_libdir_flag_spec_CXX \
12485
hardcode_libdir_flag_spec_ld_CXX \
12486
hardcode_libdir_separator_CXX \
12487
hardcode_automatic_CXX \
12489
module_expsym_cmds_CXX \
12490
lt_cv_prog_compiler_c_o_CXX \
12491
exclude_expsyms_CXX \
12492
include_expsyms_CXX; do
12495
old_archive_cmds_CXX | \
12496
old_archive_from_new_cmds_CXX | \
12497
archive_cmds_CXX | \
12498
archive_expsym_cmds_CXX | \
12499
module_cmds_CXX | \
12500
module_expsym_cmds_CXX | \
12501
old_archive_from_expsyms_cmds_CXX | \
12502
export_symbols_cmds_CXX | \
12503
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12504
postinstall_cmds | postuninstall_cmds | \
12505
old_postinstall_cmds | old_postuninstall_cmds | \
12506
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12507
# Double-quote double-evaled strings.
12508
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12511
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12517
*'\$0 --fallback-echo"')
12518
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12524
cat <<__EOF__ >> "$cfgfile"
12525
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12527
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12529
# Shell to use when invoking shell scripts.
12532
# Whether or not to build shared libraries.
12533
build_libtool_libs=$enable_shared
12535
# Whether or not to build static libraries.
12536
build_old_libs=$enable_static
12538
# Whether or not to add -lc for building shared libraries.
12539
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12541
# Whether or not to disallow shared libs when runtime libs are static
12542
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12544
# Whether or not to optimize for fast installation.
12545
fast_install=$enable_fast_install
12548
host_alias=$host_alias
12552
# The build system.
12553
build_alias=$build_alias
12557
# An echo program that does not interpret backslashes.
12562
AR_FLAGS=$lt_AR_FLAGS
12567
# LTCC compiler flags.
12568
LTCFLAGS=$lt_LTCFLAGS
12570
# A language-specific compiler.
12571
CC=$lt_compiler_CXX
12573
# Is the compiler the GNU C compiler?
12576
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12577
gcc_ver=\`gcc -dumpversion\`
12582
# The linker used to build libraries.
12585
# Whether we need hard or soft links.
12588
# A BSD-compatible nm program.
12591
# A symbol stripping program
12594
# Used to examine libraries when file_magic_cmd begins "file"
12595
MAGIC_CMD=$MAGIC_CMD
12597
# Used on cygwin: DLL creation program.
12600
# Used on cygwin: object dumper.
12603
# Used on cygwin: assembler.
12606
# The name of the directory that contains temporary libtool files.
12609
# How to create reloadable object files.
12610
reload_flag=$lt_reload_flag
12611
reload_cmds=$lt_reload_cmds
12613
# How to pass a linker flag through the compiler.
12614
wl=$lt_lt_prog_compiler_wl_CXX
12616
# Object file suffix (normally "o").
12617
objext="$ac_objext"
12619
# Old archive suffix (normally "a").
12622
# Shared library suffix (normally ".so").
12623
shrext_cmds='$shrext_cmds'
12625
# Executable file suffix (normally "").
12628
# Additional compiler flags for building library objects.
12629
pic_flag=$lt_lt_prog_compiler_pic_CXX
12632
# What is the maximum length of a command?
12633
max_cmd_len=$lt_cv_sys_max_cmd_len
12635
# Does compiler simultaneously support -c and -o options?
12636
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12638
# Must we lock files when doing compilation?
12639
need_locks=$lt_need_locks
12641
# Do we need the lib prefix for modules?
12642
need_lib_prefix=$need_lib_prefix
12644
# Do we need a version for libraries?
12645
need_version=$need_version
12647
# Whether dlopen is supported.
12648
dlopen_support=$enable_dlopen
12650
# Whether dlopen of programs is supported.
12651
dlopen_self=$enable_dlopen_self
12653
# Whether dlopen of statically linked programs is supported.
12654
dlopen_self_static=$enable_dlopen_self_static
12656
# Compiler flag to prevent dynamic linking.
12657
link_static_flag=$lt_lt_prog_compiler_static_CXX
12659
# Compiler flag to turn off builtin functions.
12660
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12662
# Compiler flag to allow reflexive dlopens.
12663
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12665
# Compiler flag to generate shared objects directly from archives.
12666
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12668
# Compiler flag to generate thread-safe objects.
12669
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12671
# Library versioning type.
12672
version_type=$version_type
12674
# Format of library name prefix.
12675
libname_spec=$lt_libname_spec
12677
# List of archive names. First name is the real one, the rest are links.
12678
# The last name is the one that the linker finds with -lNAME.
12679
library_names_spec=$lt_library_names_spec
12681
# The coded name of the library, if different from the real name.
12682
soname_spec=$lt_soname_spec
12684
# Commands used to build and install an old-style archive.
12686
old_archive_cmds=$lt_old_archive_cmds_CXX
12687
old_postinstall_cmds=$lt_old_postinstall_cmds
12688
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12690
# Create an old-style archive from a shared archive.
12691
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12693
# Create a temporary old-style archive to link instead of a shared archive.
12694
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12696
# Commands used to build and install a shared archive.
12697
archive_cmds=$lt_archive_cmds_CXX
12698
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12699
postinstall_cmds=$lt_postinstall_cmds
12700
postuninstall_cmds=$lt_postuninstall_cmds
12702
# Commands used to build a loadable module (assumed same as above if empty)
12703
module_cmds=$lt_module_cmds_CXX
12704
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12706
# Commands to strip libraries.
12707
old_striplib=$lt_old_striplib
12708
striplib=$lt_striplib
12710
# Dependencies to place before the objects being linked to create a
12712
predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12714
# Dependencies to place after the objects being linked to create a
12716
postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12718
# Dependencies to place before the objects being linked to create a
12720
predeps=$lt_predeps_CXX
12722
# Dependencies to place after the objects being linked to create a
12724
postdeps=$lt_postdeps_CXX
12726
# The library search path used internally by the compiler when linking
12727
# a shared library.
12728
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12730
# Method to check whether dependent libraries are shared objects.
12731
deplibs_check_method=$lt_deplibs_check_method
12733
# Command to use when deplibs_check_method == file_magic.
12734
file_magic_cmd=$lt_file_magic_cmd
12736
# Flag that allows shared libraries with undefined symbols to be built.
12737
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12739
# Flag that forces no undefined symbols.
12740
no_undefined_flag=$lt_no_undefined_flag_CXX
12742
# Commands used to finish a libtool library installation in a directory.
12743
finish_cmds=$lt_finish_cmds
12745
# Same as above, but a single script fragment to be evaled but not shown.
12746
finish_eval=$lt_finish_eval
12748
# Take the output of nm and produce a listing of raw symbols and C names.
12749
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12751
# Transform the output of nm in a proper C declaration
12752
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12754
# Transform the output of nm in a C name address pair
12755
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12757
# This is the shared library runtime path variable.
12758
runpath_var=$runpath_var
12760
# This is the shared library path variable.
12761
shlibpath_var=$shlibpath_var
12763
# Is shlibpath searched before the hard-coded library search path?
12764
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12766
# How to hardcode a shared library path into an executable.
12767
hardcode_action=$hardcode_action_CXX
12769
# Whether we should hardcode library paths into libraries.
12770
hardcode_into_libs=$hardcode_into_libs
12772
# Flag to hardcode \$libdir into a binary during linking.
12773
# This must work even if \$libdir does not exist.
12774
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12776
# If ld is used when linking, flag to hardcode \$libdir into
12777
# a binary during linking. This must work even if \$libdir does
12779
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12781
# Whether we need a single -rpath flag with a separated argument.
12782
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12784
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12785
# resulting binary.
12786
hardcode_direct=$hardcode_direct_CXX
12788
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12789
# resulting binary.
12790
hardcode_minus_L=$hardcode_minus_L_CXX
12792
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12793
# the resulting binary.
12794
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12796
# Set to yes if building a shared library automatically hardcodes DIR into the library
12797
# and all subsequent libraries and executables linked against it.
12798
hardcode_automatic=$hardcode_automatic_CXX
12800
# Variables whose values should be saved in libtool wrapper scripts and
12801
# restored at relink time.
12802
variables_saved_for_relink="$variables_saved_for_relink"
12804
# Whether libtool must link a program against all its dependency libraries.
12805
link_all_deplibs=$link_all_deplibs_CXX
12807
# Compile-time system search path for libraries
12808
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12810
# Run-time system search path for libraries
12811
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12813
# Fix the shell variable \$srcfile for the compiler.
12814
fix_srcfile_path="$fix_srcfile_path_CXX"
12816
# Set to yes if exported symbols are required.
12817
always_export_symbols=$always_export_symbols_CXX
12819
# The commands to list exported symbols.
12820
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12822
# The commands to extract the exported symbol list from a shared archive.
12823
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12825
# Symbols that should not be listed in the preloaded symbols.
12826
exclude_expsyms=$lt_exclude_expsyms_CXX
12828
# Symbols that must always be exported.
12829
include_expsyms=$lt_include_expsyms_CXX
12831
# ### END LIBTOOL TAG CONFIG: $tagname
12837
# If there is no Makefile yet, we rely on a make rule to execute
12838
# `config.status --recheck' to rerun these tests and create the
12839
# libtool script then.
12840
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12841
if test -f "$ltmain_in"; then
12842
test -f Makefile && make "$ltmain"
12848
ac_cpp='$CPP $CPPFLAGS'
12849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12857
with_gnu_ldcxx=$with_gnu_ld
12858
with_gnu_ld=$lt_save_with_gnu_ld
12859
lt_cv_path_LDCXX=$lt_cv_path_LD
12860
lt_cv_path_LD=$lt_save_path_LD
12861
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12862
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12870
if test -n "$F77" && test "X$F77" != "Xno"; then
12873
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12874
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12875
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12878
archive_cmds_need_lc_F77=no
12879
allow_undefined_flag_F77=
12880
always_export_symbols_F77=no
12881
archive_expsym_cmds_F77=
12882
export_dynamic_flag_spec_F77=
12883
hardcode_direct_F77=no
12884
hardcode_libdir_flag_spec_F77=
12885
hardcode_libdir_flag_spec_ld_F77=
12886
hardcode_libdir_separator_F77=
12887
hardcode_minus_L_F77=no
12888
hardcode_automatic_F77=no
12890
module_expsym_cmds_F77=
12891
link_all_deplibs_F77=unknown
12892
old_archive_cmds_F77=$old_archive_cmds
12893
no_undefined_flag_F77=
12894
whole_archive_flag_spec_F77=
12895
enable_shared_with_static_runtimes_F77=no
12897
# Source file extension for f77 test sources.
12900
# Object file extension for compiled f77 test sources.
12904
# Code to be used in simple compile tests
12905
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12907
# Code to be used in simple link tests
12908
lt_simple_link_test_code=" program t\n end\n"
12910
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12912
# If no C compiler was specified, use CC.
12915
# If no C compiler flags were specified, use CFLAGS.
12916
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12918
# Allow CC to be a program name with arguments.
12922
# save warnings/boilerplate of simple test code
12923
ac_outfile=conftest.$ac_objext
12924
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12925
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12926
_lt_compiler_boilerplate=`cat conftest.err`
12929
ac_outfile=conftest.$ac_objext
12930
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12931
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12932
_lt_linker_boilerplate=`cat conftest.err`
12936
# Allow CC to be a program name with arguments.
12941
for cc_temp in $compiler""; do
12943
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12944
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12949
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12952
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12953
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12954
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12955
echo "${ECHO_T}$can_build_shared" >&6
12957
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12958
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12959
test "$can_build_shared" = "no" && enable_shared=no
12961
# On AIX, shared libraries and static libraries use the same namespace, and
12962
# are all built from PIC.
12965
test "$enable_shared" = yes && enable_static=no
12966
if test -n "$RANLIB"; then
12967
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12968
postinstall_cmds='$RANLIB $lib'
12972
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12973
test "$enable_shared" = yes && enable_static=no
12977
echo "$as_me:$LINENO: result: $enable_shared" >&5
12978
echo "${ECHO_T}$enable_shared" >&6
12980
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12981
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12982
# Make sure either enable_shared or enable_static is yes.
12983
test "$enable_shared" = yes || enable_static=yes
12984
echo "$as_me:$LINENO: result: $enable_static" >&5
12985
echo "${ECHO_T}$enable_static" >&6
12990
lt_prog_compiler_wl_F77=
12991
lt_prog_compiler_pic_F77=
12992
lt_prog_compiler_static_F77=
12994
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12995
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12997
if test "$GCC" = yes; then
12998
lt_prog_compiler_wl_F77='-Wl,'
12999
lt_prog_compiler_static_F77='-static'
13003
# All AIX code is PIC.
13004
if test "$host_cpu" = ia64; then
13005
# AIX 5 now supports IA64 processor
13006
lt_prog_compiler_static_F77='-Bstatic'
13011
# FIXME: we need at least 68020 code to build shared libraries, but
13012
# adding the `-m68020' flag to GCC prevents building anything better,
13014
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13017
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13018
# PIC is the default for these OSes.
13021
mingw* | pw32* | os2*)
13022
# This hack is so that the source file can tell whether it is being
13023
# built for inclusion in a dll (and should export symbols for example).
13024
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13027
darwin* | rhapsody*)
13028
# PIC is the default on this platform
13029
# Common symbols not allowed in MH_DYLIB files
13030
lt_prog_compiler_pic_F77='-fno-common'
13034
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13035
# Instead, we relocate shared libraries at runtime.
13039
# Just because we use GCC doesn't mean we suddenly get shared libraries
13040
# on systems that don't support them.
13041
lt_prog_compiler_can_build_shared_F77=no
13046
if test -d /usr/nec; then
13047
lt_prog_compiler_pic_F77=-Kconform_pic
13052
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13053
# not for PA HP-UX.
13059
lt_prog_compiler_pic_F77='-fPIC'
13065
lt_prog_compiler_pic_F77='-fPIC'
13069
# PORTME Check for flag to pass linker flags through the system compiler.
13072
lt_prog_compiler_wl_F77='-Wl,'
13073
if test "$host_cpu" = ia64; then
13074
# AIX 5 now supports IA64 processor
13075
lt_prog_compiler_static_F77='-Bstatic'
13077
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13081
# PIC is the default on this platform
13082
# Common symbols not allowed in MH_DYLIB files
13083
case $cc_basename in
13085
lt_prog_compiler_pic_F77='-qnocommon'
13086
lt_prog_compiler_wl_F77='-Wl,'
13091
mingw* | pw32* | os2*)
13092
# This hack is so that the source file can tell whether it is being
13093
# built for inclusion in a dll (and should export symbols for example).
13094
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13097
hpux9* | hpux10* | hpux11*)
13098
lt_prog_compiler_wl_F77='-Wl,'
13099
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13100
# not for PA HP-UX.
13106
lt_prog_compiler_pic_F77='+Z'
13109
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13110
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13113
irix5* | irix6* | nonstopux*)
13114
lt_prog_compiler_wl_F77='-Wl,'
13115
# PIC (with -KPIC) is the default.
13116
lt_prog_compiler_static_F77='-non_shared'
13120
lt_prog_compiler_pic_F77='-KPIC'
13121
lt_prog_compiler_static_F77='-Bstatic'
13125
case $cc_basename in
13127
lt_prog_compiler_wl_F77='-Wl,'
13128
lt_prog_compiler_pic_F77='-KPIC'
13129
lt_prog_compiler_static_F77='-static'
13131
pgcc* | pgf77* | pgf90* | pgf95*)
13132
# Portland Group compilers (*not* the Pentium gcc compiler,
13133
# which looks to be a dead project)
13134
lt_prog_compiler_wl_F77='-Wl,'
13135
lt_prog_compiler_pic_F77='-fpic'
13136
lt_prog_compiler_static_F77='-Bstatic'
13139
lt_prog_compiler_wl_F77='-Wl,'
13140
# All Alpha code is PIC.
13141
lt_prog_compiler_static_F77='-non_shared'
13146
osf3* | osf4* | osf5*)
13147
lt_prog_compiler_wl_F77='-Wl,'
13148
# All OSF/1 code is PIC.
13149
lt_prog_compiler_static_F77='-non_shared'
13153
lt_prog_compiler_pic_F77='-KPIC'
13154
lt_prog_compiler_static_F77='-Bstatic'
13155
case $cc_basename in
13156
f77* | f90* | f95*)
13157
lt_prog_compiler_wl_F77='-Qoption ld ';;
13159
lt_prog_compiler_wl_F77='-Wl,';;
13164
lt_prog_compiler_wl_F77='-Qoption ld '
13165
lt_prog_compiler_pic_F77='-PIC'
13166
lt_prog_compiler_static_F77='-Bstatic'
13169
sysv4 | sysv4.2uw2* | sysv4.3*)
13170
lt_prog_compiler_wl_F77='-Wl,'
13171
lt_prog_compiler_pic_F77='-KPIC'
13172
lt_prog_compiler_static_F77='-Bstatic'
13176
if test -d /usr/nec ;then
13177
lt_prog_compiler_pic_F77='-Kconform_pic'
13178
lt_prog_compiler_static_F77='-Bstatic'
13182
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13183
lt_prog_compiler_wl_F77='-Wl,'
13184
lt_prog_compiler_pic_F77='-KPIC'
13185
lt_prog_compiler_static_F77='-Bstatic'
13189
lt_prog_compiler_wl_F77='-Wl,'
13190
lt_prog_compiler_can_build_shared_F77=no
13194
lt_prog_compiler_pic_F77='-pic'
13195
lt_prog_compiler_static_F77='-Bstatic'
13199
lt_prog_compiler_can_build_shared_F77=no
13204
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13205
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13208
# Check to make sure the PIC flag actually works.
13210
if test -n "$lt_prog_compiler_pic_F77"; then
13212
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13213
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13214
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13215
echo $ECHO_N "(cached) $ECHO_C" >&6
13217
lt_prog_compiler_pic_works_F77=no
13218
ac_outfile=conftest.$ac_objext
13219
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13220
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13221
# Insert the option either (1) after the last *FLAGS variable, or
13222
# (2) before a word containing "conftest.", or (3) at the end.
13223
# Note that $ac_compile itself does not contain backslashes and begins
13224
# with a dollar sign (not a hyphen), so the echo should work correctly.
13225
# The option is referenced via a variable to avoid confusing sed.
13226
lt_compile=`echo "$ac_compile" | $SED \
13227
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13228
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13229
-e 's:$: $lt_compiler_flag:'`
13230
(eval echo "\"\$as_me:13230: $lt_compile\"" >&5)
13231
(eval "$lt_compile" 2>conftest.err)
13233
cat conftest.err >&5
13234
echo "$as_me:13234: \$? = $ac_status" >&5
13235
if (exit $ac_status) && test -s "$ac_outfile"; then
13236
# The compiler can only warn and ignore the option if not recognized
13237
# So say no if there are warnings other than the usual output.
13238
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13239
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13240
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13241
lt_prog_compiler_pic_works_F77=yes
13247
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13248
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13250
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13251
case $lt_prog_compiler_pic_F77 in
13253
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13256
lt_prog_compiler_pic_F77=
13257
lt_prog_compiler_can_build_shared_F77=no
13262
# For platforms which do not support PIC, -DPIC is meaningless:
13264
lt_prog_compiler_pic_F77=
13267
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13272
# Check to make sure the static flag actually works.
13274
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13275
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13276
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13277
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13278
echo $ECHO_N "(cached) $ECHO_C" >&6
13280
lt_prog_compiler_static_works_F77=no
13281
save_LDFLAGS="$LDFLAGS"
13282
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13283
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13284
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13285
# The linker can only warn and ignore the option if not recognized
13286
# So say no if there are warnings
13287
if test -s conftest.err; then
13288
# Append any errors to the config.log.
13289
cat conftest.err 1>&5
13290
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13291
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13292
if diff conftest.exp conftest.er2 >/dev/null; then
13293
lt_prog_compiler_static_works_F77=yes
13296
lt_prog_compiler_static_works_F77=yes
13300
LDFLAGS="$save_LDFLAGS"
13303
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13304
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13306
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13309
lt_prog_compiler_static_F77=
13313
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13314
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13315
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13316
echo $ECHO_N "(cached) $ECHO_C" >&6
13318
lt_cv_prog_compiler_c_o_F77=no
13319
$rm -r conftest 2>/dev/null
13323
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13325
lt_compiler_flag="-o out/conftest2.$ac_objext"
13326
# Insert the option either (1) after the last *FLAGS variable, or
13327
# (2) before a word containing "conftest.", or (3) at the end.
13328
# Note that $ac_compile itself does not contain backslashes and begins
13329
# with a dollar sign (not a hyphen), so the echo should work correctly.
13330
lt_compile=`echo "$ac_compile" | $SED \
13331
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13332
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13333
-e 's:$: $lt_compiler_flag:'`
13334
(eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
13335
(eval "$lt_compile" 2>out/conftest.err)
13337
cat out/conftest.err >&5
13338
echo "$as_me:13338: \$? = $ac_status" >&5
13339
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13341
# The compiler can only warn and ignore the option if not recognized
13342
# So say no if there are warnings
13343
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13344
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13345
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13346
lt_cv_prog_compiler_c_o_F77=yes
13351
# SGI C++ compiler will create directory out/ii_files/ for
13352
# template instantiation
13353
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13354
$rm out/* && rmdir out
13360
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13361
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13364
hard_links="nottested"
13365
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13366
# do not overwrite the value of need_locks provided by the user
13367
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13368
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13371
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13373
ln conftest.a conftest.b 2>&5 || hard_links=no
13374
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13375
echo "$as_me:$LINENO: result: $hard_links" >&5
13376
echo "${ECHO_T}$hard_links" >&6
13377
if test "$hard_links" = no; then
13378
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13379
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13386
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13387
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13390
allow_undefined_flag_F77=
13391
enable_shared_with_static_runtimes_F77=no
13393
archive_expsym_cmds_F77=
13394
old_archive_From_new_cmds_F77=
13395
old_archive_from_expsyms_cmds_F77=
13396
export_dynamic_flag_spec_F77=
13397
whole_archive_flag_spec_F77=
13398
thread_safe_flag_spec_F77=
13399
hardcode_libdir_flag_spec_F77=
13400
hardcode_libdir_flag_spec_ld_F77=
13401
hardcode_libdir_separator_F77=
13402
hardcode_direct_F77=no
13403
hardcode_minus_L_F77=no
13404
hardcode_shlibpath_var_F77=unsupported
13405
link_all_deplibs_F77=unknown
13406
hardcode_automatic_F77=no
13408
module_expsym_cmds_F77=
13409
always_export_symbols_F77=no
13410
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13411
# include_expsyms should be a list of space-separated symbols to be *always*
13412
# included in the symbol list
13413
include_expsyms_F77=
13414
# exclude_expsyms can be an extended regexp of symbols to exclude
13415
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13416
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13417
# as well as any symbol that contains `d'.
13418
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13419
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13420
# platforms (ab)use it in PIC code, but their linkers get confused if
13421
# the symbol is explicitly referenced. Since portable code cannot
13422
# rely on this symbol name, it's probably fine to never include it in
13423
# preloaded symbol tables.
13424
extract_expsyms_cmds=
13425
# Just being paranoid about ensuring that cc_basename is set.
13426
for cc_temp in $compiler""; do
13428
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13429
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13434
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13437
cygwin* | mingw* | pw32*)
13438
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13439
# When not using gcc, we currently assume that we are using
13440
# Microsoft Visual C++.
13441
if test "$GCC" != yes; then
13446
# we just hope/assume this is gcc and not c89 (= MSVC++)
13455
if test "$with_gnu_ld" = yes; then
13456
# If archive_cmds runs LD, not CC, wlarc should be empty
13459
# Set some defaults for GNU ld with shared library support. These
13460
# are reset later if shared libraries are not supported. Putting them
13461
# here allows them to be overridden if necessary.
13462
runpath_var=LD_RUN_PATH
13463
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13464
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13465
# ancient GNU ld didn't support --whole-archive et. al.
13466
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13467
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13469
whole_archive_flag_spec_F77=
13471
supports_anon_versioning=no
13472
case `$LD -v 2>/dev/null` in
13473
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13474
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13475
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13476
*\ 2.11.*) ;; # other 2.11 versions
13477
*) supports_anon_versioning=yes ;;
13480
# See if GNU ld supports shared libraries.
13482
aix3* | aix4* | aix5*)
13483
# On AIX/PPC, the GNU linker is very broken
13484
if test "$host_cpu" != ia64; then
13488
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13489
*** to be unable to reliably create shared libraries on AIX.
13490
*** Therefore, libtool is disabling shared libraries support. If you
13491
*** really care for shared libraries, you may want to modify your PATH
13492
*** so that a non-GNU linker is found, and then restart.
13499
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)'
13500
hardcode_libdir_flag_spec_F77='-L$libdir'
13501
hardcode_minus_L_F77=yes
13503
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13504
# that the semantics of dynamic libraries on AmigaOS, at least up
13505
# to version 4, is to share data among multiple programs linked
13506
# with the same dynamic library. Since this doesn't match the
13507
# behavior of shared libraries on other platforms, we can't use
13513
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13514
allow_undefined_flag_F77=unsupported
13515
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13516
# support --undefined. This deserves some investigation. FIXME
13517
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13523
cygwin* | mingw* | pw32*)
13524
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13525
# as there is no search path for DLLs.
13526
hardcode_libdir_flag_spec_F77='-L$libdir'
13527
allow_undefined_flag_F77=unsupported
13528
always_export_symbols_F77=no
13529
enable_shared_with_static_runtimes_F77=yes
13530
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13532
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13533
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13534
# If the export-symbols file already is a .def file (1st line
13535
# is EXPORTS), use it as is; otherwise, prepend...
13536
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13537
cp $export_symbols $output_objdir/$soname.def;
13539
echo EXPORTS > $output_objdir/$soname.def;
13540
cat $export_symbols >> $output_objdir/$soname.def;
13542
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13549
hardcode_direct_F77=no
13550
hardcode_shlibpath_var_F77=no
13551
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13552
export_dynamic_flag_spec_F77='${wl}-E'
13553
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13554
# Instead, shared libraries are loaded at an image base (0x10000000 by
13555
# default) and relocated if they conflict, which is a slow very memory
13556
# consuming and fragmenting process. To avoid this, we pick a random,
13557
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13558
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13559
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'
13560
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'
13564
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13566
case $cc_basename,$host_cpu in
13567
pgcc*) # Portland Group C compiler
13568
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'
13569
tmp_addflag=' $pic_flag'
13571
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13572
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'
13573
tmp_addflag=' $pic_flag -Mnomain' ;;
13574
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13575
tmp_addflag=' -i_dynamic' ;;
13576
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13577
tmp_addflag=' -i_dynamic -nofor_main' ;;
13578
ifc* | ifort*) # Intel Fortran compiler
13579
tmp_addflag=' -nofor_main' ;;
13581
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13583
if test $supports_anon_versioning = yes; then
13584
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13585
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13586
$echo "local: *; };" >> $output_objdir/$libname.ver~
13587
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13595
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13596
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13599
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13600
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13605
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13609
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13610
*** create shared libraries on Solaris systems. Therefore, libtool
13611
*** is disabling shared libraries support. We urge you to upgrade GNU
13612
*** binutils to release 2.9.1 or newer. Another option is to modify
13613
*** your PATH or compiler configuration so that the native linker is
13614
*** used, and then restart.
13617
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13618
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13619
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13625
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13626
case `$LD -v 2>&1` in
13627
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13631
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13632
*** reliably create shared libraries on SCO systems. Therefore, libtool
13633
*** is disabling shared libraries support. We urge you to upgrade GNU
13634
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13635
*** your PATH or compiler configuration so that the native linker is
13636
*** used, and then restart.
13641
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13642
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13643
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13644
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13653
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13655
hardcode_direct_F77=yes
13656
hardcode_shlibpath_var_F77=no
13660
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13661
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13662
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13669
if test "$ld_shlibs_F77" = no; then
13671
hardcode_libdir_flag_spec_F77=
13672
export_dynamic_flag_spec_F77=
13673
whole_archive_flag_spec_F77=
13676
# PORTME fill in a description of your system's linker (not GNU ld)
13679
allow_undefined_flag_F77=unsupported
13680
always_export_symbols_F77=yes
13681
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'
13682
# Note: this linker hardcodes the directories in LIBPATH if there
13683
# are no directories specified by -L.
13684
hardcode_minus_L_F77=yes
13685
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13686
# Neither direct hardcoding nor static linking is supported with a
13688
hardcode_direct_F77=unsupported
13693
if test "$host_cpu" = ia64; then
13694
# On IA64, the linker does run time linking by default, so we don't
13695
# have to do anything special.
13696
aix_use_runtimelinking=no
13697
exp_sym_flag='-Bexport'
13700
# If we're using GNU nm, then we don't want the "-C" option.
13701
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13702
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13703
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'
13705
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'
13707
aix_use_runtimelinking=no
13709
# Test if we are trying to use run time linking or normal
13710
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13711
# need to do runtime linking.
13712
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13713
for ld_flag in $LDFLAGS; do
13714
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13715
aix_use_runtimelinking=yes
13722
exp_sym_flag='-bexport'
13723
no_entry_flag='-bnoentry'
13726
# When large executables or shared objects are built, AIX ld can
13727
# have problems creating the table of contents. If linking a library
13728
# or program results in "error TOC overflow" add -mminimal-toc to
13729
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13730
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13732
archive_cmds_F77=''
13733
hardcode_direct_F77=yes
13734
hardcode_libdir_separator_F77=':'
13735
link_all_deplibs_F77=yes
13737
if test "$GCC" = yes; then
13738
case $host_os in aix4.[012]|aix4.[012].*)
13739
# We only want to do this on AIX 4.2 and lower, the check
13740
# below for broken collect2 doesn't work under 4.3+
13741
collect2name=`${CC} -print-prog-name=collect2`
13742
if test -f "$collect2name" && \
13743
strings "$collect2name" | grep resolve_lib_name >/dev/null
13745
# We have reworked collect2
13746
hardcode_direct_F77=yes
13748
# We have old collect2
13749
hardcode_direct_F77=unsupported
13750
# It fails to find uninstalled libraries when the uninstalled
13751
# path is not listed in the libpath. Setting hardcode_minus_L
13752
# to unsupported forces relinking
13753
hardcode_minus_L_F77=yes
13754
hardcode_libdir_flag_spec_F77='-L$libdir'
13755
hardcode_libdir_separator_F77=
13759
shared_flag='-shared'
13760
if test "$aix_use_runtimelinking" = yes; then
13761
shared_flag="$shared_flag "'${wl}-G'
13765
if test "$host_cpu" = ia64; then
13766
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13767
# chokes on -Wl,-G. The following line is correct:
13770
if test "$aix_use_runtimelinking" = yes; then
13771
shared_flag='${wl}-G'
13773
shared_flag='${wl}-bM:SRE'
13778
# It seems that -bexpall does not export symbols beginning with
13779
# underscore (_), so it is better to generate a list of symbols to export.
13780
always_export_symbols_F77=yes
13781
if test "$aix_use_runtimelinking" = yes; then
13782
# Warning - without using the other runtime loading flags (-brtl),
13783
# -berok will link without error, but may produce a broken library.
13784
allow_undefined_flag_F77='-berok'
13785
# Determine the default libpath from the value encoded in an empty executable.
13786
cat >conftest.$ac_ext <<_ACEOF
13791
rm -f conftest.$ac_objext conftest$ac_exeext
13792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13793
(eval $ac_link) 2>conftest.er1
13795
grep -v '^ *+' conftest.er1 >conftest.err
13797
cat conftest.err >&5
13798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799
(exit $ac_status); } &&
13800
{ ac_try='test -z "$ac_f77_werror_flag"
13801
|| test ! -s conftest.err'
13802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803
(eval $ac_try) 2>&5
13805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806
(exit $ac_status); }; } &&
13807
{ ac_try='test -s conftest$ac_exeext'
13808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809
(eval $ac_try) 2>&5
13811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812
(exit $ac_status); }; }; then
13814
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13816
# Check for a 64-bit object if we didn't find anything.
13817
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; }
13820
echo "$as_me: failed program was:" >&5
13821
sed 's/^/| /' conftest.$ac_ext >&5
13824
rm -f conftest.err conftest.$ac_objext \
13825
conftest$ac_exeext conftest.$ac_ext
13826
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13828
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13829
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"
13831
if test "$host_cpu" = ia64; then
13832
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13833
allow_undefined_flag_F77="-z nodefs"
13834
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"
13836
# Determine the default libpath from the value encoded in an empty executable.
13837
cat >conftest.$ac_ext <<_ACEOF
13842
rm -f conftest.$ac_objext conftest$ac_exeext
13843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844
(eval $ac_link) 2>conftest.er1
13846
grep -v '^ *+' conftest.er1 >conftest.err
13848
cat conftest.err >&5
13849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850
(exit $ac_status); } &&
13851
{ ac_try='test -z "$ac_f77_werror_flag"
13852
|| test ! -s conftest.err'
13853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854
(eval $ac_try) 2>&5
13856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857
(exit $ac_status); }; } &&
13858
{ ac_try='test -s conftest$ac_exeext'
13859
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860
(eval $ac_try) 2>&5
13862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863
(exit $ac_status); }; }; then
13865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13867
# Check for a 64-bit object if we didn't find anything.
13868
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; }
13871
echo "$as_me: failed program was:" >&5
13872
sed 's/^/| /' conftest.$ac_ext >&5
13875
rm -f conftest.err conftest.$ac_objext \
13876
conftest$ac_exeext conftest.$ac_ext
13877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13879
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13880
# Warning - without using the other run time loading flags,
13881
# -berok will link without error, but may produce a broken library.
13882
no_undefined_flag_F77=' ${wl}-bernotok'
13883
allow_undefined_flag_F77=' ${wl}-berok'
13884
# Exported symbols can be pulled into shared objects from archives
13885
whole_archive_flag_spec_F77='$convenience'
13886
archive_cmds_need_lc_F77=yes
13887
# This is similar to how AIX traditionally builds its shared libraries.
13888
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'
13894
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)'
13895
hardcode_libdir_flag_spec_F77='-L$libdir'
13896
hardcode_minus_L_F77=yes
13897
# see comment about different semantics on the GNU ld section
13902
export_dynamic_flag_spec_F77=-rdynamic
13905
cygwin* | mingw* | pw32*)
13906
# When not using gcc, we currently assume that we are using
13907
# Microsoft Visual C++.
13908
# hardcode_libdir_flag_spec is actually meaningless, as there is
13909
# no search path for DLLs.
13910
hardcode_libdir_flag_spec_F77=' '
13911
allow_undefined_flag_F77=unsupported
13912
# Tell ltmain to make .lib files, not .a files.
13914
# Tell ltmain to make .dll files, not .so files.
13916
# FIXME: Setting linknames here is a bad hack.
13917
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13918
# The linker will automatically build a .lib file if we build a DLL.
13919
old_archive_From_new_cmds_F77='true'
13920
# FIXME: Should let the user specify the lib program.
13921
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13922
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13923
enable_shared_with_static_runtimes_F77=yes
13926
darwin* | rhapsody*)
13928
rhapsody* | darwin1.[012])
13929
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13932
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13933
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13935
case ${MACOSX_DEPLOYMENT_TARGET} in
13937
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13940
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13946
archive_cmds_need_lc_F77=no
13947
hardcode_direct_F77=no
13948
hardcode_automatic_F77=yes
13949
hardcode_shlibpath_var_F77=unsupported
13950
whole_archive_flag_spec_F77=''
13951
link_all_deplibs_F77=yes
13952
if test "$GCC" = yes ; then
13953
output_verbose_link_cmd='echo'
13954
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13955
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13956
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13957
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}'
13958
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}'
13960
case $cc_basename in
13962
output_verbose_link_cmd='echo'
13963
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13964
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13965
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13966
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}'
13967
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}'
13977
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13978
hardcode_libdir_flag_spec_F77='-L$libdir'
13979
hardcode_shlibpath_var_F77=no
13986
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13987
# support. Future versions do this automatically, but an explicit c++rt0.o
13988
# does not break anything, and helps significantly (at the cost of a little
13991
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13992
hardcode_libdir_flag_spec_F77='-R$libdir'
13993
hardcode_direct_F77=yes
13994
hardcode_shlibpath_var_F77=no
13997
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13999
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14000
hardcode_direct_F77=yes
14001
hardcode_minus_L_F77=yes
14002
hardcode_shlibpath_var_F77=no
14005
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14006
freebsd* | kfreebsd*-gnu | dragonfly*)
14007
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14008
hardcode_libdir_flag_spec_F77='-R$libdir'
14009
hardcode_direct_F77=yes
14010
hardcode_shlibpath_var_F77=no
14014
if test "$GCC" = yes; then
14015
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'
14017
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'
14019
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14020
hardcode_libdir_separator_F77=:
14021
hardcode_direct_F77=yes
14023
# hardcode_minus_L: Not really in the search PATH,
14024
# but as the default location of the library.
14025
hardcode_minus_L_F77=yes
14026
export_dynamic_flag_spec_F77='${wl}-E'
14030
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14031
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14033
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14035
if test "$with_gnu_ld" = no; then
14036
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14037
hardcode_libdir_separator_F77=:
14039
hardcode_direct_F77=yes
14040
export_dynamic_flag_spec_F77='${wl}-E'
14042
# hardcode_minus_L: Not really in the search PATH,
14043
# but as the default location of the library.
14044
hardcode_minus_L_F77=yes
14049
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14052
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14055
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14058
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14064
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14067
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14070
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14074
if test "$with_gnu_ld" = no; then
14075
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14076
hardcode_libdir_separator_F77=:
14080
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14081
hardcode_direct_F77=no
14082
hardcode_shlibpath_var_F77=no
14085
hardcode_direct_F77=yes
14086
export_dynamic_flag_spec_F77='${wl}-E'
14088
# hardcode_minus_L: Not really in the search PATH,
14089
# but as the default location of the library.
14090
hardcode_minus_L_F77=yes
14096
irix5* | irix6* | nonstopux*)
14097
if test "$GCC" = yes; then
14098
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'
14100
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'
14101
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14103
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14104
hardcode_libdir_separator_F77=:
14105
link_all_deplibs_F77=yes
14109
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14110
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14112
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14114
hardcode_libdir_flag_spec_F77='-R$libdir'
14115
hardcode_direct_F77=yes
14116
hardcode_shlibpath_var_F77=no
14120
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14121
hardcode_direct_F77=yes
14122
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14123
hardcode_libdir_separator_F77=:
14124
hardcode_shlibpath_var_F77=no
14128
hardcode_direct_F77=yes
14129
hardcode_shlibpath_var_F77=no
14130
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14131
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14132
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14133
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14134
export_dynamic_flag_spec_F77='${wl}-E'
14137
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14138
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14139
hardcode_libdir_flag_spec_F77='-R$libdir'
14142
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14143
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14150
hardcode_libdir_flag_spec_F77='-L$libdir'
14151
hardcode_minus_L_F77=yes
14152
allow_undefined_flag_F77=unsupported
14153
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'
14154
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14158
if test "$GCC" = yes; then
14159
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14160
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'
14162
allow_undefined_flag_F77=' -expect_unresolved \*'
14163
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'
14165
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14166
hardcode_libdir_separator_F77=:
14169
osf4* | osf5*) # as osf3* with the addition of -msym flag
14170
if test "$GCC" = yes; then
14171
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14172
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'
14173
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14175
allow_undefined_flag_F77=' -expect_unresolved \*'
14176
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'
14177
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~
14178
$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'
14180
# Both c and cxx compiler support -rpath directly
14181
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14183
hardcode_libdir_separator_F77=:
14187
no_undefined_flag_F77=' -z text'
14188
if test "$GCC" = yes; then
14190
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14191
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14192
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14195
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14196
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14197
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14199
hardcode_libdir_flag_spec_F77='-R$libdir'
14200
hardcode_shlibpath_var_F77=no
14202
solaris2.[0-5] | solaris2.[0-5].*) ;;
14204
# The compiler driver will combine linker options so we
14205
# cannot just pass the convience library names through
14206
# without $wl, iff we do not link with $LD.
14207
# Luckily, gcc supports the same syntax we need for Sun Studio.
14208
# Supported since Solaris 2.6 (maybe 2.5.1?)
14211
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14213
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' ;;
14216
link_all_deplibs_F77=yes
14220
if test "x$host_vendor" = xsequent; then
14221
# Use $CC to link under sequent, because it throws in some extra .o
14222
# files that make .init and .fini sections work.
14223
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14225
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14227
hardcode_libdir_flag_spec_F77='-L$libdir'
14228
hardcode_direct_F77=yes
14229
hardcode_minus_L_F77=yes
14230
hardcode_shlibpath_var_F77=no
14234
case $host_vendor in
14236
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237
hardcode_direct_F77=yes # is this really true???
14240
## LD is ld it makes a PLAMLIB
14241
## CC just makes a GrossModule.
14242
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14243
reload_cmds_F77='$CC -r -o $output$reload_objs'
14244
hardcode_direct_F77=no
14247
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14248
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14251
runpath_var='LD_RUN_PATH'
14252
hardcode_shlibpath_var_F77=no
14256
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14257
hardcode_shlibpath_var_F77=no
14258
export_dynamic_flag_spec_F77='-Bexport'
14262
if test -d /usr/nec; then
14263
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264
hardcode_shlibpath_var_F77=no
14265
runpath_var=LD_RUN_PATH
14266
hardcode_runpath_var=yes
14271
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14272
no_undefined_flag_F77='${wl}-z,text'
14273
archive_cmds_need_lc_F77=no
14274
hardcode_shlibpath_var_F77=no
14275
runpath_var='LD_RUN_PATH'
14277
if test "$GCC" = yes; then
14278
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14279
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14281
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14282
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14286
sysv5* | sco3.2v5* | sco5v6*)
14287
# Note: We can NOT use -z defs as we might desire, because we do not
14288
# link with -lc, and that would cause any symbols used from libc to
14289
# always be unresolved, which means just about no library would
14290
# ever link correctly. If we're not using GNU ld we use -z text
14291
# though, which does catch some bad symbols but isn't as heavy-handed
14293
no_undefined_flag_F77='${wl}-z,text'
14294
allow_undefined_flag_F77='${wl}-z,nodefs'
14295
archive_cmds_need_lc_F77=no
14296
hardcode_shlibpath_var_F77=no
14297
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14298
hardcode_libdir_separator_F77=':'
14299
link_all_deplibs_F77=yes
14300
export_dynamic_flag_spec_F77='${wl}-Bexport'
14301
runpath_var='LD_RUN_PATH'
14303
if test "$GCC" = yes; then
14304
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14305
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14308
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14313
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14314
hardcode_libdir_flag_spec_F77='-L$libdir'
14315
hardcode_shlibpath_var_F77=no
14324
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14325
echo "${ECHO_T}$ld_shlibs_F77" >&6
14326
test "$ld_shlibs_F77" = no && can_build_shared=no
14329
# Do we need to explicitly link libc?
14331
case "x$archive_cmds_need_lc_F77" in
14333
# Assume -lc should be added
14334
archive_cmds_need_lc_F77=yes
14336
if test "$enable_shared" = yes && test "$GCC" = yes; then
14337
case $archive_cmds_F77 in
14339
# FIXME: we may have to deal with multi-command sequences.
14342
# Test whether the compiler implicitly links with -lc since on some
14343
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14344
# to ld, don't add -lc before -lgcc.
14345
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14346
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14348
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14350
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351
(eval $ac_compile) 2>&5
14353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354
(exit $ac_status); } 2>conftest.err; then
14357
libobjs=conftest.$ac_objext
14359
wl=$lt_prog_compiler_wl_F77
14360
pic_flag=$lt_prog_compiler_pic_F77
14366
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14367
allow_undefined_flag_F77=
14368
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14369
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372
(exit $ac_status); }
14374
archive_cmds_need_lc_F77=no
14376
archive_cmds_need_lc_F77=yes
14378
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14380
cat conftest.err 1>&5
14383
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14384
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14391
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14392
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14393
library_names_spec=
14394
libname_spec='lib$name'
14398
postuninstall_cmds=
14402
shlibpath_overrides_runpath=unknown
14404
dynamic_linker="$host_os ld.so"
14405
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14406
if test "$GCC" = yes; then
14407
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14408
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14409
# if the path contains ";" then we assume it to be the separator
14410
# otherwise default to the standard path separator (i.e. ":") - it is
14411
# assumed that no part of a normal pathname contains ";" but that should
14412
# okay in the real world where ";" in dirpaths is itself problematic.
14413
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14415
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14418
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14420
need_lib_prefix=unknown
14421
hardcode_into_libs=no
14423
# when you set need_version to no, make sure it does not cause -set_version
14424
# flags to be left without arguments
14425
need_version=unknown
14430
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14431
shlibpath_var=LIBPATH
14433
# AIX 3 has no versioning support, so we append a major version to the name.
14434
soname_spec='${libname}${release}${shared_ext}$major'
14441
hardcode_into_libs=yes
14442
if test "$host_cpu" = ia64; then
14443
# AIX 5 supports IA64
14444
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14445
shlibpath_var=LD_LIBRARY_PATH
14447
# With GCC up to 2.95.x, collect2 would create an import file
14448
# for dependence libraries. The import file would start with
14449
# the line `#! .'. This would cause the generated library to
14450
# depend on `.', always an invalid library. This was fixed in
14451
# development snapshots of GCC prior to 3.0.
14453
aix4 | aix4.[01] | aix4.[01].*)
14454
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14456
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14459
can_build_shared=no
14463
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14464
# soname into executable. Probably we can add versioning support to
14465
# collect2, so additional links can be useful in future.
14466
if test "$aix_use_runtimelinking" = yes; then
14467
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14468
# instead of lib<name>.a to let people know that these are not
14469
# typical AIX shared libraries.
14470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14472
# We preserve .a as extension for shared libraries through AIX4.2
14473
# and later when we are not doing run time linking.
14474
library_names_spec='${libname}${release}.a $libname.a'
14475
soname_spec='${libname}${release}${shared_ext}$major'
14477
shlibpath_var=LIBPATH
14482
library_names_spec='$libname.ixlibrary $libname.a'
14483
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14484
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'
14488
library_names_spec='${libname}${shared_ext}'
14489
dynamic_linker="$host_os ld.so"
14490
shlibpath_var=LIBRARY_PATH
14496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497
soname_spec='${libname}${release}${shared_ext}$major'
14498
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14499
shlibpath_var=LD_LIBRARY_PATH
14500
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14501
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14502
# the default ld.so.conf also contains /usr/contrib/lib and
14503
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14504
# libtool to hard-code these into programs
14507
cygwin* | mingw* | pw32*)
14508
version_type=windows
14513
case $GCC,$host_os in
14514
yes,cygwin* | yes,mingw* | yes,pw32*)
14515
library_names_spec='$libname.dll.a'
14516
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14517
postinstall_cmds='base_file=`basename \${file}`~
14518
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14519
dldir=$destdir/`dirname \$dlpath`~
14520
test -d \$dldir || mkdir -p \$dldir~
14521
$install_prog $dir/$dlname \$dldir/$dlname~
14522
chmod a+x \$dldir/$dlname'
14523
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14524
dlpath=$dir/\$dldll~
14526
shlibpath_overrides_runpath=yes
14530
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14531
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14532
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14535
# MinGW DLLs use traditional 'lib' prefix
14536
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14537
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14538
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14539
# It is most probably a Windows format PATH printed by
14540
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14541
# path with ; separators, and with drive letters. We can handle the
14542
# drive letters (cygwin fileutils understands them), so leave them,
14543
# especially as we might pass files found there to a mingw objdump,
14544
# which wouldn't understand a cygwinified path. Ahh.
14545
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14547
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14551
# pw32 DLLs use 'pw' prefix rather than 'lib'
14552
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14558
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14561
dynamic_linker='Win32 ld.exe'
14562
# FIXME: first we should search . and the directory the executable is in
14566
darwin* | rhapsody*)
14567
dynamic_linker="$host_os dyld"
14568
version_type=darwin
14571
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14572
soname_spec='${libname}${release}${major}$shared_ext'
14573
shlibpath_overrides_runpath=yes
14574
shlibpath_var=DYLD_LIBRARY_PATH
14575
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14576
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14577
if test "$GCC" = yes; then
14578
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"`
14580
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14582
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14590
soname_spec='${libname}${release}${shared_ext}$major'
14591
shlibpath_var=LD_LIBRARY_PATH
14602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14603
soname_spec='${libname}${release}${shared_ext}$major'
14604
shlibpath_var=LD_LIBRARY_PATH
14605
shlibpath_overrides_runpath=no
14606
hardcode_into_libs=yes
14607
dynamic_linker='GNU ld.so'
14610
freebsd* | dragonfly*)
14611
# DragonFly does not have aout. When/if they implement a new
14612
# versioning mechanism, adjust this.
14613
if test -x /usr/bin/objformat; then
14614
objformat=`/usr/bin/objformat`
14617
freebsd[123]*) objformat=aout ;;
14618
*) objformat=elf ;;
14621
version_type=freebsd-$objformat
14622
case $version_type in
14624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14633
shlibpath_var=LD_LIBRARY_PATH
14636
shlibpath_overrides_runpath=yes
14638
freebsd3.[01]* | freebsdelf3.[01]*)
14639
shlibpath_overrides_runpath=yes
14640
hardcode_into_libs=yes
14642
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14643
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14644
shlibpath_overrides_runpath=no
14645
hardcode_into_libs=yes
14647
freebsd*) # from 4.6 on
14648
shlibpath_overrides_runpath=yes
14649
hardcode_into_libs=yes
14658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14659
soname_spec='${libname}${release}${shared_ext}$major'
14660
shlibpath_var=LD_LIBRARY_PATH
14661
hardcode_into_libs=yes
14664
hpux9* | hpux10* | hpux11*)
14665
# Give a soname corresponding to the major version so that dld.sl refuses to
14666
# link against other versions.
14673
hardcode_into_libs=yes
14674
dynamic_linker="$host_os dld.so"
14675
shlibpath_var=LD_LIBRARY_PATH
14676
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678
soname_spec='${libname}${release}${shared_ext}$major'
14679
if test "X$HPUX_IA64_MODE" = X32; then
14680
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14682
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14684
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14688
hardcode_into_libs=yes
14689
dynamic_linker="$host_os dld.sl"
14690
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14691
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693
soname_spec='${libname}${release}${shared_ext}$major'
14694
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14695
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14699
dynamic_linker="$host_os dld.sl"
14700
shlibpath_var=SHLIB_PATH
14701
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703
soname_spec='${libname}${release}${shared_ext}$major'
14706
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14707
postinstall_cmds='chmod 555 $lib'
14714
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14715
soname_spec='${libname}${release}${shared_ext}$major'
14716
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14717
shlibpath_var=LD_LIBRARY_PATH
14718
shlibpath_overrides_runpath=no
14719
hardcode_into_libs=yes
14722
irix5* | irix6* | nonstopux*)
14724
nonstopux*) version_type=nonstopux ;;
14726
if test "$lt_cv_prog_gnu_ld" = yes; then
14734
soname_spec='${libname}${release}${shared_ext}$major'
14735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14737
irix5* | nonstopux*)
14738
libsuff= shlibsuff=
14741
case $LD in # libtool.m4 will add one of these switches to LD
14742
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14743
libsuff= shlibsuff= libmagic=32-bit;;
14744
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14745
libsuff=32 shlibsuff=N32 libmagic=N32;;
14746
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14747
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14748
*) libsuff= shlibsuff= libmagic=never-match;;
14752
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14753
shlibpath_overrides_runpath=no
14754
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14755
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14756
hardcode_into_libs=yes
14759
# No shared lib support for Linux oldld, aout, or coff.
14760
linux*oldld* | linux*aout* | linux*coff*)
14764
# This must be Linux ELF.
14769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770
soname_spec='${libname}${release}${shared_ext}$major'
14771
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14772
shlibpath_var=LD_LIBRARY_PATH
14773
shlibpath_overrides_runpath=no
14774
# This implies no fast_install, which is unacceptable.
14775
# Some rework will be needed to allow for fast_install
14776
# before this can be enabled.
14777
hardcode_into_libs=yes
14779
# find out which ABI we are using
14781
case "$host_cpu" in
14782
x86_64*|s390x*|powerpc64*)
14783
echo '#line 14783 "configure"' > conftest.$ac_ext
14784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785
(eval $ac_compile) 2>&5
14787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788
(exit $ac_status); }; then
14789
case `/usr/bin/file conftest.$ac_objext` in
14792
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14800
# Append ld.so.conf contents to the search path
14801
if test -f /etc/ld.so.conf; then
14802
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14803
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14806
# We used to test for /lib/ld.so.1 and disable shared libraries on
14807
# powerpc, because MkLinux only supported shared libraries with the
14808
# GNU dynamic linker. Since this was broken with cross compilers,
14809
# most powerpc-linux boxes support dynamic linking these days and
14810
# people can always --disable-shared, the test was removed, and we
14811
# assume the GNU/Linux dynamic linker is in use.
14812
dynamic_linker='GNU/Linux ld.so'
14819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14820
soname_spec='${libname}${release}${shared_ext}$major'
14821
shlibpath_var=LD_LIBRARY_PATH
14822
shlibpath_overrides_runpath=no
14823
hardcode_into_libs=yes
14824
dynamic_linker='GNU ld.so'
14831
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14833
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14834
dynamic_linker='NetBSD (a.out) ld.so'
14836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14837
soname_spec='${libname}${release}${shared_ext}$major'
14838
dynamic_linker='NetBSD ld.elf_so'
14840
shlibpath_var=LD_LIBRARY_PATH
14841
shlibpath_overrides_runpath=yes
14842
hardcode_into_libs=yes
14847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848
shlibpath_var=LD_LIBRARY_PATH
14849
shlibpath_overrides_runpath=yes
14856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857
soname_spec='${libname}${release}${shared_ext}$major'
14858
shlibpath_var=LD_LIBRARY_PATH
14859
shlibpath_overrides_runpath=yes
14864
sys_lib_dlsearch_path_spec="/usr/lib"
14866
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14868
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14869
*) need_version=no ;;
14871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14872
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14873
shlibpath_var=LD_LIBRARY_PATH
14874
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14876
openbsd2.[89] | openbsd2.[89].*)
14877
shlibpath_overrides_runpath=no
14880
shlibpath_overrides_runpath=yes
14884
shlibpath_overrides_runpath=yes
14889
libname_spec='$name'
14892
library_names_spec='$libname${shared_ext} $libname.a'
14893
dynamic_linker='OS/2 ld.exe'
14894
shlibpath_var=LIBPATH
14897
osf3* | osf4* | osf5*)
14901
soname_spec='${libname}${release}${shared_ext}$major'
14902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14903
shlibpath_var=LD_LIBRARY_PATH
14904
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14905
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913
soname_spec='${libname}${release}${shared_ext}$major'
14914
shlibpath_var=LD_LIBRARY_PATH
14915
shlibpath_overrides_runpath=yes
14916
hardcode_into_libs=yes
14917
# ldd complains unless libraries are executable
14918
postinstall_cmds='chmod +x $lib'
14923
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14924
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14925
shlibpath_var=LD_LIBRARY_PATH
14926
shlibpath_overrides_runpath=yes
14927
if test "$with_gnu_ld" = yes; then
14935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936
soname_spec='${libname}${release}${shared_ext}$major'
14937
shlibpath_var=LD_LIBRARY_PATH
14938
case $host_vendor in
14940
shlibpath_overrides_runpath=no
14942
export_dynamic_flag_spec='${wl}-Blargedynsym'
14943
runpath_var=LD_RUN_PATH
14951
shlibpath_overrides_runpath=no
14952
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14958
if test -d /usr/nec ;then
14960
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14961
soname_spec='$libname${shared_ext}.$major'
14962
shlibpath_var=LD_LIBRARY_PATH
14966
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14967
version_type=freebsd-elf
14970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14971
soname_spec='${libname}${release}${shared_ext}$major'
14972
shlibpath_var=LD_LIBRARY_PATH
14973
hardcode_into_libs=yes
14974
if test "$with_gnu_ld" = yes; then
14975
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14976
shlibpath_overrides_runpath=no
14978
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14979
shlibpath_overrides_runpath=yes
14982
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14986
sys_lib_dlsearch_path_spec='/usr/lib'
14991
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992
soname_spec='${libname}${release}${shared_ext}$major'
14993
shlibpath_var=LD_LIBRARY_PATH
15000
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15001
echo "${ECHO_T}$dynamic_linker" >&6
15002
test "$dynamic_linker" = no && can_build_shared=no
15004
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15005
if test "$GCC" = yes; then
15006
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15009
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15010
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15011
hardcode_action_F77=
15012
if test -n "$hardcode_libdir_flag_spec_F77" || \
15013
test -n "$runpath_var_F77" || \
15014
test "X$hardcode_automatic_F77" = "Xyes" ; then
15016
# We can hardcode non-existant directories.
15017
if test "$hardcode_direct_F77" != no &&
15018
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15019
# have to relink, otherwise we might link with an installed library
15020
# when we should be linking with a yet-to-be-installed one
15021
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15022
test "$hardcode_minus_L_F77" != no; then
15023
# Linking always hardcodes the temporary library directory.
15024
hardcode_action_F77=relink
15026
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15027
hardcode_action_F77=immediate
15030
# We cannot hardcode anything, or else we can only hardcode existing
15032
hardcode_action_F77=unsupported
15034
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15035
echo "${ECHO_T}$hardcode_action_F77" >&6
15037
if test "$hardcode_action_F77" = relink; then
15038
# Fast installation is not supported
15039
enable_fast_install=no
15040
elif test "$shlibpath_overrides_runpath" = yes ||
15041
test "$enable_shared" = no; then
15042
# Fast installation is not necessary
15043
enable_fast_install=needless
15047
# The else clause should only fire when bootstrapping the
15048
# libtool distribution, otherwise you forgot to ship ltmain.sh
15049
# with your package, and you will get complaints that there are
15050
# no rules to generate ltmain.sh.
15051
if test -f "$ltmain"; then
15052
# See if we are running on zsh, and set the options which allow our commands through
15053
# without removal of \ escapes.
15054
if test -n "${ZSH_VERSION+set}" ; then
15055
setopt NO_GLOB_SUBST
15057
# Now quote all the things that may contain metacharacters while being
15058
# careful not to overquote the AC_SUBSTed values. We take copies of the
15059
# variables and quote the copies for generation of the libtool script.
15060
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15062
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15063
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15064
deplibs_check_method reload_flag reload_cmds need_locks \
15065
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15066
lt_cv_sys_global_symbol_to_c_name_address \
15067
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15068
old_postinstall_cmds old_postuninstall_cmds \
15072
lt_prog_compiler_wl_F77 \
15073
lt_prog_compiler_pic_F77 \
15074
lt_prog_compiler_static_F77 \
15075
lt_prog_compiler_no_builtin_flag_F77 \
15076
export_dynamic_flag_spec_F77 \
15077
thread_safe_flag_spec_F77 \
15078
whole_archive_flag_spec_F77 \
15079
enable_shared_with_static_runtimes_F77 \
15080
old_archive_cmds_F77 \
15081
old_archive_from_new_cmds_F77 \
15082
predep_objects_F77 \
15083
postdep_objects_F77 \
15086
compiler_lib_search_path_F77 \
15088
archive_expsym_cmds_F77 \
15089
postinstall_cmds_F77 \
15090
postuninstall_cmds_F77 \
15091
old_archive_from_expsyms_cmds_F77 \
15092
allow_undefined_flag_F77 \
15093
no_undefined_flag_F77 \
15094
export_symbols_cmds_F77 \
15095
hardcode_libdir_flag_spec_F77 \
15096
hardcode_libdir_flag_spec_ld_F77 \
15097
hardcode_libdir_separator_F77 \
15098
hardcode_automatic_F77 \
15100
module_expsym_cmds_F77 \
15101
lt_cv_prog_compiler_c_o_F77 \
15102
exclude_expsyms_F77 \
15103
include_expsyms_F77; do
15106
old_archive_cmds_F77 | \
15107
old_archive_from_new_cmds_F77 | \
15108
archive_cmds_F77 | \
15109
archive_expsym_cmds_F77 | \
15110
module_cmds_F77 | \
15111
module_expsym_cmds_F77 | \
15112
old_archive_from_expsyms_cmds_F77 | \
15113
export_symbols_cmds_F77 | \
15114
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15115
postinstall_cmds | postuninstall_cmds | \
15116
old_postinstall_cmds | old_postuninstall_cmds | \
15117
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15118
# Double-quote double-evaled strings.
15119
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15122
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15128
*'\$0 --fallback-echo"')
15129
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15135
cat <<__EOF__ >> "$cfgfile"
15136
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15138
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15140
# Shell to use when invoking shell scripts.
15143
# Whether or not to build shared libraries.
15144
build_libtool_libs=$enable_shared
15146
# Whether or not to build static libraries.
15147
build_old_libs=$enable_static
15149
# Whether or not to add -lc for building shared libraries.
15150
build_libtool_need_lc=$archive_cmds_need_lc_F77
15152
# Whether or not to disallow shared libs when runtime libs are static
15153
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15155
# Whether or not to optimize for fast installation.
15156
fast_install=$enable_fast_install
15159
host_alias=$host_alias
15163
# The build system.
15164
build_alias=$build_alias
15168
# An echo program that does not interpret backslashes.
15173
AR_FLAGS=$lt_AR_FLAGS
15178
# LTCC compiler flags.
15179
LTCFLAGS=$lt_LTCFLAGS
15181
# A language-specific compiler.
15182
CC=$lt_compiler_F77
15184
# Is the compiler the GNU C compiler?
15187
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15188
gcc_ver=\`gcc -dumpversion\`
15193
# The linker used to build libraries.
15196
# Whether we need hard or soft links.
15199
# A BSD-compatible nm program.
15202
# A symbol stripping program
15205
# Used to examine libraries when file_magic_cmd begins "file"
15206
MAGIC_CMD=$MAGIC_CMD
15208
# Used on cygwin: DLL creation program.
15211
# Used on cygwin: object dumper.
15214
# Used on cygwin: assembler.
15217
# The name of the directory that contains temporary libtool files.
15220
# How to create reloadable object files.
15221
reload_flag=$lt_reload_flag
15222
reload_cmds=$lt_reload_cmds
15224
# How to pass a linker flag through the compiler.
15225
wl=$lt_lt_prog_compiler_wl_F77
15227
# Object file suffix (normally "o").
15228
objext="$ac_objext"
15230
# Old archive suffix (normally "a").
15233
# Shared library suffix (normally ".so").
15234
shrext_cmds='$shrext_cmds'
15236
# Executable file suffix (normally "").
15239
# Additional compiler flags for building library objects.
15240
pic_flag=$lt_lt_prog_compiler_pic_F77
15243
# What is the maximum length of a command?
15244
max_cmd_len=$lt_cv_sys_max_cmd_len
15246
# Does compiler simultaneously support -c and -o options?
15247
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15249
# Must we lock files when doing compilation?
15250
need_locks=$lt_need_locks
15252
# Do we need the lib prefix for modules?
15253
need_lib_prefix=$need_lib_prefix
15255
# Do we need a version for libraries?
15256
need_version=$need_version
15258
# Whether dlopen is supported.
15259
dlopen_support=$enable_dlopen
15261
# Whether dlopen of programs is supported.
15262
dlopen_self=$enable_dlopen_self
15264
# Whether dlopen of statically linked programs is supported.
15265
dlopen_self_static=$enable_dlopen_self_static
15267
# Compiler flag to prevent dynamic linking.
15268
link_static_flag=$lt_lt_prog_compiler_static_F77
15270
# Compiler flag to turn off builtin functions.
15271
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15273
# Compiler flag to allow reflexive dlopens.
15274
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15276
# Compiler flag to generate shared objects directly from archives.
15277
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15279
# Compiler flag to generate thread-safe objects.
15280
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15282
# Library versioning type.
15283
version_type=$version_type
15285
# Format of library name prefix.
15286
libname_spec=$lt_libname_spec
15288
# List of archive names. First name is the real one, the rest are links.
15289
# The last name is the one that the linker finds with -lNAME.
15290
library_names_spec=$lt_library_names_spec
15292
# The coded name of the library, if different from the real name.
15293
soname_spec=$lt_soname_spec
15295
# Commands used to build and install an old-style archive.
15297
old_archive_cmds=$lt_old_archive_cmds_F77
15298
old_postinstall_cmds=$lt_old_postinstall_cmds
15299
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15301
# Create an old-style archive from a shared archive.
15302
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15304
# Create a temporary old-style archive to link instead of a shared archive.
15305
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15307
# Commands used to build and install a shared archive.
15308
archive_cmds=$lt_archive_cmds_F77
15309
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15310
postinstall_cmds=$lt_postinstall_cmds
15311
postuninstall_cmds=$lt_postuninstall_cmds
15313
# Commands used to build a loadable module (assumed same as above if empty)
15314
module_cmds=$lt_module_cmds_F77
15315
module_expsym_cmds=$lt_module_expsym_cmds_F77
15317
# Commands to strip libraries.
15318
old_striplib=$lt_old_striplib
15319
striplib=$lt_striplib
15321
# Dependencies to place before the objects being linked to create a
15323
predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15325
# Dependencies to place after the objects being linked to create a
15327
postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15329
# Dependencies to place before the objects being linked to create a
15331
predeps=$lt_predeps_F77
15333
# Dependencies to place after the objects being linked to create a
15335
postdeps=$lt_postdeps_F77
15337
# The library search path used internally by the compiler when linking
15338
# a shared library.
15339
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15341
# Method to check whether dependent libraries are shared objects.
15342
deplibs_check_method=$lt_deplibs_check_method
15344
# Command to use when deplibs_check_method == file_magic.
15345
file_magic_cmd=$lt_file_magic_cmd
15347
# Flag that allows shared libraries with undefined symbols to be built.
15348
allow_undefined_flag=$lt_allow_undefined_flag_F77
15350
# Flag that forces no undefined symbols.
15351
no_undefined_flag=$lt_no_undefined_flag_F77
15353
# Commands used to finish a libtool library installation in a directory.
15354
finish_cmds=$lt_finish_cmds
15356
# Same as above, but a single script fragment to be evaled but not shown.
15357
finish_eval=$lt_finish_eval
15359
# Take the output of nm and produce a listing of raw symbols and C names.
15360
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15362
# Transform the output of nm in a proper C declaration
15363
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15365
# Transform the output of nm in a C name address pair
15366
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15368
# This is the shared library runtime path variable.
15369
runpath_var=$runpath_var
15371
# This is the shared library path variable.
15372
shlibpath_var=$shlibpath_var
15374
# Is shlibpath searched before the hard-coded library search path?
15375
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15377
# How to hardcode a shared library path into an executable.
15378
hardcode_action=$hardcode_action_F77
15380
# Whether we should hardcode library paths into libraries.
15381
hardcode_into_libs=$hardcode_into_libs
15383
# Flag to hardcode \$libdir into a binary during linking.
15384
# This must work even if \$libdir does not exist.
15385
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15387
# If ld is used when linking, flag to hardcode \$libdir into
15388
# a binary during linking. This must work even if \$libdir does
15390
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15392
# Whether we need a single -rpath flag with a separated argument.
15393
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15395
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15396
# resulting binary.
15397
hardcode_direct=$hardcode_direct_F77
15399
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15400
# resulting binary.
15401
hardcode_minus_L=$hardcode_minus_L_F77
15403
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15404
# the resulting binary.
15405
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15407
# Set to yes if building a shared library automatically hardcodes DIR into the library
15408
# and all subsequent libraries and executables linked against it.
15409
hardcode_automatic=$hardcode_automatic_F77
15411
# Variables whose values should be saved in libtool wrapper scripts and
15412
# restored at relink time.
15413
variables_saved_for_relink="$variables_saved_for_relink"
15415
# Whether libtool must link a program against all its dependency libraries.
15416
link_all_deplibs=$link_all_deplibs_F77
15418
# Compile-time system search path for libraries
15419
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15421
# Run-time system search path for libraries
15422
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15424
# Fix the shell variable \$srcfile for the compiler.
15425
fix_srcfile_path="$fix_srcfile_path_F77"
15427
# Set to yes if exported symbols are required.
15428
always_export_symbols=$always_export_symbols_F77
15430
# The commands to list exported symbols.
15431
export_symbols_cmds=$lt_export_symbols_cmds_F77
15433
# The commands to extract the exported symbol list from a shared archive.
15434
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15436
# Symbols that should not be listed in the preloaded symbols.
15437
exclude_expsyms=$lt_exclude_expsyms_F77
15439
# Symbols that must always be exported.
15440
include_expsyms=$lt_include_expsyms_F77
15442
# ### END LIBTOOL TAG CONFIG: $tagname
15448
# If there is no Makefile yet, we rely on a make rule to execute
15449
# `config.status --recheck' to rerun these tests and create the
15450
# libtool script then.
15451
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15452
if test -f "$ltmain_in"; then
15453
test -f Makefile && make "$ltmain"
15459
ac_cpp='$CPP $CPPFLAGS'
15460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15472
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15476
# Source file extension for Java test sources.
15479
# Object file extension for compiled Java test sources.
15483
# Code to be used in simple compile tests
15484
lt_simple_compile_test_code="class foo {}\n"
15486
# Code to be used in simple link tests
15487
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15489
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15491
# If no C compiler was specified, use CC.
15494
# If no C compiler flags were specified, use CFLAGS.
15495
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15497
# Allow CC to be a program name with arguments.
15501
# save warnings/boilerplate of simple test code
15502
ac_outfile=conftest.$ac_objext
15503
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15504
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15505
_lt_compiler_boilerplate=`cat conftest.err`
15508
ac_outfile=conftest.$ac_objext
15509
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15510
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15511
_lt_linker_boilerplate=`cat conftest.err`
15515
# Allow CC to be a program name with arguments.
15520
for cc_temp in $compiler""; do
15522
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15523
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15528
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15531
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15532
archive_cmds_need_lc_GCJ=no
15534
old_archive_cmds_GCJ=$old_archive_cmds
15537
lt_prog_compiler_no_builtin_flag_GCJ=
15539
if test "$GCC" = yes; then
15540
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15543
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15544
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15545
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15546
echo $ECHO_N "(cached) $ECHO_C" >&6
15548
lt_cv_prog_compiler_rtti_exceptions=no
15549
ac_outfile=conftest.$ac_objext
15550
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15551
lt_compiler_flag="-fno-rtti -fno-exceptions"
15552
# Insert the option either (1) after the last *FLAGS variable, or
15553
# (2) before a word containing "conftest.", or (3) at the end.
15554
# Note that $ac_compile itself does not contain backslashes and begins
15555
# with a dollar sign (not a hyphen), so the echo should work correctly.
15556
# The option is referenced via a variable to avoid confusing sed.
15557
lt_compile=`echo "$ac_compile" | $SED \
15558
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15559
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15560
-e 's:$: $lt_compiler_flag:'`
15561
(eval echo "\"\$as_me:15561: $lt_compile\"" >&5)
15562
(eval "$lt_compile" 2>conftest.err)
15564
cat conftest.err >&5
15565
echo "$as_me:15565: \$? = $ac_status" >&5
15566
if (exit $ac_status) && test -s "$ac_outfile"; then
15567
# The compiler can only warn and ignore the option if not recognized
15568
# So say no if there are warnings other than the usual output.
15569
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15570
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15571
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15572
lt_cv_prog_compiler_rtti_exceptions=yes
15578
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15579
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15581
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15582
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15589
lt_prog_compiler_wl_GCJ=
15590
lt_prog_compiler_pic_GCJ=
15591
lt_prog_compiler_static_GCJ=
15593
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15594
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15596
if test "$GCC" = yes; then
15597
lt_prog_compiler_wl_GCJ='-Wl,'
15598
lt_prog_compiler_static_GCJ='-static'
15602
# All AIX code is PIC.
15603
if test "$host_cpu" = ia64; then
15604
# AIX 5 now supports IA64 processor
15605
lt_prog_compiler_static_GCJ='-Bstatic'
15610
# FIXME: we need at least 68020 code to build shared libraries, but
15611
# adding the `-m68020' flag to GCC prevents building anything better,
15613
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15616
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15617
# PIC is the default for these OSes.
15620
mingw* | pw32* | os2*)
15621
# This hack is so that the source file can tell whether it is being
15622
# built for inclusion in a dll (and should export symbols for example).
15623
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15626
darwin* | rhapsody*)
15627
# PIC is the default on this platform
15628
# Common symbols not allowed in MH_DYLIB files
15629
lt_prog_compiler_pic_GCJ='-fno-common'
15633
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15634
# Instead, we relocate shared libraries at runtime.
15638
# Just because we use GCC doesn't mean we suddenly get shared libraries
15639
# on systems that don't support them.
15640
lt_prog_compiler_can_build_shared_GCJ=no
15645
if test -d /usr/nec; then
15646
lt_prog_compiler_pic_GCJ=-Kconform_pic
15651
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15652
# not for PA HP-UX.
15658
lt_prog_compiler_pic_GCJ='-fPIC'
15664
lt_prog_compiler_pic_GCJ='-fPIC'
15668
# PORTME Check for flag to pass linker flags through the system compiler.
15671
lt_prog_compiler_wl_GCJ='-Wl,'
15672
if test "$host_cpu" = ia64; then
15673
# AIX 5 now supports IA64 processor
15674
lt_prog_compiler_static_GCJ='-Bstatic'
15676
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15680
# PIC is the default on this platform
15681
# Common symbols not allowed in MH_DYLIB files
15682
case $cc_basename in
15684
lt_prog_compiler_pic_GCJ='-qnocommon'
15685
lt_prog_compiler_wl_GCJ='-Wl,'
15690
mingw* | pw32* | os2*)
15691
# This hack is so that the source file can tell whether it is being
15692
# built for inclusion in a dll (and should export symbols for example).
15693
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15696
hpux9* | hpux10* | hpux11*)
15697
lt_prog_compiler_wl_GCJ='-Wl,'
15698
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15699
# not for PA HP-UX.
15705
lt_prog_compiler_pic_GCJ='+Z'
15708
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15709
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15712
irix5* | irix6* | nonstopux*)
15713
lt_prog_compiler_wl_GCJ='-Wl,'
15714
# PIC (with -KPIC) is the default.
15715
lt_prog_compiler_static_GCJ='-non_shared'
15719
lt_prog_compiler_pic_GCJ='-KPIC'
15720
lt_prog_compiler_static_GCJ='-Bstatic'
15724
case $cc_basename in
15726
lt_prog_compiler_wl_GCJ='-Wl,'
15727
lt_prog_compiler_pic_GCJ='-KPIC'
15728
lt_prog_compiler_static_GCJ='-static'
15730
pgcc* | pgf77* | pgf90* | pgf95*)
15731
# Portland Group compilers (*not* the Pentium gcc compiler,
15732
# which looks to be a dead project)
15733
lt_prog_compiler_wl_GCJ='-Wl,'
15734
lt_prog_compiler_pic_GCJ='-fpic'
15735
lt_prog_compiler_static_GCJ='-Bstatic'
15738
lt_prog_compiler_wl_GCJ='-Wl,'
15739
# All Alpha code is PIC.
15740
lt_prog_compiler_static_GCJ='-non_shared'
15745
osf3* | osf4* | osf5*)
15746
lt_prog_compiler_wl_GCJ='-Wl,'
15747
# All OSF/1 code is PIC.
15748
lt_prog_compiler_static_GCJ='-non_shared'
15752
lt_prog_compiler_pic_GCJ='-KPIC'
15753
lt_prog_compiler_static_GCJ='-Bstatic'
15754
case $cc_basename in
15755
f77* | f90* | f95*)
15756
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15758
lt_prog_compiler_wl_GCJ='-Wl,';;
15763
lt_prog_compiler_wl_GCJ='-Qoption ld '
15764
lt_prog_compiler_pic_GCJ='-PIC'
15765
lt_prog_compiler_static_GCJ='-Bstatic'
15768
sysv4 | sysv4.2uw2* | sysv4.3*)
15769
lt_prog_compiler_wl_GCJ='-Wl,'
15770
lt_prog_compiler_pic_GCJ='-KPIC'
15771
lt_prog_compiler_static_GCJ='-Bstatic'
15775
if test -d /usr/nec ;then
15776
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15777
lt_prog_compiler_static_GCJ='-Bstatic'
15781
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15782
lt_prog_compiler_wl_GCJ='-Wl,'
15783
lt_prog_compiler_pic_GCJ='-KPIC'
15784
lt_prog_compiler_static_GCJ='-Bstatic'
15788
lt_prog_compiler_wl_GCJ='-Wl,'
15789
lt_prog_compiler_can_build_shared_GCJ=no
15793
lt_prog_compiler_pic_GCJ='-pic'
15794
lt_prog_compiler_static_GCJ='-Bstatic'
15798
lt_prog_compiler_can_build_shared_GCJ=no
15803
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15804
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15807
# Check to make sure the PIC flag actually works.
15809
if test -n "$lt_prog_compiler_pic_GCJ"; then
15811
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15812
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15813
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15814
echo $ECHO_N "(cached) $ECHO_C" >&6
15816
lt_prog_compiler_pic_works_GCJ=no
15817
ac_outfile=conftest.$ac_objext
15818
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15819
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15820
# Insert the option either (1) after the last *FLAGS variable, or
15821
# (2) before a word containing "conftest.", or (3) at the end.
15822
# Note that $ac_compile itself does not contain backslashes and begins
15823
# with a dollar sign (not a hyphen), so the echo should work correctly.
15824
# The option is referenced via a variable to avoid confusing sed.
15825
lt_compile=`echo "$ac_compile" | $SED \
15826
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15827
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15828
-e 's:$: $lt_compiler_flag:'`
15829
(eval echo "\"\$as_me:15829: $lt_compile\"" >&5)
15830
(eval "$lt_compile" 2>conftest.err)
15832
cat conftest.err >&5
15833
echo "$as_me:15833: \$? = $ac_status" >&5
15834
if (exit $ac_status) && test -s "$ac_outfile"; then
15835
# The compiler can only warn and ignore the option if not recognized
15836
# So say no if there are warnings other than the usual output.
15837
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15838
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15839
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15840
lt_prog_compiler_pic_works_GCJ=yes
15846
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15847
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15849
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15850
case $lt_prog_compiler_pic_GCJ in
15852
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15855
lt_prog_compiler_pic_GCJ=
15856
lt_prog_compiler_can_build_shared_GCJ=no
15861
# For platforms which do not support PIC, -DPIC is meaningless:
15863
lt_prog_compiler_pic_GCJ=
15866
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15871
# Check to make sure the static flag actually works.
15873
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15874
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15875
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15876
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15877
echo $ECHO_N "(cached) $ECHO_C" >&6
15879
lt_prog_compiler_static_works_GCJ=no
15880
save_LDFLAGS="$LDFLAGS"
15881
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15882
printf "$lt_simple_link_test_code" > conftest.$ac_ext
15883
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15884
# The linker can only warn and ignore the option if not recognized
15885
# So say no if there are warnings
15886
if test -s conftest.err; then
15887
# Append any errors to the config.log.
15888
cat conftest.err 1>&5
15889
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15890
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15891
if diff conftest.exp conftest.er2 >/dev/null; then
15892
lt_prog_compiler_static_works_GCJ=yes
15895
lt_prog_compiler_static_works_GCJ=yes
15899
LDFLAGS="$save_LDFLAGS"
15902
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15903
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15905
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15908
lt_prog_compiler_static_GCJ=
15912
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15913
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15914
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15915
echo $ECHO_N "(cached) $ECHO_C" >&6
15917
lt_cv_prog_compiler_c_o_GCJ=no
15918
$rm -r conftest 2>/dev/null
15922
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15924
lt_compiler_flag="-o out/conftest2.$ac_objext"
15925
# Insert the option either (1) after the last *FLAGS variable, or
15926
# (2) before a word containing "conftest.", or (3) at the end.
15927
# Note that $ac_compile itself does not contain backslashes and begins
15928
# with a dollar sign (not a hyphen), so the echo should work correctly.
15929
lt_compile=`echo "$ac_compile" | $SED \
15930
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15931
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15932
-e 's:$: $lt_compiler_flag:'`
15933
(eval echo "\"\$as_me:15933: $lt_compile\"" >&5)
15934
(eval "$lt_compile" 2>out/conftest.err)
15936
cat out/conftest.err >&5
15937
echo "$as_me:15937: \$? = $ac_status" >&5
15938
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15940
# The compiler can only warn and ignore the option if not recognized
15941
# So say no if there are warnings
15942
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15943
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15944
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15945
lt_cv_prog_compiler_c_o_GCJ=yes
15950
# SGI C++ compiler will create directory out/ii_files/ for
15951
# template instantiation
15952
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15953
$rm out/* && rmdir out
15959
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15960
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15963
hard_links="nottested"
15964
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15965
# do not overwrite the value of need_locks provided by the user
15966
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15967
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15970
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15972
ln conftest.a conftest.b 2>&5 || hard_links=no
15973
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15974
echo "$as_me:$LINENO: result: $hard_links" >&5
15975
echo "${ECHO_T}$hard_links" >&6
15976
if test "$hard_links" = no; then
15977
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15978
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15985
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15986
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15989
allow_undefined_flag_GCJ=
15990
enable_shared_with_static_runtimes_GCJ=no
15992
archive_expsym_cmds_GCJ=
15993
old_archive_From_new_cmds_GCJ=
15994
old_archive_from_expsyms_cmds_GCJ=
15995
export_dynamic_flag_spec_GCJ=
15996
whole_archive_flag_spec_GCJ=
15997
thread_safe_flag_spec_GCJ=
15998
hardcode_libdir_flag_spec_GCJ=
15999
hardcode_libdir_flag_spec_ld_GCJ=
16000
hardcode_libdir_separator_GCJ=
16001
hardcode_direct_GCJ=no
16002
hardcode_minus_L_GCJ=no
16003
hardcode_shlibpath_var_GCJ=unsupported
16004
link_all_deplibs_GCJ=unknown
16005
hardcode_automatic_GCJ=no
16007
module_expsym_cmds_GCJ=
16008
always_export_symbols_GCJ=no
16009
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16010
# include_expsyms should be a list of space-separated symbols to be *always*
16011
# included in the symbol list
16012
include_expsyms_GCJ=
16013
# exclude_expsyms can be an extended regexp of symbols to exclude
16014
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16015
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16016
# as well as any symbol that contains `d'.
16017
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16018
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16019
# platforms (ab)use it in PIC code, but their linkers get confused if
16020
# the symbol is explicitly referenced. Since portable code cannot
16021
# rely on this symbol name, it's probably fine to never include it in
16022
# preloaded symbol tables.
16023
extract_expsyms_cmds=
16024
# Just being paranoid about ensuring that cc_basename is set.
16025
for cc_temp in $compiler""; do
16027
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16028
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16033
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16036
cygwin* | mingw* | pw32*)
16037
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16038
# When not using gcc, we currently assume that we are using
16039
# Microsoft Visual C++.
16040
if test "$GCC" != yes; then
16045
# we just hope/assume this is gcc and not c89 (= MSVC++)
16054
if test "$with_gnu_ld" = yes; then
16055
# If archive_cmds runs LD, not CC, wlarc should be empty
16058
# Set some defaults for GNU ld with shared library support. These
16059
# are reset later if shared libraries are not supported. Putting them
16060
# here allows them to be overridden if necessary.
16061
runpath_var=LD_RUN_PATH
16062
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16063
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16064
# ancient GNU ld didn't support --whole-archive et. al.
16065
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16066
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16068
whole_archive_flag_spec_GCJ=
16070
supports_anon_versioning=no
16071
case `$LD -v 2>/dev/null` in
16072
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16073
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16074
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16075
*\ 2.11.*) ;; # other 2.11 versions
16076
*) supports_anon_versioning=yes ;;
16079
# See if GNU ld supports shared libraries.
16081
aix3* | aix4* | aix5*)
16082
# On AIX/PPC, the GNU linker is very broken
16083
if test "$host_cpu" != ia64; then
16087
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16088
*** to be unable to reliably create shared libraries on AIX.
16089
*** Therefore, libtool is disabling shared libraries support. If you
16090
*** really care for shared libraries, you may want to modify your PATH
16091
*** so that a non-GNU linker is found, and then restart.
16098
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)'
16099
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16100
hardcode_minus_L_GCJ=yes
16102
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16103
# that the semantics of dynamic libraries on AmigaOS, at least up
16104
# to version 4, is to share data among multiple programs linked
16105
# with the same dynamic library. Since this doesn't match the
16106
# behavior of shared libraries on other platforms, we can't use
16112
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16113
allow_undefined_flag_GCJ=unsupported
16114
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16115
# support --undefined. This deserves some investigation. FIXME
16116
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16122
cygwin* | mingw* | pw32*)
16123
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16124
# as there is no search path for DLLs.
16125
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16126
allow_undefined_flag_GCJ=unsupported
16127
always_export_symbols_GCJ=no
16128
enable_shared_with_static_runtimes_GCJ=yes
16129
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16131
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16132
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16133
# If the export-symbols file already is a .def file (1st line
16134
# is EXPORTS), use it as is; otherwise, prepend...
16135
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16136
cp $export_symbols $output_objdir/$soname.def;
16138
echo EXPORTS > $output_objdir/$soname.def;
16139
cat $export_symbols >> $output_objdir/$soname.def;
16141
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16148
hardcode_direct_GCJ=no
16149
hardcode_shlibpath_var_GCJ=no
16150
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16151
export_dynamic_flag_spec_GCJ='${wl}-E'
16152
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16153
# Instead, shared libraries are loaded at an image base (0x10000000 by
16154
# default) and relocated if they conflict, which is a slow very memory
16155
# consuming and fragmenting process. To avoid this, we pick a random,
16156
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16157
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16158
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'
16159
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'
16163
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16165
case $cc_basename,$host_cpu in
16166
pgcc*) # Portland Group C compiler
16167
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'
16168
tmp_addflag=' $pic_flag'
16170
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16171
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'
16172
tmp_addflag=' $pic_flag -Mnomain' ;;
16173
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16174
tmp_addflag=' -i_dynamic' ;;
16175
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16176
tmp_addflag=' -i_dynamic -nofor_main' ;;
16177
ifc* | ifort*) # Intel Fortran compiler
16178
tmp_addflag=' -nofor_main' ;;
16180
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16182
if test $supports_anon_versioning = yes; then
16183
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16184
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16185
$echo "local: *; };" >> $output_objdir/$libname.ver~
16186
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16194
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16195
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16198
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16199
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16204
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16208
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16209
*** create shared libraries on Solaris systems. Therefore, libtool
16210
*** is disabling shared libraries support. We urge you to upgrade GNU
16211
*** binutils to release 2.9.1 or newer. Another option is to modify
16212
*** your PATH or compiler configuration so that the native linker is
16213
*** used, and then restart.
16216
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16217
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16218
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16224
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16225
case `$LD -v 2>&1` in
16226
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16230
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16231
*** reliably create shared libraries on SCO systems. Therefore, libtool
16232
*** is disabling shared libraries support. We urge you to upgrade GNU
16233
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16234
*** your PATH or compiler configuration so that the native linker is
16235
*** used, and then restart.
16240
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16241
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16242
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16243
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16252
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16254
hardcode_direct_GCJ=yes
16255
hardcode_shlibpath_var_GCJ=no
16259
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16260
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16261
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16268
if test "$ld_shlibs_GCJ" = no; then
16270
hardcode_libdir_flag_spec_GCJ=
16271
export_dynamic_flag_spec_GCJ=
16272
whole_archive_flag_spec_GCJ=
16275
# PORTME fill in a description of your system's linker (not GNU ld)
16278
allow_undefined_flag_GCJ=unsupported
16279
always_export_symbols_GCJ=yes
16280
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'
16281
# Note: this linker hardcodes the directories in LIBPATH if there
16282
# are no directories specified by -L.
16283
hardcode_minus_L_GCJ=yes
16284
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16285
# Neither direct hardcoding nor static linking is supported with a
16287
hardcode_direct_GCJ=unsupported
16292
if test "$host_cpu" = ia64; then
16293
# On IA64, the linker does run time linking by default, so we don't
16294
# have to do anything special.
16295
aix_use_runtimelinking=no
16296
exp_sym_flag='-Bexport'
16299
# If we're using GNU nm, then we don't want the "-C" option.
16300
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16301
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16302
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'
16304
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'
16306
aix_use_runtimelinking=no
16308
# Test if we are trying to use run time linking or normal
16309
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16310
# need to do runtime linking.
16311
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16312
for ld_flag in $LDFLAGS; do
16313
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16314
aix_use_runtimelinking=yes
16321
exp_sym_flag='-bexport'
16322
no_entry_flag='-bnoentry'
16325
# When large executables or shared objects are built, AIX ld can
16326
# have problems creating the table of contents. If linking a library
16327
# or program results in "error TOC overflow" add -mminimal-toc to
16328
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16329
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16331
archive_cmds_GCJ=''
16332
hardcode_direct_GCJ=yes
16333
hardcode_libdir_separator_GCJ=':'
16334
link_all_deplibs_GCJ=yes
16336
if test "$GCC" = yes; then
16337
case $host_os in aix4.[012]|aix4.[012].*)
16338
# We only want to do this on AIX 4.2 and lower, the check
16339
# below for broken collect2 doesn't work under 4.3+
16340
collect2name=`${CC} -print-prog-name=collect2`
16341
if test -f "$collect2name" && \
16342
strings "$collect2name" | grep resolve_lib_name >/dev/null
16344
# We have reworked collect2
16345
hardcode_direct_GCJ=yes
16347
# We have old collect2
16348
hardcode_direct_GCJ=unsupported
16349
# It fails to find uninstalled libraries when the uninstalled
16350
# path is not listed in the libpath. Setting hardcode_minus_L
16351
# to unsupported forces relinking
16352
hardcode_minus_L_GCJ=yes
16353
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16354
hardcode_libdir_separator_GCJ=
16358
shared_flag='-shared'
16359
if test "$aix_use_runtimelinking" = yes; then
16360
shared_flag="$shared_flag "'${wl}-G'
16364
if test "$host_cpu" = ia64; then
16365
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16366
# chokes on -Wl,-G. The following line is correct:
16369
if test "$aix_use_runtimelinking" = yes; then
16370
shared_flag='${wl}-G'
16372
shared_flag='${wl}-bM:SRE'
16377
# It seems that -bexpall does not export symbols beginning with
16378
# underscore (_), so it is better to generate a list of symbols to export.
16379
always_export_symbols_GCJ=yes
16380
if test "$aix_use_runtimelinking" = yes; then
16381
# Warning - without using the other runtime loading flags (-brtl),
16382
# -berok will link without error, but may produce a broken library.
16383
allow_undefined_flag_GCJ='-berok'
16384
# Determine the default libpath from the value encoded in an empty executable.
16385
cat >conftest.$ac_ext <<_ACEOF
16388
cat confdefs.h >>conftest.$ac_ext
16389
cat >>conftest.$ac_ext <<_ACEOF
16390
/* end confdefs.h. */
16400
rm -f conftest.$ac_objext conftest$ac_exeext
16401
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402
(eval $ac_link) 2>conftest.er1
16404
grep -v '^ *+' conftest.er1 >conftest.err
16406
cat conftest.err >&5
16407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408
(exit $ac_status); } &&
16409
{ ac_try='test -z "$ac_c_werror_flag"
16410
|| test ! -s conftest.err'
16411
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412
(eval $ac_try) 2>&5
16414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415
(exit $ac_status); }; } &&
16416
{ ac_try='test -s conftest$ac_exeext'
16417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418
(eval $ac_try) 2>&5
16420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421
(exit $ac_status); }; }; then
16423
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16425
# Check for a 64-bit object if we didn't find anything.
16426
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; }
16429
echo "$as_me: failed program was:" >&5
16430
sed 's/^/| /' conftest.$ac_ext >&5
16433
rm -f conftest.err conftest.$ac_objext \
16434
conftest$ac_exeext conftest.$ac_ext
16435
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16437
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16438
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"
16440
if test "$host_cpu" = ia64; then
16441
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16442
allow_undefined_flag_GCJ="-z nodefs"
16443
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"
16445
# Determine the default libpath from the value encoded in an empty executable.
16446
cat >conftest.$ac_ext <<_ACEOF
16449
cat confdefs.h >>conftest.$ac_ext
16450
cat >>conftest.$ac_ext <<_ACEOF
16451
/* end confdefs.h. */
16461
rm -f conftest.$ac_objext conftest$ac_exeext
16462
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16463
(eval $ac_link) 2>conftest.er1
16465
grep -v '^ *+' conftest.er1 >conftest.err
16467
cat conftest.err >&5
16468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469
(exit $ac_status); } &&
16470
{ ac_try='test -z "$ac_c_werror_flag"
16471
|| test ! -s conftest.err'
16472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473
(eval $ac_try) 2>&5
16475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476
(exit $ac_status); }; } &&
16477
{ ac_try='test -s conftest$ac_exeext'
16478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479
(eval $ac_try) 2>&5
16481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482
(exit $ac_status); }; }; then
16484
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16486
# Check for a 64-bit object if we didn't find anything.
16487
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; }
16490
echo "$as_me: failed program was:" >&5
16491
sed 's/^/| /' conftest.$ac_ext >&5
16494
rm -f conftest.err conftest.$ac_objext \
16495
conftest$ac_exeext conftest.$ac_ext
16496
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16498
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16499
# Warning - without using the other run time loading flags,
16500
# -berok will link without error, but may produce a broken library.
16501
no_undefined_flag_GCJ=' ${wl}-bernotok'
16502
allow_undefined_flag_GCJ=' ${wl}-berok'
16503
# Exported symbols can be pulled into shared objects from archives
16504
whole_archive_flag_spec_GCJ='$convenience'
16505
archive_cmds_need_lc_GCJ=yes
16506
# This is similar to how AIX traditionally builds its shared libraries.
16507
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'
16513
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)'
16514
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16515
hardcode_minus_L_GCJ=yes
16516
# see comment about different semantics on the GNU ld section
16521
export_dynamic_flag_spec_GCJ=-rdynamic
16524
cygwin* | mingw* | pw32*)
16525
# When not using gcc, we currently assume that we are using
16526
# Microsoft Visual C++.
16527
# hardcode_libdir_flag_spec is actually meaningless, as there is
16528
# no search path for DLLs.
16529
hardcode_libdir_flag_spec_GCJ=' '
16530
allow_undefined_flag_GCJ=unsupported
16531
# Tell ltmain to make .lib files, not .a files.
16533
# Tell ltmain to make .dll files, not .so files.
16535
# FIXME: Setting linknames here is a bad hack.
16536
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16537
# The linker will automatically build a .lib file if we build a DLL.
16538
old_archive_From_new_cmds_GCJ='true'
16539
# FIXME: Should let the user specify the lib program.
16540
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16541
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16542
enable_shared_with_static_runtimes_GCJ=yes
16545
darwin* | rhapsody*)
16547
rhapsody* | darwin1.[012])
16548
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16551
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16552
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16554
case ${MACOSX_DEPLOYMENT_TARGET} in
16556
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16559
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16565
archive_cmds_need_lc_GCJ=no
16566
hardcode_direct_GCJ=no
16567
hardcode_automatic_GCJ=yes
16568
hardcode_shlibpath_var_GCJ=unsupported
16569
whole_archive_flag_spec_GCJ=''
16570
link_all_deplibs_GCJ=yes
16571
if test "$GCC" = yes ; then
16572
output_verbose_link_cmd='echo'
16573
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16574
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16575
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16576
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}'
16577
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}'
16579
case $cc_basename in
16581
output_verbose_link_cmd='echo'
16582
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16583
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16584
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16585
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}'
16586
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}'
16596
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16598
hardcode_shlibpath_var_GCJ=no
16605
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16606
# support. Future versions do this automatically, but an explicit c++rt0.o
16607
# does not break anything, and helps significantly (at the cost of a little
16610
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16611
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16612
hardcode_direct_GCJ=yes
16613
hardcode_shlibpath_var_GCJ=no
16616
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16618
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16619
hardcode_direct_GCJ=yes
16620
hardcode_minus_L_GCJ=yes
16621
hardcode_shlibpath_var_GCJ=no
16624
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16625
freebsd* | kfreebsd*-gnu | dragonfly*)
16626
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16627
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16628
hardcode_direct_GCJ=yes
16629
hardcode_shlibpath_var_GCJ=no
16633
if test "$GCC" = yes; then
16634
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'
16636
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'
16638
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16639
hardcode_libdir_separator_GCJ=:
16640
hardcode_direct_GCJ=yes
16642
# hardcode_minus_L: Not really in the search PATH,
16643
# but as the default location of the library.
16644
hardcode_minus_L_GCJ=yes
16645
export_dynamic_flag_spec_GCJ='${wl}-E'
16649
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16650
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16652
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16654
if test "$with_gnu_ld" = no; then
16655
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16656
hardcode_libdir_separator_GCJ=:
16658
hardcode_direct_GCJ=yes
16659
export_dynamic_flag_spec_GCJ='${wl}-E'
16661
# hardcode_minus_L: Not really in the search PATH,
16662
# but as the default location of the library.
16663
hardcode_minus_L_GCJ=yes
16668
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16671
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16674
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16677
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16683
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16686
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16689
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16693
if test "$with_gnu_ld" = no; then
16694
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16695
hardcode_libdir_separator_GCJ=:
16699
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16700
hardcode_direct_GCJ=no
16701
hardcode_shlibpath_var_GCJ=no
16704
hardcode_direct_GCJ=yes
16705
export_dynamic_flag_spec_GCJ='${wl}-E'
16707
# hardcode_minus_L: Not really in the search PATH,
16708
# but as the default location of the library.
16709
hardcode_minus_L_GCJ=yes
16715
irix5* | irix6* | nonstopux*)
16716
if test "$GCC" = yes; then
16717
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'
16719
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'
16720
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16722
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16723
hardcode_libdir_separator_GCJ=:
16724
link_all_deplibs_GCJ=yes
16728
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16729
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16731
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16733
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16734
hardcode_direct_GCJ=yes
16735
hardcode_shlibpath_var_GCJ=no
16739
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740
hardcode_direct_GCJ=yes
16741
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16742
hardcode_libdir_separator_GCJ=:
16743
hardcode_shlibpath_var_GCJ=no
16747
hardcode_direct_GCJ=yes
16748
hardcode_shlibpath_var_GCJ=no
16749
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16750
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16751
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16752
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16753
export_dynamic_flag_spec_GCJ='${wl}-E'
16756
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16757
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16758
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16761
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16762
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16769
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16770
hardcode_minus_L_GCJ=yes
16771
allow_undefined_flag_GCJ=unsupported
16772
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'
16773
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16777
if test "$GCC" = yes; then
16778
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16779
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'
16781
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16782
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'
16784
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16785
hardcode_libdir_separator_GCJ=:
16788
osf4* | osf5*) # as osf3* with the addition of -msym flag
16789
if test "$GCC" = yes; then
16790
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16791
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'
16792
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16794
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16795
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'
16796
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~
16797
$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'
16799
# Both c and cxx compiler support -rpath directly
16800
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16802
hardcode_libdir_separator_GCJ=:
16806
no_undefined_flag_GCJ=' -z text'
16807
if test "$GCC" = yes; then
16809
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16810
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16811
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16814
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16816
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16818
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16819
hardcode_shlibpath_var_GCJ=no
16821
solaris2.[0-5] | solaris2.[0-5].*) ;;
16823
# The compiler driver will combine linker options so we
16824
# cannot just pass the convience library names through
16825
# without $wl, iff we do not link with $LD.
16826
# Luckily, gcc supports the same syntax we need for Sun Studio.
16827
# Supported since Solaris 2.6 (maybe 2.5.1?)
16830
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16832
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' ;;
16835
link_all_deplibs_GCJ=yes
16839
if test "x$host_vendor" = xsequent; then
16840
# Use $CC to link under sequent, because it throws in some extra .o
16841
# files that make .init and .fini sections work.
16842
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16844
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16846
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16847
hardcode_direct_GCJ=yes
16848
hardcode_minus_L_GCJ=yes
16849
hardcode_shlibpath_var_GCJ=no
16853
case $host_vendor in
16855
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16856
hardcode_direct_GCJ=yes # is this really true???
16859
## LD is ld it makes a PLAMLIB
16860
## CC just makes a GrossModule.
16861
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16862
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16863
hardcode_direct_GCJ=no
16866
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16867
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16870
runpath_var='LD_RUN_PATH'
16871
hardcode_shlibpath_var_GCJ=no
16875
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16876
hardcode_shlibpath_var_GCJ=no
16877
export_dynamic_flag_spec_GCJ='-Bexport'
16881
if test -d /usr/nec; then
16882
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16883
hardcode_shlibpath_var_GCJ=no
16884
runpath_var=LD_RUN_PATH
16885
hardcode_runpath_var=yes
16890
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16891
no_undefined_flag_GCJ='${wl}-z,text'
16892
archive_cmds_need_lc_GCJ=no
16893
hardcode_shlibpath_var_GCJ=no
16894
runpath_var='LD_RUN_PATH'
16896
if test "$GCC" = yes; then
16897
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16898
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16900
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16901
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16905
sysv5* | sco3.2v5* | sco5v6*)
16906
# Note: We can NOT use -z defs as we might desire, because we do not
16907
# link with -lc, and that would cause any symbols used from libc to
16908
# always be unresolved, which means just about no library would
16909
# ever link correctly. If we're not using GNU ld we use -z text
16910
# though, which does catch some bad symbols but isn't as heavy-handed
16912
no_undefined_flag_GCJ='${wl}-z,text'
16913
allow_undefined_flag_GCJ='${wl}-z,nodefs'
16914
archive_cmds_need_lc_GCJ=no
16915
hardcode_shlibpath_var_GCJ=no
16916
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16917
hardcode_libdir_separator_GCJ=':'
16918
link_all_deplibs_GCJ=yes
16919
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16920
runpath_var='LD_RUN_PATH'
16922
if test "$GCC" = yes; then
16923
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16924
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16926
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16927
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16932
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16933
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16934
hardcode_shlibpath_var_GCJ=no
16943
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16944
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16945
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16948
# Do we need to explicitly link libc?
16950
case "x$archive_cmds_need_lc_GCJ" in
16952
# Assume -lc should be added
16953
archive_cmds_need_lc_GCJ=yes
16955
if test "$enable_shared" = yes && test "$GCC" = yes; then
16956
case $archive_cmds_GCJ in
16958
# FIXME: we may have to deal with multi-command sequences.
16961
# Test whether the compiler implicitly links with -lc since on some
16962
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16963
# to ld, don't add -lc before -lgcc.
16964
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16965
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16967
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16969
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16970
(eval $ac_compile) 2>&5
16972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973
(exit $ac_status); } 2>conftest.err; then
16976
libobjs=conftest.$ac_objext
16978
wl=$lt_prog_compiler_wl_GCJ
16979
pic_flag=$lt_prog_compiler_pic_GCJ
16985
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16986
allow_undefined_flag_GCJ=
16987
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16988
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991
(exit $ac_status); }
16993
archive_cmds_need_lc_GCJ=no
16995
archive_cmds_need_lc_GCJ=yes
16997
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16999
cat conftest.err 1>&5
17002
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17003
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17010
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17011
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17012
library_names_spec=
17013
libname_spec='lib$name'
17017
postuninstall_cmds=
17021
shlibpath_overrides_runpath=unknown
17023
dynamic_linker="$host_os ld.so"
17024
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17025
if test "$GCC" = yes; then
17026
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17027
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17028
# if the path contains ";" then we assume it to be the separator
17029
# otherwise default to the standard path separator (i.e. ":") - it is
17030
# assumed that no part of a normal pathname contains ";" but that should
17031
# okay in the real world where ";" in dirpaths is itself problematic.
17032
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17034
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17037
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17039
need_lib_prefix=unknown
17040
hardcode_into_libs=no
17042
# when you set need_version to no, make sure it does not cause -set_version
17043
# flags to be left without arguments
17044
need_version=unknown
17049
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17050
shlibpath_var=LIBPATH
17052
# AIX 3 has no versioning support, so we append a major version to the name.
17053
soname_spec='${libname}${release}${shared_ext}$major'
17060
hardcode_into_libs=yes
17061
if test "$host_cpu" = ia64; then
17062
# AIX 5 supports IA64
17063
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17064
shlibpath_var=LD_LIBRARY_PATH
17066
# With GCC up to 2.95.x, collect2 would create an import file
17067
# for dependence libraries. The import file would start with
17068
# the line `#! .'. This would cause the generated library to
17069
# depend on `.', always an invalid library. This was fixed in
17070
# development snapshots of GCC prior to 3.0.
17072
aix4 | aix4.[01] | aix4.[01].*)
17073
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17075
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17078
can_build_shared=no
17082
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17083
# soname into executable. Probably we can add versioning support to
17084
# collect2, so additional links can be useful in future.
17085
if test "$aix_use_runtimelinking" = yes; then
17086
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17087
# instead of lib<name>.a to let people know that these are not
17088
# typical AIX shared libraries.
17089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17091
# We preserve .a as extension for shared libraries through AIX4.2
17092
# and later when we are not doing run time linking.
17093
library_names_spec='${libname}${release}.a $libname.a'
17094
soname_spec='${libname}${release}${shared_ext}$major'
17096
shlibpath_var=LIBPATH
17101
library_names_spec='$libname.ixlibrary $libname.a'
17102
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17103
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'
17107
library_names_spec='${libname}${shared_ext}'
17108
dynamic_linker="$host_os ld.so"
17109
shlibpath_var=LIBRARY_PATH
17115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116
soname_spec='${libname}${release}${shared_ext}$major'
17117
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17118
shlibpath_var=LD_LIBRARY_PATH
17119
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17120
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17121
# the default ld.so.conf also contains /usr/contrib/lib and
17122
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17123
# libtool to hard-code these into programs
17126
cygwin* | mingw* | pw32*)
17127
version_type=windows
17132
case $GCC,$host_os in
17133
yes,cygwin* | yes,mingw* | yes,pw32*)
17134
library_names_spec='$libname.dll.a'
17135
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17136
postinstall_cmds='base_file=`basename \${file}`~
17137
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17138
dldir=$destdir/`dirname \$dlpath`~
17139
test -d \$dldir || mkdir -p \$dldir~
17140
$install_prog $dir/$dlname \$dldir/$dlname~
17141
chmod a+x \$dldir/$dlname'
17142
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17143
dlpath=$dir/\$dldll~
17145
shlibpath_overrides_runpath=yes
17149
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17150
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17151
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17154
# MinGW DLLs use traditional 'lib' prefix
17155
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17156
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17157
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17158
# It is most probably a Windows format PATH printed by
17159
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17160
# path with ; separators, and with drive letters. We can handle the
17161
# drive letters (cygwin fileutils understands them), so leave them,
17162
# especially as we might pass files found there to a mingw objdump,
17163
# which wouldn't understand a cygwinified path. Ahh.
17164
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17166
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17170
# pw32 DLLs use 'pw' prefix rather than 'lib'
17171
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17177
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17180
dynamic_linker='Win32 ld.exe'
17181
# FIXME: first we should search . and the directory the executable is in
17185
darwin* | rhapsody*)
17186
dynamic_linker="$host_os dyld"
17187
version_type=darwin
17190
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17191
soname_spec='${libname}${release}${major}$shared_ext'
17192
shlibpath_overrides_runpath=yes
17193
shlibpath_var=DYLD_LIBRARY_PATH
17194
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17195
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17196
if test "$GCC" = yes; then
17197
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"`
17199
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17201
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17209
soname_spec='${libname}${release}${shared_ext}$major'
17210
shlibpath_var=LD_LIBRARY_PATH
17221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17222
soname_spec='${libname}${release}${shared_ext}$major'
17223
shlibpath_var=LD_LIBRARY_PATH
17224
shlibpath_overrides_runpath=no
17225
hardcode_into_libs=yes
17226
dynamic_linker='GNU ld.so'
17229
freebsd* | dragonfly*)
17230
# DragonFly does not have aout. When/if they implement a new
17231
# versioning mechanism, adjust this.
17232
if test -x /usr/bin/objformat; then
17233
objformat=`/usr/bin/objformat`
17236
freebsd[123]*) objformat=aout ;;
17237
*) objformat=elf ;;
17240
version_type=freebsd-$objformat
17241
case $version_type in
17243
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17248
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17252
shlibpath_var=LD_LIBRARY_PATH
17255
shlibpath_overrides_runpath=yes
17257
freebsd3.[01]* | freebsdelf3.[01]*)
17258
shlibpath_overrides_runpath=yes
17259
hardcode_into_libs=yes
17261
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17262
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17263
shlibpath_overrides_runpath=no
17264
hardcode_into_libs=yes
17266
freebsd*) # from 4.6 on
17267
shlibpath_overrides_runpath=yes
17268
hardcode_into_libs=yes
17277
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17278
soname_spec='${libname}${release}${shared_ext}$major'
17279
shlibpath_var=LD_LIBRARY_PATH
17280
hardcode_into_libs=yes
17283
hpux9* | hpux10* | hpux11*)
17284
# Give a soname corresponding to the major version so that dld.sl refuses to
17285
# link against other versions.
17292
hardcode_into_libs=yes
17293
dynamic_linker="$host_os dld.so"
17294
shlibpath_var=LD_LIBRARY_PATH
17295
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17297
soname_spec='${libname}${release}${shared_ext}$major'
17298
if test "X$HPUX_IA64_MODE" = X32; then
17299
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17301
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17303
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17307
hardcode_into_libs=yes
17308
dynamic_linker="$host_os dld.sl"
17309
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17310
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312
soname_spec='${libname}${release}${shared_ext}$major'
17313
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17314
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17318
dynamic_linker="$host_os dld.sl"
17319
shlibpath_var=SHLIB_PATH
17320
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322
soname_spec='${libname}${release}${shared_ext}$major'
17325
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17326
postinstall_cmds='chmod 555 $lib'
17333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17334
soname_spec='${libname}${release}${shared_ext}$major'
17335
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17336
shlibpath_var=LD_LIBRARY_PATH
17337
shlibpath_overrides_runpath=no
17338
hardcode_into_libs=yes
17341
irix5* | irix6* | nonstopux*)
17343
nonstopux*) version_type=nonstopux ;;
17345
if test "$lt_cv_prog_gnu_ld" = yes; then
17353
soname_spec='${libname}${release}${shared_ext}$major'
17354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17356
irix5* | nonstopux*)
17357
libsuff= shlibsuff=
17360
case $LD in # libtool.m4 will add one of these switches to LD
17361
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17362
libsuff= shlibsuff= libmagic=32-bit;;
17363
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17364
libsuff=32 shlibsuff=N32 libmagic=N32;;
17365
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17366
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17367
*) libsuff= shlibsuff= libmagic=never-match;;
17371
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17372
shlibpath_overrides_runpath=no
17373
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17374
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17375
hardcode_into_libs=yes
17378
# No shared lib support for Linux oldld, aout, or coff.
17379
linux*oldld* | linux*aout* | linux*coff*)
17383
# This must be Linux ELF.
17388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389
soname_spec='${libname}${release}${shared_ext}$major'
17390
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17391
shlibpath_var=LD_LIBRARY_PATH
17392
shlibpath_overrides_runpath=no
17393
# This implies no fast_install, which is unacceptable.
17394
# Some rework will be needed to allow for fast_install
17395
# before this can be enabled.
17396
hardcode_into_libs=yes
17398
# find out which ABI we are using
17400
case "$host_cpu" in
17401
x86_64*|s390x*|powerpc64*)
17402
echo '#line 17402 "configure"' > conftest.$ac_ext
17403
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17404
(eval $ac_compile) 2>&5
17406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407
(exit $ac_status); }; then
17408
case `/usr/bin/file conftest.$ac_objext` in
17411
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17419
# Append ld.so.conf contents to the search path
17420
if test -f /etc/ld.so.conf; then
17421
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17422
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17425
# We used to test for /lib/ld.so.1 and disable shared libraries on
17426
# powerpc, because MkLinux only supported shared libraries with the
17427
# GNU dynamic linker. Since this was broken with cross compilers,
17428
# most powerpc-linux boxes support dynamic linking these days and
17429
# people can always --disable-shared, the test was removed, and we
17430
# assume the GNU/Linux dynamic linker is in use.
17431
dynamic_linker='GNU/Linux ld.so'
17438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17439
soname_spec='${libname}${release}${shared_ext}$major'
17440
shlibpath_var=LD_LIBRARY_PATH
17441
shlibpath_overrides_runpath=no
17442
hardcode_into_libs=yes
17443
dynamic_linker='GNU ld.so'
17450
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17452
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17453
dynamic_linker='NetBSD (a.out) ld.so'
17455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17456
soname_spec='${libname}${release}${shared_ext}$major'
17457
dynamic_linker='NetBSD ld.elf_so'
17459
shlibpath_var=LD_LIBRARY_PATH
17460
shlibpath_overrides_runpath=yes
17461
hardcode_into_libs=yes
17466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467
shlibpath_var=LD_LIBRARY_PATH
17468
shlibpath_overrides_runpath=yes
17475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476
soname_spec='${libname}${release}${shared_ext}$major'
17477
shlibpath_var=LD_LIBRARY_PATH
17478
shlibpath_overrides_runpath=yes
17483
sys_lib_dlsearch_path_spec="/usr/lib"
17485
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17487
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17488
*) need_version=no ;;
17490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17491
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17492
shlibpath_var=LD_LIBRARY_PATH
17493
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17495
openbsd2.[89] | openbsd2.[89].*)
17496
shlibpath_overrides_runpath=no
17499
shlibpath_overrides_runpath=yes
17503
shlibpath_overrides_runpath=yes
17508
libname_spec='$name'
17511
library_names_spec='$libname${shared_ext} $libname.a'
17512
dynamic_linker='OS/2 ld.exe'
17513
shlibpath_var=LIBPATH
17516
osf3* | osf4* | osf5*)
17520
soname_spec='${libname}${release}${shared_ext}$major'
17521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522
shlibpath_var=LD_LIBRARY_PATH
17523
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17524
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17531
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17532
soname_spec='${libname}${release}${shared_ext}$major'
17533
shlibpath_var=LD_LIBRARY_PATH
17534
shlibpath_overrides_runpath=yes
17535
hardcode_into_libs=yes
17536
# ldd complains unless libraries are executable
17537
postinstall_cmds='chmod +x $lib'
17542
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17543
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17544
shlibpath_var=LD_LIBRARY_PATH
17545
shlibpath_overrides_runpath=yes
17546
if test "$with_gnu_ld" = yes; then
17554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555
soname_spec='${libname}${release}${shared_ext}$major'
17556
shlibpath_var=LD_LIBRARY_PATH
17557
case $host_vendor in
17559
shlibpath_overrides_runpath=no
17561
export_dynamic_flag_spec='${wl}-Blargedynsym'
17562
runpath_var=LD_RUN_PATH
17570
shlibpath_overrides_runpath=no
17571
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17577
if test -d /usr/nec ;then
17579
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17580
soname_spec='$libname${shared_ext}.$major'
17581
shlibpath_var=LD_LIBRARY_PATH
17585
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17586
version_type=freebsd-elf
17589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17590
soname_spec='${libname}${release}${shared_ext}$major'
17591
shlibpath_var=LD_LIBRARY_PATH
17592
hardcode_into_libs=yes
17593
if test "$with_gnu_ld" = yes; then
17594
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17595
shlibpath_overrides_runpath=no
17597
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17598
shlibpath_overrides_runpath=yes
17601
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17605
sys_lib_dlsearch_path_spec='/usr/lib'
17610
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17611
soname_spec='${libname}${release}${shared_ext}$major'
17612
shlibpath_var=LD_LIBRARY_PATH
17619
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17620
echo "${ECHO_T}$dynamic_linker" >&6
17621
test "$dynamic_linker" = no && can_build_shared=no
17623
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17624
if test "$GCC" = yes; then
17625
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17628
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17629
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17630
hardcode_action_GCJ=
17631
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17632
test -n "$runpath_var_GCJ" || \
17633
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17635
# We can hardcode non-existant directories.
17636
if test "$hardcode_direct_GCJ" != no &&
17637
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17638
# have to relink, otherwise we might link with an installed library
17639
# when we should be linking with a yet-to-be-installed one
17640
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17641
test "$hardcode_minus_L_GCJ" != no; then
17642
# Linking always hardcodes the temporary library directory.
17643
hardcode_action_GCJ=relink
17645
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17646
hardcode_action_GCJ=immediate
17649
# We cannot hardcode anything, or else we can only hardcode existing
17651
hardcode_action_GCJ=unsupported
17653
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17654
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17656
if test "$hardcode_action_GCJ" = relink; then
17657
# Fast installation is not supported
17658
enable_fast_install=no
17659
elif test "$shlibpath_overrides_runpath" = yes ||
17660
test "$enable_shared" = no; then
17661
# Fast installation is not necessary
17662
enable_fast_install=needless
17666
# The else clause should only fire when bootstrapping the
17667
# libtool distribution, otherwise you forgot to ship ltmain.sh
17668
# with your package, and you will get complaints that there are
17669
# no rules to generate ltmain.sh.
17670
if test -f "$ltmain"; then
17671
# See if we are running on zsh, and set the options which allow our commands through
17672
# without removal of \ escapes.
17673
if test -n "${ZSH_VERSION+set}" ; then
17674
setopt NO_GLOB_SUBST
17676
# Now quote all the things that may contain metacharacters while being
17677
# careful not to overquote the AC_SUBSTed values. We take copies of the
17678
# variables and quote the copies for generation of the libtool script.
17679
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17681
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17682
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17683
deplibs_check_method reload_flag reload_cmds need_locks \
17684
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17685
lt_cv_sys_global_symbol_to_c_name_address \
17686
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17687
old_postinstall_cmds old_postuninstall_cmds \
17691
lt_prog_compiler_wl_GCJ \
17692
lt_prog_compiler_pic_GCJ \
17693
lt_prog_compiler_static_GCJ \
17694
lt_prog_compiler_no_builtin_flag_GCJ \
17695
export_dynamic_flag_spec_GCJ \
17696
thread_safe_flag_spec_GCJ \
17697
whole_archive_flag_spec_GCJ \
17698
enable_shared_with_static_runtimes_GCJ \
17699
old_archive_cmds_GCJ \
17700
old_archive_from_new_cmds_GCJ \
17701
predep_objects_GCJ \
17702
postdep_objects_GCJ \
17705
compiler_lib_search_path_GCJ \
17707
archive_expsym_cmds_GCJ \
17708
postinstall_cmds_GCJ \
17709
postuninstall_cmds_GCJ \
17710
old_archive_from_expsyms_cmds_GCJ \
17711
allow_undefined_flag_GCJ \
17712
no_undefined_flag_GCJ \
17713
export_symbols_cmds_GCJ \
17714
hardcode_libdir_flag_spec_GCJ \
17715
hardcode_libdir_flag_spec_ld_GCJ \
17716
hardcode_libdir_separator_GCJ \
17717
hardcode_automatic_GCJ \
17719
module_expsym_cmds_GCJ \
17720
lt_cv_prog_compiler_c_o_GCJ \
17721
exclude_expsyms_GCJ \
17722
include_expsyms_GCJ; do
17725
old_archive_cmds_GCJ | \
17726
old_archive_from_new_cmds_GCJ | \
17727
archive_cmds_GCJ | \
17728
archive_expsym_cmds_GCJ | \
17729
module_cmds_GCJ | \
17730
module_expsym_cmds_GCJ | \
17731
old_archive_from_expsyms_cmds_GCJ | \
17732
export_symbols_cmds_GCJ | \
17733
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17734
postinstall_cmds | postuninstall_cmds | \
17735
old_postinstall_cmds | old_postuninstall_cmds | \
17736
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17737
# Double-quote double-evaled strings.
17738
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17741
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17747
*'\$0 --fallback-echo"')
17748
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17754
cat <<__EOF__ >> "$cfgfile"
17755
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17757
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17759
# Shell to use when invoking shell scripts.
17762
# Whether or not to build shared libraries.
17763
build_libtool_libs=$enable_shared
17765
# Whether or not to build static libraries.
17766
build_old_libs=$enable_static
17768
# Whether or not to add -lc for building shared libraries.
17769
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17771
# Whether or not to disallow shared libs when runtime libs are static
17772
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17774
# Whether or not to optimize for fast installation.
17775
fast_install=$enable_fast_install
17778
host_alias=$host_alias
17782
# The build system.
17783
build_alias=$build_alias
17787
# An echo program that does not interpret backslashes.
17792
AR_FLAGS=$lt_AR_FLAGS
17797
# LTCC compiler flags.
17798
LTCFLAGS=$lt_LTCFLAGS
17800
# A language-specific compiler.
17801
CC=$lt_compiler_GCJ
17803
# Is the compiler the GNU C compiler?
17806
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17807
gcc_ver=\`gcc -dumpversion\`
17812
# The linker used to build libraries.
17815
# Whether we need hard or soft links.
17818
# A BSD-compatible nm program.
17821
# A symbol stripping program
17824
# Used to examine libraries when file_magic_cmd begins "file"
17825
MAGIC_CMD=$MAGIC_CMD
17827
# Used on cygwin: DLL creation program.
17830
# Used on cygwin: object dumper.
17833
# Used on cygwin: assembler.
17836
# The name of the directory that contains temporary libtool files.
17839
# How to create reloadable object files.
17840
reload_flag=$lt_reload_flag
17841
reload_cmds=$lt_reload_cmds
17843
# How to pass a linker flag through the compiler.
17844
wl=$lt_lt_prog_compiler_wl_GCJ
17846
# Object file suffix (normally "o").
17847
objext="$ac_objext"
17849
# Old archive suffix (normally "a").
17852
# Shared library suffix (normally ".so").
17853
shrext_cmds='$shrext_cmds'
17855
# Executable file suffix (normally "").
17858
# Additional compiler flags for building library objects.
17859
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17862
# What is the maximum length of a command?
17863
max_cmd_len=$lt_cv_sys_max_cmd_len
17865
# Does compiler simultaneously support -c and -o options?
17866
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17868
# Must we lock files when doing compilation?
17869
need_locks=$lt_need_locks
17871
# Do we need the lib prefix for modules?
17872
need_lib_prefix=$need_lib_prefix
17874
# Do we need a version for libraries?
17875
need_version=$need_version
17877
# Whether dlopen is supported.
17878
dlopen_support=$enable_dlopen
17880
# Whether dlopen of programs is supported.
17881
dlopen_self=$enable_dlopen_self
17883
# Whether dlopen of statically linked programs is supported.
17884
dlopen_self_static=$enable_dlopen_self_static
17886
# Compiler flag to prevent dynamic linking.
17887
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17889
# Compiler flag to turn off builtin functions.
17890
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17892
# Compiler flag to allow reflexive dlopens.
17893
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17895
# Compiler flag to generate shared objects directly from archives.
17896
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17898
# Compiler flag to generate thread-safe objects.
17899
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17901
# Library versioning type.
17902
version_type=$version_type
17904
# Format of library name prefix.
17905
libname_spec=$lt_libname_spec
17907
# List of archive names. First name is the real one, the rest are links.
17908
# The last name is the one that the linker finds with -lNAME.
17909
library_names_spec=$lt_library_names_spec
17911
# The coded name of the library, if different from the real name.
17912
soname_spec=$lt_soname_spec
17914
# Commands used to build and install an old-style archive.
17916
old_archive_cmds=$lt_old_archive_cmds_GCJ
17917
old_postinstall_cmds=$lt_old_postinstall_cmds
17918
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17920
# Create an old-style archive from a shared archive.
17921
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17923
# Create a temporary old-style archive to link instead of a shared archive.
17924
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17926
# Commands used to build and install a shared archive.
17927
archive_cmds=$lt_archive_cmds_GCJ
17928
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17929
postinstall_cmds=$lt_postinstall_cmds
17930
postuninstall_cmds=$lt_postuninstall_cmds
17932
# Commands used to build a loadable module (assumed same as above if empty)
17933
module_cmds=$lt_module_cmds_GCJ
17934
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17936
# Commands to strip libraries.
17937
old_striplib=$lt_old_striplib
17938
striplib=$lt_striplib
17940
# Dependencies to place before the objects being linked to create a
17942
predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17944
# Dependencies to place after the objects being linked to create a
17946
postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17948
# Dependencies to place before the objects being linked to create a
17950
predeps=$lt_predeps_GCJ
17952
# Dependencies to place after the objects being linked to create a
17954
postdeps=$lt_postdeps_GCJ
17956
# The library search path used internally by the compiler when linking
17957
# a shared library.
17958
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17960
# Method to check whether dependent libraries are shared objects.
17961
deplibs_check_method=$lt_deplibs_check_method
17963
# Command to use when deplibs_check_method == file_magic.
17964
file_magic_cmd=$lt_file_magic_cmd
17966
# Flag that allows shared libraries with undefined symbols to be built.
17967
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17969
# Flag that forces no undefined symbols.
17970
no_undefined_flag=$lt_no_undefined_flag_GCJ
17972
# Commands used to finish a libtool library installation in a directory.
17973
finish_cmds=$lt_finish_cmds
17975
# Same as above, but a single script fragment to be evaled but not shown.
17976
finish_eval=$lt_finish_eval
17978
# Take the output of nm and produce a listing of raw symbols and C names.
17979
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17981
# Transform the output of nm in a proper C declaration
17982
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17984
# Transform the output of nm in a C name address pair
17985
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17987
# This is the shared library runtime path variable.
17988
runpath_var=$runpath_var
17990
# This is the shared library path variable.
17991
shlibpath_var=$shlibpath_var
17993
# Is shlibpath searched before the hard-coded library search path?
17994
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17996
# How to hardcode a shared library path into an executable.
17997
hardcode_action=$hardcode_action_GCJ
17999
# Whether we should hardcode library paths into libraries.
18000
hardcode_into_libs=$hardcode_into_libs
18002
# Flag to hardcode \$libdir into a binary during linking.
18003
# This must work even if \$libdir does not exist.
18004
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18006
# If ld is used when linking, flag to hardcode \$libdir into
18007
# a binary during linking. This must work even if \$libdir does
18009
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18011
# Whether we need a single -rpath flag with a separated argument.
18012
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18014
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18015
# resulting binary.
18016
hardcode_direct=$hardcode_direct_GCJ
18018
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18019
# resulting binary.
18020
hardcode_minus_L=$hardcode_minus_L_GCJ
18022
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18023
# the resulting binary.
18024
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18026
# Set to yes if building a shared library automatically hardcodes DIR into the library
18027
# and all subsequent libraries and executables linked against it.
18028
hardcode_automatic=$hardcode_automatic_GCJ
18030
# Variables whose values should be saved in libtool wrapper scripts and
18031
# restored at relink time.
18032
variables_saved_for_relink="$variables_saved_for_relink"
18034
# Whether libtool must link a program against all its dependency libraries.
18035
link_all_deplibs=$link_all_deplibs_GCJ
18037
# Compile-time system search path for libraries
18038
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18040
# Run-time system search path for libraries
18041
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18043
# Fix the shell variable \$srcfile for the compiler.
18044
fix_srcfile_path="$fix_srcfile_path_GCJ"
18046
# Set to yes if exported symbols are required.
18047
always_export_symbols=$always_export_symbols_GCJ
18049
# The commands to list exported symbols.
18050
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18052
# The commands to extract the exported symbol list from a shared archive.
18053
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18055
# Symbols that should not be listed in the preloaded symbols.
18056
exclude_expsyms=$lt_exclude_expsyms_GCJ
18058
# Symbols that must always be exported.
18059
include_expsyms=$lt_include_expsyms_GCJ
18061
# ### END LIBTOOL TAG CONFIG: $tagname
18067
# If there is no Makefile yet, we rely on a make rule to execute
18068
# `config.status --recheck' to rerun these tests and create the
18069
# libtool script then.
18070
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18071
if test -f "$ltmain_in"; then
18072
test -f Makefile && make "$ltmain"
18078
ac_cpp='$CPP $CPPFLAGS'
18079
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18080
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18081
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18094
# Source file extension for RC test sources.
18097
# Object file extension for compiled RC test sources.
18101
# Code to be used in simple compile tests
18102
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18104
# Code to be used in simple link tests
18105
lt_simple_link_test_code="$lt_simple_compile_test_code"
18107
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18109
# If no C compiler was specified, use CC.
18112
# If no C compiler flags were specified, use CFLAGS.
18113
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18115
# Allow CC to be a program name with arguments.
18119
# save warnings/boilerplate of simple test code
18120
ac_outfile=conftest.$ac_objext
18121
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18122
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18123
_lt_compiler_boilerplate=`cat conftest.err`
18126
ac_outfile=conftest.$ac_objext
18127
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18128
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18129
_lt_linker_boilerplate=`cat conftest.err`
18133
# Allow CC to be a program name with arguments.
18138
for cc_temp in $compiler""; do
18140
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18141
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18146
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18148
lt_cv_prog_compiler_c_o_RC=yes
18150
# The else clause should only fire when bootstrapping the
18151
# libtool distribution, otherwise you forgot to ship ltmain.sh
18152
# with your package, and you will get complaints that there are
18153
# no rules to generate ltmain.sh.
18154
if test -f "$ltmain"; then
18155
# See if we are running on zsh, and set the options which allow our commands through
18156
# without removal of \ escapes.
18157
if test -n "${ZSH_VERSION+set}" ; then
18158
setopt NO_GLOB_SUBST
18160
# Now quote all the things that may contain metacharacters while being
18161
# careful not to overquote the AC_SUBSTed values. We take copies of the
18162
# variables and quote the copies for generation of the libtool script.
18163
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18165
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18166
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18167
deplibs_check_method reload_flag reload_cmds need_locks \
18168
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18169
lt_cv_sys_global_symbol_to_c_name_address \
18170
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18171
old_postinstall_cmds old_postuninstall_cmds \
18175
lt_prog_compiler_wl_RC \
18176
lt_prog_compiler_pic_RC \
18177
lt_prog_compiler_static_RC \
18178
lt_prog_compiler_no_builtin_flag_RC \
18179
export_dynamic_flag_spec_RC \
18180
thread_safe_flag_spec_RC \
18181
whole_archive_flag_spec_RC \
18182
enable_shared_with_static_runtimes_RC \
18183
old_archive_cmds_RC \
18184
old_archive_from_new_cmds_RC \
18185
predep_objects_RC \
18186
postdep_objects_RC \
18189
compiler_lib_search_path_RC \
18191
archive_expsym_cmds_RC \
18192
postinstall_cmds_RC \
18193
postuninstall_cmds_RC \
18194
old_archive_from_expsyms_cmds_RC \
18195
allow_undefined_flag_RC \
18196
no_undefined_flag_RC \
18197
export_symbols_cmds_RC \
18198
hardcode_libdir_flag_spec_RC \
18199
hardcode_libdir_flag_spec_ld_RC \
18200
hardcode_libdir_separator_RC \
18201
hardcode_automatic_RC \
18203
module_expsym_cmds_RC \
18204
lt_cv_prog_compiler_c_o_RC \
18205
exclude_expsyms_RC \
18206
include_expsyms_RC; do
18209
old_archive_cmds_RC | \
18210
old_archive_from_new_cmds_RC | \
18211
archive_cmds_RC | \
18212
archive_expsym_cmds_RC | \
18214
module_expsym_cmds_RC | \
18215
old_archive_from_expsyms_cmds_RC | \
18216
export_symbols_cmds_RC | \
18217
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18218
postinstall_cmds | postuninstall_cmds | \
18219
old_postinstall_cmds | old_postuninstall_cmds | \
18220
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18221
# Double-quote double-evaled strings.
18222
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18225
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18231
*'\$0 --fallback-echo"')
18232
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18238
cat <<__EOF__ >> "$cfgfile"
18239
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18241
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18243
# Shell to use when invoking shell scripts.
18246
# Whether or not to build shared libraries.
18247
build_libtool_libs=$enable_shared
18249
# Whether or not to build static libraries.
18250
build_old_libs=$enable_static
18252
# Whether or not to add -lc for building shared libraries.
18253
build_libtool_need_lc=$archive_cmds_need_lc_RC
18255
# Whether or not to disallow shared libs when runtime libs are static
18256
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18258
# Whether or not to optimize for fast installation.
18259
fast_install=$enable_fast_install
18262
host_alias=$host_alias
18266
# The build system.
18267
build_alias=$build_alias
18271
# An echo program that does not interpret backslashes.
18276
AR_FLAGS=$lt_AR_FLAGS
18281
# LTCC compiler flags.
18282
LTCFLAGS=$lt_LTCFLAGS
18284
# A language-specific compiler.
18287
# Is the compiler the GNU C compiler?
18290
gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18291
gcc_ver=\`gcc -dumpversion\`
18296
# The linker used to build libraries.
18299
# Whether we need hard or soft links.
18302
# A BSD-compatible nm program.
18305
# A symbol stripping program
18308
# Used to examine libraries when file_magic_cmd begins "file"
18309
MAGIC_CMD=$MAGIC_CMD
18311
# Used on cygwin: DLL creation program.
18314
# Used on cygwin: object dumper.
18317
# Used on cygwin: assembler.
18320
# The name of the directory that contains temporary libtool files.
18323
# How to create reloadable object files.
18324
reload_flag=$lt_reload_flag
18325
reload_cmds=$lt_reload_cmds
18327
# How to pass a linker flag through the compiler.
18328
wl=$lt_lt_prog_compiler_wl_RC
18330
# Object file suffix (normally "o").
18331
objext="$ac_objext"
18333
# Old archive suffix (normally "a").
18336
# Shared library suffix (normally ".so").
18337
shrext_cmds='$shrext_cmds'
18339
# Executable file suffix (normally "").
18342
# Additional compiler flags for building library objects.
18343
pic_flag=$lt_lt_prog_compiler_pic_RC
18346
# What is the maximum length of a command?
18347
max_cmd_len=$lt_cv_sys_max_cmd_len
18349
# Does compiler simultaneously support -c and -o options?
18350
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18352
# Must we lock files when doing compilation?
18353
need_locks=$lt_need_locks
18355
# Do we need the lib prefix for modules?
18356
need_lib_prefix=$need_lib_prefix
18358
# Do we need a version for libraries?
18359
need_version=$need_version
18361
# Whether dlopen is supported.
18362
dlopen_support=$enable_dlopen
18364
# Whether dlopen of programs is supported.
18365
dlopen_self=$enable_dlopen_self
18367
# Whether dlopen of statically linked programs is supported.
18368
dlopen_self_static=$enable_dlopen_self_static
18370
# Compiler flag to prevent dynamic linking.
18371
link_static_flag=$lt_lt_prog_compiler_static_RC
18373
# Compiler flag to turn off builtin functions.
18374
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18376
# Compiler flag to allow reflexive dlopens.
18377
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18379
# Compiler flag to generate shared objects directly from archives.
18380
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18382
# Compiler flag to generate thread-safe objects.
18383
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18385
# Library versioning type.
18386
version_type=$version_type
18388
# Format of library name prefix.
18389
libname_spec=$lt_libname_spec
18391
# List of archive names. First name is the real one, the rest are links.
18392
# The last name is the one that the linker finds with -lNAME.
18393
library_names_spec=$lt_library_names_spec
18395
# The coded name of the library, if different from the real name.
18396
soname_spec=$lt_soname_spec
18398
# Commands used to build and install an old-style archive.
18400
old_archive_cmds=$lt_old_archive_cmds_RC
18401
old_postinstall_cmds=$lt_old_postinstall_cmds
18402
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18404
# Create an old-style archive from a shared archive.
18405
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18407
# Create a temporary old-style archive to link instead of a shared archive.
18408
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18410
# Commands used to build and install a shared archive.
18411
archive_cmds=$lt_archive_cmds_RC
18412
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18413
postinstall_cmds=$lt_postinstall_cmds
18414
postuninstall_cmds=$lt_postuninstall_cmds
18416
# Commands used to build a loadable module (assumed same as above if empty)
18417
module_cmds=$lt_module_cmds_RC
18418
module_expsym_cmds=$lt_module_expsym_cmds_RC
18420
# Commands to strip libraries.
18421
old_striplib=$lt_old_striplib
18422
striplib=$lt_striplib
18424
# Dependencies to place before the objects being linked to create a
18426
predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18428
# Dependencies to place after the objects being linked to create a
18430
postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18432
# Dependencies to place before the objects being linked to create a
18434
predeps=$lt_predeps_RC
18436
# Dependencies to place after the objects being linked to create a
18438
postdeps=$lt_postdeps_RC
18440
# The library search path used internally by the compiler when linking
18441
# a shared library.
18442
compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18444
# Method to check whether dependent libraries are shared objects.
18445
deplibs_check_method=$lt_deplibs_check_method
18447
# Command to use when deplibs_check_method == file_magic.
18448
file_magic_cmd=$lt_file_magic_cmd
18450
# Flag that allows shared libraries with undefined symbols to be built.
18451
allow_undefined_flag=$lt_allow_undefined_flag_RC
18453
# Flag that forces no undefined symbols.
18454
no_undefined_flag=$lt_no_undefined_flag_RC
18456
# Commands used to finish a libtool library installation in a directory.
18457
finish_cmds=$lt_finish_cmds
18459
# Same as above, but a single script fragment to be evaled but not shown.
18460
finish_eval=$lt_finish_eval
18462
# Take the output of nm and produce a listing of raw symbols and C names.
18463
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18465
# Transform the output of nm in a proper C declaration
18466
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18468
# Transform the output of nm in a C name address pair
18469
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18471
# This is the shared library runtime path variable.
18472
runpath_var=$runpath_var
18474
# This is the shared library path variable.
18475
shlibpath_var=$shlibpath_var
18477
# Is shlibpath searched before the hard-coded library search path?
18478
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18480
# How to hardcode a shared library path into an executable.
18481
hardcode_action=$hardcode_action_RC
18483
# Whether we should hardcode library paths into libraries.
18484
hardcode_into_libs=$hardcode_into_libs
18486
# Flag to hardcode \$libdir into a binary during linking.
18487
# This must work even if \$libdir does not exist.
18488
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18490
# If ld is used when linking, flag to hardcode \$libdir into
18491
# a binary during linking. This must work even if \$libdir does
18493
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18495
# Whether we need a single -rpath flag with a separated argument.
18496
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18498
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18499
# resulting binary.
18500
hardcode_direct=$hardcode_direct_RC
18502
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18503
# resulting binary.
18504
hardcode_minus_L=$hardcode_minus_L_RC
18506
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18507
# the resulting binary.
18508
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18510
# Set to yes if building a shared library automatically hardcodes DIR into the library
18511
# and all subsequent libraries and executables linked against it.
18512
hardcode_automatic=$hardcode_automatic_RC
18514
# Variables whose values should be saved in libtool wrapper scripts and
18515
# restored at relink time.
18516
variables_saved_for_relink="$variables_saved_for_relink"
18518
# Whether libtool must link a program against all its dependency libraries.
18519
link_all_deplibs=$link_all_deplibs_RC
18521
# Compile-time system search path for libraries
18522
sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18524
# Run-time system search path for libraries
18525
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18527
# Fix the shell variable \$srcfile for the compiler.
18528
fix_srcfile_path="$fix_srcfile_path_RC"
18530
# Set to yes if exported symbols are required.
18531
always_export_symbols=$always_export_symbols_RC
18533
# The commands to list exported symbols.
18534
export_symbols_cmds=$lt_export_symbols_cmds_RC
18536
# The commands to extract the exported symbol list from a shared archive.
18537
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18539
# Symbols that should not be listed in the preloaded symbols.
18540
exclude_expsyms=$lt_exclude_expsyms_RC
18542
# Symbols that must always be exported.
18543
include_expsyms=$lt_include_expsyms_RC
18545
# ### END LIBTOOL TAG CONFIG: $tagname
18551
# If there is no Makefile yet, we rely on a make rule to execute
18552
# `config.status --recheck' to rerun these tests and create the
18553
# libtool script then.
18554
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18555
if test -f "$ltmain_in"; then
18556
test -f Makefile && make "$ltmain"
18562
ac_cpp='$CPP $CPPFLAGS'
18563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18572
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18573
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18574
{ (exit 1); exit 1; }; }
18578
# Append the new tag name to the list of available tags.
18579
if test -n "$tagname" ; then
18580
available_tags="$available_tags $tagname"
18586
# Now substitute the updated list of available tags.
18587
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18588
mv "${ofile}T" "$ofile"
18592
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18593
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18594
{ (exit 1); exit 1; }; }
18600
# This can be used to rebuild libtool when needed
18601
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18603
# Always use our own libtool.
18604
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18606
# Prevent multiple expansion
18628
echo "$as_me:$LINENO: checking for inline" >&5
18629
echo $ECHO_N "checking for inline... $ECHO_C" >&6
18630
if test "${ac_cv_c_inline+set}" = set; then
18631
echo $ECHO_N "(cached) $ECHO_C" >&6
18634
for ac_kw in inline __inline__ __inline; do
18635
cat >conftest.$ac_ext <<_ACEOF
18638
cat confdefs.h >>conftest.$ac_ext
18639
cat >>conftest.$ac_ext <<_ACEOF
18640
/* end confdefs.h. */
18641
#ifndef __cplusplus
18643
static $ac_kw foo_t static_foo () {return 0; }
18644
$ac_kw foo_t foo () {return 0; }
18648
rm -f conftest.$ac_objext
18649
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18650
(eval $ac_compile) 2>conftest.er1
18652
grep -v '^ *+' conftest.er1 >conftest.err
18654
cat conftest.err >&5
18655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656
(exit $ac_status); } &&
18657
{ ac_try='test -z "$ac_c_werror_flag"
18658
|| test ! -s conftest.err'
18659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660
(eval $ac_try) 2>&5
18662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663
(exit $ac_status); }; } &&
18664
{ ac_try='test -s conftest.$ac_objext'
18665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666
(eval $ac_try) 2>&5
18668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669
(exit $ac_status); }; }; then
18670
ac_cv_c_inline=$ac_kw; break
18672
echo "$as_me: failed program was:" >&5
18673
sed 's/^/| /' conftest.$ac_ext >&5
18676
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18680
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18681
echo "${ECHO_T}$ac_cv_c_inline" >&6
18684
case $ac_cv_c_inline in
18687
case $ac_cv_c_inline in
18689
*) ac_val=$ac_cv_c_inline;;
18691
cat >>confdefs.h <<_ACEOF
18692
#ifndef __cplusplus
18693
#define inline $ac_val
18700
echo "$as_me:$LINENO: checking whether pthread_mutex_t is larger than 24 bytes" >&5
18701
echo $ECHO_N "checking whether pthread_mutex_t is larger than 24 bytes... $ECHO_C" >&6
18702
if test "$cross_compiling" = yes; then
18703
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18704
See \`config.log' for more details." >&5
18705
echo "$as_me: error: cannot run test program while cross compiling
18706
See \`config.log' for more details." >&2;}
18707
{ (exit 1); exit 1; }; }
18709
cat >conftest.$ac_ext <<_ACEOF
18712
cat confdefs.h >>conftest.$ac_ext
18713
cat >>conftest.$ac_ext <<_ACEOF
18714
/* end confdefs.h. */
18716
#include <pthread.h>
18717
int main(void){return (sizeof(pthread_mutex_t) > 24);}
18720
rm -f conftest$ac_exeext
18721
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18722
(eval $ac_link) 2>&5
18724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18726
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727
(eval $ac_try) 2>&5
18729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730
(exit $ac_status); }; }; then
18731
echo "$as_me:$LINENO: result: yes" >&5
18732
echo "${ECHO_T}yes" >&6
18734
echo "$as_me: program exited with status $ac_status" >&5
18735
echo "$as_me: failed program was:" >&5
18736
sed 's/^/| /' conftest.$ac_ext >&5
18738
( exit $ac_status )
18740
echo "$as_me:$LINENO: result: no" >&5
18741
echo "${ECHO_T}no" >&6
18743
cat >>confdefs.h <<\_ACEOF
18744
#define UMEM_PTHREAD_MUTEX_TOO_BIG 1
18747
{ echo "$as_me:$LINENO: WARNING: *** increasing umem cpu cache size to compensate." >&5
18748
echo "$as_me: WARNING: *** increasing umem cpu cache size to compensate." >&2;}
18752
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18760
for ac_header in sys/mman.h sys/sysmacros.h sys/time.h malloc.h
18762
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18763
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18764
echo "$as_me:$LINENO: checking for $ac_header" >&5
18765
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18766
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18767
echo $ECHO_N "(cached) $ECHO_C" >&6
18769
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18770
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18772
# Is the header compilable?
18773
echo "$as_me:$LINENO: checking $ac_header usability" >&5
18774
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18775
cat >conftest.$ac_ext <<_ACEOF
18778
cat confdefs.h >>conftest.$ac_ext
18779
cat >>conftest.$ac_ext <<_ACEOF
18780
/* end confdefs.h. */
18781
$ac_includes_default
18782
#include <$ac_header>
18784
rm -f conftest.$ac_objext
18785
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18786
(eval $ac_compile) 2>conftest.er1
18788
grep -v '^ *+' conftest.er1 >conftest.err
18790
cat conftest.err >&5
18791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792
(exit $ac_status); } &&
18793
{ ac_try='test -z "$ac_c_werror_flag"
18794
|| test ! -s conftest.err'
18795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796
(eval $ac_try) 2>&5
18798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799
(exit $ac_status); }; } &&
18800
{ ac_try='test -s conftest.$ac_objext'
18801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802
(eval $ac_try) 2>&5
18804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805
(exit $ac_status); }; }; then
18806
ac_header_compiler=yes
18808
echo "$as_me: failed program was:" >&5
18809
sed 's/^/| /' conftest.$ac_ext >&5
18811
ac_header_compiler=no
18813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18814
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18815
echo "${ECHO_T}$ac_header_compiler" >&6
18817
# Is the header present?
18818
echo "$as_me:$LINENO: checking $ac_header presence" >&5
18819
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18820
cat >conftest.$ac_ext <<_ACEOF
18823
cat confdefs.h >>conftest.$ac_ext
18824
cat >>conftest.$ac_ext <<_ACEOF
18825
/* end confdefs.h. */
18826
#include <$ac_header>
18828
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18829
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18831
grep -v '^ *+' conftest.er1 >conftest.err
18833
cat conftest.err >&5
18834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835
(exit $ac_status); } >/dev/null; then
18836
if test -s conftest.err; then
18837
ac_cpp_err=$ac_c_preproc_warn_flag
18838
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18845
if test -z "$ac_cpp_err"; then
18846
ac_header_preproc=yes
18848
echo "$as_me: failed program was:" >&5
18849
sed 's/^/| /' conftest.$ac_ext >&5
18851
ac_header_preproc=no
18853
rm -f conftest.err conftest.$ac_ext
18854
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18855
echo "${ECHO_T}$ac_header_preproc" >&6
18857
# So? What about this header?
18858
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18860
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18861
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18862
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18863
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18864
ac_header_preproc=yes
18867
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18868
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18869
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18870
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18871
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18872
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18873
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18874
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18875
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18876
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18877
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18878
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18881
## ------------------------------- ##
18882
## Report this to the umem lists. ##
18883
## ------------------------------- ##
18886
sed "s/^/$as_me: WARNING: /" >&2
18889
echo "$as_me:$LINENO: checking for $ac_header" >&5
18890
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18891
if eval "test \"\${$as_ac_Header+set}\" = set"; then
18892
echo $ECHO_N "(cached) $ECHO_C" >&6
18894
eval "$as_ac_Header=\$ac_header_preproc"
18896
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18897
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18900
if test `eval echo '${'$as_ac_Header'}'` = yes; then
18901
cat >>confdefs.h <<_ACEOF
18902
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18912
for ac_func in issetugid mallinfo malloc_stats
18914
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18915
echo "$as_me:$LINENO: checking for $ac_func" >&5
18916
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18917
if eval "test \"\${$as_ac_var+set}\" = set"; then
18918
echo $ECHO_N "(cached) $ECHO_C" >&6
18920
cat >conftest.$ac_ext <<_ACEOF
18923
cat confdefs.h >>conftest.$ac_ext
18924
cat >>conftest.$ac_ext <<_ACEOF
18925
/* end confdefs.h. */
18926
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18927
For example, HP-UX 11i <limits.h> declares gettimeofday. */
18928
#define $ac_func innocuous_$ac_func
18930
/* System header to define __stub macros and hopefully few prototypes,
18931
which can conflict with char $ac_func (); below.
18932
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18933
<limits.h> exists even on freestanding compilers. */
18936
# include <limits.h>
18938
# include <assert.h>
18943
/* Override any gcc2 internal prototype to avoid an error. */
18948
/* We use char because int might match the return type of a gcc2
18949
builtin and then its argument prototype would still apply. */
18951
/* The GNU C library defines this for functions which it implements
18952
to always fail with ENOSYS. Some functions are actually named
18953
something starting with __ and the normal name is an alias. */
18954
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18957
char (*f) () = $ac_func;
18966
return f != $ac_func;
18971
rm -f conftest.$ac_objext conftest$ac_exeext
18972
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973
(eval $ac_link) 2>conftest.er1
18975
grep -v '^ *+' conftest.er1 >conftest.err
18977
cat conftest.err >&5
18978
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979
(exit $ac_status); } &&
18980
{ ac_try='test -z "$ac_c_werror_flag"
18981
|| test ! -s conftest.err'
18982
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983
(eval $ac_try) 2>&5
18985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986
(exit $ac_status); }; } &&
18987
{ ac_try='test -s conftest$ac_exeext'
18988
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989
(eval $ac_try) 2>&5
18991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992
(exit $ac_status); }; }; then
18993
eval "$as_ac_var=yes"
18995
echo "$as_me: failed program was:" >&5
18996
sed 's/^/| /' conftest.$ac_ext >&5
18998
eval "$as_ac_var=no"
19000
rm -f conftest.err conftest.$ac_objext \
19001
conftest$ac_exeext conftest.$ac_ext
19003
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19004
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19005
if test `eval echo '${'$as_ac_var'}'` = yes; then
19006
cat >>confdefs.h <<_ACEOF
19007
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19014
ac_config_headers="$ac_config_headers config.h"
19016
ac_config_files="$ac_config_files Makefile Doxyfile umem.spec"
19019
cat >confcache <<\_ACEOF
19020
# This file is a shell script that caches the results of configure
19021
# tests run on this system so they can be shared between configure
19022
# scripts and configure runs, see configure's option --config-cache.
19023
# It is not useful on other systems. If it contains results you don't
19024
# want to keep, you may remove or edit it.
19026
# config.status only pays attention to the cache file if you give it
19027
# the --recheck option to rerun configure.
19029
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19030
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19031
# following values.
19035
# The following way of writing the cache mishandles newlines in values,
19036
# but we know of no workaround that is simple, portable, and efficient.
19037
# So, don't put newlines in cache variables' values.
19038
# Ultrix sh set writes to stderr and can't be redirected directly,
19039
# and sets the high bit in the cache file unless we assign to the vars.
19042
case `(ac_space=' '; set | grep ac_space) 2>&1` in
19044
# `set' does not quote correctly, so add quotes (double-quote
19045
# substitution turns \\\\ into \\, and sed turns \\ into \).
19048
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19051
# `set' quotes correctly as required by POSIX, so do not add quotes.
19053
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19060
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19062
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19064
if diff $cache_file confcache >/dev/null 2>&1; then :; else
19065
if test -w $cache_file; then
19066
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19067
cat confcache >$cache_file
19069
echo "not updating unwritable cache $cache_file"
19074
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19075
# Let make expand exec_prefix.
19076
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19078
# VPATH may cause trouble with some makes, so we remove $(srcdir),
19079
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19080
# trailing colons and then remove the whole line if VPATH becomes empty
19081
# (actually we leave an empty line to preserve line numbers).
19082
if test "x$srcdir" = x.; then
19083
ac_vpsub='/^[ ]*VPATH[ ]*=/{
19084
s/:*\$(srcdir):*/:/;
19085
s/:*\${srcdir}:*/:/;
19087
s/^\([^=]*=[ ]*\):*/\1/;
19093
DEFS=-DHAVE_CONFIG_H
19097
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19098
# 1. Remove the extension, and $U if already installed.
19099
ac_i=`echo "$ac_i" |
19100
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19102
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19103
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19105
LIBOBJS=$ac_libobjs
19107
LTLIBOBJS=$ac_ltlibobjs
19110
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19111
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19112
Usually this means the macro was only invoked conditionally." >&5
19113
echo "$as_me: error: conditional \"AMDEP\" was never defined.
19114
Usually this means the macro was only invoked conditionally." >&2;}
19115
{ (exit 1); exit 1; }; }
19117
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19118
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19119
Usually this means the macro was only invoked conditionally." >&5
19120
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19121
Usually this means the macro was only invoked conditionally." >&2;}
19122
{ (exit 1); exit 1; }; }
19124
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19125
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19126
Usually this means the macro was only invoked conditionally." >&5
19127
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19128
Usually this means the macro was only invoked conditionally." >&2;}
19129
{ (exit 1); exit 1; }; }
19132
: ${CONFIG_STATUS=./config.status}
19133
ac_clean_files_save=$ac_clean_files
19134
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19135
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19136
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19137
cat >$CONFIG_STATUS <<_ACEOF
19139
# Generated by $as_me.
19140
# Run this file to recreate the current configuration.
19141
# Compiler output produced by configure, useful for debugging
19142
# configure, is in config.log if it exists.
19145
ac_cs_recheck=false
19147
SHELL=\${CONFIG_SHELL-$SHELL}
19150
cat >>$CONFIG_STATUS <<\_ACEOF
19151
## --------------------- ##
19152
## M4sh Initialization. ##
19153
## --------------------- ##
19155
# Be Bourne compatible
19156
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19159
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19160
# is contrary to our usage. Disable this feature.
19161
alias -g '${1+"$@"}'='"$@"'
19162
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19165
DUALCASE=1; export DUALCASE # for MKS sh
19167
# Support unset when possible.
19168
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19175
# Work around bugs in pre-3.0 UWIN ksh.
19176
$as_unset ENV MAIL MAILPATH
19183
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19184
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19185
LC_TELEPHONE LC_TIME
19187
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19188
eval $as_var=C; export $as_var
19194
# Required to use basename.
19195
if expr a : '\(a\)' >/dev/null 2>&1; then
19201
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19202
as_basename=basename
19208
# Name of the executable.
19209
as_me=`$as_basename "$0" ||
19210
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19211
X"$0" : 'X\(//\)$' \| \
19212
X"$0" : 'X\(/\)$' \| \
19213
. : '\(.\)' 2>/dev/null ||
19215
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19216
/^X\/\(\/\/\)$/{ s//\1/; q; }
19217
/^X\/\(\/\).*/{ s//\1/; q; }
19221
# PATH needs CR, and LINENO needs CR and PATH.
19222
# Avoid depending upon Character Ranges.
19223
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19224
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19225
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19226
as_cr_digits='0123456789'
19227
as_cr_alnum=$as_cr_Letters$as_cr_digits
19229
# The user is always right.
19230
if test "${PATH_SEPARATOR+set}" != set; then
19231
echo "#! /bin/sh" >conf$$.sh
19232
echo "exit 0" >>conf$$.sh
19234
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19243
as_lineno_1=$LINENO
19244
as_lineno_2=$LINENO
19245
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19246
test "x$as_lineno_1" != "x$as_lineno_2" &&
19247
test "x$as_lineno_3" = "x$as_lineno_2" || {
19248
# Find who we are. Look in the path if we contain no path at all
19251
*[\\/]* ) as_myself=$0 ;;
19252
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19253
for as_dir in $PATH
19256
test -z "$as_dir" && as_dir=.
19257
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19262
# We did not find ourselves, most probably we were run as `sh COMMAND'
19263
# in which case we are not to be found in the path.
19264
if test "x$as_myself" = x; then
19267
if test ! -f "$as_myself"; then
19268
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19269
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19270
{ (exit 1); exit 1; }; }
19272
case $CONFIG_SHELL in
19274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19275
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19278
test -z "$as_dir" && as_dir=.
19279
for as_base in sh bash ksh sh5; do
19282
if ("$as_dir/$as_base" -c '
19283
as_lineno_1=$LINENO
19284
as_lineno_2=$LINENO
19285
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19286
test "x$as_lineno_1" != "x$as_lineno_2" &&
19287
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19288
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19289
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19290
CONFIG_SHELL=$as_dir/$as_base
19291
export CONFIG_SHELL
19292
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19300
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19301
# uniformly replaced by the line number. The first 'sed' inserts a
19302
# line-number line before each line; the second 'sed' does the real
19303
# work. The second script uses 'N' to pair each line-number line
19304
# with the numbered line, and appends trailing '-' during
19305
# substitution so that $LINENO is not a special case at line end.
19306
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19307
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19308
sed '=' <$as_myself |
19313
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19316
s,^['$as_cr_digits']*\n,,
19317
' >$as_me.lineno &&
19318
chmod +x $as_me.lineno ||
19319
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19320
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19321
{ (exit 1); exit 1; }; }
19323
# Don't try to exec as it changes $[0], causing all sort of problems
19324
# (the dirname of $[0] is not the place where we might find the
19325
# original and so on. Autoconf is especially sensible to this).
19327
# Exit status is that of the last command.
19332
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19333
*c*,-n*) ECHO_N= ECHO_C='
19335
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19336
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19339
if expr a : '\(a\)' >/dev/null 2>&1; then
19345
rm -f conf$$ conf$$.exe conf$$.file
19347
if ln -s conf$$.file conf$$ 2>/dev/null; then
19348
# We could just check for DJGPP; but this test a) works b) is more generic
19349
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19350
if test -f conf$$.exe; then
19351
# Don't use ln at all; we don't have any links
19356
elif ln conf$$.file conf$$ 2>/dev/null; then
19361
rm -f conf$$ conf$$.exe conf$$.file
19363
if mkdir -p . 2>/dev/null; then
19366
test -d ./-p && rmdir ./-p
19370
as_executable_p="test -f"
19372
# Sed expression to map a string onto a valid CPP name.
19373
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19375
# Sed expression to map a string onto a valid variable name.
19376
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19380
# We need space, tab and new line, in precisely that order.
19390
# Open the log real soon, to keep \$[0] and so on meaningful, and to
19391
# report actual input values of CONFIG_FILES etc. instead of their
19392
# values after options handling. Logging --version etc. is OK.
19396
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19397
## Running $as_me. ##
19402
This file was extended by umem $as_me 1.0.1, which was
19403
generated by GNU Autoconf 2.59. Invocation command line was
19405
CONFIG_FILES = $CONFIG_FILES
19406
CONFIG_HEADERS = $CONFIG_HEADERS
19407
CONFIG_LINKS = $CONFIG_LINKS
19408
CONFIG_COMMANDS = $CONFIG_COMMANDS
19412
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19416
# Files that config.status was made for.
19417
if test -n "$ac_config_files"; then
19418
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19421
if test -n "$ac_config_headers"; then
19422
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19425
if test -n "$ac_config_links"; then
19426
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19429
if test -n "$ac_config_commands"; then
19430
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19433
cat >>$CONFIG_STATUS <<\_ACEOF
19436
\`$as_me' instantiates files from templates according to the
19437
current configuration.
19439
Usage: $0 [OPTIONS] [FILE]...
19441
-h, --help print this help, then exit
19442
-V, --version print version number, then exit
19443
-q, --quiet do not print progress messages
19444
-d, --debug don't remove temporary files
19445
--recheck update $as_me by reconfiguring in the same conditions
19446
--file=FILE[:TEMPLATE]
19447
instantiate the configuration file FILE
19448
--header=FILE[:TEMPLATE]
19449
instantiate the configuration header FILE
19451
Configuration files:
19454
Configuration headers:
19457
Configuration commands:
19460
Report bugs to <bug-autoconf@gnu.org>."
19463
cat >>$CONFIG_STATUS <<_ACEOF
19465
umem config.status 1.0.1
19466
configured by $0, generated by GNU Autoconf 2.59,
19467
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19469
Copyright (C) 2003 Free Software Foundation, Inc.
19470
This config.status script is free software; the Free Software Foundation
19471
gives unlimited permission to copy, distribute and modify it."
19476
cat >>$CONFIG_STATUS <<\_ACEOF
19477
# If no file are specified by the user, then we need to provide default
19478
# value. By we need to know if files were specified by the user.
19484
ac_option=`expr "x$1" : 'x\([^=]*\)='`
19485
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19493
*) # This is not an option, so the user has probably given explicit
19496
ac_need_defaults=false;;
19500
# Handling of the options.
19502
cat >>$CONFIG_STATUS <<\_ACEOF
19503
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19505
--version | --vers* | -V )
19506
echo "$ac_cs_version"; exit 0 ;;
19508
# Conflict between --help and --header
19509
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
19510
Try \`$0 --help' for more information." >&5
19511
echo "$as_me: error: ambiguous option: $1
19512
Try \`$0 --help' for more information." >&2;}
19513
{ (exit 1); exit 1; }; };;
19514
--help | --hel | -h )
19515
echo "$ac_cs_usage"; exit 0 ;;
19516
--debug | --d* | -d )
19518
--file | --fil | --fi | --f )
19520
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19521
ac_need_defaults=false;;
19522
--header | --heade | --head | --hea )
19524
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19525
ac_need_defaults=false;;
19526
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
19527
| -silent | --silent | --silen | --sile | --sil | --si | --s)
19530
# This is an error.
19531
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19532
Try \`$0 --help' for more information." >&5
19533
echo "$as_me: error: unrecognized option: $1
19534
Try \`$0 --help' for more information." >&2;}
19535
{ (exit 1); exit 1; }; } ;;
19537
*) ac_config_targets="$ac_config_targets $1" ;;
19543
ac_configure_extra_args=
19545
if $ac_cs_silent; then
19547
ac_configure_extra_args="$ac_configure_extra_args --silent"
19551
cat >>$CONFIG_STATUS <<_ACEOF
19552
if \$ac_cs_recheck; then
19553
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19554
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19559
cat >>$CONFIG_STATUS <<_ACEOF
19561
# INIT-COMMANDS section.
19564
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19570
cat >>$CONFIG_STATUS <<\_ACEOF
19571
for ac_config_target in $ac_config_targets
19573
case "$ac_config_target" in
19574
# Handling of arguments.
19575
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19576
"Doxyfile" ) CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
19577
"umem.spec" ) CONFIG_FILES="$CONFIG_FILES umem.spec" ;;
19578
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19579
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19580
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19581
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19582
{ (exit 1); exit 1; }; };;
19586
# If the user did not use the arguments to specify the items to instantiate,
19587
# then the envvar interface is used. Set only those that are not.
19588
# We use the long form for the default assignment because of an extremely
19589
# bizarre bug on SunOS 4.1.3.
19590
if $ac_need_defaults; then
19591
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19592
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19593
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19596
# Have a temporary directory for convenience. Make it in the build tree
19597
# simply because there is no reason to put it here, and in addition,
19598
# creating and moving files from /tmp can sometimes cause problems.
19599
# Create a temporary directory, and hook for its removal unless debugging.
19602
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19603
trap '{ (exit 1); exit 1; }' 1 2 13 15
19606
# Create a (secure) tmp directory for tmp files.
19609
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19610
test -n "$tmp" && test -d "$tmp"
19613
tmp=./confstat$$-$RANDOM
19614
(umask 077 && mkdir $tmp)
19617
echo "$me: cannot create a temporary directory in ." >&2
19618
{ (exit 1); exit 1; }
19623
cat >>$CONFIG_STATUS <<_ACEOF
19626
# CONFIG_FILES section.
19629
# No need to generate the scripts if there are no CONFIG_FILES.
19630
# This happens for instance when ./config.status config.h
19631
if test -n "\$CONFIG_FILES"; then
19632
# Protect against being on the right side of a sed subst in config.status.
19633
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19634
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19635
s,@SHELL@,$SHELL,;t t
19636
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19637
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19638
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19639
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19640
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19641
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19642
s,@exec_prefix@,$exec_prefix,;t t
19643
s,@prefix@,$prefix,;t t
19644
s,@program_transform_name@,$program_transform_name,;t t
19645
s,@bindir@,$bindir,;t t
19646
s,@sbindir@,$sbindir,;t t
19647
s,@libexecdir@,$libexecdir,;t t
19648
s,@datadir@,$datadir,;t t
19649
s,@sysconfdir@,$sysconfdir,;t t
19650
s,@sharedstatedir@,$sharedstatedir,;t t
19651
s,@localstatedir@,$localstatedir,;t t
19652
s,@libdir@,$libdir,;t t
19653
s,@includedir@,$includedir,;t t
19654
s,@oldincludedir@,$oldincludedir,;t t
19655
s,@infodir@,$infodir,;t t
19656
s,@mandir@,$mandir,;t t
19657
s,@build_alias@,$build_alias,;t t
19658
s,@host_alias@,$host_alias,;t t
19659
s,@target_alias@,$target_alias,;t t
19660
s,@DEFS@,$DEFS,;t t
19661
s,@ECHO_C@,$ECHO_C,;t t
19662
s,@ECHO_N@,$ECHO_N,;t t
19663
s,@ECHO_T@,$ECHO_T,;t t
19664
s,@LIBS@,$LIBS,;t t
19665
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19666
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19667
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19668
s,@CYGPATH_W@,$CYGPATH_W,;t t
19669
s,@PACKAGE@,$PACKAGE,;t t
19670
s,@VERSION@,$VERSION,;t t
19671
s,@ACLOCAL@,$ACLOCAL,;t t
19672
s,@AUTOCONF@,$AUTOCONF,;t t
19673
s,@AUTOMAKE@,$AUTOMAKE,;t t
19674
s,@AUTOHEADER@,$AUTOHEADER,;t t
19675
s,@MAKEINFO@,$MAKEINFO,;t t
19676
s,@install_sh@,$install_sh,;t t
19677
s,@STRIP@,$STRIP,;t t
19678
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19679
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19680
s,@mkdir_p@,$mkdir_p,;t t
19682
s,@SET_MAKE@,$SET_MAKE,;t t
19683
s,@am__leading_dot@,$am__leading_dot,;t t
19684
s,@AMTAR@,$AMTAR,;t t
19685
s,@am__tar@,$am__tar,;t t
19686
s,@am__untar@,$am__untar,;t t
19688
s,@CFLAGS@,$CFLAGS,;t t
19689
s,@LDFLAGS@,$LDFLAGS,;t t
19690
s,@CPPFLAGS@,$CPPFLAGS,;t t
19691
s,@ac_ct_CC@,$ac_ct_CC,;t t
19692
s,@EXEEXT@,$EXEEXT,;t t
19693
s,@OBJEXT@,$OBJEXT,;t t
19694
s,@DEPDIR@,$DEPDIR,;t t
19695
s,@am__include@,$am__include,;t t
19696
s,@am__quote@,$am__quote,;t t
19697
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19698
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19699
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19700
s,@CCDEPMODE@,$CCDEPMODE,;t t
19701
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19702
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19703
s,@CCAS@,$CCAS,;t t
19704
s,@CCASFLAGS@,$CCASFLAGS,;t t
19705
s,@build@,$build,;t t
19706
s,@build_cpu@,$build_cpu,;t t
19707
s,@build_vendor@,$build_vendor,;t t
19708
s,@build_os@,$build_os,;t t
19709
s,@host@,$host,;t t
19710
s,@host_cpu@,$host_cpu,;t t
19711
s,@host_vendor@,$host_vendor,;t t
19712
s,@host_os@,$host_os,;t t
19714
s,@EGREP@,$EGREP,;t t
19715
s,@LN_S@,$LN_S,;t t
19716
s,@ECHO@,$ECHO,;t t
19718
s,@ac_ct_AR@,$ac_ct_AR,;t t
19719
s,@RANLIB@,$RANLIB,;t t
19720
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19723
s,@CXXFLAGS@,$CXXFLAGS,;t t
19724
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19725
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19726
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19727
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19728
s,@CXXCPP@,$CXXCPP,;t t
19730
s,@FFLAGS@,$FFLAGS,;t t
19731
s,@ac_ct_F77@,$ac_ct_F77,;t t
19732
s,@LIBTOOL@,$LIBTOOL,;t t
19733
s,@LIBOBJS@,$LIBOBJS,;t t
19734
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19739
cat >>$CONFIG_STATUS <<\_ACEOF
19740
# Split the substitutions into bite-sized pieces for seds with
19741
# small command number limits, like on Digital OSF/1 and HP-UX.
19742
ac_max_sed_lines=48
19743
ac_sed_frag=1 # Number of current file.
19744
ac_beg=1 # First line for current file.
19745
ac_end=$ac_max_sed_lines # Line after last line for current file.
19748
while $ac_more_lines; do
19749
if test $ac_beg -gt 1; then
19750
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19752
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19754
if test ! -s $tmp/subs.frag; then
19755
ac_more_lines=false
19757
# The purpose of the label and of the branching condition is to
19758
# speed up the sed processing (if there are no `@' at all, there
19759
# is no need to browse any of the substitutions).
19760
# These are the two extra sed commands mentioned above.
19762
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19763
if test -z "$ac_sed_cmds"; then
19764
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19766
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19768
ac_sed_frag=`expr $ac_sed_frag + 1`
19770
ac_end=`expr $ac_end + $ac_max_sed_lines`
19773
if test -z "$ac_sed_cmds"; then
19776
fi # test -n "$CONFIG_FILES"
19779
cat >>$CONFIG_STATUS <<\_ACEOF
19780
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19781
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19783
- | *:- | *:-:* ) # input from stdin
19785
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19786
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19787
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19788
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19789
* ) ac_file_in=$ac_file.in ;;
19792
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19793
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19794
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19795
X"$ac_file" : 'X\(//\)[^/]' \| \
19796
X"$ac_file" : 'X\(//\)$' \| \
19797
X"$ac_file" : 'X\(/\)' \| \
19798
. : '\(.\)' 2>/dev/null ||
19800
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19801
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19802
/^X\(\/\/\)$/{ s//\1/; q; }
19803
/^X\(\/\).*/{ s//\1/; q; }
19805
{ if $as_mkdir_p; then
19810
while test ! -d "$as_dir"; do
19811
as_dirs="$as_dir $as_dirs"
19812
as_dir=`(dirname "$as_dir") 2>/dev/null ||
19813
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19814
X"$as_dir" : 'X\(//\)[^/]' \| \
19815
X"$as_dir" : 'X\(//\)$' \| \
19816
X"$as_dir" : 'X\(/\)' \| \
19817
. : '\(.\)' 2>/dev/null ||
19819
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19820
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
19821
/^X\(\/\/\)$/{ s//\1/; q; }
19822
/^X\(\/\).*/{ s//\1/; q; }
19825
test ! -n "$as_dirs" || mkdir $as_dirs
19826
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19827
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19828
{ (exit 1); exit 1; }; }; }
19832
if test "$ac_dir" != .; then
19833
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19834
# A "../" for each directory in $ac_dir_suffix.
19835
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19837
ac_dir_suffix= ac_top_builddir=
19841
.) # No --srcdir option. We are building in place.
19843
if test -z "$ac_top_builddir"; then
19846
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19848
[\\/]* | ?:[\\/]* ) # Absolute path.
19849
ac_srcdir=$srcdir$ac_dir_suffix;
19850
ac_top_srcdir=$srcdir ;;
19851
*) # Relative path.
19852
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19853
ac_top_srcdir=$ac_top_builddir$srcdir ;;
19856
# Do not use `cd foo && pwd` to compute absolute paths, because
19857
# the directories may not exist.
19859
.) ac_abs_builddir="$ac_dir";;
19862
.) ac_abs_builddir=`pwd`;;
19863
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19864
*) ac_abs_builddir=`pwd`/"$ac_dir";;
19867
case $ac_abs_builddir in
19868
.) ac_abs_top_builddir=${ac_top_builddir}.;;
19870
case ${ac_top_builddir}. in
19871
.) ac_abs_top_builddir=$ac_abs_builddir;;
19872
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19873
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19876
case $ac_abs_builddir in
19877
.) ac_abs_srcdir=$ac_srcdir;;
19880
.) ac_abs_srcdir=$ac_abs_builddir;;
19881
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19882
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19885
case $ac_abs_builddir in
19886
.) ac_abs_top_srcdir=$ac_top_srcdir;;
19888
case $ac_top_srcdir in
19889
.) ac_abs_top_srcdir=$ac_abs_builddir;;
19890
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19891
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19897
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19898
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19901
if test x"$ac_file" != x-; then
19902
{ echo "$as_me:$LINENO: creating $ac_file" >&5
19903
echo "$as_me: creating $ac_file" >&6;}
19906
# Let's still pretend it is `configure' which instantiates (i.e., don't
19907
# use $as_me), people would be surprised to read:
19908
# /* config.h. Generated by config.status. */
19909
if test x"$ac_file" = x-; then
19912
configure_input="$ac_file. "
19914
configure_input=$configure_input"Generated from `echo $ac_file_in |
19915
sed 's,.*/,,'` by configure."
19917
# First look for the input files in the build tree, otherwise in the
19919
ac_file_inputs=`IFS=:
19920
for f in $ac_file_in; do
19922
-) echo $tmp/stdin ;;
19924
# Absolute (can't be DOS-style, as IFS=:)
19925
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19926
echo "$as_me: error: cannot find input file: $f" >&2;}
19927
{ (exit 1); exit 1; }; }
19930
if test -f "$f"; then
19933
elif test -f "$srcdir/$f"; then
19938
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19939
echo "$as_me: error: cannot find input file: $f" >&2;}
19940
{ (exit 1); exit 1; }; }
19943
done` || { (exit 1); exit 1; }
19945
cat >>$CONFIG_STATUS <<_ACEOF
19949
cat >>$CONFIG_STATUS <<\_ACEOF
19951
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19952
s,@configure_input@,$configure_input,;t t
19953
s,@srcdir@,$ac_srcdir,;t t
19954
s,@abs_srcdir@,$ac_abs_srcdir,;t t
19955
s,@top_srcdir@,$ac_top_srcdir,;t t
19956
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19957
s,@builddir@,$ac_builddir,;t t
19958
s,@abs_builddir@,$ac_abs_builddir,;t t
19959
s,@top_builddir@,$ac_top_builddir,;t t
19960
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19961
s,@INSTALL@,$ac_INSTALL,;t t
19962
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19964
if test x"$ac_file" != x-; then
19965
mv $tmp/out $ac_file
19973
cat >>$CONFIG_STATUS <<\_ACEOF
19976
# CONFIG_HEADER section.
19979
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19980
# NAME is the cpp macro being defined and VALUE is the value it is being given.
19982
# ac_d sets the value in "#define NAME VALUE" lines.
19983
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19984
ac_dB='[ ].*$,\1#\2'
19987
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19988
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19989
ac_uB='$,\1#\2define\3'
19993
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19994
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19996
- | *:- | *:-:* ) # input from stdin
19998
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19999
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20000
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20001
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20002
* ) ac_file_in=$ac_file.in ;;
20005
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20006
echo "$as_me: creating $ac_file" >&6;}
20008
# First look for the input files in the build tree, otherwise in the
20010
ac_file_inputs=`IFS=:
20011
for f in $ac_file_in; do
20013
-) echo $tmp/stdin ;;
20015
# Absolute (can't be DOS-style, as IFS=:)
20016
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20017
echo "$as_me: error: cannot find input file: $f" >&2;}
20018
{ (exit 1); exit 1; }; }
20019
# Do quote $f, to prevent DOS paths from being IFS'd.
20022
if test -f "$f"; then
20025
elif test -f "$srcdir/$f"; then
20030
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20031
echo "$as_me: error: cannot find input file: $f" >&2;}
20032
{ (exit 1); exit 1; }; }
20035
done` || { (exit 1); exit 1; }
20036
# Remove the trailing spaces.
20037
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20041
# Transform confdefs.h into two sed scripts, `conftest.defines' and
20042
# `conftest.undefs', that substitutes the proper values into
20043
# config.h.in to produce config.h. The first handles `#define'
20044
# templates, and the second `#undef' templates.
20045
# And first: Protect against being on the right side of a sed subst in
20046
# config.status. Protect against being in an unquoted here document
20047
# in config.status.
20048
rm -f conftest.defines conftest.undefs
20049
# Using a here document instead of a string reduces the quoting nightmare.
20050
# Putting comments in sed scripts is not portable.
20052
# `end' is used to avoid that the second main sed command (meant for
20053
# 0-ary CPP macros) applies to n-ary macro definitions.
20054
# See the Autoconf documentation for `clear'.
20055
cat >confdef2sed.sed <<\_ACEOF
20060
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20062
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20065
# If some macros were called several times there might be several times
20066
# the same #defines, which is useless. Nevertheless, we may not want to
20067
# sort them, since we want the *last* AC-DEFINE to be honored.
20068
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20069
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20070
rm -f confdef2sed.sed
20072
# This sed command replaces #undef with comments. This is necessary, for
20073
# example, in the case of _POSIX_SOURCE, which is predefined and required
20074
# on some systems where configure will not decide to define it.
20075
cat >>conftest.undefs <<\_ACEOF
20076
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20079
# Break up conftest.defines because some shells have a limit on the size
20080
# of here documents, and old seds have small limits too (100 cmds).
20081
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20082
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20083
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20084
echo ' :' >>$CONFIG_STATUS
20085
rm -f conftest.tail
20086
while grep . conftest.defines >/dev/null
20088
# Write a limited-size here document to $tmp/defines.sed.
20089
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20090
# Speed up: don't consider the non `#define' lines.
20091
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20092
# Work around the forget-to-reset-the-flag bug.
20093
echo 't clr' >>$CONFIG_STATUS
20094
echo ': clr' >>$CONFIG_STATUS
20095
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20097
sed -f $tmp/defines.sed $tmp/in >$tmp/out
20099
mv $tmp/out $tmp/in
20101
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20102
rm -f conftest.defines
20103
mv conftest.tail conftest.defines
20105
rm -f conftest.defines
20106
echo ' fi # grep' >>$CONFIG_STATUS
20107
echo >>$CONFIG_STATUS
20109
# Break up conftest.undefs because some shells have a limit on the size
20110
# of here documents, and old seds have small limits too (100 cmds).
20111
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20112
rm -f conftest.tail
20113
while grep . conftest.undefs >/dev/null
20115
# Write a limited-size here document to $tmp/undefs.sed.
20116
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20117
# Speed up: don't consider the non `#undef'
20118
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20119
# Work around the forget-to-reset-the-flag bug.
20120
echo 't clr' >>$CONFIG_STATUS
20121
echo ': clr' >>$CONFIG_STATUS
20122
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20124
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20126
mv $tmp/out $tmp/in
20128
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20129
rm -f conftest.undefs
20130
mv conftest.tail conftest.undefs
20132
rm -f conftest.undefs
20134
cat >>$CONFIG_STATUS <<\_ACEOF
20135
# Let's still pretend it is `configure' which instantiates (i.e., don't
20136
# use $as_me), people would be surprised to read:
20137
# /* config.h. Generated by config.status. */
20138
if test x"$ac_file" = x-; then
20139
echo "/* Generated by configure. */" >$tmp/config.h
20141
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20143
cat $tmp/in >>$tmp/config.h
20145
if test x"$ac_file" != x-; then
20146
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20147
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20148
echo "$as_me: $ac_file is unchanged" >&6;}
20150
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20151
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20152
X"$ac_file" : 'X\(//\)[^/]' \| \
20153
X"$ac_file" : 'X\(//\)$' \| \
20154
X"$ac_file" : 'X\(/\)' \| \
20155
. : '\(.\)' 2>/dev/null ||
20157
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20158
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20159
/^X\(\/\/\)$/{ s//\1/; q; }
20160
/^X\(\/\).*/{ s//\1/; q; }
20162
{ if $as_mkdir_p; then
20167
while test ! -d "$as_dir"; do
20168
as_dirs="$as_dir $as_dirs"
20169
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20170
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20171
X"$as_dir" : 'X\(//\)[^/]' \| \
20172
X"$as_dir" : 'X\(//\)$' \| \
20173
X"$as_dir" : 'X\(/\)' \| \
20174
. : '\(.\)' 2>/dev/null ||
20176
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20177
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20178
/^X\(\/\/\)$/{ s//\1/; q; }
20179
/^X\(\/\).*/{ s//\1/; q; }
20182
test ! -n "$as_dirs" || mkdir $as_dirs
20183
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20184
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20185
{ (exit 1); exit 1; }; }; }
20188
mv $tmp/config.h $ac_file
20192
rm -f $tmp/config.h
20194
# Compute $ac_file's index in $config_headers.
20196
for _am_header in $config_headers :; do
20197
case $_am_header in
20198
$ac_file | $ac_file:* )
20201
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
20204
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20205
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20206
X$ac_file : 'X\(//\)[^/]' \| \
20207
X$ac_file : 'X\(//\)$' \| \
20208
X$ac_file : 'X\(/\)' \| \
20209
. : '\(.\)' 2>/dev/null ||
20211
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20212
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20213
/^X\(\/\/\)$/{ s//\1/; q; }
20214
/^X\(\/\).*/{ s//\1/; q; }
20215
s/.*/./; q'`/stamp-h$_am_stamp_count
20218
cat >>$CONFIG_STATUS <<\_ACEOF
20221
# CONFIG_COMMANDS section.
20223
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20224
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20225
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20226
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20227
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20228
X"$ac_dest" : 'X\(//\)[^/]' \| \
20229
X"$ac_dest" : 'X\(//\)$' \| \
20230
X"$ac_dest" : 'X\(/\)' \| \
20231
. : '\(.\)' 2>/dev/null ||
20233
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20234
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20235
/^X\(\/\/\)$/{ s//\1/; q; }
20236
/^X\(\/\).*/{ s//\1/; q; }
20238
{ if $as_mkdir_p; then
20243
while test ! -d "$as_dir"; do
20244
as_dirs="$as_dir $as_dirs"
20245
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20246
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20247
X"$as_dir" : 'X\(//\)[^/]' \| \
20248
X"$as_dir" : 'X\(//\)$' \| \
20249
X"$as_dir" : 'X\(/\)' \| \
20250
. : '\(.\)' 2>/dev/null ||
20252
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20253
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20254
/^X\(\/\/\)$/{ s//\1/; q; }
20255
/^X\(\/\).*/{ s//\1/; q; }
20258
test ! -n "$as_dirs" || mkdir $as_dirs
20259
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20260
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20261
{ (exit 1); exit 1; }; }; }
20265
if test "$ac_dir" != .; then
20266
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20267
# A "../" for each directory in $ac_dir_suffix.
20268
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20270
ac_dir_suffix= ac_top_builddir=
20274
.) # No --srcdir option. We are building in place.
20276
if test -z "$ac_top_builddir"; then
20279
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20281
[\\/]* | ?:[\\/]* ) # Absolute path.
20282
ac_srcdir=$srcdir$ac_dir_suffix;
20283
ac_top_srcdir=$srcdir ;;
20284
*) # Relative path.
20285
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20286
ac_top_srcdir=$ac_top_builddir$srcdir ;;
20289
# Do not use `cd foo && pwd` to compute absolute paths, because
20290
# the directories may not exist.
20292
.) ac_abs_builddir="$ac_dir";;
20295
.) ac_abs_builddir=`pwd`;;
20296
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20297
*) ac_abs_builddir=`pwd`/"$ac_dir";;
20300
case $ac_abs_builddir in
20301
.) ac_abs_top_builddir=${ac_top_builddir}.;;
20303
case ${ac_top_builddir}. in
20304
.) ac_abs_top_builddir=$ac_abs_builddir;;
20305
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20306
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20309
case $ac_abs_builddir in
20310
.) ac_abs_srcdir=$ac_srcdir;;
20313
.) ac_abs_srcdir=$ac_abs_builddir;;
20314
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20315
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20318
case $ac_abs_builddir in
20319
.) ac_abs_top_srcdir=$ac_top_srcdir;;
20321
case $ac_top_srcdir in
20322
.) ac_abs_top_srcdir=$ac_abs_builddir;;
20323
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20324
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20329
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20330
echo "$as_me: executing $ac_dest commands" >&6;}
20332
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20333
# Strip MF so we end up with the name of the file.
20334
mf=`echo "$mf" | sed -e 's/:.*$//'`
20335
# Check whether this is an Automake generated Makefile or not.
20336
# We used to match only the files named `Makefile.in', but
20337
# some people rename them; so instead we look at the file content.
20338
# Grep'ing the first line is not enough: some people post-process
20339
# each Makefile.in and add a new line on top of each file to say so.
20340
# So let's grep whole file.
20341
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20342
dirpart=`(dirname "$mf") 2>/dev/null ||
20343
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20344
X"$mf" : 'X\(//\)[^/]' \| \
20345
X"$mf" : 'X\(//\)$' \| \
20346
X"$mf" : 'X\(/\)' \| \
20347
. : '\(.\)' 2>/dev/null ||
20349
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20350
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20351
/^X\(\/\/\)$/{ s//\1/; q; }
20352
/^X\(\/\).*/{ s//\1/; q; }
20357
# Extract the definition of DEPDIR, am__include, and am__quote
20358
# from the Makefile without running `make'.
20359
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20360
test -z "$DEPDIR" && continue
20361
am__include=`sed -n 's/^am__include = //p' < "$mf"`
20362
test -z "am__include" && continue
20363
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20364
# When using ansi2knr, U may be empty or an underscore; expand it
20365
U=`sed -n 's/^U = //p' < "$mf"`
20366
# Find all dependency output files, they are included files with
20367
# $(DEPDIR) in their names. We invoke sed twice because it is the
20368
# simplest approach to changing $(DEPDIR) to its actual value in the
20370
for file in `sed -n "
20371
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20372
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20373
# Make sure the directory exists.
20374
test -f "$dirpart/$file" && continue
20375
fdir=`(dirname "$file") 2>/dev/null ||
20376
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20377
X"$file" : 'X\(//\)[^/]' \| \
20378
X"$file" : 'X\(//\)$' \| \
20379
X"$file" : 'X\(/\)' \| \
20380
. : '\(.\)' 2>/dev/null ||
20382
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20383
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20384
/^X\(\/\/\)$/{ s//\1/; q; }
20385
/^X\(\/\).*/{ s//\1/; q; }
20387
{ if $as_mkdir_p; then
20388
mkdir -p $dirpart/$fdir
20390
as_dir=$dirpart/$fdir
20392
while test ! -d "$as_dir"; do
20393
as_dirs="$as_dir $as_dirs"
20394
as_dir=`(dirname "$as_dir") 2>/dev/null ||
20395
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20396
X"$as_dir" : 'X\(//\)[^/]' \| \
20397
X"$as_dir" : 'X\(//\)$' \| \
20398
X"$as_dir" : 'X\(/\)' \| \
20399
. : '\(.\)' 2>/dev/null ||
20401
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20402
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
20403
/^X\(\/\/\)$/{ s//\1/; q; }
20404
/^X\(\/\).*/{ s//\1/; q; }
20407
test ! -n "$as_dirs" || mkdir $as_dirs
20408
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20409
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20410
{ (exit 1); exit 1; }; }; }
20412
# echo "creating $dirpart/$file"
20413
echo '# dummy' > "$dirpart/$file"
20421
cat >>$CONFIG_STATUS <<\_ACEOF
20423
{ (exit 0); exit 0; }
20425
chmod +x $CONFIG_STATUS
20426
ac_clean_files=$ac_clean_files_save
20429
# configure is writing to config.log, and then calls config.status.
20430
# config.status does its own redirection, appending to config.log.
20431
# Unfortunately, on DOS this fails, as config.log is still kept open
20432
# by configure, so config.status won't be able to write to it; its
20433
# output is simply discarded. So we exec the FD to /dev/null,
20434
# effectively closing config.log, so it can be properly (re)opened and
20435
# appended to by config.status. When coming back to configure, we
20436
# need to make the FD available again.
20437
if test "$no_create" != yes; then
20439
ac_config_status_args=
20440
test "$silent" = yes &&
20441
ac_config_status_args="$ac_config_status_args --quiet"
20443
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20445
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20446
# would make configure fail if this is the last instruction.
20447
$ac_cs_success || { (exit 1); exit 1; }