2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.59 for Judy 1.0.0.
5
@%:@ Report bugs to <doug@sourcejudy.com>.
7
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
8
@%:@ This configure script is free software; the Free Software Foundation
9
@%:@ gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# Check that we are running under the correct shell.
248
SHELL=${CONFIG_SHELL-/bin/sh}
252
# Remove one level of quotation (which was required for Make).
253
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258
if test "X$1" = X--no-reexec; then
259
# Discard the --no-reexec flag, and continue.
261
elif test "X$1" = X--fallback-echo; then
262
# Avoid inline document here, it may be left over
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
# Yippee, $echo works!
268
# Restart under the correct shell.
269
exec $SHELL "$0" --no-reexec ${1+"$@"}
272
if test "X$1" = X--fallback-echo; then
273
# used as fallback echo
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
if test -z "$ECHO"; then
286
if test "X${echo_test_string+set}" != Xset; then
287
# find a string as large as possible, as long as the shell can cope with it
288
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
echo_test_string="`eval $cmd`" &&
292
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
test "X$echo_testing_string" = "X$echo_test_string"; then
304
# The Solaris, AIX, and Digital Unix default echo programs unquote
305
# backslashes. This makes it impossible to quote backslashes using
306
# echo "$something" | sed 's/\\/\\\\/g'
308
# So, first we look for a working echo in the user's PATH.
310
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
for dir in $PATH /usr/ucb; do
313
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
test "X$echo_testing_string" = "X$echo_test_string"; then
323
if test "X$echo" = Xecho; then
324
# We didn't find a better echo, so look for alternatives.
325
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
test "X$echo_testing_string" = "X$echo_test_string"; then
328
# This shell has a builtin print -r that does the trick.
330
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
test "X$CONFIG_SHELL" != X/bin/ksh; then
332
# If we have ksh, try running configure again with it.
333
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
export ORIGINAL_CONFIG_SHELL
335
CONFIG_SHELL=/bin/ksh
337
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
test "X$echo_testing_string" = "X$echo_test_string"; then
346
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
test "X$echo_testing_string" = 'X\t' &&
348
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
test "X$echo_testing_string" = "X$echo_test_string"; then
350
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352
SHELL="$CONFIG_SHELL"
354
echo="$CONFIG_SHELL $0 --fallback-echo"
355
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
echo="$CONFIG_SHELL $0 --fallback-echo"
361
# maybe with a smaller string...
364
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372
if test "$prev" != 'sed 50q "$0"'; then
373
echo_test_string=`eval $prev`
374
export echo_test_string
375
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377
# Oops. We lost completely, so just stick with echo.
386
# Copy echo and quote the copy suitably for passing to libtool from
387
# the Makefile, instead of quoting the original, which is used later.
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396
tagnames=${tagnames+${tagnames},}CXX
398
tagnames=${tagnames+${tagnames},}F77
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
# so uname gets run too.
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
ac_default_prefix=/usr/local
411
ac_config_libobj_dir=.
416
SHELL=${CONFIG_SHELL-/bin/sh}
418
# Maximum number of lines to put in a shell here document.
419
# This variable seems obsolete. It should probably be removed, and
420
# only ac_max_sed_lines should be used.
421
: ${ac_max_here_lines=38}
423
# Identity of this package.
425
PACKAGE_TARNAME='judy'
426
PACKAGE_VERSION='1.0.0'
427
PACKAGE_STRING='Judy 1.0.0'
428
PACKAGE_BUGREPORT='doug@sourcejudy.com'
430
# Factoring default headers for most tests.
431
ac_includes_default="\
434
# include <sys/types.h>
437
# include <sys/stat.h>
448
# if !STDC_HEADERS && HAVE_MEMORY_H
454
# include <strings.h>
457
# include <inttypes.h>
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 VERSION_INFO FLAVOR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S EGREP LIB@&t@OBJS AR ac_ct_AR LD ac_ct_LD RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WARN_CFLAGS LTLIBOBJS'
470
# Initialize some variables set by options.
472
ac_init_version=false
473
# The variables have the same names as the options, with
474
# dashes changed to underlines.
482
program_transform_name=s,x,x,
490
# Installation directory options.
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
# and all the variables that are supposed to be based on exec_prefix
493
# by default will actually change.
494
# Use braces instead of parens because sh, perl, etc. also accept them.
495
bindir='${exec_prefix}/bin'
496
sbindir='${exec_prefix}/sbin'
497
libexecdir='${exec_prefix}/libexec'
498
datadir='${prefix}/share'
499
sysconfdir='${prefix}/etc'
500
sharedstatedir='${prefix}/com'
501
localstatedir='${prefix}/var'
502
libdir='${exec_prefix}/lib'
503
includedir='${prefix}/include'
504
oldincludedir='/usr/include'
505
infodir='${prefix}/info'
506
mandir='${prefix}/man'
511
# If the previous option needs an argument, assign it.
512
if test -n "$ac_prev"; then
513
eval "$ac_prev=\$ac_option"
518
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
# Accept the important Cygnus configure options, so we can diagnose typos.
524
-bindir | --bindir | --bindi | --bind | --bin | --bi)
526
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529
-build | --build | --buil | --bui | --bu)
530
ac_prev=build_alias ;;
531
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
build_alias=$ac_optarg ;;
534
-cache-file | --cache-file | --cache-fil | --cache-fi \
535
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
ac_prev=cache_file ;;
537
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
cache_file=$ac_optarg ;;
542
cache_file=config.cache ;;
544
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548
datadir=$ac_optarg ;;
550
-disable-* | --disable-*)
551
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
{ (exit 1); exit 1; }; }
556
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
eval "enable_$ac_feature=no" ;;
559
-enable-* | --enable-*)
560
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
# Reject names that are not valid shell variable names.
562
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
{ (exit 1); exit 1; }; }
565
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570
eval "enable_$ac_feature='$ac_optarg'" ;;
572
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
| --exec | --exe | --ex)
575
ac_prev=exec_prefix ;;
576
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
| --exec=* | --exe=* | --ex=*)
579
exec_prefix=$ac_optarg ;;
581
-gas | --gas | --ga | --g)
582
# Obsolete; use --with-gas.
585
-help | --help | --hel | --he | -h)
587
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
ac_init_help=recursive ;;
589
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
ac_init_help=short ;;
592
-host | --host | --hos | --ho)
593
ac_prev=host_alias ;;
594
-host=* | --host=* | --hos=* | --ho=*)
595
host_alias=$ac_optarg ;;
597
-includedir | --includedir | --includedi | --included | --include \
598
| --includ | --inclu | --incl | --inc)
599
ac_prev=includedir ;;
600
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
| --includ=* | --inclu=* | --incl=* | --inc=*)
602
includedir=$ac_optarg ;;
604
-infodir | --infodir | --infodi | --infod | --info | --inf)
606
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
infodir=$ac_optarg ;;
609
-libdir | --libdir | --libdi | --libd)
611
-libdir=* | --libdir=* | --libdi=* | --libd=*)
614
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
| --libexe | --libex | --libe)
616
ac_prev=libexecdir ;;
617
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
| --libexe=* | --libex=* | --libe=*)
619
libexecdir=$ac_optarg ;;
621
-localstatedir | --localstatedir | --localstatedi | --localstated \
622
| --localstate | --localstat | --localsta | --localst \
623
| --locals | --local | --loca | --loc | --lo)
624
ac_prev=localstatedir ;;
625
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
localstatedir=$ac_optarg ;;
630
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636
# Obsolete; use --without-fp.
639
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
| --no-cr | --no-c | -n)
643
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
| --oldin | --oldi | --old | --ol | --o)
650
ac_prev=oldincludedir ;;
651
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
oldincludedir=$ac_optarg ;;
656
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661
-program-prefix | --program-prefix | --program-prefi | --program-pref \
662
| --program-pre | --program-pr | --program-p)
663
ac_prev=program_prefix ;;
664
-program-prefix=* | --program-prefix=* | --program-prefi=* \
665
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
program_prefix=$ac_optarg ;;
668
-program-suffix | --program-suffix | --program-suffi | --program-suff \
669
| --program-suf | --program-su | --program-s)
670
ac_prev=program_suffix ;;
671
-program-suffix=* | --program-suffix=* | --program-suffi=* \
672
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
program_suffix=$ac_optarg ;;
675
-program-transform-name | --program-transform-name \
676
| --program-transform-nam | --program-transform-na \
677
| --program-transform-n | --program-transform- \
678
| --program-transform | --program-transfor \
679
| --program-transfo | --program-transf \
680
| --program-trans | --program-tran \
681
| --progr-tra | --program-tr | --program-t)
682
ac_prev=program_transform_name ;;
683
-program-transform-name=* | --program-transform-name=* \
684
| --program-transform-nam=* | --program-transform-na=* \
685
| --program-transform-n=* | --program-transform-=* \
686
| --program-transform=* | --program-transfor=* \
687
| --program-transfo=* | --program-transf=* \
688
| --program-trans=* | --program-tran=* \
689
| --progr-tra=* | --program-tr=* | --program-t=*)
690
program_transform_name=$ac_optarg ;;
692
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
| -silent | --silent | --silen | --sile | --sil)
696
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700
sbindir=$ac_optarg ;;
702
-sharedstatedir | --sharedstatedir | --sharedstatedi \
703
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
| --sharedst | --shareds | --shared | --share | --shar \
706
ac_prev=sharedstatedir ;;
707
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711
sharedstatedir=$ac_optarg ;;
713
-site | --site | --sit)
715
-site=* | --site=* | --sit=*)
718
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
| --syscon | --sysco | --sysc | --sys | --sy)
725
ac_prev=sysconfdir ;;
726
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
sysconfdir=$ac_optarg ;;
730
-target | --target | --targe | --targ | --tar | --ta | --t)
731
ac_prev=target_alias ;;
732
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
target_alias=$ac_optarg ;;
735
-v | -verbose | --verbose | --verbos | --verbo | --verb)
738
-version | --version | --versio | --versi | --vers | -V)
742
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
# Reject names that are not valid shell variable names.
744
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
{ echo "$as_me: error: invalid package name: $ac_package" >&2
746
{ (exit 1); exit 1; }; }
747
ac_package=`echo $ac_package| sed 's/-/_/g'`
749
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752
eval "with_$ac_package='$ac_optarg'" ;;
754
-without-* | --without-*)
755
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
# Reject names that are not valid shell variable names.
757
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
{ echo "$as_me: error: invalid package name: $ac_package" >&2
759
{ (exit 1); exit 1; }; }
760
ac_package=`echo $ac_package | sed 's/-/_/g'`
761
eval "with_$ac_package=no" ;;
764
# Obsolete; use --with-x.
767
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
| --x-incl | --x-inc | --x-in | --x-i)
769
ac_prev=x_includes ;;
770
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
x_includes=$ac_optarg ;;
774
-x-libraries | --x-libraries | --x-librarie | --x-librari \
775
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
ac_prev=x_libraries ;;
777
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
x_libraries=$ac_optarg ;;
781
-*) { echo "$as_me: error: unrecognized option: $ac_option
782
Try \`$0 --help' for more information." >&2
783
{ (exit 1); exit 1; }; }
787
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
# Reject names that are not valid shell variable names.
789
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
{ (exit 1); exit 1; }; }
792
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
eval "$ac_envvar='$ac_optarg'"
797
# FIXME: should be removed in autoconf 3.0.
798
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807
if test -n "$ac_prev"; then
808
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
{ echo "$as_me: error: missing argument to $ac_option" >&2
810
{ (exit 1); exit 1; }; }
813
# Be sure to have absolute paths.
814
for ac_var in exec_prefix prefix
816
eval ac_val=$`echo $ac_var`
818
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
{ (exit 1); exit 1; }; };;
824
# Be sure to have absolute paths.
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
localstatedir libdir includedir oldincludedir infodir mandir
828
eval ac_val=$`echo $ac_var`
830
[\\/$]* | ?:[\\/]* ) ;;
831
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
{ (exit 1); exit 1; }; };;
836
# There might be people who depend on the old broken behavior: `$host'
837
# used to hold the argument of --host etc.
838
# FIXME: To remove some day.
843
# FIXME: To remove some day.
844
if test "x$host_alias" != x; then
845
if test "x$build_alias" = x; then
846
cross_compiling=maybe
847
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
If a cross compiler is detected then cross compile mode will be used." >&2
849
elif test "x$build_alias" != "x$host_alias"; then
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
test "$silent" = yes && exec 6>/dev/null
860
# Find the source files, if location was not specified.
861
if test -z "$srcdir"; then
862
ac_srcdir_defaulted=yes
863
# Try the directory containing this script, then its parent.
864
ac_confdir=`(dirname "$0") 2>/dev/null ||
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
X"$0" : 'X\(//\)[^/]' \| \
867
X"$0" : 'X\(//\)$' \| \
868
X"$0" : 'X\(/\)' \| \
869
. : '\(.\)' 2>/dev/null ||
871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
/^X\(\/\/\)$/{ s//\1/; q; }
874
/^X\(\/\).*/{ s//\1/; q; }
877
if test ! -r $srcdir/$ac_unique_file; then
881
ac_srcdir_defaulted=no
883
if test ! -r $srcdir/$ac_unique_file; then
884
if test "$ac_srcdir_defaulted" = yes; then
885
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
{ (exit 1); exit 1; }; }
888
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
{ (exit 1); exit 1; }; }
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
{ (exit 1); exit 1; }; }
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
ac_env_build_alias_set=${build_alias+set}
897
ac_env_build_alias_value=$build_alias
898
ac_cv_env_build_alias_set=${build_alias+set}
899
ac_cv_env_build_alias_value=$build_alias
900
ac_env_host_alias_set=${host_alias+set}
901
ac_env_host_alias_value=$host_alias
902
ac_cv_env_host_alias_set=${host_alias+set}
903
ac_cv_env_host_alias_value=$host_alias
904
ac_env_target_alias_set=${target_alias+set}
905
ac_env_target_alias_value=$target_alias
906
ac_cv_env_target_alias_set=${target_alias+set}
907
ac_cv_env_target_alias_value=$target_alias
908
ac_env_CC_set=${CC+set}
910
ac_cv_env_CC_set=${CC+set}
911
ac_cv_env_CC_value=$CC
912
ac_env_CFLAGS_set=${CFLAGS+set}
913
ac_env_CFLAGS_value=$CFLAGS
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
ac_cv_env_CFLAGS_value=$CFLAGS
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
ac_env_LDFLAGS_value=$LDFLAGS
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
ac_env_CPPFLAGS_value=$CPPFLAGS
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
ac_env_CPP_set=${CPP+set}
925
ac_env_CPP_value=$CPP
926
ac_cv_env_CPP_set=${CPP+set}
927
ac_cv_env_CPP_value=$CPP
928
ac_env_CXX_set=${CXX+set}
929
ac_env_CXX_value=$CXX
930
ac_cv_env_CXX_set=${CXX+set}
931
ac_cv_env_CXX_value=$CXX
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_env_CXXFLAGS_value=$CXXFLAGS
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
ac_env_CXXCPP_set=${CXXCPP+set}
937
ac_env_CXXCPP_value=$CXXCPP
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
ac_cv_env_CXXCPP_value=$CXXCPP
940
ac_env_F77_set=${F77+set}
941
ac_env_F77_value=$F77
942
ac_cv_env_F77_set=${F77+set}
943
ac_cv_env_F77_value=$F77
944
ac_env_FFLAGS_set=${FFLAGS+set}
945
ac_env_FFLAGS_value=$FFLAGS
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
ac_cv_env_FFLAGS_value=$FFLAGS
950
# Report the --help message.
952
if test "$ac_init_help" = "long"; then
953
# Omit some internal or obsolete options to make the list less imposing.
954
# This message is too long to be a string in the A/UX 3.1 sh.
956
\`configure' configures Judy 1.0.0 to adapt to many kinds of systems.
958
Usage: $0 [OPTION]... [VAR=VALUE]...
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
961
VAR=VALUE. See below for descriptions of some of the useful variables.
963
Defaults for the options are specified in brackets.
966
-h, --help display this help and exit
967
--help=short display options specific to this package
968
--help=recursive display the short help of all the included packages
969
-V, --version display version information and exit
970
-q, --quiet, --silent do not print \`checking...' messages
971
--cache-file=FILE cache test results in FILE [disabled]
972
-C, --config-cache alias for \`--cache-file=config.cache'
973
-n, --no-create do not create output files
974
--srcdir=DIR find the sources in DIR [configure dir or \`..']
979
Installation directories:
980
--prefix=PREFIX install architecture-independent files in PREFIX
982
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985
By default, \`make install' will install all the files in
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988
for instance \`--prefix=\$HOME'.
990
For better control, use the options below.
992
Fine tuning of the installation directories:
993
--bindir=DIR user executables [EPREFIX/bin]
994
--sbindir=DIR system admin executables [EPREFIX/sbin]
995
--libexecdir=DIR program executables [EPREFIX/libexec]
996
--datadir=DIR read-only architecture-independent data [PREFIX/share]
997
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000
--libdir=DIR object code libraries [EPREFIX/lib]
1001
--includedir=DIR C header files [PREFIX/include]
1002
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1003
--infodir=DIR info documentation [PREFIX/info]
1004
--mandir=DIR man documentation [PREFIX/man]
1010
--program-prefix=PREFIX prepend PREFIX to installed program names
1011
--program-suffix=SUFFIX append SUFFIX to installed program names
1012
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015
--build=BUILD configure for building on BUILD [guessed]
1016
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1020
if test -n "$ac_init_help"; then
1021
case $ac_init_help in
1022
short | recursive ) echo "Configuration of Judy 1.0.0:";;
1027
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1028
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1029
--enable-maintainer-mode enable make rules and dependencies not useful
1030
(and sometimes confusing) to the casual installer
1031
--enable-debug enable debugging features
1032
--enable-ccover enable use of ccover code coverage tools
1033
--disable-dependency-tracking speeds up one-time build
1034
--enable-dependency-tracking do not reject slow dependency extractors
1035
--enable-32-bit Generate code for a 32-bit environment
1036
--enable-64-bit Generate code for a 64-bit environment
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)
1044
--enable-build-warnings Enable build-time compiler warnings for gcc
1047
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1050
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1052
--with-tags@<:@=TAGS@:>@
1053
include additional configurations @<:@automatic@:>@
1055
Some influential environment variables:
1056
CC C compiler command
1057
CFLAGS C compiler flags
1058
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059
nonstandard directory <lib dir>
1060
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061
headers in a nonstandard directory <include dir>
1063
CXX C++ compiler command
1064
CXXFLAGS C++ compiler flags
1065
CXXCPP C++ preprocessor
1066
F77 Fortran 77 compiler command
1067
FFLAGS Fortran 77 compiler flags
1069
Use these variables to override the choices made by `configure' or to help
1070
it to find libraries and programs with nonstandard names/locations.
1072
Report bugs to <doug@sourcejudy.com>.
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
Judy configure 1.0.0
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 Judy $as_me 1.0.0, which was
1183
generated by GNU Autoconf 2.59. Invocation command line was
1190
@%:@@%:@ --------- @%:@@%:@
1191
@%:@@%:@ Platform. @%:@@%:@
1192
@%:@@%:@ --------- @%:@@%:@
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"
1226
@%:@@%:@ ----------- @%:@@%:@
1227
@%:@@%:@ Core tests. @%:@@%:@
1228
@%:@@%:@ ----------- @%:@@%:@
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
1332
@%:@@%:@ ------------- @%:@@%:@
1333
@%:@@%:@ Output files. @%:@@%:@
1334
@%:@@%:@ ------------- @%:@@%:@
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
1347
@%:@@%:@ ----------- @%:@@%:@
1348
@%:@@%:@ confdefs.h. @%:@@%:@
1349
@%:@@%:@ ----------- @%:@@%:@
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
1519
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1520
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1521
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1522
if test "${enable_maintainer_mode+set}" = set; then
1523
enableval="$enable_maintainer_mode"
1524
USE_MAINTAINER_MODE=$enableval
1526
USE_MAINTAINER_MODE=no
1528
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1529
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1532
if test $USE_MAINTAINER_MODE = yes; then
1533
MAINTAINER_MODE_TRUE=
1534
MAINTAINER_MODE_FALSE='#'
1536
MAINTAINER_MODE_TRUE='#'
1537
MAINTAINER_MODE_FALSE=
1540
MAINT=$MAINTAINER_MODE_TRUE
1544
am__api_version="1.9"
1546
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1547
if test -f $ac_dir/install-sh; then
1549
ac_install_sh="$ac_aux_dir/install-sh -c"
1551
elif test -f $ac_dir/install.sh; then
1553
ac_install_sh="$ac_aux_dir/install.sh -c"
1555
elif test -f $ac_dir/shtool; then
1557
ac_install_sh="$ac_aux_dir/shtool install -c"
1561
if test -z "$ac_aux_dir"; then
1562
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1563
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1564
{ (exit 1); exit 1; }; }
1566
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1567
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1568
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1570
# Find a good install program. We prefer a C program (faster),
1571
# so one script is as good as another. But avoid the broken or
1572
# incompatible versions:
1573
# SysV /etc/install, /usr/sbin/install
1574
# SunOS /usr/etc/install
1575
# IRIX /sbin/install
1577
# AmigaOS /C/install, which installs bootblocks on floppy discs
1578
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1579
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1580
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1581
# OS/2's system install, which has a completely different semantic
1582
# ./install, which can be erroneously created by make from ./install.sh.
1583
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1584
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1585
if test -z "$INSTALL"; then
1586
if test "${ac_cv_path_install+set}" = set; then
1587
echo $ECHO_N "(cached) $ECHO_C" >&6
1589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593
test -z "$as_dir" && as_dir=.
1594
# Account for people who put trailing slashes in PATH elements.
1596
./ | .// | /cC/* | \
1597
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1598
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1601
# OSF1 and SCO ODT 3.0 have their own names for install.
1602
# Don't use installbsd from OSF since it installs stuff as root
1604
for ac_prog in ginstall scoinst install; do
1605
for ac_exec_ext in '' $ac_executable_extensions; do
1606
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1607
if test $ac_prog = install &&
1608
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609
# AIX install. It has an incompatible calling convention.
1611
elif test $ac_prog = install &&
1612
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1613
# program-specific install script used by HP pwplus--don't use.
1616
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1628
if test "${ac_cv_path_install+set}" = set; then
1629
INSTALL=$ac_cv_path_install
1631
# As a last resort, use the slow shell script. We don't cache a
1632
# path for INSTALL within a source directory, because that will
1633
# break other packages using the cache if that directory is
1634
# removed, or if the path is relative.
1635
INSTALL=$ac_install_sh
1638
echo "$as_me:$LINENO: result: $INSTALL" >&5
1639
echo "${ECHO_T}$INSTALL" >&6
1641
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642
# It thinks the first close brace ends the variable substitution.
1643
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1647
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1649
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1650
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1653
echo timestamp > conftest.file
1654
# Do `set' in a subshell so we don't clobber the current shell's
1655
# arguments. Must try -L first in case configure is actually a
1656
# symlink; some systems play weird games with the mod time of symlinks
1657
# (eg FreeBSD returns the mod time of the symlink's containing
1660
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1661
if test "$*" = "X"; then
1663
set X `ls -t $srcdir/configure conftest.file`
1666
if test "$*" != "X $srcdir/configure conftest.file" \
1667
&& test "$*" != "X conftest.file $srcdir/configure"; then
1669
# If neither matched, then we have a broken ls. This can happen
1670
# if, for instance, CONFIG_SHELL is bash and it inherits a
1671
# broken ls alias from the environment. This has actually
1672
# happened. Such a system could not be considered "sane".
1673
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1674
alias in your environment" >&5
1675
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1676
alias in your environment" >&2;}
1677
{ (exit 1); exit 1; }; }
1680
test "$2" = conftest.file
1686
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1687
Check your system clock" >&5
1688
echo "$as_me: error: newly created file is older than distributed files!
1689
Check your system clock" >&2;}
1690
{ (exit 1); exit 1; }; }
1692
echo "$as_me:$LINENO: result: yes" >&5
1693
echo "${ECHO_T}yes" >&6
1694
test "$program_prefix" != NONE &&
1695
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1696
# Use a double $ so make ignores it.
1697
test "$program_suffix" != NONE &&
1698
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1699
# Double any \ or $. echo might interpret backslashes.
1700
# By default was `s,x,x', remove it if useless.
1701
cat <<\_ACEOF >conftest.sed
1702
s/[\\$]/&&/g;s/;s,x,x,$//
1704
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1707
# expand $ac_aux_dir to an absolute path
1708
am_aux_dir=`cd $ac_aux_dir && pwd`
1710
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1711
# Use eval to expand $SHELL
1712
if eval "$MISSING --run true"; then
1713
am_missing_run="$MISSING --run "
1716
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1717
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1720
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1721
# We used to keeping the `.' as first argument, in order to
1722
# allow $(mkdir_p) to be used without argument. As in
1723
# $(mkdir_p) $(somedir)
1724
# where $(somedir) is conditionally defined. However this is wrong
1726
# 1. if the package is installed by a user who cannot write `.'
1727
# make install will fail,
1728
# 2. the above comment should most certainly read
1729
# $(mkdir_p) $(DESTDIR)$(somedir)
1730
# so it does not work when $(somedir) is undefined and
1731
# $(DESTDIR) is not.
1732
# To support the latter case, we have to write
1733
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1734
# so the `.' trick is pointless.
1735
mkdir_p='mkdir -p --'
1737
# On NextStep and OpenStep, the `mkdir' command does not
1738
# recognize any option. It will interpret all options as
1739
# directories to create, and then abort because `.' already
1741
for d in ./-p ./--version;
1743
test -d $d && rmdir $d
1745
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1746
if test -f "$ac_aux_dir/mkinstalldirs"; then
1747
mkdir_p='$(mkinstalldirs)'
1749
mkdir_p='$(install_sh) -d'
1753
for ac_prog in gawk mawk nawk awk
1755
# Extract the first word of "$ac_prog", so it can be a program name with args.
1756
set dummy $ac_prog; ac_word=$2
1757
echo "$as_me:$LINENO: checking for $ac_word" >&5
1758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759
if test "${ac_cv_prog_AWK+set}" = set; then
1760
echo $ECHO_N "(cached) $ECHO_C" >&6
1762
if test -n "$AWK"; then
1763
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769
test -z "$as_dir" && as_dir=.
1770
for ac_exec_ext in '' $ac_executable_extensions; do
1771
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772
ac_cv_prog_AWK="$ac_prog"
1773
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782
if test -n "$AWK"; then
1783
echo "$as_me:$LINENO: result: $AWK" >&5
1784
echo "${ECHO_T}$AWK" >&6
1786
echo "$as_me:$LINENO: result: no" >&5
1787
echo "${ECHO_T}no" >&6
1790
test -n "$AWK" && break
1793
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1794
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1795
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1796
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1797
echo $ECHO_N "(cached) $ECHO_C" >&6
1799
cat >conftest.make <<\_ACEOF
1801
@echo 'ac_maketemp="$(MAKE)"'
1803
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1804
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1805
if test -n "$ac_maketemp"; then
1806
eval ac_cv_prog_make_${ac_make}_set=yes
1808
eval ac_cv_prog_make_${ac_make}_set=no
1812
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1813
echo "$as_me:$LINENO: result: yes" >&5
1814
echo "${ECHO_T}yes" >&6
1817
echo "$as_me:$LINENO: result: no" >&5
1818
echo "${ECHO_T}no" >&6
1819
SET_MAKE="MAKE=${MAKE-make}"
1822
rm -rf .tst 2>/dev/null
1823
mkdir .tst 2>/dev/null
1824
if test -d .tst; then
1829
rmdir .tst 2>/dev/null
1831
# test to see if srcdir already configured
1832
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1833
test -f $srcdir/config.status; then
1834
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1835
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1836
{ (exit 1); exit 1; }; }
1839
# test whether we have cygpath
1840
if test -z "$CYGPATH_W"; then
1841
if (cygpath --version) >/dev/null 2>/dev/null; then
1842
CYGPATH_W='cygpath -w'
1849
# Define the identity of the package.
1850
PACKAGE=$PACKAGE_NAME
1851
VERSION=$PACKAGE_VERSION
1854
cat >>confdefs.h <<_ACEOF
1855
@%:@define PACKAGE "$PACKAGE"
1859
cat >>confdefs.h <<_ACEOF
1860
@%:@define VERSION "$VERSION"
1863
# Some tools Automake needs.
1865
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1868
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1871
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1874
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1877
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1879
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1881
# Installed binaries are usually stripped using `strip' when the user
1882
# run `make install-strip'. However `strip' might not be the right
1883
# tool to use in cross-compilation environments, therefore Automake
1884
# will honor the `STRIP' environment variable to overrule this program.
1885
if test "$cross_compiling" != no; then
1886
if test -n "$ac_tool_prefix"; then
1887
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1888
set dummy ${ac_tool_prefix}strip; ac_word=$2
1889
echo "$as_me:$LINENO: checking for $ac_word" >&5
1890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891
if test "${ac_cv_prog_STRIP+set}" = set; then
1892
echo $ECHO_N "(cached) $ECHO_C" >&6
1894
if test -n "$STRIP"; then
1895
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901
test -z "$as_dir" && as_dir=.
1902
for ac_exec_ext in '' $ac_executable_extensions; do
1903
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1905
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913
STRIP=$ac_cv_prog_STRIP
1914
if test -n "$STRIP"; then
1915
echo "$as_me:$LINENO: result: $STRIP" >&5
1916
echo "${ECHO_T}$STRIP" >&6
1918
echo "$as_me:$LINENO: result: no" >&5
1919
echo "${ECHO_T}no" >&6
1923
if test -z "$ac_cv_prog_STRIP"; then
1925
# Extract the first word of "strip", so it can be a program name with args.
1926
set dummy strip; ac_word=$2
1927
echo "$as_me:$LINENO: checking for $ac_word" >&5
1928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1930
echo $ECHO_N "(cached) $ECHO_C" >&6
1932
if test -n "$ac_ct_STRIP"; then
1933
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939
test -z "$as_dir" && as_dir=.
1940
for ac_exec_ext in '' $ac_executable_extensions; do
1941
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942
ac_cv_prog_ac_ct_STRIP="strip"
1943
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1952
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1953
if test -n "$ac_ct_STRIP"; then
1954
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1955
echo "${ECHO_T}$ac_ct_STRIP" >&6
1957
echo "$as_me:$LINENO: result: no" >&5
1958
echo "${ECHO_T}no" >&6
1963
STRIP="$ac_cv_prog_STRIP"
1967
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1969
# We need awk for the "check" target. The system "awk" is bad on
1971
# Always define AMTAR for backward compatibility.
1973
AMTAR=${AMTAR-"${am_missing_run}tar"}
1975
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1982
ac_config_headers="$ac_config_headers config.h"
1986
VERSION_INFO="-version-info 1:1:0"
1990
echo "$as_me:$LINENO: checking which flavor to build" >&5
1991
echo $ECHO_N "checking which flavor to build... $ECHO_C" >&6
1993
# Check whether --enable-debug or --disable-debug was given.
1994
if test "${enable_debug+set}" = set; then
1995
enableval="$enable_debug"
2000
if test "x$enable_debug" != xyes -a "x$enable_debug" != xno; then
2001
{ { echo "$as_me:$LINENO: error: You may not pass an argument to --enable-debug" >&5
2002
echo "$as_me: error: You may not pass an argument to --enable-debug" >&2;}
2003
{ (exit 1); exit 1; }; }
2006
# Check whether --enable-ccover or --disable-ccover was given.
2007
if test "${enable_ccover+set}" = set; then
2008
enableval="$enable_ccover"
2013
if test "x$enable_ccover" != xyes -a "x$enable_ccover" != xno; then
2014
{ { echo "$as_me:$LINENO: error: You may not pass an argument to --enable-ccover" >&5
2015
echo "$as_me: error: You may not pass an argument to --enable-ccover" >&2;}
2016
{ (exit 1); exit 1; }; }
2019
if test "x$enable_debug" = xyes -a "x$enable_ccover" = xyes; then
2020
{ { echo "$as_me:$LINENO: error: You may not use --enable-debug and --enable-ccover together" >&5
2021
echo "$as_me: error: You may not use --enable-debug and --enable-ccover together" >&2;}
2022
{ (exit 1); exit 1; }; }
2023
elif test "x$enable_debug" = xyes; then
2025
elif test "x$enable_ccover" = xyes; then
2033
echo "$as_me:$LINENO: result: $FLAVOR" >&5
2034
echo "${ECHO_T}$FLAVOR" >&6
2038
ac_cpp='$CPP $CPPFLAGS'
2039
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
if test -n "$ac_tool_prefix"; then
2043
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2044
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2045
echo "$as_me:$LINENO: checking for $ac_word" >&5
2046
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047
if test "${ac_cv_prog_CC+set}" = set; then
2048
echo $ECHO_N "(cached) $ECHO_C" >&6
2050
if test -n "$CC"; then
2051
ac_cv_prog_CC="$CC" # Let the user override the test.
2053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057
test -z "$as_dir" && as_dir=.
2058
for ac_exec_ext in '' $ac_executable_extensions; do
2059
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2061
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070
if test -n "$CC"; then
2071
echo "$as_me:$LINENO: result: $CC" >&5
2072
echo "${ECHO_T}$CC" >&6
2074
echo "$as_me:$LINENO: result: no" >&5
2075
echo "${ECHO_T}no" >&6
2079
if test -z "$ac_cv_prog_CC"; then
2081
# Extract the first word of "gcc", so it can be a program name with args.
2082
set dummy gcc; ac_word=$2
2083
echo "$as_me:$LINENO: checking for $ac_word" >&5
2084
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086
echo $ECHO_N "(cached) $ECHO_C" >&6
2088
if test -n "$ac_ct_CC"; then
2089
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095
test -z "$as_dir" && as_dir=.
2096
for ac_exec_ext in '' $ac_executable_extensions; do
2097
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098
ac_cv_prog_ac_ct_CC="gcc"
2099
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108
if test -n "$ac_ct_CC"; then
2109
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110
echo "${ECHO_T}$ac_ct_CC" >&6
2112
echo "$as_me:$LINENO: result: no" >&5
2113
echo "${ECHO_T}no" >&6
2121
if test -z "$CC"; then
2122
if test -n "$ac_tool_prefix"; then
2123
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2124
set dummy ${ac_tool_prefix}cc; ac_word=$2
2125
echo "$as_me:$LINENO: checking for $ac_word" >&5
2126
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127
if test "${ac_cv_prog_CC+set}" = set; then
2128
echo $ECHO_N "(cached) $ECHO_C" >&6
2130
if test -n "$CC"; then
2131
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
ac_cv_prog_CC="${ac_tool_prefix}cc"
2141
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150
if test -n "$CC"; then
2151
echo "$as_me:$LINENO: result: $CC" >&5
2152
echo "${ECHO_T}$CC" >&6
2154
echo "$as_me:$LINENO: result: no" >&5
2155
echo "${ECHO_T}no" >&6
2159
if test -z "$ac_cv_prog_CC"; then
2161
# Extract the first word of "cc", so it can be a program name with args.
2162
set dummy cc; ac_word=$2
2163
echo "$as_me:$LINENO: checking for $ac_word" >&5
2164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2166
echo $ECHO_N "(cached) $ECHO_C" >&6
2168
if test -n "$ac_ct_CC"; then
2169
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175
test -z "$as_dir" && as_dir=.
2176
for ac_exec_ext in '' $ac_executable_extensions; do
2177
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2178
ac_cv_prog_ac_ct_CC="cc"
2179
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188
if test -n "$ac_ct_CC"; then
2189
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190
echo "${ECHO_T}$ac_ct_CC" >&6
2192
echo "$as_me:$LINENO: result: no" >&5
2193
echo "${ECHO_T}no" >&6
2202
if test -z "$CC"; then
2203
# Extract the first word of "cc", so it can be a program name with args.
2204
set dummy cc; ac_word=$2
2205
echo "$as_me:$LINENO: checking for $ac_word" >&5
2206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207
if test "${ac_cv_prog_CC+set}" = set; then
2208
echo $ECHO_N "(cached) $ECHO_C" >&6
2210
if test -n "$CC"; then
2211
ac_cv_prog_CC="$CC" # Let the user override the test.
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218
test -z "$as_dir" && as_dir=.
2219
for ac_exec_ext in '' $ac_executable_extensions; do
2220
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222
ac_prog_rejected=yes
2226
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232
if test $ac_prog_rejected = yes; then
2233
# We found a bogon in the path, so make sure we never use it.
2234
set dummy $ac_cv_prog_CC
2236
if test $@%:@ != 0; then
2237
# We chose a different compiler from the bogus one.
2238
# However, it has the same basename, so the bogon will be chosen
2239
# first if we set CC to just the basename; use the full file name.
2241
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2247
if test -n "$CC"; then
2248
echo "$as_me:$LINENO: result: $CC" >&5
2249
echo "${ECHO_T}$CC" >&6
2251
echo "$as_me:$LINENO: result: no" >&5
2252
echo "${ECHO_T}no" >&6
2256
if test -z "$CC"; then
2257
if test -n "$ac_tool_prefix"; then
2260
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262
echo "$as_me:$LINENO: checking for $ac_word" >&5
2263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264
if test "${ac_cv_prog_CC+set}" = set; then
2265
echo $ECHO_N "(cached) $ECHO_C" >&6
2267
if test -n "$CC"; then
2268
ac_cv_prog_CC="$CC" # Let the user override the test.
2270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274
test -z "$as_dir" && as_dir=.
2275
for ac_exec_ext in '' $ac_executable_extensions; do
2276
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2278
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287
if test -n "$CC"; then
2288
echo "$as_me:$LINENO: result: $CC" >&5
2289
echo "${ECHO_T}$CC" >&6
2291
echo "$as_me:$LINENO: result: no" >&5
2292
echo "${ECHO_T}no" >&6
2295
test -n "$CC" && break
2298
if test -z "$CC"; then
2302
# Extract the first word of "$ac_prog", so it can be a program name with args.
2303
set dummy $ac_prog; ac_word=$2
2304
echo "$as_me:$LINENO: checking for $ac_word" >&5
2305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307
echo $ECHO_N "(cached) $ECHO_C" >&6
2309
if test -n "$ac_ct_CC"; then
2310
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316
test -z "$as_dir" && as_dir=.
2317
for ac_exec_ext in '' $ac_executable_extensions; do
2318
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319
ac_cv_prog_ac_ct_CC="$ac_prog"
2320
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329
if test -n "$ac_ct_CC"; then
2330
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331
echo "${ECHO_T}$ac_ct_CC" >&6
2333
echo "$as_me:$LINENO: result: no" >&5
2334
echo "${ECHO_T}no" >&6
2337
test -n "$ac_ct_CC" && break
2346
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2347
See \`config.log' for more details." >&5
2348
echo "$as_me: error: no acceptable C compiler found in \$PATH
2349
See \`config.log' for more details." >&2;}
2350
{ (exit 1); exit 1; }; }
2352
# Provide some information about the compiler.
2353
echo "$as_me:$LINENO:" \
2354
"checking for C compiler version" >&5
2355
ac_compiler=`set X $ac_compile; echo $2`
2356
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2357
(eval $ac_compiler --version </dev/null >&5) 2>&5
2359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360
(exit $ac_status); }
2361
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2362
(eval $ac_compiler -v </dev/null >&5) 2>&5
2364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365
(exit $ac_status); }
2366
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2367
(eval $ac_compiler -V </dev/null >&5) 2>&5
2369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370
(exit $ac_status); }
2372
cat >conftest.$ac_ext <<_ACEOF
2375
cat confdefs.h >>conftest.$ac_ext
2376
cat >>conftest.$ac_ext <<_ACEOF
2377
/* end confdefs.h. */
2387
ac_clean_files_save=$ac_clean_files
2388
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389
# Try to create an executable without -o first, disregard a.out.
2390
# It will help us diagnose broken compilers, and finding out an intuition
2392
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2394
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2395
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2396
(eval $ac_link_default) 2>&5
2398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399
(exit $ac_status); }; then
2400
# Find the output, starting from the most likely. This scheme is
2401
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2404
# Be careful to initialize this variable, since it used to be cached.
2405
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2407
# b.out is created by i960 compilers.
2408
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2410
test -f "$ac_file" || continue
2412
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2415
# This is the source file.
2418
# We found the default executable, but exeext='' is most
2422
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423
# FIXME: I believe we export ac_cv_exeext for Libtool,
2424
# but it would be cool to find out if it's true. Does anybody
2425
# maintain Libtool? --akim.
2433
echo "$as_me: failed program was:" >&5
2434
sed 's/^/| /' conftest.$ac_ext >&5
2436
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2437
See \`config.log' for more details." >&5
2438
echo "$as_me: error: C compiler cannot create executables
2439
See \`config.log' for more details." >&2;}
2440
{ (exit 77); exit 77; }; }
2443
ac_exeext=$ac_cv_exeext
2444
echo "$as_me:$LINENO: result: $ac_file" >&5
2445
echo "${ECHO_T}$ac_file" >&6
2447
# Check the compiler produces executables we can run. If not, either
2448
# the compiler is broken, or we cross compile.
2449
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2450
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2451
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2452
# If not cross compiling, check that we can run a simple program.
2453
if test "$cross_compiling" != yes; then
2454
if { ac_try='./$ac_file'
2455
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459
(exit $ac_status); }; }; then
2462
if test "$cross_compiling" = maybe; then
2465
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2466
If you meant to cross compile, use \`--host'.
2467
See \`config.log' for more details." >&5
2468
echo "$as_me: error: cannot run C compiled programs.
2469
If you meant to cross compile, use \`--host'.
2470
See \`config.log' for more details." >&2;}
2471
{ (exit 1); exit 1; }; }
2475
echo "$as_me:$LINENO: result: yes" >&5
2476
echo "${ECHO_T}yes" >&6
2478
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2479
ac_clean_files=$ac_clean_files_save
2480
# Check the compiler produces executables we can run. If not, either
2481
# the compiler is broken, or we cross compile.
2482
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2483
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2484
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2485
echo "${ECHO_T}$cross_compiling" >&6
2487
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2488
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2490
(eval $ac_link) 2>&5
2492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
(exit $ac_status); }; then
2494
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2495
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2496
# work properly (i.e., refer to `conftest.exe'), while it won't with
2498
for ac_file in conftest.exe conftest conftest.*; do
2499
test -f "$ac_file" || continue
2501
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2502
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2510
See \`config.log' for more details." >&5
2511
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2512
See \`config.log' for more details." >&2;}
2513
{ (exit 1); exit 1; }; }
2516
rm -f conftest$ac_cv_exeext
2517
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2518
echo "${ECHO_T}$ac_cv_exeext" >&6
2520
rm -f conftest.$ac_ext
2521
EXEEXT=$ac_cv_exeext
2523
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2525
if test "${ac_cv_objext+set}" = set; then
2526
echo $ECHO_N "(cached) $ECHO_C" >&6
2528
cat >conftest.$ac_ext <<_ACEOF
2531
cat confdefs.h >>conftest.$ac_ext
2532
cat >>conftest.$ac_ext <<_ACEOF
2533
/* end confdefs.h. */
2543
rm -f conftest.o conftest.obj
2544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545
(eval $ac_compile) 2>&5
2547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548
(exit $ac_status); }; then
2549
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2551
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2557
echo "$as_me: failed program was:" >&5
2558
sed 's/^/| /' conftest.$ac_ext >&5
2560
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561
See \`config.log' for more details." >&5
2562
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563
See \`config.log' for more details." >&2;}
2564
{ (exit 1); exit 1; }; }
2567
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570
echo "${ECHO_T}$ac_cv_objext" >&6
2571
OBJEXT=$ac_cv_objext
2573
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576
echo $ECHO_N "(cached) $ECHO_C" >&6
2578
cat >conftest.$ac_ext <<_ACEOF
2581
cat confdefs.h >>conftest.$ac_ext
2582
cat >>conftest.$ac_ext <<_ACEOF
2583
/* end confdefs.h. */
2596
rm -f conftest.$ac_objext
2597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598
(eval $ac_compile) 2>conftest.er1
2600
grep -v '^ *+' conftest.er1 >conftest.err
2602
cat conftest.err >&5
2603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604
(exit $ac_status); } &&
2605
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610
(exit $ac_status); }; } &&
2611
{ ac_try='test -s conftest.$ac_objext'
2612
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616
(exit $ac_status); }; }; then
2619
echo "$as_me: failed program was:" >&5
2620
sed 's/^/| /' conftest.$ac_ext >&5
2624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2628
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2629
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2630
GCC=`test $ac_compiler_gnu = yes && echo yes`
2631
ac_test_CFLAGS=${CFLAGS+set}
2632
ac_save_CFLAGS=$CFLAGS
2634
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2636
if test "${ac_cv_prog_cc_g+set}" = set; then
2637
echo $ECHO_N "(cached) $ECHO_C" >&6
2639
cat >conftest.$ac_ext <<_ACEOF
2642
cat confdefs.h >>conftest.$ac_ext
2643
cat >>conftest.$ac_ext <<_ACEOF
2644
/* end confdefs.h. */
2654
rm -f conftest.$ac_objext
2655
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656
(eval $ac_compile) 2>conftest.er1
2658
grep -v '^ *+' conftest.er1 >conftest.err
2660
cat conftest.err >&5
2661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662
(exit $ac_status); } &&
2663
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668
(exit $ac_status); }; } &&
2669
{ ac_try='test -s conftest.$ac_objext'
2670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674
(exit $ac_status); }; }; then
2677
echo "$as_me: failed program was:" >&5
2678
sed 's/^/| /' conftest.$ac_ext >&5
2682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2685
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2686
if test "$ac_test_CFLAGS" = set; then
2687
CFLAGS=$ac_save_CFLAGS
2688
elif test $ac_cv_prog_cc_g = yes; then
2689
if test "$GCC" = yes; then
2695
if test "$GCC" = yes; then
2701
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2702
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2703
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2704
echo $ECHO_N "(cached) $ECHO_C" >&6
2706
ac_cv_prog_cc_stdc=no
2708
cat >conftest.$ac_ext <<_ACEOF
2711
cat confdefs.h >>conftest.$ac_ext
2712
cat >>conftest.$ac_ext <<_ACEOF
2713
/* end confdefs.h. */
2716
#include <sys/types.h>
2717
#include <sys/stat.h>
2718
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2719
struct buf { int x; };
2720
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2721
static char *e (p, i)
2727
static char *f (char * (*g) (char **, int), char **p, ...)
2732
s = g (p, va_arg (v,int));
2737
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2738
function prototypes and stuff, but not '\xHH' hex character constants.
2739
These don't provoke an error unfortunately, instead are silently treated
2740
as 'x'. The following induces an error, until -std1 is added to get
2741
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2742
array size at least. It's necessary to write '\x00'==0 to get something
2743
that's true only with -std1. */
2744
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2746
int test (int i, double x);
2747
struct s1 {int (*f) (int a);};
2748
struct s2 {int (*f) (double a);};
2749
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2755
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2760
# Don't try gcc -ansi; that turns off useful extensions and
2761
# breaks some systems' header files.
2762
# AIX -qlanglvl=ansi
2763
# Ultrix and OSF/1 -std1
2764
# HP-UX 10.20 and later -Ae
2765
# HP-UX older versions -Aa -D_HPUX_SOURCE
2766
# SVR4 -Xc -D__EXTENSIONS__
2767
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2769
CC="$ac_save_CC $ac_arg"
2770
rm -f conftest.$ac_objext
2771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772
(eval $ac_compile) 2>conftest.er1
2774
grep -v '^ *+' conftest.er1 >conftest.err
2776
cat conftest.err >&5
2777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778
(exit $ac_status); } &&
2779
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784
(exit $ac_status); }; } &&
2785
{ ac_try='test -s conftest.$ac_objext'
2786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
(exit $ac_status); }; }; then
2791
ac_cv_prog_cc_stdc=$ac_arg
2794
echo "$as_me: failed program was:" >&5
2795
sed 's/^/| /' conftest.$ac_ext >&5
2798
rm -f conftest.err conftest.$ac_objext
2800
rm -f conftest.$ac_ext conftest.$ac_objext
2805
case "x$ac_cv_prog_cc_stdc" in
2807
echo "$as_me:$LINENO: result: none needed" >&5
2808
echo "${ECHO_T}none needed" >&6 ;;
2810
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2811
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2812
CC="$CC $ac_cv_prog_cc_stdc" ;;
2815
# Some people use a C++ compiler to compile C. Since we use `exit',
2816
# in C++ we need to declare it. In case someone uses the same compiler
2817
# for both compiling C and C++ we need to have the C++ compiler decide
2818
# the declaration of exit, since it's the most demanding environment.
2819
cat >conftest.$ac_ext <<_ACEOF
2820
@%:@ifndef __cplusplus
2824
rm -f conftest.$ac_objext
2825
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826
(eval $ac_compile) 2>conftest.er1
2828
grep -v '^ *+' conftest.er1 >conftest.err
2830
cat conftest.err >&5
2831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832
(exit $ac_status); } &&
2833
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838
(exit $ac_status); }; } &&
2839
{ ac_try='test -s conftest.$ac_objext'
2840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844
(exit $ac_status); }; }; then
2845
for ac_declaration in \
2847
'extern "C" void std::exit (int) throw (); using std::exit;' \
2848
'extern "C" void std::exit (int); using std::exit;' \
2849
'extern "C" void exit (int) throw ();' \
2850
'extern "C" void exit (int);' \
2853
cat >conftest.$ac_ext <<_ACEOF
2856
cat confdefs.h >>conftest.$ac_ext
2857
cat >>conftest.$ac_ext <<_ACEOF
2858
/* end confdefs.h. */
2860
@%:@include <stdlib.h>
2869
rm -f conftest.$ac_objext
2870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871
(eval $ac_compile) 2>conftest.er1
2873
grep -v '^ *+' conftest.er1 >conftest.err
2875
cat conftest.err >&5
2876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877
(exit $ac_status); } &&
2878
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2879
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883
(exit $ac_status); }; } &&
2884
{ ac_try='test -s conftest.$ac_objext'
2885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889
(exit $ac_status); }; }; then
2892
echo "$as_me: failed program was:" >&5
2893
sed 's/^/| /' conftest.$ac_ext >&5
2897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898
cat >conftest.$ac_ext <<_ACEOF
2901
cat confdefs.h >>conftest.$ac_ext
2902
cat >>conftest.$ac_ext <<_ACEOF
2903
/* end confdefs.h. */
2913
rm -f conftest.$ac_objext
2914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915
(eval $ac_compile) 2>conftest.er1
2917
grep -v '^ *+' conftest.er1 >conftest.err
2919
cat conftest.err >&5
2920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921
(exit $ac_status); } &&
2922
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927
(exit $ac_status); }; } &&
2928
{ ac_try='test -s conftest.$ac_objext'
2929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933
(exit $ac_status); }; }; then
2936
echo "$as_me: failed program was:" >&5
2937
sed 's/^/| /' conftest.$ac_ext >&5
2940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943
if test -n "$ac_declaration"; then
2944
echo '#ifdef __cplusplus' >>confdefs.h
2945
echo $ac_declaration >>confdefs.h
2946
echo '#endif' >>confdefs.h
2950
echo "$as_me: failed program was:" >&5
2951
sed 's/^/| /' conftest.$ac_ext >&5
2954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2956
ac_cpp='$CPP $CPPFLAGS'
2957
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960
DEPDIR="${am__leading_dot}deps"
2962
ac_config_commands="$ac_config_commands depfiles"
2965
am_make=${MAKE-make}
2966
cat > confinc << 'END'
2971
# If we don't find an include directive, just comment out the code.
2972
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2973
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2977
# First try GNU make style include.
2978
echo "include confinc" > confmf
2979
# We grep out `Entering directory' and `Leaving directory'
2980
# messages which can occur if `w' ends up in MAKEFLAGS.
2981
# In particular we don't look at `^make:' because GNU make might
2982
# be invoked under some other name (usually "gmake"), in which
2983
# case it prints its new name instead of `make'.
2984
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2989
# Now try BSD make style include.
2990
if test "$am__include" = "#"; then
2991
echo '.include "confinc"' > confmf
2992
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2993
am__include=.include
3000
echo "$as_me:$LINENO: result: $_am_result" >&5
3001
echo "${ECHO_T}$_am_result" >&6
3002
rm -f confinc confmf
3004
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3005
if test "${enable_dependency_tracking+set}" = set; then
3006
enableval="$enable_dependency_tracking"
3009
if test "x$enable_dependency_tracking" != xno; then
3010
am_depcomp="$ac_aux_dir/depcomp"
3015
if test "x$enable_dependency_tracking" != xno; then
3026
depcc="$CC" am_compiler_list=
3028
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3029
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3030
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3031
echo $ECHO_N "(cached) $ECHO_C" >&6
3033
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3034
# We make a subdir and do the tests there. Otherwise we can end up
3035
# making bogus files that we don't know about and never remove. For
3036
# instance it was reported that on HP-UX the gcc test will end up
3037
# making a dummy file named `D' -- because `-MD' means `put the output
3040
# Copy depcomp to subdir because otherwise we won't find it if we're
3041
# using a relative directory.
3042
cp "$am_depcomp" conftest.dir
3044
# We will build objects and dependencies in a subdirectory because
3045
# it helps to detect inapplicable dependency modes. For instance
3046
# both Tru64's cc and ICC support -MD to output dependencies as a
3047
# side effect of compilation, but ICC will put the dependencies in
3048
# the current directory while Tru64 will put them in the object
3052
am_cv_CC_dependencies_compiler_type=none
3053
if test "$am_compiler_list" = ""; then
3054
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3056
for depmode in $am_compiler_list; do
3057
# Setup a source with many dependencies, because some compilers
3058
# like to wrap large dependency lists on column 80 (with \), and
3059
# we should not choose a depcomp mode which is confused by this.
3061
# We need to recreate these files for each test, as the compiler may
3062
# overwrite some of them when testing with obscure command lines.
3063
# This happens at least with the AIX C compiler.
3065
for i in 1 2 3 4 5 6; do
3066
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3067
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3068
# Solaris 8's {/usr,}/bin/sh.
3069
touch sub/conftst$i.h
3071
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3075
# after this tag, mechanisms are not by side-effect, so they'll
3076
# only be used when explicitly requested
3077
if test "x$enable_dependency_tracking" = xyes; then
3085
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3086
# mode. It turns out that the SunPro C++ compiler does not properly
3087
# handle `-M -o', and we need to detect this.
3088
if depmode=$depmode \
3089
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3090
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3091
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3092
>/dev/null 2>conftest.err &&
3093
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3094
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3095
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3096
# icc doesn't choke on unknown options, it will just issue warnings
3097
# or remarks (even with -Werror). So we grep stderr for any message
3098
# that says an option was ignored or not supported.
3099
# When given -MP, icc 7.0 and 7.1 complain thusly:
3100
# icc: Command line warning: ignoring option '-M'; no argument required
3101
# The diagnosis changed in icc 8.0:
3102
# icc: Command line remark: option '-MP' not supported
3103
if (grep 'ignoring option' conftest.err ||
3104
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3105
am_cv_CC_dependencies_compiler_type=$depmode
3114
am_cv_CC_dependencies_compiler_type=none
3118
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3119
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3120
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3125
test "x$enable_dependency_tracking" != xno \
3126
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3128
am__fastdepCC_FALSE='#'
3130
am__fastdepCC_TRUE='#'
3131
am__fastdepCC_FALSE=
3136
ac_cpp='$CPP $CPPFLAGS'
3137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3141
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3142
# On Suns, sometimes $CPP names a directory.
3143
if test -n "$CPP" && test -d "$CPP"; then
3146
if test -z "$CPP"; then
3147
if test "${ac_cv_prog_CPP+set}" = set; then
3148
echo $ECHO_N "(cached) $ECHO_C" >&6
3150
# Double quotes because CPP needs to be expanded
3151
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3154
for ac_c_preproc_warn_flag in '' yes
3156
# Use a header file that comes with gcc, so configuring glibc
3157
# with a fresh cross-compiler works.
3158
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3159
# <limits.h> exists even on freestanding compilers.
3160
# On the NeXT, cc -E runs the code through the compiler's parser,
3161
# not just through cpp. "Syntax error" is here to catch this case.
3162
cat >conftest.$ac_ext <<_ACEOF
3165
cat confdefs.h >>conftest.$ac_ext
3166
cat >>conftest.$ac_ext <<_ACEOF
3167
/* end confdefs.h. */
3169
@%:@ include <limits.h>
3171
@%:@ include <assert.h>
3175
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3178
grep -v '^ *+' conftest.er1 >conftest.err
3180
cat conftest.err >&5
3181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182
(exit $ac_status); } >/dev/null; then
3183
if test -s conftest.err; then
3184
ac_cpp_err=$ac_c_preproc_warn_flag
3185
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3192
if test -z "$ac_cpp_err"; then
3195
echo "$as_me: failed program was:" >&5
3196
sed 's/^/| /' conftest.$ac_ext >&5
3198
# Broken: fails on valid input.
3201
rm -f conftest.err conftest.$ac_ext
3203
# OK, works on sane cases. Now check whether non-existent headers
3204
# can be detected and how.
3205
cat >conftest.$ac_ext <<_ACEOF
3208
cat confdefs.h >>conftest.$ac_ext
3209
cat >>conftest.$ac_ext <<_ACEOF
3210
/* end confdefs.h. */
3211
@%:@include <ac_nonexistent.h>
3213
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3214
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3216
grep -v '^ *+' conftest.er1 >conftest.err
3218
cat conftest.err >&5
3219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220
(exit $ac_status); } >/dev/null; then
3221
if test -s conftest.err; then
3222
ac_cpp_err=$ac_c_preproc_warn_flag
3223
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3230
if test -z "$ac_cpp_err"; then
3231
# Broken: success on invalid input.
3234
echo "$as_me: failed program was:" >&5
3235
sed 's/^/| /' conftest.$ac_ext >&5
3237
# Passes both tests.
3241
rm -f conftest.err conftest.$ac_ext
3244
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3245
rm -f conftest.err conftest.$ac_ext
3246
if $ac_preproc_ok; then
3258
echo "$as_me:$LINENO: result: $CPP" >&5
3259
echo "${ECHO_T}$CPP" >&6
3261
for ac_c_preproc_warn_flag in '' yes
3263
# Use a header file that comes with gcc, so configuring glibc
3264
# with a fresh cross-compiler works.
3265
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3266
# <limits.h> exists even on freestanding compilers.
3267
# On the NeXT, cc -E runs the code through the compiler's parser,
3268
# not just through cpp. "Syntax error" is here to catch this case.
3269
cat >conftest.$ac_ext <<_ACEOF
3272
cat confdefs.h >>conftest.$ac_ext
3273
cat >>conftest.$ac_ext <<_ACEOF
3274
/* end confdefs.h. */
3276
@%:@ include <limits.h>
3278
@%:@ include <assert.h>
3282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3283
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3285
grep -v '^ *+' conftest.er1 >conftest.err
3287
cat conftest.err >&5
3288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289
(exit $ac_status); } >/dev/null; then
3290
if test -s conftest.err; then
3291
ac_cpp_err=$ac_c_preproc_warn_flag
3292
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3299
if test -z "$ac_cpp_err"; then
3302
echo "$as_me: failed program was:" >&5
3303
sed 's/^/| /' conftest.$ac_ext >&5
3305
# Broken: fails on valid input.
3308
rm -f conftest.err conftest.$ac_ext
3310
# OK, works on sane cases. Now check whether non-existent headers
3311
# can be detected and how.
3312
cat >conftest.$ac_ext <<_ACEOF
3315
cat confdefs.h >>conftest.$ac_ext
3316
cat >>conftest.$ac_ext <<_ACEOF
3317
/* end confdefs.h. */
3318
@%:@include <ac_nonexistent.h>
3320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3321
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3323
grep -v '^ *+' conftest.er1 >conftest.err
3325
cat conftest.err >&5
3326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327
(exit $ac_status); } >/dev/null; then
3328
if test -s conftest.err; then
3329
ac_cpp_err=$ac_c_preproc_warn_flag
3330
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337
if test -z "$ac_cpp_err"; then
3338
# Broken: success on invalid input.
3341
echo "$as_me: failed program was:" >&5
3342
sed 's/^/| /' conftest.$ac_ext >&5
3344
# Passes both tests.
3348
rm -f conftest.err conftest.$ac_ext
3351
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352
rm -f conftest.err conftest.$ac_ext
3353
if $ac_preproc_ok; then
3356
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3357
See \`config.log' for more details." >&5
3358
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3359
See \`config.log' for more details." >&2;}
3360
{ (exit 1); exit 1; }; }
3364
ac_cpp='$CPP $CPPFLAGS'
3365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369
# Find a good install program. We prefer a C program (faster),
3370
# so one script is as good as another. But avoid the broken or
3371
# incompatible versions:
3372
# SysV /etc/install, /usr/sbin/install
3373
# SunOS /usr/etc/install
3374
# IRIX /sbin/install
3376
# AmigaOS /C/install, which installs bootblocks on floppy discs
3377
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3378
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3379
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3380
# OS/2's system install, which has a completely different semantic
3381
# ./install, which can be erroneously created by make from ./install.sh.
3382
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3383
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3384
if test -z "$INSTALL"; then
3385
if test "${ac_cv_path_install+set}" = set; then
3386
echo $ECHO_N "(cached) $ECHO_C" >&6
3388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392
test -z "$as_dir" && as_dir=.
3393
# Account for people who put trailing slashes in PATH elements.
3395
./ | .// | /cC/* | \
3396
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3397
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3400
# OSF1 and SCO ODT 3.0 have their own names for install.
3401
# Don't use installbsd from OSF since it installs stuff as root
3403
for ac_prog in ginstall scoinst install; do
3404
for ac_exec_ext in '' $ac_executable_extensions; do
3405
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3406
if test $ac_prog = install &&
3407
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3408
# AIX install. It has an incompatible calling convention.
3410
elif test $ac_prog = install &&
3411
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3412
# program-specific install script used by HP pwplus--don't use.
3415
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3427
if test "${ac_cv_path_install+set}" = set; then
3428
INSTALL=$ac_cv_path_install
3430
# As a last resort, use the slow shell script. We don't cache a
3431
# path for INSTALL within a source directory, because that will
3432
# break other packages using the cache if that directory is
3433
# removed, or if the path is relative.
3434
INSTALL=$ac_install_sh
3437
echo "$as_me:$LINENO: result: $INSTALL" >&5
3438
echo "${ECHO_T}$INSTALL" >&6
3440
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3441
# It thinks the first close brace ends the variable substitution.
3442
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3444
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3446
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3448
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3449
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3451
if test "$LN_S" = "ln -s"; then
3452
echo "$as_me:$LINENO: result: yes" >&5
3453
echo "${ECHO_T}yes" >&6
3455
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3456
echo "${ECHO_T}no, using $LN_S" >&6
3459
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3460
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3461
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3462
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3463
echo $ECHO_N "(cached) $ECHO_C" >&6
3465
cat >conftest.make <<\_ACEOF
3467
@echo 'ac_maketemp="$(MAKE)"'
3469
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3470
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3471
if test -n "$ac_maketemp"; then
3472
eval ac_cv_prog_make_${ac_make}_set=yes
3474
eval ac_cv_prog_make_${ac_make}_set=no
3478
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3479
echo "$as_me:$LINENO: result: yes" >&5
3480
echo "${ECHO_T}yes" >&6
3483
echo "$as_me:$LINENO: result: no" >&5
3484
echo "${ECHO_T}no" >&6
3485
SET_MAKE="MAKE=${MAKE-make}"
3491
echo "$as_me:$LINENO: checking for egrep" >&5
3492
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3493
if test "${ac_cv_prog_egrep+set}" = set; then
3494
echo $ECHO_N "(cached) $ECHO_C" >&6
3496
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3497
then ac_cv_prog_egrep='grep -E'
3498
else ac_cv_prog_egrep='egrep'
3501
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3502
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3503
EGREP=$ac_cv_prog_egrep
3506
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3507
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3508
if test "${ac_cv_header_stdc+set}" = set; then
3509
echo $ECHO_N "(cached) $ECHO_C" >&6
3511
cat >conftest.$ac_ext <<_ACEOF
3514
cat confdefs.h >>conftest.$ac_ext
3515
cat >>conftest.$ac_ext <<_ACEOF
3516
/* end confdefs.h. */
3530
rm -f conftest.$ac_objext
3531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532
(eval $ac_compile) 2>conftest.er1
3534
grep -v '^ *+' conftest.er1 >conftest.err
3536
cat conftest.err >&5
3537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538
(exit $ac_status); } &&
3539
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3540
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544
(exit $ac_status); }; } &&
3545
{ ac_try='test -s conftest.$ac_objext'
3546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550
(exit $ac_status); }; }; then
3551
ac_cv_header_stdc=yes
3553
echo "$as_me: failed program was:" >&5
3554
sed 's/^/| /' conftest.$ac_ext >&5
3556
ac_cv_header_stdc=no
3558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560
if test $ac_cv_header_stdc = yes; then
3561
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3562
cat >conftest.$ac_ext <<_ACEOF
3565
cat confdefs.h >>conftest.$ac_ext
3566
cat >>conftest.$ac_ext <<_ACEOF
3567
/* end confdefs.h. */
3571
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572
$EGREP "memchr" >/dev/null 2>&1; then
3575
ac_cv_header_stdc=no
3581
if test $ac_cv_header_stdc = yes; then
3582
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3583
cat >conftest.$ac_ext <<_ACEOF
3586
cat confdefs.h >>conftest.$ac_ext
3587
cat >>conftest.$ac_ext <<_ACEOF
3588
/* end confdefs.h. */
3592
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3593
$EGREP "free" >/dev/null 2>&1; then
3596
ac_cv_header_stdc=no
3602
if test $ac_cv_header_stdc = yes; then
3603
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3604
if test "$cross_compiling" = yes; then
3607
cat >conftest.$ac_ext <<_ACEOF
3610
cat confdefs.h >>conftest.$ac_ext
3611
cat >>conftest.$ac_ext <<_ACEOF
3612
/* end confdefs.h. */
3614
#if ((' ' & 0x0FF) == 0x020)
3615
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3616
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3618
# define ISLOWER(c) \
3619
(('a' <= (c) && (c) <= 'i') \
3620
|| ('j' <= (c) && (c) <= 'r') \
3621
|| ('s' <= (c) && (c) <= 'z'))
3622
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3625
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3630
for (i = 0; i < 256; i++)
3631
if (XOR (islower (i), ISLOWER (i))
3632
|| toupper (i) != TOUPPER (i))
3637
rm -f conftest$ac_exeext
3638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639
(eval $ac_link) 2>&5
3641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3643
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647
(exit $ac_status); }; }; then
3650
echo "$as_me: program exited with status $ac_status" >&5
3651
echo "$as_me: failed program was:" >&5
3652
sed 's/^/| /' conftest.$ac_ext >&5
3655
ac_cv_header_stdc=no
3657
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3661
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3662
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3663
if test $ac_cv_header_stdc = yes; then
3665
cat >>confdefs.h <<\_ACEOF
3666
@%:@define STDC_HEADERS 1
3671
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3681
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3682
inttypes.h stdint.h unistd.h
3684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3685
echo "$as_me:$LINENO: checking for $ac_header" >&5
3686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3687
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3688
echo $ECHO_N "(cached) $ECHO_C" >&6
3690
cat >conftest.$ac_ext <<_ACEOF
3693
cat confdefs.h >>conftest.$ac_ext
3694
cat >>conftest.$ac_ext <<_ACEOF
3695
/* end confdefs.h. */
3696
$ac_includes_default
3698
@%:@include <$ac_header>
3700
rm -f conftest.$ac_objext
3701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702
(eval $ac_compile) 2>conftest.er1
3704
grep -v '^ *+' conftest.er1 >conftest.err
3706
cat conftest.err >&5
3707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708
(exit $ac_status); } &&
3709
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714
(exit $ac_status); }; } &&
3715
{ ac_try='test -s conftest.$ac_objext'
3716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720
(exit $ac_status); }; }; then
3721
eval "$as_ac_Header=yes"
3723
echo "$as_me: failed program was:" >&5
3724
sed 's/^/| /' conftest.$ac_ext >&5
3726
eval "$as_ac_Header=no"
3728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3731
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3732
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3733
cat >>confdefs.h <<_ACEOF
3734
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3754
for ac_header in fcntl.h inttypes.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
3756
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3758
echo "$as_me:$LINENO: checking for $ac_header" >&5
3759
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3760
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3761
echo $ECHO_N "(cached) $ECHO_C" >&6
3763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3766
# Is the header compilable?
3767
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3768
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3769
cat >conftest.$ac_ext <<_ACEOF
3772
cat confdefs.h >>conftest.$ac_ext
3773
cat >>conftest.$ac_ext <<_ACEOF
3774
/* end confdefs.h. */
3775
$ac_includes_default
3776
@%:@include <$ac_header>
3778
rm -f conftest.$ac_objext
3779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3780
(eval $ac_compile) 2>conftest.er1
3782
grep -v '^ *+' conftest.er1 >conftest.err
3784
cat conftest.err >&5
3785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786
(exit $ac_status); } &&
3787
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
(exit $ac_status); }; } &&
3793
{ ac_try='test -s conftest.$ac_objext'
3794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798
(exit $ac_status); }; }; then
3799
ac_header_compiler=yes
3801
echo "$as_me: failed program was:" >&5
3802
sed 's/^/| /' conftest.$ac_ext >&5
3804
ac_header_compiler=no
3806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3807
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3808
echo "${ECHO_T}$ac_header_compiler" >&6
3810
# Is the header present?
3811
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3812
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3813
cat >conftest.$ac_ext <<_ACEOF
3816
cat confdefs.h >>conftest.$ac_ext
3817
cat >>conftest.$ac_ext <<_ACEOF
3818
/* end confdefs.h. */
3819
@%:@include <$ac_header>
3821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824
grep -v '^ *+' conftest.er1 >conftest.err
3826
cat conftest.err >&5
3827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828
(exit $ac_status); } >/dev/null; then
3829
if test -s conftest.err; then
3830
ac_cpp_err=$ac_c_preproc_warn_flag
3831
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3838
if test -z "$ac_cpp_err"; then
3839
ac_header_preproc=yes
3841
echo "$as_me: failed program was:" >&5
3842
sed 's/^/| /' conftest.$ac_ext >&5
3844
ac_header_preproc=no
3846
rm -f conftest.err conftest.$ac_ext
3847
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3848
echo "${ECHO_T}$ac_header_preproc" >&6
3850
# So? What about this header?
3851
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3853
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3854
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3855
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3856
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3857
ac_header_preproc=yes
3860
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3861
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3862
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3863
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3864
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3865
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3866
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3867
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3868
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3869
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3870
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3871
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3874
@%:@@%:@ ---------------------------------- @%:@@%:@
3875
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
3876
@%:@@%:@ ---------------------------------- @%:@@%:@
3879
sed "s/^/$as_me: WARNING: /" >&2
3882
echo "$as_me:$LINENO: checking for $ac_header" >&5
3883
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3884
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3885
echo $ECHO_N "(cached) $ECHO_C" >&6
3887
eval "$as_ac_Header=\$ac_header_preproc"
3889
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3890
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3893
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3894
cat >>confdefs.h <<_ACEOF
3895
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3904
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
3905
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
3906
if test "${ac_cv_header_stdbool_h+set}" = set; then
3907
echo $ECHO_N "(cached) $ECHO_C" >&6
3909
cat >conftest.$ac_ext <<_ACEOF
3912
cat confdefs.h >>conftest.$ac_ext
3913
cat >>conftest.$ac_ext <<_ACEOF
3914
/* end confdefs.h. */
3916
#include <stdbool.h>
3918
# error bool is not defined
3921
# error false is not defined
3924
# error false is not 0
3927
# error true is not defined
3930
# error true is not 1
3932
#ifndef __bool_true_false_are_defined
3933
# error __bool_true_false_are_defined is not defined
3936
struct s { _Bool s: 1; _Bool t; } s;
3938
char a[true == 1 ? 1 : -1];
3939
char b[false == 0 ? 1 : -1];
3940
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3941
char d[(bool) -0.5 == true ? 1 : -1];
3943
char f[(_Bool) -0.0 == false ? 1 : -1];
3945
char h[sizeof (_Bool)];
3951
return !a + !b + !c + !d + !e + !f + !g + !h + !i;
3956
rm -f conftest.$ac_objext
3957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958
(eval $ac_compile) 2>conftest.er1
3960
grep -v '^ *+' conftest.er1 >conftest.err
3962
cat conftest.err >&5
3963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964
(exit $ac_status); } &&
3965
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970
(exit $ac_status); }; } &&
3971
{ ac_try='test -s conftest.$ac_objext'
3972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976
(exit $ac_status); }; }; then
3977
ac_cv_header_stdbool_h=yes
3979
echo "$as_me: failed program was:" >&5
3980
sed 's/^/| /' conftest.$ac_ext >&5
3982
ac_cv_header_stdbool_h=no
3984
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
3987
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
3988
echo "$as_me:$LINENO: checking for _Bool" >&5
3989
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
3990
if test "${ac_cv_type__Bool+set}" = set; then
3991
echo $ECHO_N "(cached) $ECHO_C" >&6
3993
cat >conftest.$ac_ext <<_ACEOF
3996
cat confdefs.h >>conftest.$ac_ext
3997
cat >>conftest.$ac_ext <<_ACEOF
3998
/* end confdefs.h. */
3999
$ac_includes_default
4011
rm -f conftest.$ac_objext
4012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013
(eval $ac_compile) 2>conftest.er1
4015
grep -v '^ *+' conftest.er1 >conftest.err
4017
cat conftest.err >&5
4018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019
(exit $ac_status); } &&
4020
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4021
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
(exit $ac_status); }; } &&
4026
{ ac_try='test -s conftest.$ac_objext'
4027
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031
(exit $ac_status); }; }; then
4032
ac_cv_type__Bool=yes
4034
echo "$as_me: failed program was:" >&5
4035
sed 's/^/| /' conftest.$ac_ext >&5
4039
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4042
echo "${ECHO_T}$ac_cv_type__Bool" >&6
4043
if test $ac_cv_type__Bool = yes; then
4045
cat >>confdefs.h <<_ACEOF
4046
@%:@define HAVE__BOOL 1
4052
if test $ac_cv_header_stdbool_h = yes; then
4054
cat >>confdefs.h <<\_ACEOF
4055
@%:@define HAVE_STDBOOL_H 1
4060
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4061
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4062
if test "${ac_cv_c_const+set}" = set; then
4063
echo $ECHO_N "(cached) $ECHO_C" >&6
4065
cat >conftest.$ac_ext <<_ACEOF
4068
cat confdefs.h >>conftest.$ac_ext
4069
cat >>conftest.$ac_ext <<_ACEOF
4070
/* end confdefs.h. */
4075
/* FIXME: Include the comments suggested by Paul. */
4077
/* Ultrix mips cc rejects this. */
4078
typedef int charset[2];
4080
/* SunOS 4.1.1 cc rejects this. */
4081
char const *const *ccp;
4083
/* NEC SVR4.0.2 mips cc rejects this. */
4084
struct point {int x, y;};
4085
static struct point const zero = {0,0};
4086
/* AIX XL C 1.02.0.0 rejects this.
4087
It does not let you subtract one const X* pointer from another in
4088
an arm of an if-expression whose if-part is not a constant
4090
const char *g = "string";
4091
ccp = &g + (g ? g-g : 0);
4092
/* HPUX 7.0 cc rejects these. */
4095
ccp = (char const *const *) p;
4096
{ /* SCO 3.2v4 cc rejects this. */
4098
char const *s = 0 ? (char *) 0 : (char const *) 0;
4102
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4104
const int *foo = &x[0];
4107
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4108
typedef const int *iptr;
4112
{ /* AIX XL C 1.02.0.0 rejects this saying
4113
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4114
struct s { int j; const int *ap[3]; };
4115
struct s *b; b->j = 5;
4117
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4126
rm -f conftest.$ac_objext
4127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128
(eval $ac_compile) 2>conftest.er1
4130
grep -v '^ *+' conftest.er1 >conftest.err
4132
cat conftest.err >&5
4133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134
(exit $ac_status); } &&
4135
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140
(exit $ac_status); }; } &&
4141
{ ac_try='test -s conftest.$ac_objext'
4142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146
(exit $ac_status); }; }; then
4149
echo "$as_me: failed program was:" >&5
4150
sed 's/^/| /' conftest.$ac_ext >&5
4154
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4156
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4157
echo "${ECHO_T}$ac_cv_c_const" >&6
4158
if test $ac_cv_c_const = no; then
4160
cat >>confdefs.h <<\_ACEOF
4166
echo "$as_me:$LINENO: checking for inline" >&5
4167
echo $ECHO_N "checking for inline... $ECHO_C" >&6
4168
if test "${ac_cv_c_inline+set}" = set; then
4169
echo $ECHO_N "(cached) $ECHO_C" >&6
4172
for ac_kw in inline __inline__ __inline; do
4173
cat >conftest.$ac_ext <<_ACEOF
4176
cat confdefs.h >>conftest.$ac_ext
4177
cat >>conftest.$ac_ext <<_ACEOF
4178
/* end confdefs.h. */
4181
static $ac_kw foo_t static_foo () {return 0; }
4182
$ac_kw foo_t foo () {return 0; }
4186
rm -f conftest.$ac_objext
4187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188
(eval $ac_compile) 2>conftest.er1
4190
grep -v '^ *+' conftest.er1 >conftest.err
4192
cat conftest.err >&5
4193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194
(exit $ac_status); } &&
4195
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200
(exit $ac_status); }; } &&
4201
{ ac_try='test -s conftest.$ac_objext'
4202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
(exit $ac_status); }; }; then
4207
ac_cv_c_inline=$ac_kw; break
4209
echo "$as_me: failed program was:" >&5
4210
sed 's/^/| /' conftest.$ac_ext >&5
4213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4218
echo "${ECHO_T}$ac_cv_c_inline" >&6
4221
case $ac_cv_c_inline in
4224
case $ac_cv_c_inline in
4226
*) ac_val=$ac_cv_c_inline;;
4228
cat >>confdefs.h <<_ACEOF
4230
#define inline $ac_val
4236
echo "$as_me:$LINENO: checking for size_t" >&5
4237
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4238
if test "${ac_cv_type_size_t+set}" = set; then
4239
echo $ECHO_N "(cached) $ECHO_C" >&6
4241
cat >conftest.$ac_ext <<_ACEOF
4244
cat confdefs.h >>conftest.$ac_ext
4245
cat >>conftest.$ac_ext <<_ACEOF
4246
/* end confdefs.h. */
4247
$ac_includes_default
4253
if (sizeof (size_t))
4259
rm -f conftest.$ac_objext
4260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261
(eval $ac_compile) 2>conftest.er1
4263
grep -v '^ *+' conftest.er1 >conftest.err
4265
cat conftest.err >&5
4266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
(exit $ac_status); } &&
4268
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273
(exit $ac_status); }; } &&
4274
{ ac_try='test -s conftest.$ac_objext'
4275
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279
(exit $ac_status); }; }; then
4280
ac_cv_type_size_t=yes
4282
echo "$as_me: failed program was:" >&5
4283
sed 's/^/| /' conftest.$ac_ext >&5
4285
ac_cv_type_size_t=no
4287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4289
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4290
echo "${ECHO_T}$ac_cv_type_size_t" >&6
4291
if test $ac_cv_type_size_t = yes; then
4295
cat >>confdefs.h <<_ACEOF
4296
@%:@define size_t unsigned
4301
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4302
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4303
if test "${ac_cv_header_time+set}" = set; then
4304
echo $ECHO_N "(cached) $ECHO_C" >&6
4306
cat >conftest.$ac_ext <<_ACEOF
4309
cat confdefs.h >>conftest.$ac_ext
4310
cat >>conftest.$ac_ext <<_ACEOF
4311
/* end confdefs.h. */
4312
#include <sys/types.h>
4313
#include <sys/time.h>
4319
if ((struct tm *) 0)
4325
rm -f conftest.$ac_objext
4326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4327
(eval $ac_compile) 2>conftest.er1
4329
grep -v '^ *+' conftest.er1 >conftest.err
4331
cat conftest.err >&5
4332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333
(exit $ac_status); } &&
4334
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339
(exit $ac_status); }; } &&
4340
{ ac_try='test -s conftest.$ac_objext'
4341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345
(exit $ac_status); }; }; then
4346
ac_cv_header_time=yes
4348
echo "$as_me: failed program was:" >&5
4349
sed 's/^/| /' conftest.$ac_ext >&5
4351
ac_cv_header_time=no
4353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4355
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4356
echo "${ECHO_T}$ac_cv_header_time" >&6
4357
if test $ac_cv_header_time = yes; then
4359
cat >>confdefs.h <<\_ACEOF
4360
@%:@define TIME_WITH_SYS_TIME 1
4365
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4366
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4367
if test "${ac_cv_struct_tm+set}" = set; then
4368
echo $ECHO_N "(cached) $ECHO_C" >&6
4370
cat >conftest.$ac_ext <<_ACEOF
4373
cat confdefs.h >>conftest.$ac_ext
4374
cat >>conftest.$ac_ext <<_ACEOF
4375
/* end confdefs.h. */
4376
#include <sys/types.h>
4382
struct tm *tp; tp->tm_sec;
4387
rm -f conftest.$ac_objext
4388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389
(eval $ac_compile) 2>conftest.er1
4391
grep -v '^ *+' conftest.er1 >conftest.err
4393
cat conftest.err >&5
4394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395
(exit $ac_status); } &&
4396
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401
(exit $ac_status); }; } &&
4402
{ ac_try='test -s conftest.$ac_objext'
4403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407
(exit $ac_status); }; }; then
4408
ac_cv_struct_tm=time.h
4410
echo "$as_me: failed program was:" >&5
4411
sed 's/^/| /' conftest.$ac_ext >&5
4413
ac_cv_struct_tm=sys/time.h
4415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4418
echo "${ECHO_T}$ac_cv_struct_tm" >&6
4419
if test $ac_cv_struct_tm = sys/time.h; then
4421
cat >>confdefs.h <<\_ACEOF
4422
@%:@define TM_IN_SYS_TIME 1
4427
echo "$as_me:$LINENO: checking for working volatile" >&5
4428
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4429
if test "${ac_cv_c_volatile+set}" = set; then
4430
echo $ECHO_N "(cached) $ECHO_C" >&6
4432
cat >conftest.$ac_ext <<_ACEOF
4435
cat confdefs.h >>conftest.$ac_ext
4436
cat >>conftest.$ac_ext <<_ACEOF
4437
/* end confdefs.h. */
4449
rm -f conftest.$ac_objext
4450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451
(eval $ac_compile) 2>conftest.er1
4453
grep -v '^ *+' conftest.er1 >conftest.err
4455
cat conftest.err >&5
4456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457
(exit $ac_status); } &&
4458
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4459
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463
(exit $ac_status); }; } &&
4464
{ ac_try='test -s conftest.$ac_objext'
4465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469
(exit $ac_status); }; }; then
4470
ac_cv_c_volatile=yes
4472
echo "$as_me: failed program was:" >&5
4473
sed 's/^/| /' conftest.$ac_ext >&5
4477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4479
echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4480
echo "${ECHO_T}$ac_cv_c_volatile" >&6
4481
if test $ac_cv_c_volatile = no; then
4483
cat >>confdefs.h <<\_ACEOF
4489
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
4490
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
4491
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
4492
echo $ECHO_N "(cached) $ECHO_C" >&6
4494
cat >conftest.$ac_ext <<_ACEOF
4497
cat confdefs.h >>conftest.$ac_ext
4498
cat >>conftest.$ac_ext <<_ACEOF
4499
/* end confdefs.h. */
4500
$ac_includes_default
4504
if ((ptrdiff_t *) 0)
4506
if (sizeof (ptrdiff_t))
4512
rm -f conftest.$ac_objext
4513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514
(eval $ac_compile) 2>conftest.er1
4516
grep -v '^ *+' conftest.er1 >conftest.err
4518
cat conftest.err >&5
4519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520
(exit $ac_status); } &&
4521
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4522
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
(exit $ac_status); }; } &&
4527
{ ac_try='test -s conftest.$ac_objext'
4528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532
(exit $ac_status); }; }; then
4533
ac_cv_type_ptrdiff_t=yes
4535
echo "$as_me: failed program was:" >&5
4536
sed 's/^/| /' conftest.$ac_ext >&5
4538
ac_cv_type_ptrdiff_t=no
4540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
4543
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
4544
if test $ac_cv_type_ptrdiff_t = yes; then
4546
cat >>confdefs.h <<_ACEOF
4547
@%:@define HAVE_PTRDIFF_T 1
4554
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4555
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4556
if test "${ac_cv_c_bigendian+set}" = set; then
4557
echo $ECHO_N "(cached) $ECHO_C" >&6
4559
# See if sys/param.h defines the BYTE_ORDER macro.
4560
cat >conftest.$ac_ext <<_ACEOF
4563
cat confdefs.h >>conftest.$ac_ext
4564
cat >>conftest.$ac_ext <<_ACEOF
4565
/* end confdefs.h. */
4566
#include <sys/types.h>
4567
#include <sys/param.h>
4572
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4580
rm -f conftest.$ac_objext
4581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582
(eval $ac_compile) 2>conftest.er1
4584
grep -v '^ *+' conftest.er1 >conftest.err
4586
cat conftest.err >&5
4587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588
(exit $ac_status); } &&
4589
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
(exit $ac_status); }; } &&
4595
{ ac_try='test -s conftest.$ac_objext'
4596
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600
(exit $ac_status); }; }; then
4601
# It does; now see whether it defined to BIG_ENDIAN or not.
4602
cat >conftest.$ac_ext <<_ACEOF
4605
cat confdefs.h >>conftest.$ac_ext
4606
cat >>conftest.$ac_ext <<_ACEOF
4607
/* end confdefs.h. */
4608
#include <sys/types.h>
4609
#include <sys/param.h>
4614
#if BYTE_ORDER != BIG_ENDIAN
4622
rm -f conftest.$ac_objext
4623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624
(eval $ac_compile) 2>conftest.er1
4626
grep -v '^ *+' conftest.er1 >conftest.err
4628
cat conftest.err >&5
4629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630
(exit $ac_status); } &&
4631
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636
(exit $ac_status); }; } &&
4637
{ ac_try='test -s conftest.$ac_objext'
4638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642
(exit $ac_status); }; }; then
4643
ac_cv_c_bigendian=yes
4645
echo "$as_me: failed program was:" >&5
4646
sed 's/^/| /' conftest.$ac_ext >&5
4648
ac_cv_c_bigendian=no
4650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4652
echo "$as_me: failed program was:" >&5
4653
sed 's/^/| /' conftest.$ac_ext >&5
4655
# It does not; compile a test program.
4656
if test "$cross_compiling" = yes; then
4657
# try to guess the endianness by grepping values into an object file
4658
ac_cv_c_bigendian=unknown
4659
cat >conftest.$ac_ext <<_ACEOF
4662
cat confdefs.h >>conftest.$ac_ext
4663
cat >>conftest.$ac_ext <<_ACEOF
4664
/* end confdefs.h. */
4665
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4666
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4667
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4668
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4669
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4670
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4674
_ascii (); _ebcdic ();
4679
rm -f conftest.$ac_objext
4680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681
(eval $ac_compile) 2>conftest.er1
4683
grep -v '^ *+' conftest.er1 >conftest.err
4685
cat conftest.err >&5
4686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687
(exit $ac_status); } &&
4688
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693
(exit $ac_status); }; } &&
4694
{ ac_try='test -s conftest.$ac_objext'
4695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699
(exit $ac_status); }; }; then
4700
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4701
ac_cv_c_bigendian=yes
4703
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4704
if test "$ac_cv_c_bigendian" = unknown; then
4705
ac_cv_c_bigendian=no
4707
# finding both strings is unlikely to happen, but who knows?
4708
ac_cv_c_bigendian=unknown
4712
echo "$as_me: failed program was:" >&5
4713
sed 's/^/| /' conftest.$ac_ext >&5
4716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4718
cat >conftest.$ac_ext <<_ACEOF
4721
cat confdefs.h >>conftest.$ac_ext
4722
cat >>conftest.$ac_ext <<_ACEOF
4723
/* end confdefs.h. */
4727
/* Are we little or big endian? From Harbison&Steele. */
4731
char c[sizeof (long)];
4734
exit (u.c[sizeof (long) - 1] == 1);
4737
rm -f conftest$ac_exeext
4738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4739
(eval $ac_link) 2>&5
4741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747
(exit $ac_status); }; }; then
4748
ac_cv_c_bigendian=no
4750
echo "$as_me: program exited with status $ac_status" >&5
4751
echo "$as_me: failed program was:" >&5
4752
sed 's/^/| /' conftest.$ac_ext >&5
4755
ac_cv_c_bigendian=yes
4757
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4760
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4763
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4764
case $ac_cv_c_bigendian in
4767
cat >>confdefs.h <<\_ACEOF
4768
@%:@define WORDS_BIGENDIAN 1
4773
cat >>confdefs.h <<\_ACEOF
4774
@%:@define JU_LITTLE_ENDIAN 1
4778
{ { echo "$as_me:$LINENO: error: unknown endianness
4779
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4780
echo "$as_me: error: unknown endianness
4781
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4782
{ (exit 1); exit 1; }; } ;;
4787
# Check whether --enable-32-bit or --disable-32-bit was given.
4788
if test "${enable_32_bit+set}" = set; then
4789
enableval="$enable_32_bit"
4794
if test x"$b32" != "xno"; then
4795
echo "$as_me:$LINENO: result: Building 32-bit" >&5
4796
echo "${ECHO_T}Building 32-bit" >&6
4797
CFLAGS="-UJU_64BIT $CFLAGS"
4800
# Check whether --enable-64-bit or --disable-64-bit was given.
4801
if test "${enable_64_bit+set}" = set; then
4802
enableval="$enable_64_bit"
4807
if test x"$b64" != "xno"; then
4808
echo "$as_me:$LINENO: result: Building 64-bit" >&5
4809
echo "${ECHO_T}Building 64-bit" >&6
4810
CFLAGS="-DJU_64BIT $CFLAGS"
4813
if test x"$b32" = "xno"; then
4814
if test x"$b64" = "xno"; then
4815
{ { echo "$as_me:$LINENO: error: You must run configure with either:
4817
--enable-64-bit" >&5
4818
echo "$as_me: error: You must run configure with either:
4820
--enable-64-bit" >&2;}
4821
{ (exit 1); exit 1; }; };
4825
# dnl Determine whether or not we're compiling for a 64-bit system by looking
4826
# dnl at the size of a 'long'. This will define SIZEOF_LONG in config.h. We
4827
# dnl append some text to the bottom of config.h to set JU_64BIT appropriately.
4828
# dnl we try to do the correct thing if the user doesn't chose for us.
4829
# AC_CHECK_SIZEOF(long)
4830
# AH_BOTTOM([/* Define JU_64BIT to 1 if we're on a 64-bit system. */
4831
# if SIZEOF_LONG == 8
4837
echo "$as_me:$LINENO: checking for error_at_line" >&5
4838
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4839
if test "${ac_cv_lib_error_at_line+set}" = set; then
4840
echo $ECHO_N "(cached) $ECHO_C" >&6
4842
cat >conftest.$ac_ext <<_ACEOF
4845
cat confdefs.h >>conftest.$ac_ext
4846
cat >>conftest.$ac_ext <<_ACEOF
4847
/* end confdefs.h. */
4848
$ac_includes_default
4852
error_at_line (0, 0, "", 0, "");
4857
rm -f conftest.$ac_objext conftest$ac_exeext
4858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4859
(eval $ac_link) 2>conftest.er1
4861
grep -v '^ *+' conftest.er1 >conftest.err
4863
cat conftest.err >&5
4864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865
(exit $ac_status); } &&
4866
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871
(exit $ac_status); }; } &&
4872
{ ac_try='test -s conftest$ac_exeext'
4873
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877
(exit $ac_status); }; }; then
4878
ac_cv_lib_error_at_line=yes
4880
echo "$as_me: failed program was:" >&5
4881
sed 's/^/| /' conftest.$ac_ext >&5
4883
ac_cv_lib_error_at_line=no
4885
rm -f conftest.err conftest.$ac_objext \
4886
conftest$ac_exeext conftest.$ac_ext
4888
echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
4889
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
4890
if test $ac_cv_lib_error_at_line = no; then
4891
case $LIB@&t@OBJS in
4892
"error.$ac_objext" | \
4893
*" error.$ac_objext" | \
4894
"error.$ac_objext "* | \
4895
*" error.$ac_objext "* ) ;;
4896
*) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext" ;;
4902
for ac_header in stdlib.h
4904
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4905
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4906
echo "$as_me:$LINENO: checking for $ac_header" >&5
4907
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4909
echo $ECHO_N "(cached) $ECHO_C" >&6
4911
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4914
# Is the header compilable?
4915
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4916
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4917
cat >conftest.$ac_ext <<_ACEOF
4920
cat confdefs.h >>conftest.$ac_ext
4921
cat >>conftest.$ac_ext <<_ACEOF
4922
/* end confdefs.h. */
4923
$ac_includes_default
4924
@%:@include <$ac_header>
4926
rm -f conftest.$ac_objext
4927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928
(eval $ac_compile) 2>conftest.er1
4930
grep -v '^ *+' conftest.er1 >conftest.err
4932
cat conftest.err >&5
4933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934
(exit $ac_status); } &&
4935
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940
(exit $ac_status); }; } &&
4941
{ ac_try='test -s conftest.$ac_objext'
4942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946
(exit $ac_status); }; }; then
4947
ac_header_compiler=yes
4949
echo "$as_me: failed program was:" >&5
4950
sed 's/^/| /' conftest.$ac_ext >&5
4952
ac_header_compiler=no
4954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4956
echo "${ECHO_T}$ac_header_compiler" >&6
4958
# Is the header present?
4959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4961
cat >conftest.$ac_ext <<_ACEOF
4964
cat confdefs.h >>conftest.$ac_ext
4965
cat >>conftest.$ac_ext <<_ACEOF
4966
/* end confdefs.h. */
4967
@%:@include <$ac_header>
4969
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4972
grep -v '^ *+' conftest.er1 >conftest.err
4974
cat conftest.err >&5
4975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976
(exit $ac_status); } >/dev/null; then
4977
if test -s conftest.err; then
4978
ac_cpp_err=$ac_c_preproc_warn_flag
4979
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4986
if test -z "$ac_cpp_err"; then
4987
ac_header_preproc=yes
4989
echo "$as_me: failed program was:" >&5
4990
sed 's/^/| /' conftest.$ac_ext >&5
4992
ac_header_preproc=no
4994
rm -f conftest.err conftest.$ac_ext
4995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4996
echo "${ECHO_T}$ac_header_preproc" >&6
4998
# So? What about this header?
4999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5001
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5003
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5004
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5005
ac_header_preproc=yes
5008
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5009
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5010
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5011
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5012
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5013
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5014
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5015
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5016
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5017
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5018
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5019
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5022
@%:@@%:@ ---------------------------------- @%:@@%:@
5023
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
5024
@%:@@%:@ ---------------------------------- @%:@@%:@
5027
sed "s/^/$as_me: WARNING: /" >&2
5030
echo "$as_me:$LINENO: checking for $ac_header" >&5
5031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5033
echo $ECHO_N "(cached) $ECHO_C" >&6
5035
eval "$as_ac_Header=\$ac_header_preproc"
5037
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5041
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5042
cat >>confdefs.h <<_ACEOF
5043
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5050
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5051
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5052
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5053
echo $ECHO_N "(cached) $ECHO_C" >&6
5055
if test "$cross_compiling" = yes; then
5056
ac_cv_func_malloc_0_nonnull=no
5058
cat >conftest.$ac_ext <<_ACEOF
5061
cat confdefs.h >>conftest.$ac_ext
5062
cat >>conftest.$ac_ext <<_ACEOF
5063
/* end confdefs.h. */
5064
#if STDC_HEADERS || HAVE_STDLIB_H
5065
# include <stdlib.h>
5073
exit (malloc (0) ? 0 : 1);
5078
rm -f conftest$ac_exeext
5079
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080
(eval $ac_link) 2>&5
5082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088
(exit $ac_status); }; }; then
5089
ac_cv_func_malloc_0_nonnull=yes
5091
echo "$as_me: program exited with status $ac_status" >&5
5092
echo "$as_me: failed program was:" >&5
5093
sed 's/^/| /' conftest.$ac_ext >&5
5096
ac_cv_func_malloc_0_nonnull=no
5098
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5101
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5102
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5103
if test $ac_cv_func_malloc_0_nonnull = yes; then
5105
cat >>confdefs.h <<\_ACEOF
5106
@%:@define HAVE_MALLOC 1
5110
cat >>confdefs.h <<\_ACEOF
5111
@%:@define HAVE_MALLOC 0
5114
case $LIB@&t@OBJS in
5115
"malloc.$ac_objext" | \
5116
*" malloc.$ac_objext" | \
5117
"malloc.$ac_objext "* | \
5118
*" malloc.$ac_objext "* ) ;;
5119
*) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" ;;
5123
cat >>confdefs.h <<\_ACEOF
5124
@%:@define malloc rpl_malloc
5131
echo "$as_me:$LINENO: checking for working memcmp" >&5
5132
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5133
if test "${ac_cv_func_memcmp_working+set}" = set; then
5134
echo $ECHO_N "(cached) $ECHO_C" >&6
5136
if test "$cross_compiling" = yes; then
5137
ac_cv_func_memcmp_working=no
5139
cat >conftest.$ac_ext <<_ACEOF
5142
cat confdefs.h >>conftest.$ac_ext
5143
cat >>conftest.$ac_ext <<_ACEOF
5144
/* end confdefs.h. */
5145
$ac_includes_default
5150
/* Some versions of memcmp are not 8-bit clean. */
5151
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5152
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5155
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5156
or more and with at least one buffer not starting on a 4-byte boundary.
5157
William Lewis provided this test program. */
5162
for (i = 0; i < 4; i++)
5166
strcpy (a, "--------01111111");
5167
strcpy (b, "--------10000000");
5168
if (memcmp (a, b, 16) >= 0)
5178
rm -f conftest$ac_exeext
5179
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5180
(eval $ac_link) 2>&5
5182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188
(exit $ac_status); }; }; then
5189
ac_cv_func_memcmp_working=yes
5191
echo "$as_me: program exited with status $ac_status" >&5
5192
echo "$as_me: failed program was:" >&5
5193
sed 's/^/| /' conftest.$ac_ext >&5
5196
ac_cv_func_memcmp_working=no
5198
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5201
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5202
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5203
test $ac_cv_func_memcmp_working = no && case $LIB@&t@OBJS in
5204
"memcmp.$ac_objext" | \
5205
*" memcmp.$ac_objext" | \
5206
"memcmp.$ac_objext "* | \
5207
*" memcmp.$ac_objext "* ) ;;
5208
*) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext" ;;
5214
for ac_header in stdlib.h unistd.h
5216
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5217
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5218
echo "$as_me:$LINENO: checking for $ac_header" >&5
5219
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5220
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5221
echo $ECHO_N "(cached) $ECHO_C" >&6
5223
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5224
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226
# Is the header compilable?
5227
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5228
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5229
cat >conftest.$ac_ext <<_ACEOF
5232
cat confdefs.h >>conftest.$ac_ext
5233
cat >>conftest.$ac_ext <<_ACEOF
5234
/* end confdefs.h. */
5235
$ac_includes_default
5236
@%:@include <$ac_header>
5238
rm -f conftest.$ac_objext
5239
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240
(eval $ac_compile) 2>conftest.er1
5242
grep -v '^ *+' conftest.er1 >conftest.err
5244
cat conftest.err >&5
5245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246
(exit $ac_status); } &&
5247
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252
(exit $ac_status); }; } &&
5253
{ ac_try='test -s conftest.$ac_objext'
5254
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258
(exit $ac_status); }; }; then
5259
ac_header_compiler=yes
5261
echo "$as_me: failed program was:" >&5
5262
sed 's/^/| /' conftest.$ac_ext >&5
5264
ac_header_compiler=no
5266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5267
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5268
echo "${ECHO_T}$ac_header_compiler" >&6
5270
# Is the header present?
5271
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5272
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5273
cat >conftest.$ac_ext <<_ACEOF
5276
cat confdefs.h >>conftest.$ac_ext
5277
cat >>conftest.$ac_ext <<_ACEOF
5278
/* end confdefs.h. */
5279
@%:@include <$ac_header>
5281
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5282
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5284
grep -v '^ *+' conftest.er1 >conftest.err
5286
cat conftest.err >&5
5287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288
(exit $ac_status); } >/dev/null; then
5289
if test -s conftest.err; then
5290
ac_cpp_err=$ac_c_preproc_warn_flag
5291
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5298
if test -z "$ac_cpp_err"; then
5299
ac_header_preproc=yes
5301
echo "$as_me: failed program was:" >&5
5302
sed 's/^/| /' conftest.$ac_ext >&5
5304
ac_header_preproc=no
5306
rm -f conftest.err conftest.$ac_ext
5307
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5308
echo "${ECHO_T}$ac_header_preproc" >&6
5310
# So? What about this header?
5311
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5313
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5314
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5315
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5316
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5317
ac_header_preproc=yes
5320
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5321
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5322
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5323
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5324
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5325
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5326
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5327
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5328
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5329
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5330
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5331
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5334
@%:@@%:@ ---------------------------------- @%:@@%:@
5335
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
5336
@%:@@%:@ ---------------------------------- @%:@@%:@
5339
sed "s/^/$as_me: WARNING: /" >&2
5342
echo "$as_me:$LINENO: checking for $ac_header" >&5
5343
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5344
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5345
echo $ECHO_N "(cached) $ECHO_C" >&6
5347
eval "$as_ac_Header=\$ac_header_preproc"
5349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5350
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5353
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5354
cat >>confdefs.h <<_ACEOF
5355
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5363
for ac_func in getpagesize
5365
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5366
echo "$as_me:$LINENO: checking for $ac_func" >&5
5367
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5368
if eval "test \"\${$as_ac_var+set}\" = set"; then
5369
echo $ECHO_N "(cached) $ECHO_C" >&6
5371
cat >conftest.$ac_ext <<_ACEOF
5374
cat confdefs.h >>conftest.$ac_ext
5375
cat >>conftest.$ac_ext <<_ACEOF
5376
/* end confdefs.h. */
5377
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5378
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5379
#define $ac_func innocuous_$ac_func
5381
/* System header to define __stub macros and hopefully few prototypes,
5382
which can conflict with char $ac_func (); below.
5383
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5384
<limits.h> exists even on freestanding compilers. */
5387
# include <limits.h>
5389
# include <assert.h>
5394
/* Override any gcc2 internal prototype to avoid an error. */
5399
/* We use char because int might match the return type of a gcc2
5400
builtin and then its argument prototype would still apply. */
5402
/* The GNU C library defines this for functions which it implements
5403
to always fail with ENOSYS. Some functions are actually named
5404
something starting with __ and the normal name is an alias. */
5405
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5408
char (*f) () = $ac_func;
5417
return f != $ac_func;
5422
rm -f conftest.$ac_objext conftest$ac_exeext
5423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424
(eval $ac_link) 2>conftest.er1
5426
grep -v '^ *+' conftest.er1 >conftest.err
5428
cat conftest.err >&5
5429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430
(exit $ac_status); } &&
5431
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
(exit $ac_status); }; } &&
5437
{ ac_try='test -s conftest$ac_exeext'
5438
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442
(exit $ac_status); }; }; then
5443
eval "$as_ac_var=yes"
5445
echo "$as_me: failed program was:" >&5
5446
sed 's/^/| /' conftest.$ac_ext >&5
5448
eval "$as_ac_var=no"
5450
rm -f conftest.err conftest.$ac_objext \
5451
conftest$ac_exeext conftest.$ac_ext
5453
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5454
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5455
if test `eval echo '${'$as_ac_var'}'` = yes; then
5456
cat >>confdefs.h <<_ACEOF
5457
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5463
echo "$as_me:$LINENO: checking for working mmap" >&5
5464
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5465
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5466
echo $ECHO_N "(cached) $ECHO_C" >&6
5468
if test "$cross_compiling" = yes; then
5469
ac_cv_func_mmap_fixed_mapped=no
5471
cat >conftest.$ac_ext <<_ACEOF
5474
cat confdefs.h >>conftest.$ac_ext
5475
cat >>conftest.$ac_ext <<_ACEOF
5476
/* end confdefs.h. */
5477
$ac_includes_default
5478
/* malloc might have been renamed as rpl_malloc. */
5481
/* Thanks to Mike Haertel and Jim Avera for this test.
5482
Here is a matrix of mmap possibilities:
5483
mmap private not fixed
5484
mmap private fixed at somewhere currently unmapped
5485
mmap private fixed at somewhere already mapped
5486
mmap shared not fixed
5487
mmap shared fixed at somewhere currently unmapped
5488
mmap shared fixed at somewhere already mapped
5489
For private mappings, we should verify that changes cannot be read()
5490
back from the file, nor mmap's back from the file at a different
5491
address. (There have been systems where private was not correctly
5492
implemented like the infamous i386 svr4.0, and systems where the
5493
VM page cache was not coherent with the file system buffer cache
5494
like early versions of FreeBSD and possibly contemporary NetBSD.)
5495
For shared mappings, we should conversely verify that changes get
5496
propagated back to all the places they're supposed to be.
5498
Grep wants private fixed already mapped.
5499
The main things grep needs to know about mmap are:
5500
* does it exist and is it safe to write into the mmap'd area
5501
* how to use it (BSD variants) */
5504
#include <sys/mman.h>
5506
#if !STDC_HEADERS && !HAVE_STDLIB_H
5510
/* This mess was copied from the GNU getpagesize.h. */
5511
#if !HAVE_GETPAGESIZE
5512
/* Assume that all systems that can run configure have sys/param.h. */
5513
# if !HAVE_SYS_PARAM_H
5514
# define HAVE_SYS_PARAM_H 1
5517
# ifdef _SC_PAGESIZE
5518
# define getpagesize() sysconf(_SC_PAGESIZE)
5519
# else /* no _SC_PAGESIZE */
5520
# if HAVE_SYS_PARAM_H
5521
# include <sys/param.h>
5522
# ifdef EXEC_PAGESIZE
5523
# define getpagesize() EXEC_PAGESIZE
5524
# else /* no EXEC_PAGESIZE */
5526
# define getpagesize() NBPG * CLSIZE
5529
# endif /* no CLSIZE */
5530
# else /* no NBPG */
5532
# define getpagesize() NBPC
5533
# else /* no NBPC */
5535
# define getpagesize() PAGESIZE
5536
# endif /* PAGESIZE */
5537
# endif /* no NBPC */
5538
# endif /* no NBPG */
5539
# endif /* no EXEC_PAGESIZE */
5540
# else /* no HAVE_SYS_PARAM_H */
5541
# define getpagesize() 8192 /* punt totally */
5542
# endif /* no HAVE_SYS_PARAM_H */
5543
# endif /* no _SC_PAGESIZE */
5545
#endif /* no HAVE_GETPAGESIZE */
5550
char *data, *data2, *data3;
5554
pagesize = getpagesize ();
5556
/* First, make a file with some known garbage in it. */
5557
data = (char *) malloc (pagesize);
5560
for (i = 0; i < pagesize; ++i)
5561
*(data + i) = rand ();
5563
fd = creat ("conftest.mmap", 0600);
5566
if (write (fd, data, pagesize) != pagesize)
5570
/* Next, try to mmap the file at a fixed address which already has
5571
something else allocated at it. If we can, also make sure that
5572
we see the same garbage. */
5573
fd = open ("conftest.mmap", O_RDWR);
5576
data2 = (char *) malloc (2 * pagesize);
5579
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5580
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5581
MAP_PRIVATE | MAP_FIXED, fd, 0L))
5583
for (i = 0; i < pagesize; ++i)
5584
if (*(data + i) != *(data2 + i))
5587
/* Finally, make sure that changes to the mapped area do not
5588
percolate back to the file as seen by read(). (This is a bug on
5589
some variants of i386 svr4.0.) */
5590
for (i = 0; i < pagesize; ++i)
5591
*(data2 + i) = *(data2 + i) + 1;
5592
data3 = (char *) malloc (pagesize);
5595
if (read (fd, data3, pagesize) != pagesize)
5597
for (i = 0; i < pagesize; ++i)
5598
if (*(data + i) != *(data3 + i))
5604
rm -f conftest$ac_exeext
5605
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606
(eval $ac_link) 2>&5
5608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5610
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614
(exit $ac_status); }; }; then
5615
ac_cv_func_mmap_fixed_mapped=yes
5617
echo "$as_me: program exited with status $ac_status" >&5
5618
echo "$as_me: failed program was:" >&5
5619
sed 's/^/| /' conftest.$ac_ext >&5
5622
ac_cv_func_mmap_fixed_mapped=no
5624
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5627
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5628
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5629
if test $ac_cv_func_mmap_fixed_mapped = yes; then
5631
cat >>confdefs.h <<\_ACEOF
5632
@%:@define HAVE_MMAP 1
5638
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5639
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5640
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5641
echo $ECHO_N "(cached) $ECHO_C" >&6
5643
rm -f conftest.sym conftest.file
5645
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5646
if test "$cross_compiling" = yes; then
5647
ac_cv_func_lstat_dereferences_slashed_symlink=no
5649
cat >conftest.$ac_ext <<_ACEOF
5652
cat confdefs.h >>conftest.$ac_ext
5653
cat >>conftest.$ac_ext <<_ACEOF
5654
/* end confdefs.h. */
5655
$ac_includes_default
5660
/* Linux will dereference the symlink and fail.
5661
That is better in the sense that it means we will not
5662
have to compile and use the lstat wrapper. */
5663
exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
5668
rm -f conftest$ac_exeext
5669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670
(eval $ac_link) 2>&5
5672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5674
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678
(exit $ac_status); }; }; then
5679
ac_cv_func_lstat_dereferences_slashed_symlink=yes
5681
echo "$as_me: program exited with status $ac_status" >&5
5682
echo "$as_me: failed program was:" >&5
5683
sed 's/^/| /' conftest.$ac_ext >&5
5686
ac_cv_func_lstat_dereferences_slashed_symlink=no
5688
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5691
# If the `ln -s' command failed, then we probably don't even
5692
# have an lstat function.
5693
ac_cv_func_lstat_dereferences_slashed_symlink=no
5695
rm -f conftest.sym conftest.file
5698
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5699
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
5701
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5703
cat >>confdefs.h <<_ACEOF
5704
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5708
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5709
case $LIB@&t@OBJS in
5710
"lstat.$ac_objext" | \
5711
*" lstat.$ac_objext" | \
5712
"lstat.$ac_objext "* | \
5713
*" lstat.$ac_objext "* ) ;;
5714
*) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" ;;
5719
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
5720
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
5721
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5722
echo $ECHO_N "(cached) $ECHO_C" >&6
5724
if test "$cross_compiling" = yes; then
5725
ac_cv_func_stat_empty_string_bug=yes
5727
cat >conftest.$ac_ext <<_ACEOF
5730
cat confdefs.h >>conftest.$ac_ext
5731
cat >>conftest.$ac_ext <<_ACEOF
5732
/* end confdefs.h. */
5733
$ac_includes_default
5738
exit (stat ("", &sbuf) ? 1 : 0);
5743
rm -f conftest$ac_exeext
5744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745
(eval $ac_link) 2>&5
5747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753
(exit $ac_status); }; }; then
5754
ac_cv_func_stat_empty_string_bug=yes
5756
echo "$as_me: program exited with status $ac_status" >&5
5757
echo "$as_me: failed program was:" >&5
5758
sed 's/^/| /' conftest.$ac_ext >&5
5761
ac_cv_func_stat_empty_string_bug=no
5763
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5766
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
5767
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
5768
if test $ac_cv_func_stat_empty_string_bug = yes; then
5769
case $LIB@&t@OBJS in
5770
"stat.$ac_objext" | \
5771
*" stat.$ac_objext" | \
5772
"stat.$ac_objext "* | \
5773
*" stat.$ac_objext "* ) ;;
5774
*) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" ;;
5778
cat >>confdefs.h <<_ACEOF
5779
@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
5785
for ac_func in vprintf
5787
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5788
echo "$as_me:$LINENO: checking for $ac_func" >&5
5789
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5790
if eval "test \"\${$as_ac_var+set}\" = set"; then
5791
echo $ECHO_N "(cached) $ECHO_C" >&6
5793
cat >conftest.$ac_ext <<_ACEOF
5796
cat confdefs.h >>conftest.$ac_ext
5797
cat >>conftest.$ac_ext <<_ACEOF
5798
/* end confdefs.h. */
5799
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5800
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5801
#define $ac_func innocuous_$ac_func
5803
/* System header to define __stub macros and hopefully few prototypes,
5804
which can conflict with char $ac_func (); below.
5805
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5806
<limits.h> exists even on freestanding compilers. */
5809
# include <limits.h>
5811
# include <assert.h>
5816
/* Override any gcc2 internal prototype to avoid an error. */
5821
/* We use char because int might match the return type of a gcc2
5822
builtin and then its argument prototype would still apply. */
5824
/* The GNU C library defines this for functions which it implements
5825
to always fail with ENOSYS. Some functions are actually named
5826
something starting with __ and the normal name is an alias. */
5827
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5830
char (*f) () = $ac_func;
5839
return f != $ac_func;
5844
rm -f conftest.$ac_objext conftest$ac_exeext
5845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846
(eval $ac_link) 2>conftest.er1
5848
grep -v '^ *+' conftest.er1 >conftest.err
5850
cat conftest.err >&5
5851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852
(exit $ac_status); } &&
5853
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858
(exit $ac_status); }; } &&
5859
{ ac_try='test -s conftest$ac_exeext'
5860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864
(exit $ac_status); }; }; then
5865
eval "$as_ac_var=yes"
5867
echo "$as_me: failed program was:" >&5
5868
sed 's/^/| /' conftest.$ac_ext >&5
5870
eval "$as_ac_var=no"
5872
rm -f conftest.err conftest.$ac_objext \
5873
conftest$ac_exeext conftest.$ac_ext
5875
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5876
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5877
if test `eval echo '${'$as_ac_var'}'` = yes; then
5878
cat >>confdefs.h <<_ACEOF
5879
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5882
echo "$as_me:$LINENO: checking for _doprnt" >&5
5883
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5884
if test "${ac_cv_func__doprnt+set}" = set; then
5885
echo $ECHO_N "(cached) $ECHO_C" >&6
5887
cat >conftest.$ac_ext <<_ACEOF
5890
cat confdefs.h >>conftest.$ac_ext
5891
cat >>conftest.$ac_ext <<_ACEOF
5892
/* end confdefs.h. */
5893
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5894
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5895
#define _doprnt innocuous__doprnt
5897
/* System header to define __stub macros and hopefully few prototypes,
5898
which can conflict with char _doprnt (); below.
5899
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900
<limits.h> exists even on freestanding compilers. */
5903
# include <limits.h>
5905
# include <assert.h>
5910
/* Override any gcc2 internal prototype to avoid an error. */
5915
/* We use char because int might match the return type of a gcc2
5916
builtin and then its argument prototype would still apply. */
5918
/* The GNU C library defines this for functions which it implements
5919
to always fail with ENOSYS. Some functions are actually named
5920
something starting with __ and the normal name is an alias. */
5921
#if defined (__stub__doprnt) || defined (__stub____doprnt)
5924
char (*f) () = _doprnt;
5933
return f != _doprnt;
5938
rm -f conftest.$ac_objext conftest$ac_exeext
5939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5940
(eval $ac_link) 2>conftest.er1
5942
grep -v '^ *+' conftest.er1 >conftest.err
5944
cat conftest.err >&5
5945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946
(exit $ac_status); } &&
5947
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952
(exit $ac_status); }; } &&
5953
{ ac_try='test -s conftest$ac_exeext'
5954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958
(exit $ac_status); }; }; then
5959
ac_cv_func__doprnt=yes
5961
echo "$as_me: failed program was:" >&5
5962
sed 's/^/| /' conftest.$ac_ext >&5
5964
ac_cv_func__doprnt=no
5966
rm -f conftest.err conftest.$ac_objext \
5967
conftest$ac_exeext conftest.$ac_ext
5969
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5970
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5971
if test $ac_cv_func__doprnt = yes; then
5973
cat >>confdefs.h <<\_ACEOF
5974
@%:@define HAVE_DOPRNT 1
5994
for ac_func in getpagesize gettimeofday memset munmap pow strchr strcspn strerror strstr strtoul uname
5996
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5997
echo "$as_me:$LINENO: checking for $ac_func" >&5
5998
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5999
if eval "test \"\${$as_ac_var+set}\" = set"; then
6000
echo $ECHO_N "(cached) $ECHO_C" >&6
6002
cat >conftest.$ac_ext <<_ACEOF
6005
cat confdefs.h >>conftest.$ac_ext
6006
cat >>conftest.$ac_ext <<_ACEOF
6007
/* end confdefs.h. */
6008
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6009
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6010
#define $ac_func innocuous_$ac_func
6012
/* System header to define __stub macros and hopefully few prototypes,
6013
which can conflict with char $ac_func (); below.
6014
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6015
<limits.h> exists even on freestanding compilers. */
6018
# include <limits.h>
6020
# include <assert.h>
6025
/* Override any gcc2 internal prototype to avoid an error. */
6030
/* We use char because int might match the return type of a gcc2
6031
builtin and then its argument prototype would still apply. */
6033
/* The GNU C library defines this for functions which it implements
6034
to always fail with ENOSYS. Some functions are actually named
6035
something starting with __ and the normal name is an alias. */
6036
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6039
char (*f) () = $ac_func;
6048
return f != $ac_func;
6053
rm -f conftest.$ac_objext conftest$ac_exeext
6054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055
(eval $ac_link) 2>conftest.er1
6057
grep -v '^ *+' conftest.er1 >conftest.err
6059
cat conftest.err >&5
6060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061
(exit $ac_status); } &&
6062
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067
(exit $ac_status); }; } &&
6068
{ ac_try='test -s conftest$ac_exeext'
6069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073
(exit $ac_status); }; }; then
6074
eval "$as_ac_var=yes"
6076
echo "$as_me: failed program was:" >&5
6077
sed 's/^/| /' conftest.$ac_ext >&5
6079
eval "$as_ac_var=no"
6081
rm -f conftest.err conftest.$ac_objext \
6082
conftest$ac_exeext conftest.$ac_ext
6084
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6085
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6086
if test `eval echo '${'$as_ac_var'}'` = yes; then
6087
cat >>confdefs.h <<_ACEOF
6088
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6095
if test -n "$ac_tool_prefix"; then
6096
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6097
set dummy ${ac_tool_prefix}ar; ac_word=$2
6098
echo "$as_me:$LINENO: checking for $ac_word" >&5
6099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6100
if test "${ac_cv_prog_AR+set}" = set; then
6101
echo $ECHO_N "(cached) $ECHO_C" >&6
6103
if test -n "$AR"; then
6104
ac_cv_prog_AR="$AR" # Let the user override the test.
6106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110
test -z "$as_dir" && as_dir=.
6111
for ac_exec_ext in '' $ac_executable_extensions; do
6112
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113
ac_cv_prog_AR="${ac_tool_prefix}ar"
6114
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123
if test -n "$AR"; then
6124
echo "$as_me:$LINENO: result: $AR" >&5
6125
echo "${ECHO_T}$AR" >&6
6127
echo "$as_me:$LINENO: result: no" >&5
6128
echo "${ECHO_T}no" >&6
6132
if test -z "$ac_cv_prog_AR"; then
6134
# Extract the first word of "ar", so it can be a program name with args.
6135
set dummy ar; ac_word=$2
6136
echo "$as_me:$LINENO: checking for $ac_word" >&5
6137
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6138
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6139
echo $ECHO_N "(cached) $ECHO_C" >&6
6141
if test -n "$ac_ct_AR"; then
6142
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148
test -z "$as_dir" && as_dir=.
6149
for ac_exec_ext in '' $ac_executable_extensions; do
6150
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151
ac_cv_prog_ac_ct_AR="ar"
6152
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6161
if test -n "$ac_ct_AR"; then
6162
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6163
echo "${ECHO_T}$ac_ct_AR" >&6
6165
echo "$as_me:$LINENO: result: no" >&5
6166
echo "${ECHO_T}no" >&6
6174
if test -n "$ac_tool_prefix"; then
6175
# Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6176
set dummy ${ac_tool_prefix}ld; ac_word=$2
6177
echo "$as_me:$LINENO: checking for $ac_word" >&5
6178
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6179
if test "${ac_cv_prog_LD+set}" = set; then
6180
echo $ECHO_N "(cached) $ECHO_C" >&6
6182
if test -n "$LD"; then
6183
ac_cv_prog_LD="$LD" # Let the user override the test.
6185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189
test -z "$as_dir" && as_dir=.
6190
for ac_exec_ext in '' $ac_executable_extensions; do
6191
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192
ac_cv_prog_LD="${ac_tool_prefix}ld"
6193
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202
if test -n "$LD"; then
6203
echo "$as_me:$LINENO: result: $LD" >&5
6204
echo "${ECHO_T}$LD" >&6
6206
echo "$as_me:$LINENO: result: no" >&5
6207
echo "${ECHO_T}no" >&6
6211
if test -z "$ac_cv_prog_LD"; then
6213
# Extract the first word of "ld", so it can be a program name with args.
6214
set dummy ld; ac_word=$2
6215
echo "$as_me:$LINENO: checking for $ac_word" >&5
6216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
6218
echo $ECHO_N "(cached) $ECHO_C" >&6
6220
if test -n "$ac_ct_LD"; then
6221
ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227
test -z "$as_dir" && as_dir=.
6228
for ac_exec_ext in '' $ac_executable_extensions; do
6229
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230
ac_cv_prog_ac_ct_LD="ld"
6231
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239
ac_ct_LD=$ac_cv_prog_ac_ct_LD
6240
if test -n "$ac_ct_LD"; then
6241
echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6242
echo "${ECHO_T}$ac_ct_LD" >&6
6244
echo "$as_me:$LINENO: result: no" >&5
6245
echo "${ECHO_T}no" >&6
6253
if test -n "$ac_tool_prefix"; then
6254
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6255
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6256
echo "$as_me:$LINENO: checking for $ac_word" >&5
6257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258
if test "${ac_cv_prog_RANLIB+set}" = set; then
6259
echo $ECHO_N "(cached) $ECHO_C" >&6
6261
if test -n "$RANLIB"; then
6262
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268
test -z "$as_dir" && as_dir=.
6269
for ac_exec_ext in '' $ac_executable_extensions; do
6270
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6272
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280
RANLIB=$ac_cv_prog_RANLIB
6281
if test -n "$RANLIB"; then
6282
echo "$as_me:$LINENO: result: $RANLIB" >&5
6283
echo "${ECHO_T}$RANLIB" >&6
6285
echo "$as_me:$LINENO: result: no" >&5
6286
echo "${ECHO_T}no" >&6
6290
if test -z "$ac_cv_prog_RANLIB"; then
6291
ac_ct_RANLIB=$RANLIB
6292
# Extract the first word of "ranlib", so it can be a program name with args.
6293
set dummy ranlib; ac_word=$2
6294
echo "$as_me:$LINENO: checking for $ac_word" >&5
6295
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6296
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6297
echo $ECHO_N "(cached) $ECHO_C" >&6
6299
if test -n "$ac_ct_RANLIB"; then
6300
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306
test -z "$as_dir" && as_dir=.
6307
for ac_exec_ext in '' $ac_executable_extensions; do
6308
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309
ac_cv_prog_ac_ct_RANLIB="ranlib"
6310
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6319
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6320
if test -n "$ac_ct_RANLIB"; then
6321
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6322
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6324
echo "$as_me:$LINENO: result: no" >&5
6325
echo "${ECHO_T}no" >&6
6328
RANLIB=$ac_ct_RANLIB
6330
RANLIB="$ac_cv_prog_RANLIB"
6334
# Check whether --enable-shared or --disable-shared was given.
6335
if test "${enable_shared+set}" = set; then
6336
enableval="$enable_shared"
6337
p=${PACKAGE-default}
6339
yes) enable_shared=yes ;;
6340
no) enable_shared=no ;;
6343
# Look at the argument we got. We use all the common list separators.
6344
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6345
for pkg in $enableval; do
6347
if test "X$pkg" = "X$p"; then
6358
# Check whether --enable-static or --disable-static was given.
6359
if test "${enable_static+set}" = set; then
6360
enableval="$enable_static"
6361
p=${PACKAGE-default}
6363
yes) enable_static=yes ;;
6364
no) enable_static=no ;;
6367
# Look at the argument we got. We use all the common list separators.
6368
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6369
for pkg in $enableval; do
6371
if test "X$pkg" = "X$p"; then
6382
# Check whether --enable-fast-install or --disable-fast-install was given.
6383
if test "${enable_fast_install+set}" = set; then
6384
enableval="$enable_fast_install"
6385
p=${PACKAGE-default}
6387
yes) enable_fast_install=yes ;;
6388
no) enable_fast_install=no ;;
6390
enable_fast_install=no
6391
# Look at the argument we got. We use all the common list separators.
6392
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6393
for pkg in $enableval; do
6395
if test "X$pkg" = "X$p"; then
6396
enable_fast_install=yes
6403
enable_fast_install=yes
6406
# Make sure we can run config.sub.
6407
$ac_config_sub sun4 >/dev/null 2>&1 ||
6408
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6409
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6410
{ (exit 1); exit 1; }; }
6412
echo "$as_me:$LINENO: checking build system type" >&5
6413
echo $ECHO_N "checking build system type... $ECHO_C" >&6
6414
if test "${ac_cv_build+set}" = set; then
6415
echo $ECHO_N "(cached) $ECHO_C" >&6
6417
ac_cv_build_alias=$build_alias
6418
test -z "$ac_cv_build_alias" &&
6419
ac_cv_build_alias=`$ac_config_guess`
6420
test -z "$ac_cv_build_alias" &&
6421
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6422
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6423
{ (exit 1); exit 1; }; }
6424
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
6425
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6426
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6427
{ (exit 1); exit 1; }; }
6430
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6431
echo "${ECHO_T}$ac_cv_build" >&6
6433
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6434
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6435
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6438
echo "$as_me:$LINENO: checking host system type" >&5
6439
echo $ECHO_N "checking host system type... $ECHO_C" >&6
6440
if test "${ac_cv_host+set}" = set; then
6441
echo $ECHO_N "(cached) $ECHO_C" >&6
6443
ac_cv_host_alias=$host_alias
6444
test -z "$ac_cv_host_alias" &&
6445
ac_cv_host_alias=$ac_cv_build_alias
6446
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6447
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6448
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6449
{ (exit 1); exit 1; }; }
6452
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6453
echo "${ECHO_T}$ac_cv_host" >&6
6455
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6456
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6457
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6460
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6461
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6462
if test "${lt_cv_path_SED+set}" = set; then
6463
echo $ECHO_N "(cached) $ECHO_C" >&6
6465
# Loop through the user's path and test for sed and gsed.
6466
# Then use that list of sed's as ones to test for truncation.
6467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471
test -z "$as_dir" && as_dir=.
6472
for lt_ac_prog in sed gsed; do
6473
for ac_exec_ext in '' $ac_executable_extensions; do
6474
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6475
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6482
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6483
# along with /bin/sed that truncates output.
6484
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6485
test ! -f $lt_ac_sed && break
6486
cat /dev/null > conftest.in
6488
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6489
# Check for GNU sed and select it if it is found.
6490
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6491
lt_cv_path_SED=$lt_ac_sed
6495
cat conftest.in conftest.in >conftest.tmp
6496
mv conftest.tmp conftest.in
6497
cp conftest.in conftest.nl
6499
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6500
cmp -s conftest.out conftest.nl || break
6501
# 10000 chars as input seems more than enough
6502
test $lt_ac_count -gt 10 && break
6503
lt_ac_count=`expr $lt_ac_count + 1`
6504
if test $lt_ac_count -gt $lt_ac_max; then
6505
lt_ac_max=$lt_ac_count
6506
lt_cv_path_SED=$lt_ac_sed
6514
echo "$as_me:$LINENO: result: $SED" >&5
6515
echo "${ECHO_T}$SED" >&6
6518
# Check whether --with-gnu-ld or --without-gnu-ld was given.
6519
if test "${with_gnu_ld+set}" = set; then
6520
withval="$with_gnu_ld"
6521
test "$withval" = no || with_gnu_ld=yes
6526
if test "$GCC" = yes; then
6527
# Check if gcc -print-prog-name=ld gives a path.
6528
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6529
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6532
# gcc leaves a trailing carriage return which upsets mingw
6533
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6535
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6538
# Accept absolute paths.
6540
re_direlt='/[^/][^/]*/\.\./'
6541
# Canonicalize the pathname of ld
6542
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6543
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6544
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6546
test -z "$LD" && LD="$ac_prog"
6549
# If it fails, then pretend we aren't using GCC.
6553
# If it is relative, then search for the first ld in PATH.
6557
elif test "$with_gnu_ld" = yes; then
6558
echo "$as_me:$LINENO: checking for GNU ld" >&5
6559
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6561
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6562
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6564
if test "${lt_cv_path_LD+set}" = set; then
6565
echo $ECHO_N "(cached) $ECHO_C" >&6
6567
if test -z "$LD"; then
6568
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6569
for ac_dir in $PATH; do
6571
test -z "$ac_dir" && ac_dir=.
6572
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6573
lt_cv_path_LD="$ac_dir/$ac_prog"
6574
# Check to see if the program is GNU ld. I'd rather use --version,
6575
# but apparently some GNU ld's only accept -v.
6576
# Break only if it was the GNU/non-GNU ld that we prefer.
6577
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6578
*GNU* | *'with BFD'*)
6579
test "$with_gnu_ld" != no && break
6582
test "$with_gnu_ld" != yes && break
6589
lt_cv_path_LD="$LD" # Let the user override the test with a path.
6594
if test -n "$LD"; then
6595
echo "$as_me:$LINENO: result: $LD" >&5
6596
echo "${ECHO_T}$LD" >&6
6598
echo "$as_me:$LINENO: result: no" >&5
6599
echo "${ECHO_T}no" >&6
6601
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6602
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6603
{ (exit 1); exit 1; }; }
6604
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6605
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6606
if test "${lt_cv_prog_gnu_ld+set}" = set; then
6607
echo $ECHO_N "(cached) $ECHO_C" >&6
6609
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
6610
case `$LD -v 2>&1 </dev/null` in
6611
*GNU* | *'with BFD'*)
6612
lt_cv_prog_gnu_ld=yes
6615
lt_cv_prog_gnu_ld=no
6619
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6620
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6621
with_gnu_ld=$lt_cv_prog_gnu_ld
6624
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6625
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6626
if test "${lt_cv_ld_reload_flag+set}" = set; then
6627
echo $ECHO_N "(cached) $ECHO_C" >&6
6629
lt_cv_ld_reload_flag='-r'
6631
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6632
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6633
reload_flag=$lt_cv_ld_reload_flag
6634
case $reload_flag in
6636
*) reload_flag=" $reload_flag" ;;
6638
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6640
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6641
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6642
if test "${lt_cv_path_NM+set}" = set; then
6643
echo $ECHO_N "(cached) $ECHO_C" >&6
6645
if test -n "$NM"; then
6646
# Let the user override the test.
6649
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6650
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6652
test -z "$ac_dir" && ac_dir=.
6653
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6654
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6655
# Check to see if the nm accepts a BSD-compat flag.
6656
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6657
# nm: unknown option "B" ignored
6658
# Tru64's nm complains that /dev/null is an invalid object file
6659
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6660
*/dev/null* | *'Invalid file or object type'*)
6661
lt_cv_path_NM="$tmp_nm -B"
6665
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6667
lt_cv_path_NM="$tmp_nm -p"
6671
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6672
continue # so that we can try to find one that supports BSD flags
6679
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6682
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6683
echo "${ECHO_T}$lt_cv_path_NM" >&6
6686
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6687
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6688
if test "${lt_cv_deplibs_check_method+set}" = set; then
6689
echo $ECHO_N "(cached) $ECHO_C" >&6
6691
lt_cv_file_magic_cmd='$MAGIC_CMD'
6692
lt_cv_file_magic_test_file=
6693
lt_cv_deplibs_check_method='unknown'
6694
# Need to set the preceding variable on all platforms that support
6695
# interlibrary dependencies.
6696
# 'none' -- dependencies not supported.
6697
# `unknown' -- same as none, but documents that we really don't know.
6698
# 'pass_all' -- all dependencies passed with no checks.
6699
# 'test_compile' -- check by making test program.
6700
# 'file_magic [[regex]]' -- check by looking for files in library path
6701
# which responds to the $file_magic_cmd with a given extended regex.
6702
# If you have `file' or equivalent on your system and you're not sure
6703
# whether `pass_all' will *always* work, you probably want this one.
6707
lt_cv_deplibs_check_method=pass_all
6711
lt_cv_deplibs_check_method=pass_all
6715
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6716
lt_cv_file_magic_cmd='/usr/bin/file -L'
6717
lt_cv_file_magic_test_file=/shlib/libc.so
6721
# func_win32_libid is a shell function defined in ltmain.sh
6722
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6723
lt_cv_file_magic_cmd='func_win32_libid'
6727
# Base MSYS/MinGW do not provide the 'file' command needed by
6728
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
6729
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6730
lt_cv_file_magic_cmd='$OBJDUMP -f'
6733
darwin* | rhapsody*)
6734
lt_cv_deplibs_check_method=pass_all
6737
freebsd* | kfreebsd*-gnu)
6738
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6741
# Not sure whether the presence of OpenBSD here was a mistake.
6742
# Let's accept both of them until this is cleared up.
6743
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
6744
lt_cv_file_magic_cmd=/usr/bin/file
6745
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6749
lt_cv_deplibs_check_method=pass_all
6754
lt_cv_deplibs_check_method=pass_all
6757
hpux10.20* | hpux11*)
6758
lt_cv_file_magic_cmd=/usr/bin/file
6761
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6762
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6765
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]'
6766
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6769
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6770
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6775
irix5* | irix6* | nonstopux*)
6777
*-32|*"-32 ") libmagic=32-bit;;
6778
*-n32|*"-n32 ") libmagic=N32;;
6779
*-64|*"-64 ") libmagic=64-bit;;
6780
*) libmagic=never-match;;
6782
lt_cv_deplibs_check_method=pass_all
6785
# This must be Linux ELF.
6787
lt_cv_deplibs_check_method=pass_all
6790
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6791
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6792
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6794
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6799
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6800
lt_cv_file_magic_cmd=/usr/bin/file
6801
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6805
lt_cv_deplibs_check_method=unknown
6809
lt_cv_file_magic_cmd=/usr/bin/file
6810
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6811
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6812
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6814
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6818
osf3* | osf4* | osf5*)
6819
lt_cv_deplibs_check_method=pass_all
6823
lt_cv_deplibs_check_method=pass_all
6827
lt_cv_deplibs_check_method=pass_all
6830
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6831
case $host_vendor in
6833
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]'
6834
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6837
lt_cv_deplibs_check_method=pass_all
6840
lt_cv_file_magic_cmd='/bin/file'
6841
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6844
lt_cv_file_magic_cmd='/bin/file'
6845
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6846
lt_cv_file_magic_test_file=/lib/libc.so
6849
lt_cv_deplibs_check_method=pass_all
6854
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6855
lt_cv_deplibs_check_method=pass_all
6860
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6861
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6862
file_magic_cmd=$lt_cv_file_magic_cmd
6863
deplibs_check_method=$lt_cv_deplibs_check_method
6864
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6869
# If no C compiler was specified, use CC.
6872
# Allow CC to be a program name with arguments.
6875
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6876
if test "${enable_libtool_lock+set}" = set; then
6877
enableval="$enable_libtool_lock"
6880
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6882
# Some flags need to be propagated to the compiler or linker for good
6886
# Find out which ABI we are using.
6887
echo 'int i;' > conftest.$ac_ext
6888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889
(eval $ac_compile) 2>&5
6891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892
(exit $ac_status); }; then
6893
case `/usr/bin/file conftest.$ac_objext` in
6905
# Find out which ABI we are using.
6906
echo '#line __oline__ "configure"' > conftest.$ac_ext
6907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6908
(eval $ac_compile) 2>&5
6910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911
(exit $ac_status); }; then
6912
if test "$lt_cv_prog_gnu_ld" = yes; then
6913
case `/usr/bin/file conftest.$ac_objext` in
6915
LD="${LD-ld} -melf32bsmip"
6918
LD="${LD-ld} -melf32bmipn32"
6921
LD="${LD-ld} -melf64bmip"
6925
case `/usr/bin/file conftest.$ac_objext` in
6941
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6942
# Find out which ABI we are using.
6943
echo 'int i;' > conftest.$ac_ext
6944
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6945
(eval $ac_compile) 2>&5
6947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948
(exit $ac_status); }; then
6949
case "`/usr/bin/file conftest.o`" in
6953
LD="${LD-ld} -m elf_i386"
6955
ppc64-*linux*|powerpc64-*linux*)
6956
LD="${LD-ld} -m elf32ppclinux"
6959
LD="${LD-ld} -m elf_s390"
6962
LD="${LD-ld} -m elf32_sparc"
6969
LD="${LD-ld} -m elf_x86_64"
6971
ppc*-*linux*|powerpc*-*linux*)
6972
LD="${LD-ld} -m elf64ppc"
6975
LD="${LD-ld} -m elf64_s390"
6978
LD="${LD-ld} -m elf64_sparc"
6988
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6989
SAVE_CFLAGS="$CFLAGS"
6990
CFLAGS="$CFLAGS -belf"
6991
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6992
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6993
if test "${lt_cv_cc_needs_belf+set}" = set; then
6994
echo $ECHO_N "(cached) $ECHO_C" >&6
6997
ac_cpp='$CPP $CPPFLAGS'
6998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7002
cat >conftest.$ac_ext <<_ACEOF
7005
cat confdefs.h >>conftest.$ac_ext
7006
cat >>conftest.$ac_ext <<_ACEOF
7007
/* end confdefs.h. */
7017
rm -f conftest.$ac_objext conftest$ac_exeext
7018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019
(eval $ac_link) 2>conftest.er1
7021
grep -v '^ *+' conftest.er1 >conftest.err
7023
cat conftest.err >&5
7024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025
(exit $ac_status); } &&
7026
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7027
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031
(exit $ac_status); }; } &&
7032
{ ac_try='test -s conftest$ac_exeext'
7033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037
(exit $ac_status); }; }; then
7038
lt_cv_cc_needs_belf=yes
7040
echo "$as_me: failed program was:" >&5
7041
sed 's/^/| /' conftest.$ac_ext >&5
7043
lt_cv_cc_needs_belf=no
7045
rm -f conftest.err conftest.$ac_objext \
7046
conftest$ac_exeext conftest.$ac_ext
7048
ac_cpp='$CPP $CPPFLAGS'
7049
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7055
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7056
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7057
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7058
CFLAGS="$SAVE_CFLAGS"
7064
need_locks="$enable_libtool_lock"
7068
for ac_header in dlfcn.h
7070
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7072
echo "$as_me:$LINENO: checking for $ac_header" >&5
7073
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7074
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7075
echo $ECHO_N "(cached) $ECHO_C" >&6
7077
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7078
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7080
# Is the header compilable?
7081
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7082
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7083
cat >conftest.$ac_ext <<_ACEOF
7086
cat confdefs.h >>conftest.$ac_ext
7087
cat >>conftest.$ac_ext <<_ACEOF
7088
/* end confdefs.h. */
7089
$ac_includes_default
7090
@%:@include <$ac_header>
7092
rm -f conftest.$ac_objext
7093
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094
(eval $ac_compile) 2>conftest.er1
7096
grep -v '^ *+' conftest.er1 >conftest.err
7098
cat conftest.err >&5
7099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100
(exit $ac_status); } &&
7101
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106
(exit $ac_status); }; } &&
7107
{ ac_try='test -s conftest.$ac_objext'
7108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112
(exit $ac_status); }; }; then
7113
ac_header_compiler=yes
7115
echo "$as_me: failed program was:" >&5
7116
sed 's/^/| /' conftest.$ac_ext >&5
7118
ac_header_compiler=no
7120
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7122
echo "${ECHO_T}$ac_header_compiler" >&6
7124
# Is the header present?
7125
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7126
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7127
cat >conftest.$ac_ext <<_ACEOF
7130
cat confdefs.h >>conftest.$ac_ext
7131
cat >>conftest.$ac_ext <<_ACEOF
7132
/* end confdefs.h. */
7133
@%:@include <$ac_header>
7135
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7136
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7138
grep -v '^ *+' conftest.er1 >conftest.err
7140
cat conftest.err >&5
7141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142
(exit $ac_status); } >/dev/null; then
7143
if test -s conftest.err; then
7144
ac_cpp_err=$ac_c_preproc_warn_flag
7145
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7152
if test -z "$ac_cpp_err"; then
7153
ac_header_preproc=yes
7155
echo "$as_me: failed program was:" >&5
7156
sed 's/^/| /' conftest.$ac_ext >&5
7158
ac_header_preproc=no
7160
rm -f conftest.err conftest.$ac_ext
7161
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7162
echo "${ECHO_T}$ac_header_preproc" >&6
7164
# So? What about this header?
7165
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7167
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7168
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7169
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7170
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7171
ac_header_preproc=yes
7174
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7175
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7176
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7177
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7178
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7179
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7180
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7181
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7182
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7183
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7184
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7185
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7188
@%:@@%:@ ---------------------------------- @%:@@%:@
7189
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
7190
@%:@@%:@ ---------------------------------- @%:@@%:@
7193
sed "s/^/$as_me: WARNING: /" >&2
7196
echo "$as_me:$LINENO: checking for $ac_header" >&5
7197
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7198
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7199
echo $ECHO_N "(cached) $ECHO_C" >&6
7201
eval "$as_ac_Header=\$ac_header_preproc"
7203
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7204
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7207
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7208
cat >>confdefs.h <<_ACEOF
7209
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217
ac_cpp='$CXXCPP $CPPFLAGS'
7218
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7221
if test -n "$ac_tool_prefix"; then
7222
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7224
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7225
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7226
echo "$as_me:$LINENO: checking for $ac_word" >&5
7227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228
if test "${ac_cv_prog_CXX+set}" = set; then
7229
echo $ECHO_N "(cached) $ECHO_C" >&6
7231
if test -n "$CXX"; then
7232
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238
test -z "$as_dir" && as_dir=.
7239
for ac_exec_ext in '' $ac_executable_extensions; do
7240
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7242
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251
if test -n "$CXX"; then
7252
echo "$as_me:$LINENO: result: $CXX" >&5
7253
echo "${ECHO_T}$CXX" >&6
7255
echo "$as_me:$LINENO: result: no" >&5
7256
echo "${ECHO_T}no" >&6
7259
test -n "$CXX" && break
7262
if test -z "$CXX"; then
7264
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7266
# Extract the first word of "$ac_prog", so it can be a program name with args.
7267
set dummy $ac_prog; ac_word=$2
7268
echo "$as_me:$LINENO: checking for $ac_word" >&5
7269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7271
echo $ECHO_N "(cached) $ECHO_C" >&6
7273
if test -n "$ac_ct_CXX"; then
7274
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280
test -z "$as_dir" && as_dir=.
7281
for ac_exec_ext in '' $ac_executable_extensions; do
7282
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283
ac_cv_prog_ac_ct_CXX="$ac_prog"
7284
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7293
if test -n "$ac_ct_CXX"; then
7294
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7295
echo "${ECHO_T}$ac_ct_CXX" >&6
7297
echo "$as_me:$LINENO: result: no" >&5
7298
echo "${ECHO_T}no" >&6
7301
test -n "$ac_ct_CXX" && break
7303
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7309
# Provide some information about the compiler.
7310
echo "$as_me:$LINENO:" \
7311
"checking for C++ compiler version" >&5
7312
ac_compiler=`set X $ac_compile; echo $2`
7313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7314
(eval $ac_compiler --version </dev/null >&5) 2>&5
7316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317
(exit $ac_status); }
7318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7319
(eval $ac_compiler -v </dev/null >&5) 2>&5
7321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322
(exit $ac_status); }
7323
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7324
(eval $ac_compiler -V </dev/null >&5) 2>&5
7326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327
(exit $ac_status); }
7329
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7330
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7331
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7332
echo $ECHO_N "(cached) $ECHO_C" >&6
7334
cat >conftest.$ac_ext <<_ACEOF
7337
cat confdefs.h >>conftest.$ac_ext
7338
cat >>conftest.$ac_ext <<_ACEOF
7339
/* end confdefs.h. */
7352
rm -f conftest.$ac_objext
7353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7354
(eval $ac_compile) 2>conftest.er1
7356
grep -v '^ *+' conftest.er1 >conftest.err
7358
cat conftest.err >&5
7359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360
(exit $ac_status); } &&
7361
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366
(exit $ac_status); }; } &&
7367
{ ac_try='test -s conftest.$ac_objext'
7368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372
(exit $ac_status); }; }; then
7375
echo "$as_me: failed program was:" >&5
7376
sed 's/^/| /' conftest.$ac_ext >&5
7380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7381
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7384
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7385
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7386
GXX=`test $ac_compiler_gnu = yes && echo yes`
7387
ac_test_CXXFLAGS=${CXXFLAGS+set}
7388
ac_save_CXXFLAGS=$CXXFLAGS
7390
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7391
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7392
if test "${ac_cv_prog_cxx_g+set}" = set; then
7393
echo $ECHO_N "(cached) $ECHO_C" >&6
7395
cat >conftest.$ac_ext <<_ACEOF
7398
cat confdefs.h >>conftest.$ac_ext
7399
cat >>conftest.$ac_ext <<_ACEOF
7400
/* end confdefs.h. */
7410
rm -f conftest.$ac_objext
7411
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412
(eval $ac_compile) 2>conftest.er1
7414
grep -v '^ *+' conftest.er1 >conftest.err
7416
cat conftest.err >&5
7417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418
(exit $ac_status); } &&
7419
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424
(exit $ac_status); }; } &&
7425
{ ac_try='test -s conftest.$ac_objext'
7426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430
(exit $ac_status); }; }; then
7431
ac_cv_prog_cxx_g=yes
7433
echo "$as_me: failed program was:" >&5
7434
sed 's/^/| /' conftest.$ac_ext >&5
7438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7440
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7441
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7442
if test "$ac_test_CXXFLAGS" = set; then
7443
CXXFLAGS=$ac_save_CXXFLAGS
7444
elif test $ac_cv_prog_cxx_g = yes; then
7445
if test "$GXX" = yes; then
7451
if test "$GXX" = yes; then
7457
for ac_declaration in \
7459
'extern "C" void std::exit (int) throw (); using std::exit;' \
7460
'extern "C" void std::exit (int); using std::exit;' \
7461
'extern "C" void exit (int) throw ();' \
7462
'extern "C" void exit (int);' \
7465
cat >conftest.$ac_ext <<_ACEOF
7468
cat confdefs.h >>conftest.$ac_ext
7469
cat >>conftest.$ac_ext <<_ACEOF
7470
/* end confdefs.h. */
7472
@%:@include <stdlib.h>
7481
rm -f conftest.$ac_objext
7482
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483
(eval $ac_compile) 2>conftest.er1
7485
grep -v '^ *+' conftest.er1 >conftest.err
7487
cat conftest.err >&5
7488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489
(exit $ac_status); } &&
7490
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495
(exit $ac_status); }; } &&
7496
{ ac_try='test -s conftest.$ac_objext'
7497
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501
(exit $ac_status); }; }; then
7504
echo "$as_me: failed program was:" >&5
7505
sed 's/^/| /' conftest.$ac_ext >&5
7509
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510
cat >conftest.$ac_ext <<_ACEOF
7513
cat confdefs.h >>conftest.$ac_ext
7514
cat >>conftest.$ac_ext <<_ACEOF
7515
/* end confdefs.h. */
7525
rm -f conftest.$ac_objext
7526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527
(eval $ac_compile) 2>conftest.er1
7529
grep -v '^ *+' conftest.er1 >conftest.err
7531
cat conftest.err >&5
7532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533
(exit $ac_status); } &&
7534
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7535
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539
(exit $ac_status); }; } &&
7540
{ ac_try='test -s conftest.$ac_objext'
7541
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545
(exit $ac_status); }; }; then
7548
echo "$as_me: failed program was:" >&5
7549
sed 's/^/| /' conftest.$ac_ext >&5
7552
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7555
if test -n "$ac_declaration"; then
7556
echo '#ifdef __cplusplus' >>confdefs.h
7557
echo $ac_declaration >>confdefs.h
7558
echo '#endif' >>confdefs.h
7562
ac_cpp='$CXXCPP $CPPFLAGS'
7563
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7567
depcc="$CXX" am_compiler_list=
7569
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7570
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7571
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7572
echo $ECHO_N "(cached) $ECHO_C" >&6
7574
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7575
# We make a subdir and do the tests there. Otherwise we can end up
7576
# making bogus files that we don't know about and never remove. For
7577
# instance it was reported that on HP-UX the gcc test will end up
7578
# making a dummy file named `D' -- because `-MD' means `put the output
7581
# Copy depcomp to subdir because otherwise we won't find it if we're
7582
# using a relative directory.
7583
cp "$am_depcomp" conftest.dir
7585
# We will build objects and dependencies in a subdirectory because
7586
# it helps to detect inapplicable dependency modes. For instance
7587
# both Tru64's cc and ICC support -MD to output dependencies as a
7588
# side effect of compilation, but ICC will put the dependencies in
7589
# the current directory while Tru64 will put them in the object
7593
am_cv_CXX_dependencies_compiler_type=none
7594
if test "$am_compiler_list" = ""; then
7595
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7597
for depmode in $am_compiler_list; do
7598
# Setup a source with many dependencies, because some compilers
7599
# like to wrap large dependency lists on column 80 (with \), and
7600
# we should not choose a depcomp mode which is confused by this.
7602
# We need to recreate these files for each test, as the compiler may
7603
# overwrite some of them when testing with obscure command lines.
7604
# This happens at least with the AIX C compiler.
7606
for i in 1 2 3 4 5 6; do
7607
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7608
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7609
# Solaris 8's {/usr,}/bin/sh.
7610
touch sub/conftst$i.h
7612
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7616
# after this tag, mechanisms are not by side-effect, so they'll
7617
# only be used when explicitly requested
7618
if test "x$enable_dependency_tracking" = xyes; then
7626
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7627
# mode. It turns out that the SunPro C++ compiler does not properly
7628
# handle `-M -o', and we need to detect this.
7629
if depmode=$depmode \
7630
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7631
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7632
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7633
>/dev/null 2>conftest.err &&
7634
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7635
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7636
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7637
# icc doesn't choke on unknown options, it will just issue warnings
7638
# or remarks (even with -Werror). So we grep stderr for any message
7639
# that says an option was ignored or not supported.
7640
# When given -MP, icc 7.0 and 7.1 complain thusly:
7641
# icc: Command line warning: ignoring option '-M'; no argument required
7642
# The diagnosis changed in icc 8.0:
7643
# icc: Command line remark: option '-MP' not supported
7644
if (grep 'ignoring option' conftest.err ||
7645
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7646
am_cv_CXX_dependencies_compiler_type=$depmode
7655
am_cv_CXX_dependencies_compiler_type=none
7659
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7660
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7661
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7666
test "x$enable_dependency_tracking" != xno \
7667
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7668
am__fastdepCXX_TRUE=
7669
am__fastdepCXX_FALSE='#'
7671
am__fastdepCXX_TRUE='#'
7672
am__fastdepCXX_FALSE=
7677
ac_cpp='$CXXCPP $CPPFLAGS'
7678
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7680
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7681
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7682
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7683
if test -z "$CXXCPP"; then
7684
if test "${ac_cv_prog_CXXCPP+set}" = set; then
7685
echo $ECHO_N "(cached) $ECHO_C" >&6
7687
# Double quotes because CXXCPP needs to be expanded
7688
for CXXCPP in "$CXX -E" "/lib/cpp"
7691
for ac_cxx_preproc_warn_flag in '' yes
7693
# Use a header file that comes with gcc, so configuring glibc
7694
# with a fresh cross-compiler works.
7695
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7696
# <limits.h> exists even on freestanding compilers.
7697
# On the NeXT, cc -E runs the code through the compiler's parser,
7698
# not just through cpp. "Syntax error" is here to catch this case.
7699
cat >conftest.$ac_ext <<_ACEOF
7702
cat confdefs.h >>conftest.$ac_ext
7703
cat >>conftest.$ac_ext <<_ACEOF
7704
/* end confdefs.h. */
7706
@%:@ include <limits.h>
7708
@%:@ include <assert.h>
7712
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7713
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7715
grep -v '^ *+' conftest.er1 >conftest.err
7717
cat conftest.err >&5
7718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719
(exit $ac_status); } >/dev/null; then
7720
if test -s conftest.err; then
7721
ac_cpp_err=$ac_cxx_preproc_warn_flag
7722
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7729
if test -z "$ac_cpp_err"; then
7732
echo "$as_me: failed program was:" >&5
7733
sed 's/^/| /' conftest.$ac_ext >&5
7735
# Broken: fails on valid input.
7738
rm -f conftest.err conftest.$ac_ext
7740
# OK, works on sane cases. Now check whether non-existent headers
7741
# can be detected and how.
7742
cat >conftest.$ac_ext <<_ACEOF
7745
cat confdefs.h >>conftest.$ac_ext
7746
cat >>conftest.$ac_ext <<_ACEOF
7747
/* end confdefs.h. */
7748
@%:@include <ac_nonexistent.h>
7750
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7751
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7753
grep -v '^ *+' conftest.er1 >conftest.err
7755
cat conftest.err >&5
7756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757
(exit $ac_status); } >/dev/null; then
7758
if test -s conftest.err; then
7759
ac_cpp_err=$ac_cxx_preproc_warn_flag
7760
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7767
if test -z "$ac_cpp_err"; then
7768
# Broken: success on invalid input.
7771
echo "$as_me: failed program was:" >&5
7772
sed 's/^/| /' conftest.$ac_ext >&5
7774
# Passes both tests.
7778
rm -f conftest.err conftest.$ac_ext
7781
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7782
rm -f conftest.err conftest.$ac_ext
7783
if $ac_preproc_ok; then
7788
ac_cv_prog_CXXCPP=$CXXCPP
7791
CXXCPP=$ac_cv_prog_CXXCPP
7793
ac_cv_prog_CXXCPP=$CXXCPP
7795
echo "$as_me:$LINENO: result: $CXXCPP" >&5
7796
echo "${ECHO_T}$CXXCPP" >&6
7798
for ac_cxx_preproc_warn_flag in '' yes
7800
# Use a header file that comes with gcc, so configuring glibc
7801
# with a fresh cross-compiler works.
7802
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7803
# <limits.h> exists even on freestanding compilers.
7804
# On the NeXT, cc -E runs the code through the compiler's parser,
7805
# not just through cpp. "Syntax error" is here to catch this case.
7806
cat >conftest.$ac_ext <<_ACEOF
7809
cat confdefs.h >>conftest.$ac_ext
7810
cat >>conftest.$ac_ext <<_ACEOF
7811
/* end confdefs.h. */
7813
@%:@ include <limits.h>
7815
@%:@ include <assert.h>
7819
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7820
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7822
grep -v '^ *+' conftest.er1 >conftest.err
7824
cat conftest.err >&5
7825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826
(exit $ac_status); } >/dev/null; then
7827
if test -s conftest.err; then
7828
ac_cpp_err=$ac_cxx_preproc_warn_flag
7829
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7836
if test -z "$ac_cpp_err"; then
7839
echo "$as_me: failed program was:" >&5
7840
sed 's/^/| /' conftest.$ac_ext >&5
7842
# Broken: fails on valid input.
7845
rm -f conftest.err conftest.$ac_ext
7847
# OK, works on sane cases. Now check whether non-existent headers
7848
# can be detected and how.
7849
cat >conftest.$ac_ext <<_ACEOF
7852
cat confdefs.h >>conftest.$ac_ext
7853
cat >>conftest.$ac_ext <<_ACEOF
7854
/* end confdefs.h. */
7855
@%:@include <ac_nonexistent.h>
7857
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7858
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7860
grep -v '^ *+' conftest.er1 >conftest.err
7862
cat conftest.err >&5
7863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864
(exit $ac_status); } >/dev/null; then
7865
if test -s conftest.err; then
7866
ac_cpp_err=$ac_cxx_preproc_warn_flag
7867
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7874
if test -z "$ac_cpp_err"; then
7875
# Broken: success on invalid input.
7878
echo "$as_me: failed program was:" >&5
7879
sed 's/^/| /' conftest.$ac_ext >&5
7881
# Passes both tests.
7885
rm -f conftest.err conftest.$ac_ext
7888
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7889
rm -f conftest.err conftest.$ac_ext
7890
if $ac_preproc_ok; then
7893
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7894
See \`config.log' for more details." >&5
7895
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7896
See \`config.log' for more details." >&2;}
7897
{ (exit 1); exit 1; }; }
7901
ac_cpp='$CXXCPP $CPPFLAGS'
7902
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7908
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7909
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7911
if test -n "$ac_tool_prefix"; then
7912
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7914
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7915
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7916
echo "$as_me:$LINENO: checking for $ac_word" >&5
7917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7918
if test "${ac_cv_prog_F77+set}" = set; then
7919
echo $ECHO_N "(cached) $ECHO_C" >&6
7921
if test -n "$F77"; then
7922
ac_cv_prog_F77="$F77" # Let the user override the test.
7924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928
test -z "$as_dir" && as_dir=.
7929
for ac_exec_ext in '' $ac_executable_extensions; do
7930
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7932
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7941
if test -n "$F77"; then
7942
echo "$as_me:$LINENO: result: $F77" >&5
7943
echo "${ECHO_T}$F77" >&6
7945
echo "$as_me:$LINENO: result: no" >&5
7946
echo "${ECHO_T}no" >&6
7949
test -n "$F77" && break
7952
if test -z "$F77"; then
7954
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7956
# Extract the first word of "$ac_prog", so it can be a program name with args.
7957
set dummy $ac_prog; ac_word=$2
7958
echo "$as_me:$LINENO: checking for $ac_word" >&5
7959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7960
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7961
echo $ECHO_N "(cached) $ECHO_C" >&6
7963
if test -n "$ac_ct_F77"; then
7964
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970
test -z "$as_dir" && as_dir=.
7971
for ac_exec_ext in '' $ac_executable_extensions; do
7972
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973
ac_cv_prog_ac_ct_F77="$ac_prog"
7974
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7982
ac_ct_F77=$ac_cv_prog_ac_ct_F77
7983
if test -n "$ac_ct_F77"; then
7984
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7985
echo "${ECHO_T}$ac_ct_F77" >&6
7987
echo "$as_me:$LINENO: result: no" >&5
7988
echo "${ECHO_T}no" >&6
7991
test -n "$ac_ct_F77" && break
7998
# Provide some information about the compiler.
7999
echo "$as_me:__oline__:" \
8000
"checking for Fortran 77 compiler version" >&5
8001
ac_compiler=`set X $ac_compile; echo $2`
8002
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8003
(eval $ac_compiler --version </dev/null >&5) 2>&5
8005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006
(exit $ac_status); }
8007
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8008
(eval $ac_compiler -v </dev/null >&5) 2>&5
8010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011
(exit $ac_status); }
8012
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8013
(eval $ac_compiler -V </dev/null >&5) 2>&5
8015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016
(exit $ac_status); }
8019
# If we don't use `.F' as extension, the preprocessor is not run on the
8020
# input file. (Note that this only needs to work for GNU compilers.)
8023
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8024
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8025
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8026
echo $ECHO_N "(cached) $ECHO_C" >&6
8028
cat >conftest.$ac_ext <<_ACEOF
8036
rm -f conftest.$ac_objext
8037
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8038
(eval $ac_compile) 2>conftest.er1
8040
grep -v '^ *+' conftest.er1 >conftest.err
8042
cat conftest.err >&5
8043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044
(exit $ac_status); } &&
8045
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
8046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050
(exit $ac_status); }; } &&
8051
{ ac_try='test -s conftest.$ac_objext'
8052
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056
(exit $ac_status); }; }; then
8059
echo "$as_me: failed program was:" >&5
8060
sed 's/^/| /' conftest.$ac_ext >&5
8064
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8065
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8068
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8069
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8071
ac_test_FFLAGS=${FFLAGS+set}
8072
ac_save_FFLAGS=$FFLAGS
8074
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8075
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8076
if test "${ac_cv_prog_f77_g+set}" = set; then
8077
echo $ECHO_N "(cached) $ECHO_C" >&6
8080
cat >conftest.$ac_ext <<_ACEOF
8085
rm -f conftest.$ac_objext
8086
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8087
(eval $ac_compile) 2>conftest.er1
8089
grep -v '^ *+' conftest.er1 >conftest.err
8091
cat conftest.err >&5
8092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093
(exit $ac_status); } &&
8094
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
8095
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099
(exit $ac_status); }; } &&
8100
{ ac_try='test -s conftest.$ac_objext'
8101
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105
(exit $ac_status); }; }; then
8106
ac_cv_prog_f77_g=yes
8108
echo "$as_me: failed program was:" >&5
8109
sed 's/^/| /' conftest.$ac_ext >&5
8113
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8116
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8117
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8118
if test "$ac_test_FFLAGS" = set; then
8119
FFLAGS=$ac_save_FFLAGS
8120
elif test $ac_cv_prog_f77_g = yes; then
8121
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8127
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8134
G77=`test $ac_compiler_gnu = yes && echo yes`
8136
ac_cpp='$CPP $CPPFLAGS'
8137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8143
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8145
# find the maximum length of command line arguments
8146
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8147
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8148
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8149
echo $ECHO_N "(cached) $ECHO_C" >&6
8156
# On DJGPP, this test can blow up pretty badly due to problems in libc
8157
# (any single argument exceeding 2000 bytes causes a buffer overrun
8158
# during glob expansion). Even if it were fixed, the result of this
8159
# check would be larger than it should be.
8160
lt_cv_sys_max_cmd_len=12288; # 12K is about right
8164
# Under GNU Hurd, this test is not required because there is
8165
# no limit to the length of command line arguments.
8166
# Libtool will interpret -1 as no limit whatsoever
8167
lt_cv_sys_max_cmd_len=-1;
8171
# On Win9x/ME, this test blows up -- it succeeds, but takes
8172
# about 5 minutes as the teststring grows exponentially.
8173
# Worse, since 9x/ME are not pre-emptively multitasking,
8174
# you end up with a "frozen" computer, even though with patience
8175
# the test eventually succeeds (with a max line length of 256k).
8176
# Instead, let's just punt: use the minimum linelength reported by
8177
# all of the supported platforms: 8192 (on NT/2K/XP).
8178
lt_cv_sys_max_cmd_len=8192;
8182
# On AmigaOS with pdksh, this test takes hours, literally.
8183
# So we just punt and use a minimum line length of 8192.
8184
lt_cv_sys_max_cmd_len=8192;
8188
# If test is not a shell built-in, we'll probably end up computing a
8189
# maximum length that is only half of the actual maximum length, but
8191
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8192
= "XX$teststring") >/dev/null 2>&1 &&
8193
new_result=`expr "X$teststring" : ".*" 2>&1` &&
8194
lt_cv_sys_max_cmd_len=$new_result &&
8195
test $i != 17 # 1/2 MB should be enough
8198
teststring=$teststring$teststring
8201
# Add a significant safety factor because C++ compilers can tack on massive
8202
# amounts of additional arguments before passing them to the linker.
8203
# It appears as though 1/2 is a usable value.
8204
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8210
if test -n $lt_cv_sys_max_cmd_len ; then
8211
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8212
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8214
echo "$as_me:$LINENO: result: none" >&5
8215
echo "${ECHO_T}none" >&6
8221
# Check for command to grab the raw symbol name followed by C symbol from nm.
8222
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8223
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8224
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8225
echo $ECHO_N "(cached) $ECHO_C" >&6
8228
# These are sane defaults that work on at least a few old systems.
8229
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8231
# Character class describing NM global symbol codes.
8232
symcode='[BCDEGRST]'
8234
# Regexp to match symbols that can be accessed directly from C.
8235
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8237
# Transform the above into a raw symbol and a C symbol.
8238
symxfrm='\1 \2\3 \3'
8240
# Transform an extracted symbol line into a proper C declaration
8241
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8243
# Transform an extracted symbol line into symbol name and symbol address
8244
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'"
8246
# Define system-specific variables.
8251
cygwin* | mingw* | pw32*)
8252
symcode='[ABCDGISTW]'
8254
hpux*) # Its linker distinguishes data from code symbols
8255
if test "$host_cpu" = ia64; then
8256
symcode='[ABCDEGRST]'
8258
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8259
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'"
8262
symcode='[BCDEGRST]'
8265
symcode='[BCDEGQRST]'
8275
# Handle CRLF in mingw tool chain
8279
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8283
# If we're using GNU nm, then use its standard symbol codes.
8284
case `$NM -V 2>&1` in
8285
*GNU* | *'with BFD'*)
8286
symcode='[ABCDGIRSTW]' ;;
8289
# Try without a prefix undercore, then with it.
8290
for ac_symprfx in "" "_"; do
8292
# Write the raw and C identifiers.
8293
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
8295
# Check to see that the pipe works correctly.
8299
cat > conftest.$ac_ext <<EOF
8304
void nm_test_func(){}
8308
int main(){nm_test_var='a';nm_test_func();return(0);}
8311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312
(eval $ac_compile) 2>&5
8314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315
(exit $ac_status); }; then
8316
# Now try to grab the symbols.
8318
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8319
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322
(exit $ac_status); } && test -s "$nlist"; then
8323
# Try sorting and uniquifying the output.
8324
if sort "$nlist" | uniq > "$nlist"T; then
8325
mv -f "$nlist"T "$nlist"
8330
# Make sure that we snagged all the symbols we need.
8331
if grep ' nm_test_var$' "$nlist" >/dev/null; then
8332
if grep ' nm_test_func$' "$nlist" >/dev/null; then
8333
cat <<EOF > conftest.$ac_ext
8339
# Now generate the symbol file.
8340
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8342
cat <<EOF >> conftest.$ac_ext
8343
#if defined (__STDC__) && __STDC__
8344
# define lt_ptr_t void *
8346
# define lt_ptr_t char *
8350
/* The mapping between symbol names and symbols. */
8355
lt_preloaded_symbols[] =
8358
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8359
cat <<\EOF >> conftest.$ac_ext
8367
# Now try linking the two files.
8368
mv conftest.$ac_objext conftstm.$ac_objext
8369
lt_save_LIBS="$LIBS"
8370
lt_save_CFLAGS="$CFLAGS"
8371
LIBS="conftstm.$ac_objext"
8372
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8373
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374
(eval $ac_link) 2>&5
8376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377
(exit $ac_status); } && test -s conftest${ac_exeext}; then
8380
LIBS="$lt_save_LIBS"
8381
CFLAGS="$lt_save_CFLAGS"
8383
echo "cannot find nm_test_func in $nlist" >&5
8386
echo "cannot find nm_test_var in $nlist" >&5
8389
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8392
echo "$progname: failed program was:" >&5
8393
cat conftest.$ac_ext >&5
8395
rm -f conftest* conftst*
8397
# Do not use the global_symbol_pipe unless it works.
8398
if test "$pipe_works" = yes; then
8401
lt_cv_sys_global_symbol_pipe=
8407
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8408
lt_cv_sys_global_symbol_to_cdecl=
8410
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8411
echo "$as_me:$LINENO: result: failed" >&5
8412
echo "${ECHO_T}failed" >&6
8414
echo "$as_me:$LINENO: result: ok" >&5
8415
echo "${ECHO_T}ok" >&6
8418
echo "$as_me:$LINENO: checking for objdir" >&5
8419
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8420
if test "${lt_cv_objdir+set}" = set; then
8421
echo $ECHO_N "(cached) $ECHO_C" >&6
8423
rm -f .libs 2>/dev/null
8424
mkdir .libs 2>/dev/null
8425
if test -d .libs; then
8428
# MS-DOS does not allow filenames that begin with a dot.
8431
rmdir .libs 2>/dev/null
8433
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8434
echo "${ECHO_T}$lt_cv_objdir" >&6
8435
objdir=$lt_cv_objdir
8443
# AIX sometimes has problems with the GCC collect2 program. For some
8444
# reason, if we set the COLLECT_NAMES environment variable, the problems
8445
# vanish in a puff of smoke.
8446
if test "X${COLLECT_NAMES+set}" != Xset; then
8448
export COLLECT_NAMES
8453
# Sed substitution that helps us do robust quoting. It backslashifies
8454
# metacharacters that are still active within double-quoted strings.
8455
Xsed='sed -e s/^X//'
8456
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8458
# Same as above, but do not quote variable references.
8459
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8461
# Sed substitution to delay expansion of an escaped shell variable in a
8462
# double_quote_subst'ed string.
8463
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8465
# Sed substitution to avoid accidental globbing in evaled expressions
8466
no_glob_subst='s/\*/\\\*/g'
8472
default_ofile=libtool
8473
can_build_shared=yes
8475
# All known linkers require a `.a' archive for static linking (except M$VC,
8476
# which needs '.lib').
8478
ltmain="$ac_aux_dir/ltmain.sh"
8479
ofile="$default_ofile"
8480
with_gnu_ld="$lt_cv_prog_gnu_ld"
8482
if test -n "$ac_tool_prefix"; then
8483
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8484
set dummy ${ac_tool_prefix}ar; ac_word=$2
8485
echo "$as_me:$LINENO: checking for $ac_word" >&5
8486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8487
if test "${ac_cv_prog_AR+set}" = set; then
8488
echo $ECHO_N "(cached) $ECHO_C" >&6
8490
if test -n "$AR"; then
8491
ac_cv_prog_AR="$AR" # Let the user override the test.
8493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497
test -z "$as_dir" && as_dir=.
8498
for ac_exec_ext in '' $ac_executable_extensions; do
8499
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500
ac_cv_prog_AR="${ac_tool_prefix}ar"
8501
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8510
if test -n "$AR"; then
8511
echo "$as_me:$LINENO: result: $AR" >&5
8512
echo "${ECHO_T}$AR" >&6
8514
echo "$as_me:$LINENO: result: no" >&5
8515
echo "${ECHO_T}no" >&6
8519
if test -z "$ac_cv_prog_AR"; then
8521
# Extract the first word of "ar", so it can be a program name with args.
8522
set dummy ar; ac_word=$2
8523
echo "$as_me:$LINENO: checking for $ac_word" >&5
8524
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8525
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8526
echo $ECHO_N "(cached) $ECHO_C" >&6
8528
if test -n "$ac_ct_AR"; then
8529
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535
test -z "$as_dir" && as_dir=.
8536
for ac_exec_ext in '' $ac_executable_extensions; do
8537
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8538
ac_cv_prog_ac_ct_AR="ar"
8539
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8548
ac_ct_AR=$ac_cv_prog_ac_ct_AR
8549
if test -n "$ac_ct_AR"; then
8550
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8551
echo "${ECHO_T}$ac_ct_AR" >&6
8553
echo "$as_me:$LINENO: result: no" >&5
8554
echo "${ECHO_T}no" >&6
8562
if test -n "$ac_tool_prefix"; then
8563
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8564
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8565
echo "$as_me:$LINENO: checking for $ac_word" >&5
8566
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8567
if test "${ac_cv_prog_RANLIB+set}" = set; then
8568
echo $ECHO_N "(cached) $ECHO_C" >&6
8570
if test -n "$RANLIB"; then
8571
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577
test -z "$as_dir" && as_dir=.
8578
for ac_exec_ext in '' $ac_executable_extensions; do
8579
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8581
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8589
RANLIB=$ac_cv_prog_RANLIB
8590
if test -n "$RANLIB"; then
8591
echo "$as_me:$LINENO: result: $RANLIB" >&5
8592
echo "${ECHO_T}$RANLIB" >&6
8594
echo "$as_me:$LINENO: result: no" >&5
8595
echo "${ECHO_T}no" >&6
8599
if test -z "$ac_cv_prog_RANLIB"; then
8600
ac_ct_RANLIB=$RANLIB
8601
# Extract the first word of "ranlib", so it can be a program name with args.
8602
set dummy ranlib; ac_word=$2
8603
echo "$as_me:$LINENO: checking for $ac_word" >&5
8604
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8605
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8606
echo $ECHO_N "(cached) $ECHO_C" >&6
8608
if test -n "$ac_ct_RANLIB"; then
8609
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615
test -z "$as_dir" && as_dir=.
8616
for ac_exec_ext in '' $ac_executable_extensions; do
8617
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618
ac_cv_prog_ac_ct_RANLIB="ranlib"
8619
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8625
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8628
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8629
if test -n "$ac_ct_RANLIB"; then
8630
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8631
echo "${ECHO_T}$ac_ct_RANLIB" >&6
8633
echo "$as_me:$LINENO: result: no" >&5
8634
echo "${ECHO_T}no" >&6
8637
RANLIB=$ac_ct_RANLIB
8639
RANLIB="$ac_cv_prog_RANLIB"
8642
if test -n "$ac_tool_prefix"; then
8643
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8644
set dummy ${ac_tool_prefix}strip; ac_word=$2
8645
echo "$as_me:$LINENO: checking for $ac_word" >&5
8646
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8647
if test "${ac_cv_prog_STRIP+set}" = set; then
8648
echo $ECHO_N "(cached) $ECHO_C" >&6
8650
if test -n "$STRIP"; then
8651
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657
test -z "$as_dir" && as_dir=.
8658
for ac_exec_ext in '' $ac_executable_extensions; do
8659
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8661
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8669
STRIP=$ac_cv_prog_STRIP
8670
if test -n "$STRIP"; then
8671
echo "$as_me:$LINENO: result: $STRIP" >&5
8672
echo "${ECHO_T}$STRIP" >&6
8674
echo "$as_me:$LINENO: result: no" >&5
8675
echo "${ECHO_T}no" >&6
8679
if test -z "$ac_cv_prog_STRIP"; then
8681
# Extract the first word of "strip", so it can be a program name with args.
8682
set dummy strip; ac_word=$2
8683
echo "$as_me:$LINENO: checking for $ac_word" >&5
8684
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8685
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8686
echo $ECHO_N "(cached) $ECHO_C" >&6
8688
if test -n "$ac_ct_STRIP"; then
8689
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695
test -z "$as_dir" && as_dir=.
8696
for ac_exec_ext in '' $ac_executable_extensions; do
8697
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698
ac_cv_prog_ac_ct_STRIP="strip"
8699
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8708
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8709
if test -n "$ac_ct_STRIP"; then
8710
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8711
echo "${ECHO_T}$ac_ct_STRIP" >&6
8713
echo "$as_me:$LINENO: result: no" >&5
8714
echo "${ECHO_T}no" >&6
8719
STRIP="$ac_cv_prog_STRIP"
8724
old_CFLAGS="$CFLAGS"
8726
# Set sane defaults for various variables
8727
test -z "$AR" && AR=ar
8728
test -z "$AR_FLAGS" && AR_FLAGS=cru
8729
test -z "$AS" && AS=as
8730
test -z "$CC" && CC=cc
8731
test -z "$LTCC" && LTCC=$CC
8732
test -z "$DLLTOOL" && DLLTOOL=dlltool
8733
test -z "$LD" && LD=ld
8734
test -z "$LN_S" && LN_S="ln -s"
8735
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8736
test -z "$NM" && NM=nm
8737
test -z "$SED" && SED=sed
8738
test -z "$OBJDUMP" && OBJDUMP=objdump
8739
test -z "$RANLIB" && RANLIB=:
8740
test -z "$STRIP" && STRIP=:
8741
test -z "$ac_objext" && ac_objext=o
8743
# Determine commands to create old-style static archives.
8744
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8745
old_postinstall_cmds='chmod 644 $oldlib'
8746
old_postuninstall_cmds=
8748
if test -n "$RANLIB"; then
8751
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8754
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8757
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8760
# Only perform the check for file, if the check method requires it
8761
case $deplibs_check_method in
8763
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8764
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8765
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8766
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8767
echo $ECHO_N "(cached) $ECHO_C" >&6
8771
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8774
lt_save_MAGIC_CMD="$MAGIC_CMD"
8775
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8776
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8777
for ac_dir in $ac_dummy; do
8779
test -z "$ac_dir" && ac_dir=.
8780
if test -f $ac_dir/${ac_tool_prefix}file; then
8781
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8782
if test -n "$file_magic_test_file"; then
8783
case $deplibs_check_method in
8785
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8786
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8787
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8788
$EGREP "$file_magic_regex" > /dev/null; then
8793
*** Warning: the command libtool uses to detect shared libraries,
8794
*** $file_magic_cmd, produces output that libtool cannot recognize.
8795
*** The result is that libtool may fail to recognize shared libraries
8796
*** as such. This will affect the creation of libtool libraries that
8797
*** depend on shared libraries, but programs linked with such libtool
8798
*** libraries will work regardless of this problem. Nevertheless, you
8799
*** may want to report the problem to your system manager and/or to
8800
*** bug-libtool@gnu.org
8810
MAGIC_CMD="$lt_save_MAGIC_CMD"
8815
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8816
if test -n "$MAGIC_CMD"; then
8817
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8818
echo "${ECHO_T}$MAGIC_CMD" >&6
8820
echo "$as_me:$LINENO: result: no" >&5
8821
echo "${ECHO_T}no" >&6
8824
if test -z "$lt_cv_path_MAGIC_CMD"; then
8825
if test -n "$ac_tool_prefix"; then
8826
echo "$as_me:$LINENO: checking for file" >&5
8827
echo $ECHO_N "checking for file... $ECHO_C" >&6
8828
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8829
echo $ECHO_N "(cached) $ECHO_C" >&6
8833
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8836
lt_save_MAGIC_CMD="$MAGIC_CMD"
8837
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8838
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8839
for ac_dir in $ac_dummy; do
8841
test -z "$ac_dir" && ac_dir=.
8842
if test -f $ac_dir/file; then
8843
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8844
if test -n "$file_magic_test_file"; then
8845
case $deplibs_check_method in
8847
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8848
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8849
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8850
$EGREP "$file_magic_regex" > /dev/null; then
8855
*** Warning: the command libtool uses to detect shared libraries,
8856
*** $file_magic_cmd, produces output that libtool cannot recognize.
8857
*** The result is that libtool may fail to recognize shared libraries
8858
*** as such. This will affect the creation of libtool libraries that
8859
*** depend on shared libraries, but programs linked with such libtool
8860
*** libraries will work regardless of this problem. Nevertheless, you
8861
*** may want to report the problem to your system manager and/or to
8862
*** bug-libtool@gnu.org
8872
MAGIC_CMD="$lt_save_MAGIC_CMD"
8877
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8878
if test -n "$MAGIC_CMD"; then
8879
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8880
echo "${ECHO_T}$MAGIC_CMD" >&6
8882
echo "$as_me:$LINENO: result: no" >&5
8883
echo "${ECHO_T}no" >&6
8898
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8899
if test "${enable_libtool_lock+set}" = set; then
8900
enableval="$enable_libtool_lock"
8903
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8906
# Check whether --with-pic or --without-pic was given.
8907
if test "${with_pic+set}" = set; then
8913
test -z "$pic_mode" && pic_mode=default
8915
# Use C for the default configuration in the libtool script
8919
ac_cpp='$CPP $CPPFLAGS'
8920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8925
# Source file extension for C test sources.
8928
# Object file extension for compiled C test sources.
8932
# Code to be used in simple compile tests
8933
lt_simple_compile_test_code="int some_variable = 0;\n"
8935
# Code to be used in simple link tests
8936
lt_simple_link_test_code='int main(){return(0);}\n'
8939
# If no C compiler was specified, use CC.
8942
# Allow CC to be a program name with arguments.
8947
# Check for any special shared library compilation flags.
8950
if test "$GCC" = no; then
8953
lt_prog_cc_shlib='-belf'
8957
if test -n "$lt_prog_cc_shlib"; then
8958
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8959
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8960
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8962
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8963
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8964
lt_cv_prog_cc_can_build_shared=no
8970
# Check to make sure the static flag actually works.
8972
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8973
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8974
if test "${lt_prog_compiler_static_works+set}" = set; then
8975
echo $ECHO_N "(cached) $ECHO_C" >&6
8977
lt_prog_compiler_static_works=no
8978
save_LDFLAGS="$LDFLAGS"
8979
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8980
printf "$lt_simple_link_test_code" > conftest.$ac_ext
8981
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8982
# The compiler can only warn and ignore the option if not recognized
8983
# So say no if there are warnings
8984
if test -s conftest.err; then
8985
# Append any errors to the config.log.
8986
cat conftest.err 1>&5
8988
lt_prog_compiler_static_works=yes
8992
LDFLAGS="$save_LDFLAGS"
8995
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8996
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8998
if test x"$lt_prog_compiler_static_works" = xyes; then
9001
lt_prog_compiler_static=
9007
## There is no encapsulation within the following macros, do not change
9008
## the running order or otherwise move them around unless you know exactly
9009
## what you are doing...
9011
lt_prog_compiler_no_builtin_flag=
9013
if test "$GCC" = yes; then
9014
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9017
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9018
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9019
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9020
echo $ECHO_N "(cached) $ECHO_C" >&6
9022
lt_cv_prog_compiler_rtti_exceptions=no
9023
ac_outfile=conftest.$ac_objext
9024
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9025
lt_compiler_flag="-fno-rtti -fno-exceptions"
9026
# Insert the option either (1) after the last *FLAGS variable, or
9027
# (2) before a word containing "conftest.", or (3) at the end.
9028
# Note that $ac_compile itself does not contain backslashes and begins
9029
# with a dollar sign (not a hyphen), so the echo should work correctly.
9030
# The option is referenced via a variable to avoid confusing sed.
9031
lt_compile=`echo "$ac_compile" | $SED \
9032
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9033
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9034
-e 's:$: $lt_compiler_flag:'`
9035
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9036
(eval "$lt_compile" 2>conftest.err)
9038
cat conftest.err >&5
9039
echo "$as_me:__oline__: \$? = $ac_status" >&5
9040
if (exit $ac_status) && test -s "$ac_outfile"; then
9041
# The compiler can only warn and ignore the option if not recognized
9042
# So say no if there are warnings
9043
if test ! -s conftest.err; then
9044
lt_cv_prog_compiler_rtti_exceptions=yes
9050
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9051
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9053
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9054
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9061
lt_prog_compiler_wl=
9062
lt_prog_compiler_pic=
9063
lt_prog_compiler_static=
9065
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9066
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9068
if test "$GCC" = yes; then
9069
lt_prog_compiler_wl='-Wl,'
9070
lt_prog_compiler_static='-static'
9074
# All AIX code is PIC.
9075
if test "$host_cpu" = ia64; then
9076
# AIX 5 now supports IA64 processor
9077
lt_prog_compiler_static='-Bstatic'
9082
# FIXME: we need at least 68020 code to build shared libraries, but
9083
# adding the `-m68020' flag to GCC prevents building anything better,
9085
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9088
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9089
# PIC is the default for these OSes.
9092
mingw* | pw32* | os2*)
9093
# This hack is so that the source file can tell whether it is being
9094
# built for inclusion in a dll (and should export symbols for example).
9095
lt_prog_compiler_pic='-DDLL_EXPORT'
9098
darwin* | rhapsody*)
9099
# PIC is the default on this platform
9100
# Common symbols not allowed in MH_DYLIB files
9101
lt_prog_compiler_pic='-fno-common'
9105
# Just because we use GCC doesn't mean we suddenly get shared libraries
9106
# on systems that don't support them.
9107
lt_prog_compiler_can_build_shared=no
9112
if test -d /usr/nec; then
9113
lt_prog_compiler_pic=-Kconform_pic
9118
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9125
lt_prog_compiler_pic='-fPIC'
9131
lt_prog_compiler_pic='-fPIC'
9135
# PORTME Check for flag to pass linker flags through the system compiler.
9138
lt_prog_compiler_wl='-Wl,'
9139
if test "$host_cpu" = ia64; then
9140
# AIX 5 now supports IA64 processor
9141
lt_prog_compiler_static='-Bstatic'
9143
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9147
mingw* | pw32* | os2*)
9148
# This hack is so that the source file can tell whether it is being
9149
# built for inclusion in a dll (and should export symbols for example).
9150
lt_prog_compiler_pic='-DDLL_EXPORT'
9153
hpux9* | hpux10* | hpux11*)
9154
lt_prog_compiler_wl='-Wl,'
9155
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9162
lt_prog_compiler_pic='+Z'
9165
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9166
lt_prog_compiler_static='${wl}-a ${wl}archive'
9169
irix5* | irix6* | nonstopux*)
9170
lt_prog_compiler_wl='-Wl,'
9171
# PIC (with -KPIC) is the default.
9172
lt_prog_compiler_static='-non_shared'
9176
lt_prog_compiler_pic='-KPIC'
9177
lt_prog_compiler_static='-Bstatic'
9183
lt_prog_compiler_wl='-Wl,'
9184
lt_prog_compiler_pic='-KPIC'
9185
lt_prog_compiler_static='-static'
9188
lt_prog_compiler_wl='-Wl,'
9189
# All Alpha code is PIC.
9190
lt_prog_compiler_static='-non_shared'
9195
osf3* | osf4* | osf5*)
9196
lt_prog_compiler_wl='-Wl,'
9197
# All OSF/1 code is PIC.
9198
lt_prog_compiler_static='-non_shared'
9202
lt_prog_compiler_pic='-Kpic'
9203
lt_prog_compiler_static='-dn'
9207
lt_prog_compiler_wl='-Wl,'
9208
lt_prog_compiler_pic='-KPIC'
9209
lt_prog_compiler_static='-Bstatic'
9213
lt_prog_compiler_wl='-Qoption ld '
9214
lt_prog_compiler_pic='-PIC'
9215
lt_prog_compiler_static='-Bstatic'
9218
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9219
lt_prog_compiler_wl='-Wl,'
9220
lt_prog_compiler_pic='-KPIC'
9221
lt_prog_compiler_static='-Bstatic'
9225
if test -d /usr/nec ;then
9226
lt_prog_compiler_pic='-Kconform_pic'
9227
lt_prog_compiler_static='-Bstatic'
9232
lt_prog_compiler_pic='-pic'
9233
lt_prog_compiler_static='-Bstatic'
9237
lt_prog_compiler_can_build_shared=no
9242
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9243
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9246
# Check to make sure the PIC flag actually works.
9248
if test -n "$lt_prog_compiler_pic"; then
9250
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9251
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9252
if test "${lt_prog_compiler_pic_works+set}" = set; then
9253
echo $ECHO_N "(cached) $ECHO_C" >&6
9255
lt_prog_compiler_pic_works=no
9256
ac_outfile=conftest.$ac_objext
9257
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9258
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9259
# Insert the option either (1) after the last *FLAGS variable, or
9260
# (2) before a word containing "conftest.", or (3) at the end.
9261
# Note that $ac_compile itself does not contain backslashes and begins
9262
# with a dollar sign (not a hyphen), so the echo should work correctly.
9263
# The option is referenced via a variable to avoid confusing sed.
9264
lt_compile=`echo "$ac_compile" | $SED \
9265
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9266
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9267
-e 's:$: $lt_compiler_flag:'`
9268
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9269
(eval "$lt_compile" 2>conftest.err)
9271
cat conftest.err >&5
9272
echo "$as_me:__oline__: \$? = $ac_status" >&5
9273
if (exit $ac_status) && test -s "$ac_outfile"; then
9274
# The compiler can only warn and ignore the option if not recognized
9275
# So say no if there are warnings
9276
if test ! -s conftest.err; then
9277
lt_prog_compiler_pic_works=yes
9283
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9284
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9286
if test x"$lt_prog_compiler_pic_works" = xyes; then
9287
case $lt_prog_compiler_pic in
9289
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9292
lt_prog_compiler_pic=
9293
lt_prog_compiler_can_build_shared=no
9298
# For platforms which do not support PIC, -DPIC is meaningless:
9300
lt_prog_compiler_pic=
9303
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9307
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9308
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9309
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9310
echo $ECHO_N "(cached) $ECHO_C" >&6
9312
lt_cv_prog_compiler_c_o=no
9313
$rm -r conftest 2>/dev/null
9317
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9319
lt_compiler_flag="-o out/conftest2.$ac_objext"
9320
# Insert the option either (1) after the last *FLAGS variable, or
9321
# (2) before a word containing "conftest.", or (3) at the end.
9322
# Note that $ac_compile itself does not contain backslashes and begins
9323
# with a dollar sign (not a hyphen), so the echo should work correctly.
9324
lt_compile=`echo "$ac_compile" | $SED \
9325
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9326
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9327
-e 's:$: $lt_compiler_flag:'`
9328
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9329
(eval "$lt_compile" 2>out/conftest.err)
9331
cat out/conftest.err >&5
9332
echo "$as_me:__oline__: \$? = $ac_status" >&5
9333
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9335
# The compiler can only warn and ignore the option if not recognized
9336
# So say no if there are warnings
9337
if test ! -s out/conftest.err; then
9338
lt_cv_prog_compiler_c_o=yes
9343
# SGI C++ compiler will create directory out/ii_files/ for
9344
# template instantiation
9345
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9346
$rm out/* && rmdir out
9352
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9353
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9356
hard_links="nottested"
9357
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9358
# do not overwrite the value of need_locks provided by the user
9359
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9360
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9363
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9365
ln conftest.a conftest.b 2>&5 || hard_links=no
9366
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9367
echo "$as_me:$LINENO: result: $hard_links" >&5
9368
echo "${ECHO_T}$hard_links" >&6
9369
if test "$hard_links" = no; then
9370
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9371
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9378
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9379
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9382
allow_undefined_flag=
9383
enable_shared_with_static_runtimes=no
9385
archive_expsym_cmds=
9386
old_archive_From_new_cmds=
9387
old_archive_from_expsyms_cmds=
9388
export_dynamic_flag_spec=
9389
whole_archive_flag_spec=
9390
thread_safe_flag_spec=
9391
hardcode_libdir_flag_spec=
9392
hardcode_libdir_flag_spec_ld=
9393
hardcode_libdir_separator=
9396
hardcode_shlibpath_var=unsupported
9397
link_all_deplibs=unknown
9398
hardcode_automatic=no
9401
always_export_symbols=no
9402
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9403
# include_expsyms should be a list of space-separated symbols to be *always*
9404
# included in the symbol list
9406
# exclude_expsyms can be an extended regexp of symbols to exclude
9407
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9408
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9409
# as well as any symbol that contains `d'.
9410
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9411
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9412
# platforms (ab)use it in PIC code, but their linkers get confused if
9413
# the symbol is explicitly referenced. Since portable code cannot
9414
# rely on this symbol name, it's probably fine to never include it in
9415
# preloaded symbol tables.
9416
extract_expsyms_cmds=
9419
cygwin* | mingw* | pw32*)
9420
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9421
# When not using gcc, we currently assume that we are using
9422
# Microsoft Visual C++.
9423
if test "$GCC" != yes; then
9433
if test "$with_gnu_ld" = yes; then
9434
# If archive_cmds runs LD, not CC, wlarc should be empty
9437
# See if GNU ld supports shared libraries.
9439
aix3* | aix4* | aix5*)
9440
# On AIX/PPC, the GNU linker is very broken
9441
if test "$host_cpu" != ia64; then
9445
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9446
*** to be unable to reliably create shared libraries on AIX.
9447
*** Therefore, libtool is disabling shared libraries support. If you
9448
*** really care for shared libraries, you may want to modify your PATH
9449
*** so that a non-GNU linker is found, and then restart.
9456
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)'
9457
hardcode_libdir_flag_spec='-L$libdir'
9458
hardcode_minus_L=yes
9460
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9461
# that the semantics of dynamic libraries on AmigaOS, at least up
9462
# to version 4, is to share data among multiple programs linked
9463
# with the same dynamic library. Since this doesn't match the
9464
# behavior of shared libraries on other platforms, we can't use
9470
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9471
allow_undefined_flag=unsupported
9472
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9473
# support --undefined. This deserves some investigation. FIXME
9474
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480
cygwin* | mingw* | pw32*)
9481
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9482
# as there is no search path for DLLs.
9483
hardcode_libdir_flag_spec='-L$libdir'
9484
allow_undefined_flag=unsupported
9485
always_export_symbols=no
9486
enable_shared_with_static_runtimes=yes
9487
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9489
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9490
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9491
# If the export-symbols file already is a .def file (1st line
9492
# is EXPORTS), use it as is; otherwise, prepend...
9493
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9494
cp $export_symbols $output_objdir/$soname.def;
9496
echo EXPORTS > $output_objdir/$soname.def;
9497
cat $export_symbols >> $output_objdir/$soname.def;
9499
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9505
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
9506
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9507
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9510
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9516
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9520
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9521
*** create shared libraries on Solaris systems. Therefore, libtool
9522
*** is disabling shared libraries support. We urge you to upgrade GNU
9523
*** binutils to release 2.9.1 or newer. Another option is to modify
9524
*** your PATH or compiler configuration so that the native linker is
9525
*** used, and then restart.
9528
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9529
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9537
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540
hardcode_shlibpath_var=no
9544
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9545
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546
archive_cmds="$tmp_archive_cmds"
9547
supports_anon_versioning=no
9548
case `$LD -v 2>/dev/null` in
9549
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9550
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9551
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9552
*\ 2.11.*) ;; # other 2.11 versions
9553
*) supports_anon_versioning=yes ;;
9555
if test $supports_anon_versioning = yes; then
9556
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9557
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9558
$echo "local: *; };" >> $output_objdir/$libname.ver~
9559
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9561
archive_expsym_cmds="$tmp_archive_cmds"
9570
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9571
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579
if test "$ld_shlibs" = yes; then
9580
runpath_var=LD_RUN_PATH
9581
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9582
export_dynamic_flag_spec='${wl}--export-dynamic'
9583
# ancient GNU ld didn't support --whole-archive et. al.
9584
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9585
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9587
whole_archive_flag_spec=
9591
# PORTME fill in a description of your system's linker (not GNU ld)
9594
allow_undefined_flag=unsupported
9595
always_export_symbols=yes
9596
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'
9597
# Note: this linker hardcodes the directories in LIBPATH if there
9598
# are no directories specified by -L.
9599
hardcode_minus_L=yes
9600
if test "$GCC" = yes && test -z "$link_static_flag"; then
9601
# Neither direct hardcoding nor static linking is supported with a
9603
hardcode_direct=unsupported
9608
if test "$host_cpu" = ia64; then
9609
# On IA64, the linker does run time linking by default, so we don't
9610
# have to do anything special.
9611
aix_use_runtimelinking=no
9612
exp_sym_flag='-Bexport'
9615
# If we're using GNU nm, then we don't want the "-C" option.
9616
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9617
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9618
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'
9620
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'
9622
aix_use_runtimelinking=no
9624
# Test if we are trying to use run time linking or normal
9625
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9626
# need to do runtime linking.
9627
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9628
for ld_flag in $LDFLAGS; do
9629
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9630
aix_use_runtimelinking=yes
9636
exp_sym_flag='-bexport'
9637
no_entry_flag='-bnoentry'
9640
# When large executables or shared objects are built, AIX ld can
9641
# have problems creating the table of contents. If linking a library
9642
# or program results in "error TOC overflow" add -mminimal-toc to
9643
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9644
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9648
hardcode_libdir_separator=':'
9649
link_all_deplibs=yes
9651
if test "$GCC" = yes; then
9652
case $host_os in aix4.012|aix4.012.*)
9653
# We only want to do this on AIX 4.2 and lower, the check
9654
# below for broken collect2 doesn't work under 4.3+
9655
collect2name=`${CC} -print-prog-name=collect2`
9656
if test -f "$collect2name" && \
9657
strings "$collect2name" | grep resolve_lib_name >/dev/null
9659
# We have reworked collect2
9662
# We have old collect2
9663
hardcode_direct=unsupported
9664
# It fails to find uninstalled libraries when the uninstalled
9665
# path is not listed in the libpath. Setting hardcode_minus_L
9666
# to unsupported forces relinking
9667
hardcode_minus_L=yes
9668
hardcode_libdir_flag_spec='-L$libdir'
9669
hardcode_libdir_separator=
9672
shared_flag='-shared'
9675
if test "$host_cpu" = ia64; then
9676
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9677
# chokes on -Wl,-G. The following line is correct:
9680
if test "$aix_use_runtimelinking" = yes; then
9681
shared_flag='${wl}-G'
9683
shared_flag='${wl}-bM:SRE'
9688
# It seems that -bexpall does not export symbols beginning with
9689
# underscore (_), so it is better to generate a list of symbols to export.
9690
always_export_symbols=yes
9691
if test "$aix_use_runtimelinking" = yes; then
9692
# Warning - without using the other runtime loading flags (-brtl),
9693
# -berok will link without error, but may produce a broken library.
9694
allow_undefined_flag='-berok'
9695
# Determine the default libpath from the value encoded in an empty executable.
9696
cat >conftest.$ac_ext <<_ACEOF
9699
cat confdefs.h >>conftest.$ac_ext
9700
cat >>conftest.$ac_ext <<_ACEOF
9701
/* end confdefs.h. */
9711
rm -f conftest.$ac_objext conftest$ac_exeext
9712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9713
(eval $ac_link) 2>conftest.er1
9715
grep -v '^ *+' conftest.er1 >conftest.err
9717
cat conftest.err >&5
9718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719
(exit $ac_status); } &&
9720
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725
(exit $ac_status); }; } &&
9726
{ ac_try='test -s conftest$ac_exeext'
9727
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731
(exit $ac_status); }; }; then
9733
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9735
# Check for a 64-bit object if we didn't find anything.
9736
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; }
9739
echo "$as_me: failed program was:" >&5
9740
sed 's/^/| /' conftest.$ac_ext >&5
9743
rm -f conftest.err conftest.$ac_objext \
9744
conftest$ac_exeext conftest.$ac_ext
9745
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9747
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9748
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9750
if test "$host_cpu" = ia64; then
9751
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9752
allow_undefined_flag="-z nodefs"
9753
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9755
# Determine the default libpath from the value encoded in an empty executable.
9756
cat >conftest.$ac_ext <<_ACEOF
9759
cat confdefs.h >>conftest.$ac_ext
9760
cat >>conftest.$ac_ext <<_ACEOF
9761
/* end confdefs.h. */
9771
rm -f conftest.$ac_objext conftest$ac_exeext
9772
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773
(eval $ac_link) 2>conftest.er1
9775
grep -v '^ *+' conftest.er1 >conftest.err
9777
cat conftest.err >&5
9778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779
(exit $ac_status); } &&
9780
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785
(exit $ac_status); }; } &&
9786
{ ac_try='test -s conftest$ac_exeext'
9787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791
(exit $ac_status); }; }; then
9793
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9795
# Check for a 64-bit object if we didn't find anything.
9796
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; }
9799
echo "$as_me: failed program was:" >&5
9800
sed 's/^/| /' conftest.$ac_ext >&5
9803
rm -f conftest.err conftest.$ac_objext \
9804
conftest$ac_exeext conftest.$ac_ext
9805
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9807
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9808
# Warning - without using the other run time loading flags,
9809
# -berok will link without error, but may produce a broken library.
9810
no_undefined_flag=' ${wl}-bernotok'
9811
allow_undefined_flag=' ${wl}-berok'
9812
# -bexpall does not export symbols beginning with underscore (_)
9813
always_export_symbols=yes
9814
# Exported symbols can be pulled into shared objects from archives
9815
whole_archive_flag_spec=' '
9816
archive_cmds_need_lc=yes
9817
# This is similar to how AIX traditionally builds it's shared libraries.
9818
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9824
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)'
9825
hardcode_libdir_flag_spec='-L$libdir'
9826
hardcode_minus_L=yes
9827
# see comment about different semantics on the GNU ld section
9832
export_dynamic_flag_spec=-rdynamic
9835
cygwin* | mingw* | pw32*)
9836
# When not using gcc, we currently assume that we are using
9837
# Microsoft Visual C++.
9838
# hardcode_libdir_flag_spec is actually meaningless, as there is
9839
# no search path for DLLs.
9840
hardcode_libdir_flag_spec=' '
9841
allow_undefined_flag=unsupported
9842
# Tell ltmain to make .lib files, not .a files.
9844
# Tell ltmain to make .dll files, not .so files.
9846
# FIXME: Setting linknames here is a bad hack.
9847
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9848
# The linker will automatically build a .lib file if we build a DLL.
9849
old_archive_From_new_cmds='true'
9850
# FIXME: Should let the user specify the lib program.
9851
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9852
fix_srcfile_path='`cygpath -w "$srcfile"`'
9853
enable_shared_with_static_runtimes=yes
9856
darwin* | rhapsody*)
9857
if test "$GXX" = yes ; then
9858
archive_cmds_need_lc=no
9860
rhapsody* | darwin1.[012])
9861
allow_undefined_flag='-undefined suppress'
9864
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9865
allow_undefined_flag='-flat_namespace -undefined suppress'
9867
case ${MACOSX_DEPLOYMENT_TARGET} in
9869
allow_undefined_flag='-flat_namespace -undefined suppress'
9872
allow_undefined_flag='-undefined dynamic_lookup'
9878
lt_int_apple_cc_single_mod=no
9879
output_verbose_link_cmd='echo'
9880
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9881
lt_int_apple_cc_single_mod=yes
9883
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9884
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9886
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9888
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9889
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9890
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9891
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9893
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9895
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}'
9897
hardcode_automatic=yes
9898
hardcode_shlibpath_var=unsupported
9899
whole_archive_flag_spec='-all_load $convenience'
9900
link_all_deplibs=yes
9907
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908
hardcode_libdir_flag_spec='-L$libdir'
9909
hardcode_shlibpath_var=no
9916
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9917
# support. Future versions do this automatically, but an explicit c++rt0.o
9918
# does not break anything, and helps significantly (at the cost of a little
9921
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9922
hardcode_libdir_flag_spec='-R$libdir'
9924
hardcode_shlibpath_var=no
9927
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9929
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9931
hardcode_minus_L=yes
9932
hardcode_shlibpath_var=no
9935
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9936
freebsd* | kfreebsd*-gnu)
9937
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9938
hardcode_libdir_flag_spec='-R$libdir'
9940
hardcode_shlibpath_var=no
9944
if test "$GCC" = yes; then
9945
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'
9947
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'
9949
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9950
hardcode_libdir_separator=:
9953
# hardcode_minus_L: Not really in the search PATH,
9954
# but as the default location of the library.
9955
hardcode_minus_L=yes
9956
export_dynamic_flag_spec='${wl}-E'
9960
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9963
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9966
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9972
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9975
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9979
if test "$with_gnu_ld" = no; then
9982
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9983
hardcode_libdir_flag_spec_ld='+b $libdir'
9984
hardcode_libdir_separator=:
9986
hardcode_shlibpath_var=no
9989
hardcode_libdir_flag_spec='-L$libdir'
9991
hardcode_shlibpath_var=no
9993
# hardcode_minus_L: Not really in the search PATH,
9994
# but as the default location of the library.
9995
hardcode_minus_L=yes
9998
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9999
hardcode_libdir_separator=:
10000
hardcode_direct=yes
10001
export_dynamic_flag_spec='${wl}-E'
10003
# hardcode_minus_L: Not really in the search PATH,
10004
# but as the default location of the library.
10005
hardcode_minus_L=yes
10011
irix5* | irix6* | nonstopux*)
10012
if test "$GCC" = yes; then
10013
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'
10015
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'
10016
hardcode_libdir_flag_spec_ld='-rpath $libdir'
10018
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10019
hardcode_libdir_separator=:
10020
link_all_deplibs=yes
10023
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10024
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10025
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10027
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10029
hardcode_libdir_flag_spec='-R$libdir'
10030
hardcode_direct=yes
10031
hardcode_shlibpath_var=no
10035
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036
hardcode_direct=yes
10037
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038
hardcode_libdir_separator=:
10039
hardcode_shlibpath_var=no
10043
hardcode_direct=yes
10044
hardcode_shlibpath_var=no
10045
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10046
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10047
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10048
export_dynamic_flag_spec='${wl}-E'
10051
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10052
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10053
hardcode_libdir_flag_spec='-R$libdir'
10056
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10057
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10064
hardcode_libdir_flag_spec='-L$libdir'
10065
hardcode_minus_L=yes
10066
allow_undefined_flag=unsupported
10067
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'
10068
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10072
if test "$GCC" = yes; then
10073
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10074
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'
10076
allow_undefined_flag=' -expect_unresolved \*'
10077
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'
10079
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10080
hardcode_libdir_separator=:
10083
osf4* | osf5*) # as osf3* with the addition of -msym flag
10084
if test "$GCC" = yes; then
10085
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10086
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'
10087
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10089
allow_undefined_flag=' -expect_unresolved \*'
10090
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'
10091
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10092
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10094
# Both c and cxx compiler support -rpath directly
10095
hardcode_libdir_flag_spec='-rpath $libdir'
10097
hardcode_libdir_separator=:
10101
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102
hardcode_shlibpath_var=no
10103
export_dynamic_flag_spec='${wl}-Bexport'
10104
runpath_var=LD_RUN_PATH
10105
hardcode_runpath_var=yes
10109
no_undefined_flag=' -z text'
10110
if test "$GCC" = yes; then
10111
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10112
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10113
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10115
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10117
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10119
hardcode_libdir_flag_spec='-R$libdir'
10120
hardcode_shlibpath_var=no
10122
solaris2.[0-5] | solaris2.[0-5].*) ;;
10123
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
10124
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10126
link_all_deplibs=yes
10130
if test "x$host_vendor" = xsequent; then
10131
# Use $CC to link under sequent, because it throws in some extra .o
10132
# files that make .init and .fini sections work.
10133
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10135
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10137
hardcode_libdir_flag_spec='-L$libdir'
10138
hardcode_direct=yes
10139
hardcode_minus_L=yes
10140
hardcode_shlibpath_var=no
10144
case $host_vendor in
10146
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147
hardcode_direct=yes # is this really true???
10150
## LD is ld it makes a PLAMLIB
10151
## CC just makes a GrossModule.
10152
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10153
reload_cmds='$CC -r -o $output$reload_objs'
10157
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10161
runpath_var='LD_RUN_PATH'
10162
hardcode_shlibpath_var=no
10166
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167
hardcode_shlibpath_var=no
10168
export_dynamic_flag_spec='-Bexport'
10172
if test -d /usr/nec; then
10173
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174
hardcode_shlibpath_var=no
10175
runpath_var=LD_RUN_PATH
10176
hardcode_runpath_var=yes
10182
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10183
hardcode_direct=yes
10184
hardcode_minus_L=no
10185
hardcode_shlibpath_var=no
10186
hardcode_runpath_var=yes
10187
runpath_var=LD_RUN_PATH
10190
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10191
no_undefined_flag='${wl}-z ${wl}text'
10192
if test "$GCC" = yes; then
10193
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10195
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10197
runpath_var='LD_RUN_PATH'
10198
hardcode_shlibpath_var=no
10202
no_undefined_flag=' -z text'
10203
# $CC -shared without GNU ld will not create a library from C++
10204
# object files and a static libstdc++, better avoid it by now
10205
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10207
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10208
hardcode_libdir_flag_spec=
10209
hardcode_shlibpath_var=no
10210
runpath_var='LD_RUN_PATH'
10214
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215
hardcode_libdir_flag_spec='-L$libdir'
10216
hardcode_shlibpath_var=no
10225
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10226
echo "${ECHO_T}$ld_shlibs" >&6
10227
test "$ld_shlibs" = no && can_build_shared=no
10229
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10230
if test "$GCC" = yes; then
10231
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10235
# Do we need to explicitly link libc?
10237
case "x$archive_cmds_need_lc" in
10239
# Assume -lc should be added
10240
archive_cmds_need_lc=yes
10242
if test "$enable_shared" = yes && test "$GCC" = yes; then
10243
case $archive_cmds in
10245
# FIXME: we may have to deal with multi-command sequences.
10248
# Test whether the compiler implicitly links with -lc since on some
10249
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10250
# to ld, don't add -lc before -lgcc.
10251
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10252
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10254
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10257
(eval $ac_compile) 2>&5
10259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260
(exit $ac_status); } 2>conftest.err; then
10263
libobjs=conftest.$ac_objext
10265
wl=$lt_prog_compiler_wl
10271
lt_save_allow_undefined_flag=$allow_undefined_flag
10272
allow_undefined_flag=
10273
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10274
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277
(exit $ac_status); }
10279
archive_cmds_need_lc=no
10281
archive_cmds_need_lc=yes
10283
allow_undefined_flag=$lt_save_allow_undefined_flag
10285
cat conftest.err 1>&5
10288
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10289
echo "${ECHO_T}$archive_cmds_need_lc" >&6
10296
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10297
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10298
library_names_spec=
10299
libname_spec='lib$name'
10303
postuninstall_cmds=
10307
shlibpath_overrides_runpath=unknown
10309
dynamic_linker="$host_os ld.so"
10310
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10311
if test "$GCC" = yes; then
10312
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10313
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10314
# if the path contains ";" then we assume it to be the separator
10315
# otherwise default to the standard path separator (i.e. ":") - it is
10316
# assumed that no part of a normal pathname contains ";" but that should
10317
# okay in the real world where ";" in dirpaths is itself problematic.
10318
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10320
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10323
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10325
need_lib_prefix=unknown
10326
hardcode_into_libs=no
10328
# when you set need_version to no, make sure it does not cause -set_version
10329
# flags to be left without arguments
10330
need_version=unknown
10335
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10336
shlibpath_var=LIBPATH
10338
# AIX 3 has no versioning support, so we append a major version to the name.
10339
soname_spec='${libname}${release}${shared_ext}$major'
10346
hardcode_into_libs=yes
10347
if test "$host_cpu" = ia64; then
10348
# AIX 5 supports IA64
10349
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10350
shlibpath_var=LD_LIBRARY_PATH
10352
# With GCC up to 2.95.x, collect2 would create an import file
10353
# for dependence libraries. The import file would start with
10354
# the line `#! .'. This would cause the generated library to
10355
# depend on `.', always an invalid library. This was fixed in
10356
# development snapshots of GCC prior to 3.0.
10358
aix4 | aix4.[01] | aix4.[01].*)
10359
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10361
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10364
can_build_shared=no
10368
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10369
# soname into executable. Probably we can add versioning support to
10370
# collect2, so additional links can be useful in future.
10371
if test "$aix_use_runtimelinking" = yes; then
10372
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10373
# instead of lib<name>.a to let people know that these are not
10374
# typical AIX shared libraries.
10375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377
# We preserve .a as extension for shared libraries through AIX4.2
10378
# and later when we are not doing run time linking.
10379
library_names_spec='${libname}${release}.a $libname.a'
10380
soname_spec='${libname}${release}${shared_ext}$major'
10382
shlibpath_var=LIBPATH
10387
library_names_spec='$libname.ixlibrary $libname.a'
10388
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10389
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'
10393
library_names_spec='${libname}${shared_ext}'
10394
dynamic_linker="$host_os ld.so"
10395
shlibpath_var=LIBRARY_PATH
10401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402
soname_spec='${libname}${release}${shared_ext}$major'
10403
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10404
shlibpath_var=LD_LIBRARY_PATH
10405
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10406
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10407
# the default ld.so.conf also contains /usr/contrib/lib and
10408
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10409
# libtool to hard-code these into programs
10412
cygwin* | mingw* | pw32*)
10413
version_type=windows
10418
case $GCC,$host_os in
10419
yes,cygwin* | yes,mingw* | yes,pw32*)
10420
library_names_spec='$libname.dll.a'
10421
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10422
postinstall_cmds='base_file=`basename \${file}`~
10423
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10424
dldir=$destdir/`dirname \$dlpath`~
10425
test -d \$dldir || mkdir -p \$dldir~
10426
$install_prog $dir/$dlname \$dldir/$dlname'
10427
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10428
dlpath=$dir/\$dldll~
10430
shlibpath_overrides_runpath=yes
10434
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10435
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10436
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10439
# MinGW DLLs use traditional 'lib' prefix
10440
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10441
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10442
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10443
# It is most probably a Windows format PATH printed by
10444
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10445
# path with ; separators, and with drive letters. We can handle the
10446
# drive letters (cygwin fileutils understands them), so leave them,
10447
# especially as we might pass files found there to a mingw objdump,
10448
# which wouldn't understand a cygwinified path. Ahh.
10449
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10451
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10455
# pw32 DLLs use 'pw' prefix rather than 'lib'
10456
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10462
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10465
dynamic_linker='Win32 ld.exe'
10466
# FIXME: first we should search . and the directory the executable is in
10470
darwin* | rhapsody*)
10471
dynamic_linker="$host_os dyld"
10472
version_type=darwin
10475
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10476
soname_spec='${libname}${release}${major}$shared_ext'
10477
shlibpath_overrides_runpath=yes
10478
shlibpath_var=DYLD_LIBRARY_PATH
10479
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10480
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10481
if test "$GCC" = yes; then
10482
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"`
10484
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10486
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10494
soname_spec='${libname}${release}${shared_ext}$major'
10495
shlibpath_var=LD_LIBRARY_PATH
10506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10507
soname_spec='${libname}${release}${shared_ext}$major'
10508
shlibpath_var=LD_LIBRARY_PATH
10509
shlibpath_overrides_runpath=no
10510
hardcode_into_libs=yes
10511
dynamic_linker='GNU ld.so'
10515
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10516
version_type=freebsd-$objformat
10517
case $version_type in
10519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10524
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10528
shlibpath_var=LD_LIBRARY_PATH
10531
shlibpath_overrides_runpath=yes
10533
freebsd3.01* | freebsdelf3.01*)
10534
shlibpath_overrides_runpath=yes
10535
hardcode_into_libs=yes
10538
shlibpath_overrides_runpath=no
10539
hardcode_into_libs=yes
10548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10549
soname_spec='${libname}${release}${shared_ext}$major'
10550
shlibpath_var=LD_LIBRARY_PATH
10551
hardcode_into_libs=yes
10554
hpux9* | hpux10* | hpux11*)
10555
# Give a soname corresponding to the major version so that dld.sl refuses to
10556
# link against other versions.
10560
case "$host_cpu" in
10563
hardcode_into_libs=yes
10564
dynamic_linker="$host_os dld.so"
10565
shlibpath_var=LD_LIBRARY_PATH
10566
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10567
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568
soname_spec='${libname}${release}${shared_ext}$major'
10569
if test "X$HPUX_IA64_MODE" = X32; then
10570
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10572
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10574
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10578
hardcode_into_libs=yes
10579
dynamic_linker="$host_os dld.sl"
10580
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10581
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583
soname_spec='${libname}${release}${shared_ext}$major'
10584
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10585
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10589
dynamic_linker="$host_os dld.sl"
10590
shlibpath_var=SHLIB_PATH
10591
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593
soname_spec='${libname}${release}${shared_ext}$major'
10596
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10597
postinstall_cmds='chmod 555 $lib'
10600
irix5* | irix6* | nonstopux*)
10602
nonstopux*) version_type=nonstopux ;;
10604
if test "$lt_cv_prog_gnu_ld" = yes; then
10612
soname_spec='${libname}${release}${shared_ext}$major'
10613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10615
irix5* | nonstopux*)
10616
libsuff= shlibsuff=
10619
case $LD in # libtool.m4 will add one of these switches to LD
10620
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10621
libsuff= shlibsuff= libmagic=32-bit;;
10622
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10623
libsuff=32 shlibsuff=N32 libmagic=N32;;
10624
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10625
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10626
*) libsuff= shlibsuff= libmagic=never-match;;
10630
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10631
shlibpath_overrides_runpath=no
10632
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10633
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10634
hardcode_into_libs=yes
10637
# No shared lib support for Linux oldld, aout, or coff.
10638
linux*oldld* | linux*aout* | linux*coff*)
10642
# This must be Linux ELF.
10647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648
soname_spec='${libname}${release}${shared_ext}$major'
10649
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10650
shlibpath_var=LD_LIBRARY_PATH
10651
shlibpath_overrides_runpath=no
10652
# This implies no fast_install, which is unacceptable.
10653
# Some rework will be needed to allow for fast_install
10654
# before this can be enabled.
10655
hardcode_into_libs=yes
10657
# Append ld.so.conf contents to the search path
10658
if test -f /etc/ld.so.conf; then
10659
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
10660
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10663
# We used to test for /lib/ld.so.1 and disable shared libraries on
10664
# powerpc, because MkLinux only supported shared libraries with the
10665
# GNU dynamic linker. Since this was broken with cross compilers,
10666
# most powerpc-linux boxes support dynamic linking these days and
10667
# people can always --disable-shared, the test was removed, and we
10668
# assume the GNU/Linux dynamic linker is in use.
10669
dynamic_linker='GNU/Linux ld.so'
10676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10677
soname_spec='${libname}${release}${shared_ext}$major'
10678
shlibpath_var=LD_LIBRARY_PATH
10679
shlibpath_overrides_runpath=no
10680
hardcode_into_libs=yes
10681
dynamic_linker='NetBSD ld.elf_so'
10688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10689
soname_spec='${libname}${release}${shared_ext}$major'
10690
shlibpath_var=LD_LIBRARY_PATH
10691
shlibpath_overrides_runpath=no
10692
hardcode_into_libs=yes
10693
dynamic_linker='GNU ld.so'
10700
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10702
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10703
dynamic_linker='NetBSD (a.out) ld.so'
10705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10706
soname_spec='${libname}${release}${shared_ext}$major'
10707
dynamic_linker='NetBSD ld.elf_so'
10709
shlibpath_var=LD_LIBRARY_PATH
10710
shlibpath_overrides_runpath=yes
10711
hardcode_into_libs=yes
10716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717
shlibpath_var=LD_LIBRARY_PATH
10718
shlibpath_overrides_runpath=yes
10725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726
soname_spec='${libname}${release}${shared_ext}$major'
10727
shlibpath_var=LD_LIBRARY_PATH
10728
shlibpath_overrides_runpath=yes
10735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10736
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10737
shlibpath_var=LD_LIBRARY_PATH
10738
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10740
openbsd2.[89] | openbsd2.[89].*)
10741
shlibpath_overrides_runpath=no
10744
shlibpath_overrides_runpath=yes
10748
shlibpath_overrides_runpath=yes
10753
libname_spec='$name'
10756
library_names_spec='$libname${shared_ext} $libname.a'
10757
dynamic_linker='OS/2 ld.exe'
10758
shlibpath_var=LIBPATH
10761
osf3* | osf4* | osf5*)
10765
soname_spec='${libname}${release}${shared_ext}$major'
10766
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767
shlibpath_var=LD_LIBRARY_PATH
10768
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10769
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10774
soname_spec='${libname}${release}${shared_ext}$major'
10775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776
shlibpath_var=LD_LIBRARY_PATH
10783
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784
soname_spec='${libname}${release}${shared_ext}$major'
10785
shlibpath_var=LD_LIBRARY_PATH
10786
shlibpath_overrides_runpath=yes
10787
hardcode_into_libs=yes
10788
# ldd complains unless libraries are executable
10789
postinstall_cmds='chmod +x $lib'
10794
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10795
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10796
shlibpath_var=LD_LIBRARY_PATH
10797
shlibpath_overrides_runpath=yes
10798
if test "$with_gnu_ld" = yes; then
10804
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807
soname_spec='${libname}${release}${shared_ext}$major'
10808
shlibpath_var=LD_LIBRARY_PATH
10809
case $host_vendor in
10811
shlibpath_overrides_runpath=no
10813
export_dynamic_flag_spec='${wl}-Blargedynsym'
10814
runpath_var=LD_RUN_PATH
10822
shlibpath_overrides_runpath=no
10823
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10829
if test -d /usr/nec ;then
10831
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10832
soname_spec='$libname${shared_ext}.$major'
10833
shlibpath_var=LD_LIBRARY_PATH
10839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840
soname_spec='${libname}${release}${shared_ext}$major'
10841
shlibpath_var=LD_LIBRARY_PATH
10848
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10849
echo "${ECHO_T}$dynamic_linker" >&6
10850
test "$dynamic_linker" = no && can_build_shared=no
10852
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10853
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10855
if test -n "$hardcode_libdir_flag_spec" || \
10856
test -n "$runpath_var " || \
10857
test "X$hardcode_automatic"="Xyes" ; then
10859
# We can hardcode non-existant directories.
10860
if test "$hardcode_direct" != no &&
10861
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10862
# have to relink, otherwise we might link with an installed library
10863
# when we should be linking with a yet-to-be-installed one
10864
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10865
test "$hardcode_minus_L" != no; then
10866
# Linking always hardcodes the temporary library directory.
10867
hardcode_action=relink
10869
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10870
hardcode_action=immediate
10873
# We cannot hardcode anything, or else we can only hardcode existing
10875
hardcode_action=unsupported
10877
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10878
echo "${ECHO_T}$hardcode_action" >&6
10880
if test "$hardcode_action" = relink; then
10881
# Fast installation is not supported
10882
enable_fast_install=no
10883
elif test "$shlibpath_overrides_runpath" = yes ||
10884
test "$enable_shared" = no; then
10885
# Fast installation is not necessary
10886
enable_fast_install=needless
10891
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10892
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10893
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10894
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10895
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10896
echo "$as_me:$LINENO: result: yes" >&5
10897
echo "${ECHO_T}yes" >&6
10899
# FIXME - insert some real tests, host_os isn't really good enough
10902
if test -n "$STRIP" ; then
10903
striplib="$STRIP -x"
10904
echo "$as_me:$LINENO: result: yes" >&5
10905
echo "${ECHO_T}yes" >&6
10907
echo "$as_me:$LINENO: result: no" >&5
10908
echo "${ECHO_T}no" >&6
10912
echo "$as_me:$LINENO: result: no" >&5
10913
echo "${ECHO_T}no" >&6
10918
if test "x$enable_dlopen" != xyes; then
10919
enable_dlopen=unknown
10920
enable_dlopen_self=unknown
10921
enable_dlopen_self_static=unknown
10928
lt_cv_dlopen="load_add_on"
10930
lt_cv_dlopen_self=yes
10934
lt_cv_dlopen="LoadLibrary"
10939
lt_cv_dlopen="dlopen"
10944
# if libdl is installed we need to link against it
10945
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10946
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10947
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10948
echo $ECHO_N "(cached) $ECHO_C" >&6
10950
ac_check_lib_save_LIBS=$LIBS
10952
cat >conftest.$ac_ext <<_ACEOF
10955
cat confdefs.h >>conftest.$ac_ext
10956
cat >>conftest.$ac_ext <<_ACEOF
10957
/* end confdefs.h. */
10959
/* Override any gcc2 internal prototype to avoid an error. */
10963
/* We use char because int might match the return type of a gcc2
10964
builtin and then its argument prototype would still apply. */
10974
rm -f conftest.$ac_objext conftest$ac_exeext
10975
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976
(eval $ac_link) 2>conftest.er1
10978
grep -v '^ *+' conftest.er1 >conftest.err
10980
cat conftest.err >&5
10981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
(exit $ac_status); } &&
10983
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985
(eval $ac_try) 2>&5
10987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988
(exit $ac_status); }; } &&
10989
{ ac_try='test -s conftest$ac_exeext'
10990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991
(eval $ac_try) 2>&5
10993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994
(exit $ac_status); }; }; then
10995
ac_cv_lib_dl_dlopen=yes
10997
echo "$as_me: failed program was:" >&5
10998
sed 's/^/| /' conftest.$ac_ext >&5
11000
ac_cv_lib_dl_dlopen=no
11002
rm -f conftest.err conftest.$ac_objext \
11003
conftest$ac_exeext conftest.$ac_ext
11004
LIBS=$ac_check_lib_save_LIBS
11006
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11007
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11008
if test $ac_cv_lib_dl_dlopen = yes; then
11009
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11012
lt_cv_dlopen="dyld"
11014
lt_cv_dlopen_self=yes
11021
echo "$as_me:$LINENO: checking for shl_load" >&5
11022
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11023
if test "${ac_cv_func_shl_load+set}" = set; then
11024
echo $ECHO_N "(cached) $ECHO_C" >&6
11026
cat >conftest.$ac_ext <<_ACEOF
11029
cat confdefs.h >>conftest.$ac_ext
11030
cat >>conftest.$ac_ext <<_ACEOF
11031
/* end confdefs.h. */
11032
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11033
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11034
#define shl_load innocuous_shl_load
11036
/* System header to define __stub macros and hopefully few prototypes,
11037
which can conflict with char shl_load (); below.
11038
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11039
<limits.h> exists even on freestanding compilers. */
11042
# include <limits.h>
11044
# include <assert.h>
11049
/* Override any gcc2 internal prototype to avoid an error. */
11054
/* We use char because int might match the return type of a gcc2
11055
builtin and then its argument prototype would still apply. */
11057
/* The GNU C library defines this for functions which it implements
11058
to always fail with ENOSYS. Some functions are actually named
11059
something starting with __ and the normal name is an alias. */
11060
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11063
char (*f) () = shl_load;
11072
return f != shl_load;
11077
rm -f conftest.$ac_objext conftest$ac_exeext
11078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079
(eval $ac_link) 2>conftest.er1
11081
grep -v '^ *+' conftest.er1 >conftest.err
11083
cat conftest.err >&5
11084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085
(exit $ac_status); } &&
11086
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11087
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088
(eval $ac_try) 2>&5
11090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091
(exit $ac_status); }; } &&
11092
{ ac_try='test -s conftest$ac_exeext'
11093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094
(eval $ac_try) 2>&5
11096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097
(exit $ac_status); }; }; then
11098
ac_cv_func_shl_load=yes
11100
echo "$as_me: failed program was:" >&5
11101
sed 's/^/| /' conftest.$ac_ext >&5
11103
ac_cv_func_shl_load=no
11105
rm -f conftest.err conftest.$ac_objext \
11106
conftest$ac_exeext conftest.$ac_ext
11108
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11109
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11110
if test $ac_cv_func_shl_load = yes; then
11111
lt_cv_dlopen="shl_load"
11113
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11114
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11115
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11116
echo $ECHO_N "(cached) $ECHO_C" >&6
11118
ac_check_lib_save_LIBS=$LIBS
11120
cat >conftest.$ac_ext <<_ACEOF
11123
cat confdefs.h >>conftest.$ac_ext
11124
cat >>conftest.$ac_ext <<_ACEOF
11125
/* end confdefs.h. */
11127
/* Override any gcc2 internal prototype to avoid an error. */
11131
/* We use char because int might match the return type of a gcc2
11132
builtin and then its argument prototype would still apply. */
11142
rm -f conftest.$ac_objext conftest$ac_exeext
11143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11144
(eval $ac_link) 2>conftest.er1
11146
grep -v '^ *+' conftest.er1 >conftest.err
11148
cat conftest.err >&5
11149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150
(exit $ac_status); } &&
11151
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11152
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153
(eval $ac_try) 2>&5
11155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156
(exit $ac_status); }; } &&
11157
{ ac_try='test -s conftest$ac_exeext'
11158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159
(eval $ac_try) 2>&5
11161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162
(exit $ac_status); }; }; then
11163
ac_cv_lib_dld_shl_load=yes
11165
echo "$as_me: failed program was:" >&5
11166
sed 's/^/| /' conftest.$ac_ext >&5
11168
ac_cv_lib_dld_shl_load=no
11170
rm -f conftest.err conftest.$ac_objext \
11171
conftest$ac_exeext conftest.$ac_ext
11172
LIBS=$ac_check_lib_save_LIBS
11174
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11175
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11176
if test $ac_cv_lib_dld_shl_load = yes; then
11177
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11179
echo "$as_me:$LINENO: checking for dlopen" >&5
11180
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11181
if test "${ac_cv_func_dlopen+set}" = set; then
11182
echo $ECHO_N "(cached) $ECHO_C" >&6
11184
cat >conftest.$ac_ext <<_ACEOF
11187
cat confdefs.h >>conftest.$ac_ext
11188
cat >>conftest.$ac_ext <<_ACEOF
11189
/* end confdefs.h. */
11190
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11191
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11192
#define dlopen innocuous_dlopen
11194
/* System header to define __stub macros and hopefully few prototypes,
11195
which can conflict with char dlopen (); below.
11196
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11197
<limits.h> exists even on freestanding compilers. */
11200
# include <limits.h>
11202
# include <assert.h>
11207
/* Override any gcc2 internal prototype to avoid an error. */
11212
/* We use char because int might match the return type of a gcc2
11213
builtin and then its argument prototype would still apply. */
11215
/* The GNU C library defines this for functions which it implements
11216
to always fail with ENOSYS. Some functions are actually named
11217
something starting with __ and the normal name is an alias. */
11218
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11221
char (*f) () = dlopen;
11230
return f != dlopen;
11235
rm -f conftest.$ac_objext conftest$ac_exeext
11236
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11237
(eval $ac_link) 2>conftest.er1
11239
grep -v '^ *+' conftest.er1 >conftest.err
11241
cat conftest.err >&5
11242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243
(exit $ac_status); } &&
11244
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246
(eval $ac_try) 2>&5
11248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249
(exit $ac_status); }; } &&
11250
{ ac_try='test -s conftest$ac_exeext'
11251
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252
(eval $ac_try) 2>&5
11254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255
(exit $ac_status); }; }; then
11256
ac_cv_func_dlopen=yes
11258
echo "$as_me: failed program was:" >&5
11259
sed 's/^/| /' conftest.$ac_ext >&5
11261
ac_cv_func_dlopen=no
11263
rm -f conftest.err conftest.$ac_objext \
11264
conftest$ac_exeext conftest.$ac_ext
11266
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11267
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11268
if test $ac_cv_func_dlopen = yes; then
11269
lt_cv_dlopen="dlopen"
11271
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11272
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11273
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11274
echo $ECHO_N "(cached) $ECHO_C" >&6
11276
ac_check_lib_save_LIBS=$LIBS
11278
cat >conftest.$ac_ext <<_ACEOF
11281
cat confdefs.h >>conftest.$ac_ext
11282
cat >>conftest.$ac_ext <<_ACEOF
11283
/* end confdefs.h. */
11285
/* Override any gcc2 internal prototype to avoid an error. */
11289
/* We use char because int might match the return type of a gcc2
11290
builtin and then its argument prototype would still apply. */
11300
rm -f conftest.$ac_objext conftest$ac_exeext
11301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302
(eval $ac_link) 2>conftest.er1
11304
grep -v '^ *+' conftest.er1 >conftest.err
11306
cat conftest.err >&5
11307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308
(exit $ac_status); } &&
11309
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311
(eval $ac_try) 2>&5
11313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314
(exit $ac_status); }; } &&
11315
{ ac_try='test -s conftest$ac_exeext'
11316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317
(eval $ac_try) 2>&5
11319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320
(exit $ac_status); }; }; then
11321
ac_cv_lib_dl_dlopen=yes
11323
echo "$as_me: failed program was:" >&5
11324
sed 's/^/| /' conftest.$ac_ext >&5
11326
ac_cv_lib_dl_dlopen=no
11328
rm -f conftest.err conftest.$ac_objext \
11329
conftest$ac_exeext conftest.$ac_ext
11330
LIBS=$ac_check_lib_save_LIBS
11332
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11333
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11334
if test $ac_cv_lib_dl_dlopen = yes; then
11335
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11337
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11338
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11339
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11340
echo $ECHO_N "(cached) $ECHO_C" >&6
11342
ac_check_lib_save_LIBS=$LIBS
11343
LIBS="-lsvld $LIBS"
11344
cat >conftest.$ac_ext <<_ACEOF
11347
cat confdefs.h >>conftest.$ac_ext
11348
cat >>conftest.$ac_ext <<_ACEOF
11349
/* end confdefs.h. */
11351
/* Override any gcc2 internal prototype to avoid an error. */
11355
/* We use char because int might match the return type of a gcc2
11356
builtin and then its argument prototype would still apply. */
11366
rm -f conftest.$ac_objext conftest$ac_exeext
11367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368
(eval $ac_link) 2>conftest.er1
11370
grep -v '^ *+' conftest.er1 >conftest.err
11372
cat conftest.err >&5
11373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374
(exit $ac_status); } &&
11375
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11376
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377
(eval $ac_try) 2>&5
11379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380
(exit $ac_status); }; } &&
11381
{ ac_try='test -s conftest$ac_exeext'
11382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383
(eval $ac_try) 2>&5
11385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386
(exit $ac_status); }; }; then
11387
ac_cv_lib_svld_dlopen=yes
11389
echo "$as_me: failed program was:" >&5
11390
sed 's/^/| /' conftest.$ac_ext >&5
11392
ac_cv_lib_svld_dlopen=no
11394
rm -f conftest.err conftest.$ac_objext \
11395
conftest$ac_exeext conftest.$ac_ext
11396
LIBS=$ac_check_lib_save_LIBS
11398
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11399
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11400
if test $ac_cv_lib_svld_dlopen = yes; then
11401
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11403
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11404
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11405
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11406
echo $ECHO_N "(cached) $ECHO_C" >&6
11408
ac_check_lib_save_LIBS=$LIBS
11410
cat >conftest.$ac_ext <<_ACEOF
11413
cat confdefs.h >>conftest.$ac_ext
11414
cat >>conftest.$ac_ext <<_ACEOF
11415
/* end confdefs.h. */
11417
/* Override any gcc2 internal prototype to avoid an error. */
11421
/* We use char because int might match the return type of a gcc2
11422
builtin and then its argument prototype would still apply. */
11432
rm -f conftest.$ac_objext conftest$ac_exeext
11433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11434
(eval $ac_link) 2>conftest.er1
11436
grep -v '^ *+' conftest.er1 >conftest.err
11438
cat conftest.err >&5
11439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440
(exit $ac_status); } &&
11441
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443
(eval $ac_try) 2>&5
11445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446
(exit $ac_status); }; } &&
11447
{ ac_try='test -s conftest$ac_exeext'
11448
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449
(eval $ac_try) 2>&5
11451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452
(exit $ac_status); }; }; then
11453
ac_cv_lib_dld_dld_link=yes
11455
echo "$as_me: failed program was:" >&5
11456
sed 's/^/| /' conftest.$ac_ext >&5
11458
ac_cv_lib_dld_dld_link=no
11460
rm -f conftest.err conftest.$ac_objext \
11461
conftest$ac_exeext conftest.$ac_ext
11462
LIBS=$ac_check_lib_save_LIBS
11464
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11465
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11466
if test $ac_cv_lib_dld_dld_link = yes; then
11467
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11488
if test "x$lt_cv_dlopen" != xno; then
11494
case $lt_cv_dlopen in
11496
save_CPPFLAGS="$CPPFLAGS"
11497
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11499
save_LDFLAGS="$LDFLAGS"
11500
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11503
LIBS="$lt_cv_dlopen_libs $LIBS"
11505
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11506
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11507
if test "${lt_cv_dlopen_self+set}" = set; then
11508
echo $ECHO_N "(cached) $ECHO_C" >&6
11510
if test "$cross_compiling" = yes; then :
11511
lt_cv_dlopen_self=cross
11513
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11514
lt_status=$lt_dlunknown
11515
cat > conftest.$ac_ext <<EOF
11516
#line __oline__ "configure"
11517
#include "confdefs.h"
11526
# define LT_DLGLOBAL RTLD_GLOBAL
11529
# define LT_DLGLOBAL DL_GLOBAL
11531
# define LT_DLGLOBAL 0
11535
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11536
find out it does not work in some platform. */
11537
#ifndef LT_DLLAZY_OR_NOW
11539
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11542
# define LT_DLLAZY_OR_NOW DL_LAZY
11545
# define LT_DLLAZY_OR_NOW RTLD_NOW
11548
# define LT_DLLAZY_OR_NOW DL_NOW
11550
# define LT_DLLAZY_OR_NOW 0
11558
extern "C" void exit (int);
11561
void fnord() { int i=42;}
11564
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11565
int status = $lt_dlunknown;
11569
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11570
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11571
/* dlclose (self); */
11577
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11578
(eval $ac_link) 2>&5
11580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11582
(./conftest; exit; ) 2>/dev/null
11584
case x$lt_status in
11585
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11586
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11587
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11590
# compilation failed
11591
lt_cv_dlopen_self=no
11598
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11599
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11601
if test "x$lt_cv_dlopen_self" = xyes; then
11602
LDFLAGS="$LDFLAGS $link_static_flag"
11603
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11604
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11605
if test "${lt_cv_dlopen_self_static+set}" = set; then
11606
echo $ECHO_N "(cached) $ECHO_C" >&6
11608
if test "$cross_compiling" = yes; then :
11609
lt_cv_dlopen_self_static=cross
11611
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11612
lt_status=$lt_dlunknown
11613
cat > conftest.$ac_ext <<EOF
11614
#line __oline__ "configure"
11615
#include "confdefs.h"
11624
# define LT_DLGLOBAL RTLD_GLOBAL
11627
# define LT_DLGLOBAL DL_GLOBAL
11629
# define LT_DLGLOBAL 0
11633
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11634
find out it does not work in some platform. */
11635
#ifndef LT_DLLAZY_OR_NOW
11637
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11640
# define LT_DLLAZY_OR_NOW DL_LAZY
11643
# define LT_DLLAZY_OR_NOW RTLD_NOW
11646
# define LT_DLLAZY_OR_NOW DL_NOW
11648
# define LT_DLLAZY_OR_NOW 0
11656
extern "C" void exit (int);
11659
void fnord() { int i=42;}
11662
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11663
int status = $lt_dlunknown;
11667
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11668
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11669
/* dlclose (self); */
11675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676
(eval $ac_link) 2>&5
11678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11680
(./conftest; exit; ) 2>/dev/null
11682
case x$lt_status in
11683
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11684
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11685
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11688
# compilation failed
11689
lt_cv_dlopen_self_static=no
11696
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11697
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11700
CPPFLAGS="$save_CPPFLAGS"
11701
LDFLAGS="$save_LDFLAGS"
11706
case $lt_cv_dlopen_self in
11707
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11708
*) enable_dlopen_self=unknown ;;
11711
case $lt_cv_dlopen_self_static in
11712
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11713
*) enable_dlopen_self_static=unknown ;;
11718
# Report which librarie types wil actually be built
11719
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11720
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11721
echo "$as_me:$LINENO: result: $can_build_shared" >&5
11722
echo "${ECHO_T}$can_build_shared" >&6
11724
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11725
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11726
test "$can_build_shared" = "no" && enable_shared=no
11728
# On AIX, shared libraries and static libraries use the same namespace, and
11729
# are all built from PIC.
11732
test "$enable_shared" = yes && enable_static=no
11733
if test -n "$RANLIB"; then
11734
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11735
postinstall_cmds='$RANLIB $lib'
11740
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11741
test "$enable_shared" = yes && enable_static=no
11744
darwin* | rhapsody*)
11745
if test "$GCC" = yes; then
11746
archive_cmds_need_lc=no
11748
rhapsody* | darwin1.[012])
11749
allow_undefined_flag='-undefined suppress'
11752
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11753
allow_undefined_flag='-flat_namespace -undefined suppress'
11755
case ${MACOSX_DEPLOYMENT_TARGET} in
11757
allow_undefined_flag='-flat_namespace -undefined suppress'
11760
allow_undefined_flag='-undefined dynamic_lookup'
11766
output_verbose_link_cmd='echo'
11767
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
11768
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11769
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11770
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}'
11771
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}'
11773
hardcode_automatic=yes
11774
hardcode_shlibpath_var=unsupported
11775
whole_archive_flag_spec='-all_load $convenience'
11776
link_all_deplibs=yes
11782
echo "$as_me:$LINENO: result: $enable_shared" >&5
11783
echo "${ECHO_T}$enable_shared" >&6
11785
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11786
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11787
# Make sure either enable_shared or enable_static is yes.
11788
test "$enable_shared" = yes || enable_static=yes
11789
echo "$as_me:$LINENO: result: $enable_static" >&5
11790
echo "${ECHO_T}$enable_static" >&6
11792
# The else clause should only fire when bootstrapping the
11793
# libtool distribution, otherwise you forgot to ship ltmain.sh
11794
# with your package, and you will get complaints that there are
11795
# no rules to generate ltmain.sh.
11796
if test -f "$ltmain"; then
11797
# See if we are running on zsh, and set the options which allow our commands through
11798
# without removal of \ escapes.
11799
if test -n "${ZSH_VERSION+set}" ; then
11800
setopt NO_GLOB_SUBST
11802
# Now quote all the things that may contain metacharacters while being
11803
# careful not to overquote the AC_SUBSTed values. We take copies of the
11804
# variables and quote the copies for generation of the libtool script.
11805
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11807
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11808
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11809
deplibs_check_method reload_flag reload_cmds need_locks \
11810
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11811
lt_cv_sys_global_symbol_to_c_name_address \
11812
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11813
old_postinstall_cmds old_postuninstall_cmds \
11817
lt_prog_compiler_wl \
11818
lt_prog_compiler_pic \
11819
lt_prog_compiler_static \
11820
lt_prog_compiler_no_builtin_flag \
11821
export_dynamic_flag_spec \
11822
thread_safe_flag_spec \
11823
whole_archive_flag_spec \
11824
enable_shared_with_static_runtimes \
11826
old_archive_from_new_cmds \
11831
compiler_lib_search_path \
11833
archive_expsym_cmds \
11835
postuninstall_cmds \
11836
old_archive_from_expsyms_cmds \
11837
allow_undefined_flag \
11838
no_undefined_flag \
11839
export_symbols_cmds \
11840
hardcode_libdir_flag_spec \
11841
hardcode_libdir_flag_spec_ld \
11842
hardcode_libdir_separator \
11843
hardcode_automatic \
11845
module_expsym_cmds \
11846
lt_cv_prog_compiler_c_o \
11848
include_expsyms; do
11851
old_archive_cmds | \
11852
old_archive_from_new_cmds | \
11854
archive_expsym_cmds | \
11856
module_expsym_cmds | \
11857
old_archive_from_expsyms_cmds | \
11858
export_symbols_cmds | \
11859
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11860
postinstall_cmds | postuninstall_cmds | \
11861
old_postinstall_cmds | old_postuninstall_cmds | \
11862
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11863
# Double-quote double-evaled strings.
11864
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11867
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11873
*'\$0 --fallback-echo"')
11874
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11878
cfgfile="${ofile}T"
11879
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11881
{ echo "$as_me:$LINENO: creating $ofile" >&5
11882
echo "$as_me: creating $ofile" >&6;}
11884
cat <<__EOF__ >> "$cfgfile"
11887
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11888
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11889
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11891
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11892
# Free Software Foundation, Inc.
11894
# This file is part of GNU Libtool:
11895
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11897
# This program is free software; you can redistribute it and/or modify
11898
# it under the terms of the GNU General Public License as published by
11899
# the Free Software Foundation; either version 2 of the License, or
11900
# (at your option) any later version.
11902
# This program is distributed in the hope that it will be useful, but
11903
# WITHOUT ANY WARRANTY; without even the implied warranty of
11904
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11905
# General Public License for more details.
11907
# You should have received a copy of the GNU General Public License
11908
# along with this program; if not, write to the Free Software
11909
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11911
# As a special exception to the GNU General Public License, if you
11912
# distribute this file as part of a program that contains a
11913
# configuration script generated by Autoconf, you may include it under
11914
# the same distribution terms that you use for the rest of that program.
11916
# A sed program that does not truncate output.
11919
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11920
Xsed="$SED -e s/^X//"
11922
# The HP-UX ksh and POSIX shell print the target directory to stdout
11923
# if CDPATH is set.
11924
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11926
# The names of the tagged configurations supported by this script.
11929
# ### BEGIN LIBTOOL CONFIG
11931
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11933
# Shell to use when invoking shell scripts.
11936
# Whether or not to build shared libraries.
11937
build_libtool_libs=$enable_shared
11939
# Whether or not to build static libraries.
11940
build_old_libs=$enable_static
11942
# Whether or not to add -lc for building shared libraries.
11943
build_libtool_need_lc=$archive_cmds_need_lc
11945
# Whether or not to disallow shared libs when runtime libs are static
11946
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11948
# Whether or not to optimize for fast installation.
11949
fast_install=$enable_fast_install
11952
host_alias=$host_alias
11955
# An echo program that does not interpret backslashes.
11960
AR_FLAGS=$lt_AR_FLAGS
11965
# A language-specific compiler.
11968
# Is the compiler the GNU C compiler?
11974
# The linker used to build libraries.
11977
# Whether we need hard or soft links.
11980
# A BSD-compatible nm program.
11983
# A symbol stripping program
11986
# Used to examine libraries when file_magic_cmd begins "file"
11987
MAGIC_CMD=$MAGIC_CMD
11989
# Used on cygwin: DLL creation program.
11992
# Used on cygwin: object dumper.
11995
# Used on cygwin: assembler.
11998
# The name of the directory that contains temporary libtool files.
12001
# How to create reloadable object files.
12002
reload_flag=$lt_reload_flag
12003
reload_cmds=$lt_reload_cmds
12005
# How to pass a linker flag through the compiler.
12006
wl=$lt_lt_prog_compiler_wl
12008
# Object file suffix (normally "o").
12009
objext="$ac_objext"
12011
# Old archive suffix (normally "a").
12014
# Shared library suffix (normally ".so").
12015
shrext_cmds='$shrext_cmds'
12017
# Executable file suffix (normally "").
12020
# Additional compiler flags for building library objects.
12021
pic_flag=$lt_lt_prog_compiler_pic
12024
# What is the maximum length of a command?
12025
max_cmd_len=$lt_cv_sys_max_cmd_len
12027
# Does compiler simultaneously support -c and -o options?
12028
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12030
# Must we lock files when doing compilation ?
12031
need_locks=$lt_need_locks
12033
# Do we need the lib prefix for modules?
12034
need_lib_prefix=$need_lib_prefix
12036
# Do we need a version for libraries?
12037
need_version=$need_version
12039
# Whether dlopen is supported.
12040
dlopen_support=$enable_dlopen
12042
# Whether dlopen of programs is supported.
12043
dlopen_self=$enable_dlopen_self
12045
# Whether dlopen of statically linked programs is supported.
12046
dlopen_self_static=$enable_dlopen_self_static
12048
# Compiler flag to prevent dynamic linking.
12049
link_static_flag=$lt_lt_prog_compiler_static
12051
# Compiler flag to turn off builtin functions.
12052
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12054
# Compiler flag to allow reflexive dlopens.
12055
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12057
# Compiler flag to generate shared objects directly from archives.
12058
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12060
# Compiler flag to generate thread-safe objects.
12061
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12063
# Library versioning type.
12064
version_type=$version_type
12066
# Format of library name prefix.
12067
libname_spec=$lt_libname_spec
12069
# List of archive names. First name is the real one, the rest are links.
12070
# The last name is the one that the linker finds with -lNAME.
12071
library_names_spec=$lt_library_names_spec
12073
# The coded name of the library, if different from the real name.
12074
soname_spec=$lt_soname_spec
12076
# Commands used to build and install an old-style archive.
12078
old_archive_cmds=$lt_old_archive_cmds
12079
old_postinstall_cmds=$lt_old_postinstall_cmds
12080
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12082
# Create an old-style archive from a shared archive.
12083
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12085
# Create a temporary old-style archive to link instead of a shared archive.
12086
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12088
# Commands used to build and install a shared archive.
12089
archive_cmds=$lt_archive_cmds
12090
archive_expsym_cmds=$lt_archive_expsym_cmds
12091
postinstall_cmds=$lt_postinstall_cmds
12092
postuninstall_cmds=$lt_postuninstall_cmds
12094
# Commands used to build a loadable module (assumed same as above if empty)
12095
module_cmds=$lt_module_cmds
12096
module_expsym_cmds=$lt_module_expsym_cmds
12098
# Commands to strip libraries.
12099
old_striplib=$lt_old_striplib
12100
striplib=$lt_striplib
12102
# Dependencies to place before the objects being linked to create a
12104
predep_objects=$lt_predep_objects
12106
# Dependencies to place after the objects being linked to create a
12108
postdep_objects=$lt_postdep_objects
12110
# Dependencies to place before the objects being linked to create a
12112
predeps=$lt_predeps
12114
# Dependencies to place after the objects being linked to create a
12116
postdeps=$lt_postdeps
12118
# The library search path used internally by the compiler when linking
12119
# a shared library.
12120
compiler_lib_search_path=$lt_compiler_lib_search_path
12122
# Method to check whether dependent libraries are shared objects.
12123
deplibs_check_method=$lt_deplibs_check_method
12125
# Command to use when deplibs_check_method == file_magic.
12126
file_magic_cmd=$lt_file_magic_cmd
12128
# Flag that allows shared libraries with undefined symbols to be built.
12129
allow_undefined_flag=$lt_allow_undefined_flag
12131
# Flag that forces no undefined symbols.
12132
no_undefined_flag=$lt_no_undefined_flag
12134
# Commands used to finish a libtool library installation in a directory.
12135
finish_cmds=$lt_finish_cmds
12137
# Same as above, but a single script fragment to be evaled but not shown.
12138
finish_eval=$lt_finish_eval
12140
# Take the output of nm and produce a listing of raw symbols and C names.
12141
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12143
# Transform the output of nm in a proper C declaration
12144
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12146
# Transform the output of nm in a C name address pair
12147
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12149
# This is the shared library runtime path variable.
12150
runpath_var=$runpath_var
12152
# This is the shared library path variable.
12153
shlibpath_var=$shlibpath_var
12155
# Is shlibpath searched before the hard-coded library search path?
12156
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12158
# How to hardcode a shared library path into an executable.
12159
hardcode_action=$hardcode_action
12161
# Whether we should hardcode library paths into libraries.
12162
hardcode_into_libs=$hardcode_into_libs
12164
# Flag to hardcode \$libdir into a binary during linking.
12165
# This must work even if \$libdir does not exist.
12166
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12168
# If ld is used when linking, flag to hardcode \$libdir into
12169
# a binary during linking. This must work even if \$libdir does
12171
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12173
# Whether we need a single -rpath flag with a separated argument.
12174
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12176
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12177
# resulting binary.
12178
hardcode_direct=$hardcode_direct
12180
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12181
# resulting binary.
12182
hardcode_minus_L=$hardcode_minus_L
12184
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12185
# the resulting binary.
12186
hardcode_shlibpath_var=$hardcode_shlibpath_var
12188
# Set to yes if building a shared library automatically hardcodes DIR into the library
12189
# and all subsequent libraries and executables linked against it.
12190
hardcode_automatic=$hardcode_automatic
12192
# Variables whose values should be saved in libtool wrapper scripts and
12193
# restored at relink time.
12194
variables_saved_for_relink="$variables_saved_for_relink"
12196
# Whether libtool must link a program against all its dependency libraries.
12197
link_all_deplibs=$link_all_deplibs
12199
# Compile-time system search path for libraries
12200
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12202
# Run-time system search path for libraries
12203
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12205
# Fix the shell variable \$srcfile for the compiler.
12206
fix_srcfile_path="$fix_srcfile_path"
12208
# Set to yes if exported symbols are required.
12209
always_export_symbols=$always_export_symbols
12211
# The commands to list exported symbols.
12212
export_symbols_cmds=$lt_export_symbols_cmds
12214
# The commands to extract the exported symbol list from a shared archive.
12215
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12217
# Symbols that should not be listed in the preloaded symbols.
12218
exclude_expsyms=$lt_exclude_expsyms
12220
# Symbols that must always be exported.
12221
include_expsyms=$lt_include_expsyms
12223
# ### END LIBTOOL CONFIG
12230
cat <<\EOF >> "$cfgfile"
12232
# AIX sometimes has problems with the GCC collect2 program. For some
12233
# reason, if we set the COLLECT_NAMES environment variable, the problems
12234
# vanish in a puff of smoke.
12235
if test "X${COLLECT_NAMES+set}" != Xset; then
12237
export COLLECT_NAMES
12243
# We use sed instead of cat because bash on DJGPP gets confused if
12244
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12245
# text mode, it properly converts lines to CR/LF. This bash problem
12246
# is reportedly fixed, but why not run on old versions too?
12247
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12249
mv -f "$cfgfile" "$ofile" || \
12250
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12254
# If there is no Makefile yet, we rely on a make rule to execute
12255
# `config.status --recheck' to rerun these tests and create the
12256
# libtool script then.
12257
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12258
if test -f "$ltmain_in"; then
12259
test -f Makefile && make "$ltmain"
12265
ac_cpp='$CPP $CPPFLAGS'
12266
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12267
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12268
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12273
# Check whether --with-tags or --without-tags was given.
12274
if test "${with_tags+set}" = set; then
12275
withval="$with_tags"
12276
tagnames="$withval"
12279
if test -f "$ltmain" && test -n "$tagnames"; then
12280
if test ! -f "${ofile}"; then
12281
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12282
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12285
if test -z "$LTCC"; then
12286
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12287
if test -z "$LTCC"; then
12288
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12289
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12291
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12292
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12296
# Extract list of available tagged configurations in $ofile.
12297
# Note that this assumes the entire list is on one line.
12298
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12300
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12301
for tagname in $tagnames; do
12303
# Check whether tagname contains only valid characters
12304
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12306
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12307
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12308
{ (exit 1); exit 1; }; }
12312
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12314
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12315
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12316
{ (exit 1); exit 1; }; }
12319
# Update the list of available tags.
12320
if test -n "$tagname"; then
12321
echo appending configuration tag \"$tagname\" to $ofile
12325
if test -n "$CXX" && test "X$CXX" != "Xno"; then
12327
ac_cpp='$CXXCPP $CPPFLAGS'
12328
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12329
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12330
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12335
archive_cmds_need_lc_CXX=no
12336
allow_undefined_flag_CXX=
12337
always_export_symbols_CXX=no
12338
archive_expsym_cmds_CXX=
12339
export_dynamic_flag_spec_CXX=
12340
hardcode_direct_CXX=no
12341
hardcode_libdir_flag_spec_CXX=
12342
hardcode_libdir_flag_spec_ld_CXX=
12343
hardcode_libdir_separator_CXX=
12344
hardcode_minus_L_CXX=no
12345
hardcode_automatic_CXX=no
12347
module_expsym_cmds_CXX=
12348
link_all_deplibs_CXX=unknown
12349
old_archive_cmds_CXX=$old_archive_cmds
12350
no_undefined_flag_CXX=
12351
whole_archive_flag_spec_CXX=
12352
enable_shared_with_static_runtimes_CXX=no
12354
# Dependencies to place before and after the object being linked:
12355
predep_objects_CXX=
12356
postdep_objects_CXX=
12359
compiler_lib_search_path_CXX=
12361
# Source file extension for C++ test sources.
12364
# Object file extension for compiled C++ test sources.
12368
# Code to be used in simple compile tests
12369
lt_simple_compile_test_code="int some_variable = 0;\n"
12371
# Code to be used in simple link tests
12372
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12374
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12376
# If no C compiler was specified, use CC.
12379
# Allow CC to be a program name with arguments.
12383
# Allow CC to be a program name with arguments.
12388
lt_save_with_gnu_ld=$with_gnu_ld
12389
lt_save_path_LD=$lt_cv_path_LD
12390
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12391
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12393
unset lt_cv_prog_gnu_ld
12395
if test -n "${lt_cv_path_LDCXX+set}"; then
12396
lt_cv_path_LD=$lt_cv_path_LDCXX
12398
unset lt_cv_path_LD
12400
test -z "${LDCXX+set}" || LD=$LDCXX
12404
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12406
# We don't want -fno-exception wen compiling C++ code, so set the
12407
# no_builtin_flag separately
12408
if test "$GXX" = yes; then
12409
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12411
lt_prog_compiler_no_builtin_flag_CXX=
12414
if test "$GXX" = yes; then
12415
# Set up default GNU C++ configuration
12418
# Check whether --with-gnu-ld or --without-gnu-ld was given.
12419
if test "${with_gnu_ld+set}" = set; then
12420
withval="$with_gnu_ld"
12421
test "$withval" = no || with_gnu_ld=yes
12426
if test "$GCC" = yes; then
12427
# Check if gcc -print-prog-name=ld gives a path.
12428
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12429
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12432
# gcc leaves a trailing carriage return which upsets mingw
12433
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12435
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12438
# Accept absolute paths.
12440
re_direlt='/[^/][^/]*/\.\./'
12441
# Canonicalize the pathname of ld
12442
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12443
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12444
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12446
test -z "$LD" && LD="$ac_prog"
12449
# If it fails, then pretend we aren't using GCC.
12453
# If it is relative, then search for the first ld in PATH.
12454
with_gnu_ld=unknown
12457
elif test "$with_gnu_ld" = yes; then
12458
echo "$as_me:$LINENO: checking for GNU ld" >&5
12459
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12461
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12462
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12464
if test "${lt_cv_path_LD+set}" = set; then
12465
echo $ECHO_N "(cached) $ECHO_C" >&6
12467
if test -z "$LD"; then
12468
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12469
for ac_dir in $PATH; do
12471
test -z "$ac_dir" && ac_dir=.
12472
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12473
lt_cv_path_LD="$ac_dir/$ac_prog"
12474
# Check to see if the program is GNU ld. I'd rather use --version,
12475
# but apparently some GNU ld's only accept -v.
12476
# Break only if it was the GNU/non-GNU ld that we prefer.
12477
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12478
*GNU* | *'with BFD'*)
12479
test "$with_gnu_ld" != no && break
12482
test "$with_gnu_ld" != yes && break
12489
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12493
LD="$lt_cv_path_LD"
12494
if test -n "$LD"; then
12495
echo "$as_me:$LINENO: result: $LD" >&5
12496
echo "${ECHO_T}$LD" >&6
12498
echo "$as_me:$LINENO: result: no" >&5
12499
echo "${ECHO_T}no" >&6
12501
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12502
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12503
{ (exit 1); exit 1; }; }
12504
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12505
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12506
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12507
echo $ECHO_N "(cached) $ECHO_C" >&6
12509
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
12510
case `$LD -v 2>&1 </dev/null` in
12511
*GNU* | *'with BFD'*)
12512
lt_cv_prog_gnu_ld=yes
12515
lt_cv_prog_gnu_ld=no
12519
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12520
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12521
with_gnu_ld=$lt_cv_prog_gnu_ld
12525
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12526
# archiving commands below assume that GNU ld is being used.
12527
if test "$with_gnu_ld" = yes; then
12528
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12529
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'
12531
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12532
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12534
# If archive_cmds runs LD, not CC, wlarc should be empty
12535
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12536
# investigate it a little bit more. (MM)
12539
# ancient GNU ld didn't support --whole-archive et. al.
12540
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12541
grep 'no-whole-archive' > /dev/null; then
12542
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12544
whole_archive_flag_spec_CXX=
12550
# A generic and very simple default shared library creation
12551
# command for GNU C++ for the case where it uses the native
12552
# linker, instead of GNU ld. If possible, this setting should
12553
# overridden to take advantage of the native linker features on
12554
# the platform it is being used on.
12555
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12558
# Commands to make compiler produce verbose output that lists
12559
# what "hidden" libraries, object files and flags are used when
12560
# linking a shared library.
12561
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12569
# PORTME: fill in a description of your system's C++ link characteristics
12570
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12571
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12575
# FIXME: insert proper C++ library support
12579
if test "$host_cpu" = ia64; then
12580
# On IA64, the linker does run time linking by default, so we don't
12581
# have to do anything special.
12582
aix_use_runtimelinking=no
12583
exp_sym_flag='-Bexport'
12586
aix_use_runtimelinking=no
12588
# Test if we are trying to use run time linking or normal
12589
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12590
# need to do runtime linking.
12591
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12592
for ld_flag in $LDFLAGS; do
12595
aix_use_runtimelinking=yes
12602
exp_sym_flag='-bexport'
12603
no_entry_flag='-bnoentry'
12606
# When large executables or shared objects are built, AIX ld can
12607
# have problems creating the table of contents. If linking a library
12608
# or program results in "error TOC overflow" add -mminimal-toc to
12609
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12610
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12612
archive_cmds_CXX=''
12613
hardcode_direct_CXX=yes
12614
hardcode_libdir_separator_CXX=':'
12615
link_all_deplibs_CXX=yes
12617
if test "$GXX" = yes; then
12618
case $host_os in aix4.012|aix4.012.*)
12619
# We only want to do this on AIX 4.2 and lower, the check
12620
# below for broken collect2 doesn't work under 4.3+
12621
collect2name=`${CC} -print-prog-name=collect2`
12622
if test -f "$collect2name" && \
12623
strings "$collect2name" | grep resolve_lib_name >/dev/null
12625
# We have reworked collect2
12626
hardcode_direct_CXX=yes
12628
# We have old collect2
12629
hardcode_direct_CXX=unsupported
12630
# It fails to find uninstalled libraries when the uninstalled
12631
# path is not listed in the libpath. Setting hardcode_minus_L
12632
# to unsupported forces relinking
12633
hardcode_minus_L_CXX=yes
12634
hardcode_libdir_flag_spec_CXX='-L$libdir'
12635
hardcode_libdir_separator_CXX=
12638
shared_flag='-shared'
12641
if test "$host_cpu" = ia64; then
12642
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12643
# chokes on -Wl,-G. The following line is correct:
12646
if test "$aix_use_runtimelinking" = yes; then
12647
shared_flag='${wl}-G'
12649
shared_flag='${wl}-bM:SRE'
12654
# It seems that -bexpall does not export symbols beginning with
12655
# underscore (_), so it is better to generate a list of symbols to export.
12656
always_export_symbols_CXX=yes
12657
if test "$aix_use_runtimelinking" = yes; then
12658
# Warning - without using the other runtime loading flags (-brtl),
12659
# -berok will link without error, but may produce a broken library.
12660
allow_undefined_flag_CXX='-berok'
12661
# Determine the default libpath from the value encoded in an empty executable.
12662
cat >conftest.$ac_ext <<_ACEOF
12665
cat confdefs.h >>conftest.$ac_ext
12666
cat >>conftest.$ac_ext <<_ACEOF
12667
/* end confdefs.h. */
12677
rm -f conftest.$ac_objext conftest$ac_exeext
12678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679
(eval $ac_link) 2>conftest.er1
12681
grep -v '^ *+' conftest.er1 >conftest.err
12683
cat conftest.err >&5
12684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685
(exit $ac_status); } &&
12686
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688
(eval $ac_try) 2>&5
12690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691
(exit $ac_status); }; } &&
12692
{ ac_try='test -s conftest$ac_exeext'
12693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694
(eval $ac_try) 2>&5
12696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697
(exit $ac_status); }; }; then
12699
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12701
# Check for a 64-bit object if we didn't find anything.
12702
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; }
12705
echo "$as_me: failed program was:" >&5
12706
sed 's/^/| /' conftest.$ac_ext >&5
12709
rm -f conftest.err conftest.$ac_objext \
12710
conftest$ac_exeext conftest.$ac_ext
12711
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12713
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12715
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12717
if test "$host_cpu" = ia64; then
12718
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12719
allow_undefined_flag_CXX="-z nodefs"
12720
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12722
# Determine the default libpath from the value encoded in an empty executable.
12723
cat >conftest.$ac_ext <<_ACEOF
12726
cat confdefs.h >>conftest.$ac_ext
12727
cat >>conftest.$ac_ext <<_ACEOF
12728
/* end confdefs.h. */
12738
rm -f conftest.$ac_objext conftest$ac_exeext
12739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740
(eval $ac_link) 2>conftest.er1
12742
grep -v '^ *+' conftest.er1 >conftest.err
12744
cat conftest.err >&5
12745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746
(exit $ac_status); } &&
12747
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12748
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749
(eval $ac_try) 2>&5
12751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752
(exit $ac_status); }; } &&
12753
{ ac_try='test -s conftest$ac_exeext'
12754
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755
(eval $ac_try) 2>&5
12757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758
(exit $ac_status); }; }; then
12760
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12762
# Check for a 64-bit object if we didn't find anything.
12763
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; }
12766
echo "$as_me: failed program was:" >&5
12767
sed 's/^/| /' conftest.$ac_ext >&5
12770
rm -f conftest.err conftest.$ac_objext \
12771
conftest$ac_exeext conftest.$ac_ext
12772
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12774
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12775
# Warning - without using the other run time loading flags,
12776
# -berok will link without error, but may produce a broken library.
12777
no_undefined_flag_CXX=' ${wl}-bernotok'
12778
allow_undefined_flag_CXX=' ${wl}-berok'
12779
# -bexpall does not export symbols beginning with underscore (_)
12780
always_export_symbols_CXX=yes
12781
# Exported symbols can be pulled into shared objects from archives
12782
whole_archive_flag_spec_CXX=' '
12783
archive_cmds_need_lc_CXX=yes
12784
# This is similar to how AIX traditionally builds it's shared libraries.
12785
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12790
case $cc_basename in
12792
# FIXME: insert proper C++ library support
12798
cygwin* | mingw* | pw32*)
12799
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12800
# as there is no search path for DLLs.
12801
hardcode_libdir_flag_spec_CXX='-L$libdir'
12802
allow_undefined_flag_CXX=unsupported
12803
always_export_symbols_CXX=no
12804
enable_shared_with_static_runtimes_CXX=yes
12806
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12807
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12808
# If the export-symbols file already is a .def file (1st line
12809
# is EXPORTS), use it as is; otherwise, prepend...
12810
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12811
cp $export_symbols $output_objdir/$soname.def;
12813
echo EXPORTS > $output_objdir/$soname.def;
12814
cat $export_symbols >> $output_objdir/$soname.def;
12816
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12822
darwin* | rhapsody*)
12823
if test "$GXX" = yes; then
12824
archive_cmds_need_lc_CXX=no
12826
rhapsody* | darwin1.[012])
12827
allow_undefined_flag_CXX='-undefined suppress'
12830
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12831
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12833
case ${MACOSX_DEPLOYMENT_TARGET} in
12835
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12838
allow_undefined_flag_CXX='-undefined dynamic_lookup'
12844
lt_int_apple_cc_single_mod=no
12845
output_verbose_link_cmd='echo'
12846
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12847
lt_int_apple_cc_single_mod=yes
12849
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12850
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12852
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12854
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12856
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12857
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12858
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}'
12860
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12862
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}'
12863
hardcode_direct_CXX=no
12864
hardcode_automatic_CXX=yes
12865
hardcode_shlibpath_var_CXX=unsupported
12866
whole_archive_flag_spec_CXX='-all_load $convenience'
12867
link_all_deplibs_CXX=yes
12874
case $cc_basename in
12876
# FIXME: insert proper C++ library support
12880
# Green Hills C++ Compiler
12881
# FIXME: insert proper C++ library support
12885
# FIXME: insert proper C++ library support
12891
# C++ shared libraries reported to be fairly broken before switch to ELF
12895
archive_cmds_need_lc_CXX=no
12897
freebsd* | kfreebsd*-gnu)
12898
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12905
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12906
hardcode_libdir_separator_CXX=:
12907
export_dynamic_flag_spec_CXX='${wl}-E'
12908
hardcode_direct_CXX=yes
12909
hardcode_minus_L_CXX=yes # Not in the search PATH,
12910
# but as the default
12911
# location of the library.
12913
case $cc_basename in
12915
# FIXME: insert proper C++ library support
12919
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'
12920
# Commands to make compiler produce verbose output that lists
12921
# what "hidden" libraries, object files and flags are used when
12922
# linking a shared library.
12924
# There doesn't appear to be a way to prevent this compiler from
12925
# explicitly linking system object files so we need to strip them
12926
# from the output so that they don't get included in the library
12928
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'
12931
if test "$GXX" = yes; then
12932
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'
12934
# FIXME: insert proper C++ library support
12941
if test $with_gnu_ld = no; then
12942
case "$host_cpu" in
12944
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12945
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12946
hardcode_libdir_separator_CXX=:
12949
hardcode_libdir_flag_spec_CXX='-L$libdir'
12952
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12953
hardcode_libdir_separator_CXX=:
12954
export_dynamic_flag_spec_CXX='${wl}-E'
12958
case "$host_cpu" in
12960
hardcode_direct_CXX=no
12961
hardcode_shlibpath_var_CXX=no
12964
hardcode_direct_CXX=no
12965
hardcode_shlibpath_var_CXX=no
12966
hardcode_minus_L_CXX=yes # Not in the search PATH,
12967
# but as the default
12968
# location of the library.
12971
hardcode_direct_CXX=yes
12972
hardcode_minus_L_CXX=yes # Not in the search PATH,
12973
# but as the default
12974
# location of the library.
12978
case $cc_basename in
12980
# FIXME: insert proper C++ library support
12984
case "$host_cpu" in
12986
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12989
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992
# Commands to make compiler produce verbose output that lists
12993
# what "hidden" libraries, object files and flags are used when
12994
# linking a shared library.
12996
# There doesn't appear to be a way to prevent this compiler from
12997
# explicitly linking system object files so we need to strip them
12998
# from the output so that they don't get included in the library
13000
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'
13003
if test "$GXX" = yes; then
13004
if test $with_gnu_ld = no; then
13005
case "$host_cpu" in
13007
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13010
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'
13015
# FIXME: insert proper C++ library support
13022
case $cc_basename in
13025
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13027
# Archives containing C++ object files must be created using
13028
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13029
# necessary to make sure instantiated templates are included
13031
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13034
if test "$GXX" = yes; then
13035
if test "$with_gnu_ld" = no; then
13036
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13038
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'
13041
link_all_deplibs_CXX=yes
13044
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13045
hardcode_libdir_separator_CXX=:
13048
case $cc_basename in
13050
# Kuck and Associates, Inc. (KAI) C++ Compiler
13052
# KCC will only create a shared library if the output file
13053
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13054
# to its proper name (with version) after linking.
13055
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'
13056
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'
13057
# Commands to make compiler produce verbose output that lists
13058
# what "hidden" libraries, object files and flags are used when
13059
# linking a shared library.
13061
# There doesn't appear to be a way to prevent this compiler from
13062
# explicitly linking system object files so we need to strip them
13063
# from the output so that they don't get included in the library
13065
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'
13067
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13068
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13070
# Archives containing C++ object files must be created using
13071
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13072
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13077
archive_cmds_need_lc_CXX=no
13078
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13079
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'
13080
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13081
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13082
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13086
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13087
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'
13089
runpath_var=LD_RUN_PATH
13090
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13091
hardcode_libdir_separator_CXX=:
13093
# Commands to make compiler produce verbose output that lists
13094
# what "hidden" libraries, object files and flags are used when
13095
# linking a shared library.
13097
# There doesn't appear to be a way to prevent this compiler from
13098
# explicitly linking system object files so we need to strip them
13099
# from the output so that they don't get included in the library
13101
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'
13106
# FIXME: insert proper C++ library support
13110
# FIXME: insert proper C++ library support
13114
case $cc_basename in
13116
# FIXME: insert proper C++ library support
13120
# FIXME: insert proper C++ library support
13125
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13126
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13127
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13129
hardcode_libdir_flag_spec_CXX='-R$libdir'
13130
hardcode_direct_CXX=yes
13131
hardcode_shlibpath_var_CXX=no
13133
# Workaround some broken pre-1.5 toolchains
13134
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13137
case $cc_basename in
13139
# Kuck and Associates, Inc. (KAI) C++ Compiler
13141
# KCC will only create a shared library if the output file
13142
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13143
# to its proper name (with version) after linking.
13144
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'
13146
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13147
hardcode_libdir_separator_CXX=:
13149
# Archives containing C++ object files must be created using
13150
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13151
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13155
# Rational C++ 2.4.1
13156
# FIXME: insert proper C++ library support
13160
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13161
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13163
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13164
hardcode_libdir_separator_CXX=:
13166
# Commands to make compiler produce verbose output that lists
13167
# what "hidden" libraries, object files and flags are used when
13168
# linking a shared library.
13170
# There doesn't appear to be a way to prevent this compiler from
13171
# explicitly linking system object files so we need to strip them
13172
# from the output so that they don't get included in the library
13174
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'
13177
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13178
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13179
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13181
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13182
hardcode_libdir_separator_CXX=:
13184
# Commands to make compiler produce verbose output that lists
13185
# what "hidden" libraries, object files and flags are used when
13186
# linking a shared library.
13187
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13190
# FIXME: insert proper C++ library support
13197
case $cc_basename in
13199
# Kuck and Associates, Inc. (KAI) C++ Compiler
13201
# KCC will only create a shared library if the output file
13202
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13203
# to its proper name (with version) after linking.
13204
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'
13206
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13207
hardcode_libdir_separator_CXX=:
13209
# Archives containing C++ object files must be created using
13210
# the KAI C++ compiler.
13211
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13214
# Rational C++ 2.4.1
13215
# FIXME: insert proper C++ library support
13219
allow_undefined_flag_CXX=' -expect_unresolved \*'
13220
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13221
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13222
echo "-hidden">> $lib.exp~
13223
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
13226
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13227
hardcode_libdir_separator_CXX=:
13229
# Commands to make compiler produce verbose output that lists
13230
# what "hidden" libraries, object files and flags are used when
13231
# linking a shared library.
13233
# There doesn't appear to be a way to prevent this compiler from
13234
# explicitly linking system object files so we need to strip them
13235
# from the output so that they don't get included in the library
13237
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'
13240
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13241
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13242
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13244
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13245
hardcode_libdir_separator_CXX=:
13247
# Commands to make compiler produce verbose output that lists
13248
# what "hidden" libraries, object files and flags are used when
13249
# linking a shared library.
13250
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13253
# FIXME: insert proper C++ library support
13260
# FIXME: insert proper C++ library support
13264
archive_cmds_need_lc_CXX=no
13265
case $cc_basename in
13267
# FIXME: insert proper C++ library support
13271
# FIXME: insert proper C++ library support
13277
case $cc_basename in
13280
# FIXME: insert proper C++ library support
13285
# FIXME: insert proper C++ library support
13289
# FIXME: insert proper C++ library support
13295
case $cc_basename in
13297
# Sun C++ 4.2, 5.x and Centerline C++
13298
no_undefined_flag_CXX=' -zdefs'
13299
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13300
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13301
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13303
hardcode_libdir_flag_spec_CXX='-R$libdir'
13304
hardcode_shlibpath_var_CXX=no
13306
solaris2.0-5 | solaris2.0-5.*) ;;
13308
# The C++ compiler is used as linker so we must use $wl
13309
# flag to pass the commands to the underlying system
13311
# Supported since Solaris 2.6 (maybe 2.5.1?)
13312
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13315
link_all_deplibs_CXX=yes
13317
# Commands to make compiler produce verbose output that lists
13318
# what "hidden" libraries, object files and flags are used when
13319
# linking a shared library.
13321
# There doesn't appear to be a way to prevent this compiler from
13322
# explicitly linking system object files so we need to strip them
13323
# from the output so that they don't get included in the library
13325
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13327
# Archives containing C++ object files must be created using
13328
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13329
# necessary to make sure instantiated templates are included
13331
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13334
# Green Hills C++ Compiler
13335
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13337
# The C++ compiler must be used to create the archive.
13338
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13341
# GNU C++ compiler with Solaris linker
13342
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13343
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13344
if $CC --version | grep -v '^2\.7' > /dev/null; then
13345
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13346
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13347
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13349
# Commands to make compiler produce verbose output that lists
13350
# what "hidden" libraries, object files and flags are used when
13351
# linking a shared library.
13352
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13354
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13356
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13357
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13358
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13360
# Commands to make compiler produce verbose output that lists
13361
# what "hidden" libraries, object files and flags are used when
13362
# linking a shared library.
13363
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13366
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13371
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13372
archive_cmds_need_lc_CXX=no
13375
case $cc_basename in
13377
# NonStop-UX NCC 3.20
13378
# FIXME: insert proper C++ library support
13382
# FIXME: insert proper C++ library support
13388
# FIXME: insert proper C++ library support
13392
# FIXME: insert proper C++ library support
13396
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13397
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13398
test "$ld_shlibs_CXX" = no && can_build_shared=no
13404
## There is no encapsulation within the following macros, do not change
13405
## the running order or otherwise move them around unless you know exactly
13406
## what you are doing...
13408
cat > conftest.$ac_ext <<EOF
13412
Foo (void) { a = 0; }
13418
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13419
(eval $ac_compile) 2>&5
13421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422
(exit $ac_status); }; then
13423
# Parse the compiler output and extract the necessary
13424
# objects, libraries and library flags.
13426
# Sentinel used to keep track of whether or not we are before
13427
# the conftest object file.
13428
pre_test_object_deps_done=no
13430
# The `*' in the case matches for architectures that use `case' in
13431
# $output_verbose_cmd can trigger glob expansion during the loop
13432
# eval without this substitution.
13433
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13435
for p in `eval $output_verbose_link_cmd`; do
13439
# Some compilers place space between "-{L,R}" and the path.
13440
# Remove the space.
13441
if test $p = "-L" \
13442
|| test $p = "-R"; then
13449
if test "$pre_test_object_deps_done" = no; then
13452
# Internal compiler library paths should come after those
13453
# provided the user. The postdeps already come after the
13454
# user supplied libs so there is no need to process them.
13455
if test -z "$compiler_lib_search_path_CXX"; then
13456
compiler_lib_search_path_CXX="${prev}${p}"
13458
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13461
# The "-l" case would never come before the object being
13462
# linked, so don't bother handling this case.
13465
if test -z "$postdeps_CXX"; then
13466
postdeps_CXX="${prev}${p}"
13468
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13474
# This assumes that the test object file only shows up
13475
# once in the compiler output.
13476
if test "$p" = "conftest.$objext"; then
13477
pre_test_object_deps_done=yes
13481
if test "$pre_test_object_deps_done" = no; then
13482
if test -z "$predep_objects_CXX"; then
13483
predep_objects_CXX="$p"
13485
predep_objects_CXX="$predep_objects_CXX $p"
13488
if test -z "$postdep_objects_CXX"; then
13489
postdep_objects_CXX="$p"
13491
postdep_objects_CXX="$postdep_objects_CXX $p"
13496
*) ;; # Ignore the rest.
13504
echo "libtool.m4: error: problem compiling CXX test program"
13507
$rm -f confest.$objext
13509
case " $postdeps_CXX " in
13510
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13513
lt_prog_compiler_wl_CXX=
13514
lt_prog_compiler_pic_CXX=
13515
lt_prog_compiler_static_CXX=
13517
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13518
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13520
# C++ specific cases for pic, static, wl, etc.
13521
if test "$GXX" = yes; then
13522
lt_prog_compiler_wl_CXX='-Wl,'
13523
lt_prog_compiler_static_CXX='-static'
13527
# All AIX code is PIC.
13528
if test "$host_cpu" = ia64; then
13529
# AIX 5 now supports IA64 processor
13530
lt_prog_compiler_static_CXX='-Bstatic'
13534
# FIXME: we need at least 68020 code to build shared libraries, but
13535
# adding the `-m68020' flag to GCC prevents building anything better,
13537
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13539
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13540
# PIC is the default for these OSes.
13542
mingw* | os2* | pw32*)
13543
# This hack is so that the source file can tell whether it is being
13544
# built for inclusion in a dll (and should export symbols for example).
13545
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13547
darwin* | rhapsody*)
13548
# PIC is the default on this platform
13549
# Common symbols not allowed in MH_DYLIB files
13550
lt_prog_compiler_pic_CXX='-fno-common'
13553
# DJGPP does not support shared libraries at all
13554
lt_prog_compiler_pic_CXX=
13557
if test -d /usr/nec; then
13558
lt_prog_compiler_pic_CXX=-Kconform_pic
13562
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13563
# not for PA HP-UX.
13564
case "$host_cpu" in
13568
lt_prog_compiler_pic_CXX='-fPIC'
13573
lt_prog_compiler_pic_CXX='-fPIC'
13579
# All AIX code is PIC.
13580
if test "$host_cpu" = ia64; then
13581
# AIX 5 now supports IA64 processor
13582
lt_prog_compiler_static_CXX='-Bstatic'
13584
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13588
case $cc_basename in
13590
# Green Hills C++ Compiler
13591
# _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"
13596
case $cc_basename in
13598
lt_prog_compiler_pic_CXX='-KPIC'
13601
# Green Hills C++ Compiler
13602
lt_prog_compiler_pic_CXX='-pic'
13608
freebsd* | kfreebsd*-gnu)
13609
# FreeBSD uses GNU C++
13611
hpux9* | hpux10* | hpux11*)
13612
case $cc_basename in
13614
lt_prog_compiler_wl_CXX='-Wl,'
13615
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13616
if test "$host_cpu" != ia64; then
13617
lt_prog_compiler_pic_CXX='+Z'
13621
lt_prog_compiler_wl_CXX='-Wl,'
13622
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13623
case "$host_cpu" in
13628
lt_prog_compiler_pic_CXX='+Z'
13636
irix5* | irix6* | nonstopux*)
13637
case $cc_basename in
13639
lt_prog_compiler_wl_CXX='-Wl,'
13640
lt_prog_compiler_static_CXX='-non_shared'
13641
# CC pic flag -KPIC is the default.
13648
case $cc_basename in
13651
lt_prog_compiler_wl_CXX='--backend -Wl,'
13652
lt_prog_compiler_pic_CXX='-fPIC'
13656
lt_prog_compiler_wl_CXX='-Wl,'
13657
lt_prog_compiler_pic_CXX='-KPIC'
13658
lt_prog_compiler_static_CXX='-static'
13662
# Make sure the PIC flag is empty. It appears that all Alpha
13663
# Linux and Compaq Tru64 Unix objects are PIC.
13664
lt_prog_compiler_pic_CXX=
13665
lt_prog_compiler_static_CXX='-non_shared'
13676
case $cc_basename in
13678
lt_prog_compiler_pic_CXX='-W c,exportall'
13684
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13686
osf3* | osf4* | osf5*)
13687
case $cc_basename in
13689
lt_prog_compiler_wl_CXX='--backend -Wl,'
13692
# Rational C++ 2.4.1
13693
lt_prog_compiler_pic_CXX='-pic'
13696
# Digital/Compaq C++
13697
lt_prog_compiler_wl_CXX='-Wl,'
13698
# Make sure the PIC flag is empty. It appears that all Alpha
13699
# Linux and Compaq Tru64 Unix objects are PIC.
13700
lt_prog_compiler_pic_CXX=
13701
lt_prog_compiler_static_CXX='-non_shared'
13710
case $cc_basename in
13712
lt_prog_compiler_pic_CXX='-fPIC'
13719
case $cc_basename in
13721
# Sun C++ 4.2, 5.x and Centerline C++
13722
lt_prog_compiler_pic_CXX='-KPIC'
13723
lt_prog_compiler_static_CXX='-Bstatic'
13724
lt_prog_compiler_wl_CXX='-Qoption ld '
13727
# Green Hills C++ Compiler
13728
lt_prog_compiler_pic_CXX='-PIC'
13735
case $cc_basename in
13738
lt_prog_compiler_pic_CXX='-pic'
13739
lt_prog_compiler_static_CXX='-Bstatic'
13743
lt_prog_compiler_pic_CXX='-pic'
13750
case $cc_basename in
13752
# NonStop-UX NCC 3.20
13753
lt_prog_compiler_pic_CXX='-KPIC'
13764
lt_prog_compiler_can_build_shared_CXX=no
13769
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13770
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13773
# Check to make sure the PIC flag actually works.
13775
if test -n "$lt_prog_compiler_pic_CXX"; then
13777
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13778
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13779
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13780
echo $ECHO_N "(cached) $ECHO_C" >&6
13782
lt_prog_compiler_pic_works_CXX=no
13783
ac_outfile=conftest.$ac_objext
13784
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13785
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13786
# Insert the option either (1) after the last *FLAGS variable, or
13787
# (2) before a word containing "conftest.", or (3) at the end.
13788
# Note that $ac_compile itself does not contain backslashes and begins
13789
# with a dollar sign (not a hyphen), so the echo should work correctly.
13790
# The option is referenced via a variable to avoid confusing sed.
13791
lt_compile=`echo "$ac_compile" | $SED \
13792
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13793
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13794
-e 's:$: $lt_compiler_flag:'`
13795
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13796
(eval "$lt_compile" 2>conftest.err)
13798
cat conftest.err >&5
13799
echo "$as_me:__oline__: \$? = $ac_status" >&5
13800
if (exit $ac_status) && test -s "$ac_outfile"; then
13801
# The compiler can only warn and ignore the option if not recognized
13802
# So say no if there are warnings
13803
if test ! -s conftest.err; then
13804
lt_prog_compiler_pic_works_CXX=yes
13810
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13811
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13813
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13814
case $lt_prog_compiler_pic_CXX in
13816
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13819
lt_prog_compiler_pic_CXX=
13820
lt_prog_compiler_can_build_shared_CXX=no
13825
# For platforms which do not support PIC, -DPIC is meaningless:
13827
lt_prog_compiler_pic_CXX=
13830
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13834
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13835
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13836
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13837
echo $ECHO_N "(cached) $ECHO_C" >&6
13839
lt_cv_prog_compiler_c_o_CXX=no
13840
$rm -r conftest 2>/dev/null
13844
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13846
lt_compiler_flag="-o out/conftest2.$ac_objext"
13847
# Insert the option either (1) after the last *FLAGS variable, or
13848
# (2) before a word containing "conftest.", or (3) at the end.
13849
# Note that $ac_compile itself does not contain backslashes and begins
13850
# with a dollar sign (not a hyphen), so the echo should work correctly.
13851
lt_compile=`echo "$ac_compile" | $SED \
13852
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13853
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13854
-e 's:$: $lt_compiler_flag:'`
13855
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13856
(eval "$lt_compile" 2>out/conftest.err)
13858
cat out/conftest.err >&5
13859
echo "$as_me:__oline__: \$? = $ac_status" >&5
13860
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13862
# The compiler can only warn and ignore the option if not recognized
13863
# So say no if there are warnings
13864
if test ! -s out/conftest.err; then
13865
lt_cv_prog_compiler_c_o_CXX=yes
13870
# SGI C++ compiler will create directory out/ii_files/ for
13871
# template instantiation
13872
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13873
$rm out/* && rmdir out
13879
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13880
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13883
hard_links="nottested"
13884
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13885
# do not overwrite the value of need_locks provided by the user
13886
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13887
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13890
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13892
ln conftest.a conftest.b 2>&5 || hard_links=no
13893
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13894
echo "$as_me:$LINENO: result: $hard_links" >&5
13895
echo "${ECHO_T}$hard_links" >&6
13896
if test "$hard_links" = no; then
13897
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13898
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13905
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13906
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13908
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13911
# If we're using GNU nm, then we don't want the "-C" option.
13912
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13913
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13914
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'
13916
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'
13920
export_symbols_cmds_CXX="$ltdll_cmds"
13923
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13926
link_all_deplibs_CXX=no
13929
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13933
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13934
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13935
test "$ld_shlibs_CXX" = no && can_build_shared=no
13937
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13938
if test "$GCC" = yes; then
13939
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13943
# Do we need to explicitly link libc?
13945
case "x$archive_cmds_need_lc_CXX" in
13947
# Assume -lc should be added
13948
archive_cmds_need_lc_CXX=yes
13950
if test "$enable_shared" = yes && test "$GCC" = yes; then
13951
case $archive_cmds_CXX in
13953
# FIXME: we may have to deal with multi-command sequences.
13956
# Test whether the compiler implicitly links with -lc since on some
13957
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13958
# to ld, don't add -lc before -lgcc.
13959
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13960
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13962
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13964
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13965
(eval $ac_compile) 2>&5
13967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968
(exit $ac_status); } 2>conftest.err; then
13971
libobjs=conftest.$ac_objext
13973
wl=$lt_prog_compiler_wl_CXX
13979
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13980
allow_undefined_flag_CXX=
13981
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13982
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985
(exit $ac_status); }
13987
archive_cmds_need_lc_CXX=no
13989
archive_cmds_need_lc_CXX=yes
13991
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13993
cat conftest.err 1>&5
13996
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13997
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14004
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14005
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14006
library_names_spec=
14007
libname_spec='lib$name'
14011
postuninstall_cmds=
14015
shlibpath_overrides_runpath=unknown
14017
dynamic_linker="$host_os ld.so"
14018
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14019
if test "$GCC" = yes; then
14020
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14021
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14022
# if the path contains ";" then we assume it to be the separator
14023
# otherwise default to the standard path separator (i.e. ":") - it is
14024
# assumed that no part of a normal pathname contains ";" but that should
14025
# okay in the real world where ";" in dirpaths is itself problematic.
14026
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14028
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14031
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14033
need_lib_prefix=unknown
14034
hardcode_into_libs=no
14036
# when you set need_version to no, make sure it does not cause -set_version
14037
# flags to be left without arguments
14038
need_version=unknown
14043
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14044
shlibpath_var=LIBPATH
14046
# AIX 3 has no versioning support, so we append a major version to the name.
14047
soname_spec='${libname}${release}${shared_ext}$major'
14054
hardcode_into_libs=yes
14055
if test "$host_cpu" = ia64; then
14056
# AIX 5 supports IA64
14057
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14058
shlibpath_var=LD_LIBRARY_PATH
14060
# With GCC up to 2.95.x, collect2 would create an import file
14061
# for dependence libraries. The import file would start with
14062
# the line `#! .'. This would cause the generated library to
14063
# depend on `.', always an invalid library. This was fixed in
14064
# development snapshots of GCC prior to 3.0.
14066
aix4 | aix4.[01] | aix4.[01].*)
14067
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14069
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14072
can_build_shared=no
14076
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14077
# soname into executable. Probably we can add versioning support to
14078
# collect2, so additional links can be useful in future.
14079
if test "$aix_use_runtimelinking" = yes; then
14080
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14081
# instead of lib<name>.a to let people know that these are not
14082
# typical AIX shared libraries.
14083
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14085
# We preserve .a as extension for shared libraries through AIX4.2
14086
# and later when we are not doing run time linking.
14087
library_names_spec='${libname}${release}.a $libname.a'
14088
soname_spec='${libname}${release}${shared_ext}$major'
14090
shlibpath_var=LIBPATH
14095
library_names_spec='$libname.ixlibrary $libname.a'
14096
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14097
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'
14101
library_names_spec='${libname}${shared_ext}'
14102
dynamic_linker="$host_os ld.so"
14103
shlibpath_var=LIBRARY_PATH
14109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110
soname_spec='${libname}${release}${shared_ext}$major'
14111
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14112
shlibpath_var=LD_LIBRARY_PATH
14113
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14114
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14115
# the default ld.so.conf also contains /usr/contrib/lib and
14116
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14117
# libtool to hard-code these into programs
14120
cygwin* | mingw* | pw32*)
14121
version_type=windows
14126
case $GCC,$host_os in
14127
yes,cygwin* | yes,mingw* | yes,pw32*)
14128
library_names_spec='$libname.dll.a'
14129
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14130
postinstall_cmds='base_file=`basename \${file}`~
14131
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14132
dldir=$destdir/`dirname \$dlpath`~
14133
test -d \$dldir || mkdir -p \$dldir~
14134
$install_prog $dir/$dlname \$dldir/$dlname'
14135
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14136
dlpath=$dir/\$dldll~
14138
shlibpath_overrides_runpath=yes
14142
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14143
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14144
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14147
# MinGW DLLs use traditional 'lib' prefix
14148
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14149
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14150
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14151
# It is most probably a Windows format PATH printed by
14152
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14153
# path with ; separators, and with drive letters. We can handle the
14154
# drive letters (cygwin fileutils understands them), so leave them,
14155
# especially as we might pass files found there to a mingw objdump,
14156
# which wouldn't understand a cygwinified path. Ahh.
14157
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14159
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14163
# pw32 DLLs use 'pw' prefix rather than 'lib'
14164
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14170
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14173
dynamic_linker='Win32 ld.exe'
14174
# FIXME: first we should search . and the directory the executable is in
14178
darwin* | rhapsody*)
14179
dynamic_linker="$host_os dyld"
14180
version_type=darwin
14183
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14184
soname_spec='${libname}${release}${major}$shared_ext'
14185
shlibpath_overrides_runpath=yes
14186
shlibpath_var=DYLD_LIBRARY_PATH
14187
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14188
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14189
if test "$GCC" = yes; then
14190
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"`
14192
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14194
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14202
soname_spec='${libname}${release}${shared_ext}$major'
14203
shlibpath_var=LD_LIBRARY_PATH
14214
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14215
soname_spec='${libname}${release}${shared_ext}$major'
14216
shlibpath_var=LD_LIBRARY_PATH
14217
shlibpath_overrides_runpath=no
14218
hardcode_into_libs=yes
14219
dynamic_linker='GNU ld.so'
14223
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14224
version_type=freebsd-$objformat
14225
case $version_type in
14227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14232
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14236
shlibpath_var=LD_LIBRARY_PATH
14239
shlibpath_overrides_runpath=yes
14241
freebsd3.01* | freebsdelf3.01*)
14242
shlibpath_overrides_runpath=yes
14243
hardcode_into_libs=yes
14246
shlibpath_overrides_runpath=no
14247
hardcode_into_libs=yes
14256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14257
soname_spec='${libname}${release}${shared_ext}$major'
14258
shlibpath_var=LD_LIBRARY_PATH
14259
hardcode_into_libs=yes
14262
hpux9* | hpux10* | hpux11*)
14263
# Give a soname corresponding to the major version so that dld.sl refuses to
14264
# link against other versions.
14268
case "$host_cpu" in
14271
hardcode_into_libs=yes
14272
dynamic_linker="$host_os dld.so"
14273
shlibpath_var=LD_LIBRARY_PATH
14274
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276
soname_spec='${libname}${release}${shared_ext}$major'
14277
if test "X$HPUX_IA64_MODE" = X32; then
14278
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14280
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14282
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14286
hardcode_into_libs=yes
14287
dynamic_linker="$host_os dld.sl"
14288
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14289
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14290
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291
soname_spec='${libname}${release}${shared_ext}$major'
14292
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14293
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14297
dynamic_linker="$host_os dld.sl"
14298
shlibpath_var=SHLIB_PATH
14299
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14301
soname_spec='${libname}${release}${shared_ext}$major'
14304
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14305
postinstall_cmds='chmod 555 $lib'
14308
irix5* | irix6* | nonstopux*)
14310
nonstopux*) version_type=nonstopux ;;
14312
if test "$lt_cv_prog_gnu_ld" = yes; then
14320
soname_spec='${libname}${release}${shared_ext}$major'
14321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14323
irix5* | nonstopux*)
14324
libsuff= shlibsuff=
14327
case $LD in # libtool.m4 will add one of these switches to LD
14328
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14329
libsuff= shlibsuff= libmagic=32-bit;;
14330
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14331
libsuff=32 shlibsuff=N32 libmagic=N32;;
14332
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14333
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14334
*) libsuff= shlibsuff= libmagic=never-match;;
14338
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14339
shlibpath_overrides_runpath=no
14340
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14341
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14342
hardcode_into_libs=yes
14345
# No shared lib support for Linux oldld, aout, or coff.
14346
linux*oldld* | linux*aout* | linux*coff*)
14350
# This must be Linux ELF.
14355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356
soname_spec='${libname}${release}${shared_ext}$major'
14357
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14358
shlibpath_var=LD_LIBRARY_PATH
14359
shlibpath_overrides_runpath=no
14360
# This implies no fast_install, which is unacceptable.
14361
# Some rework will be needed to allow for fast_install
14362
# before this can be enabled.
14363
hardcode_into_libs=yes
14365
# Append ld.so.conf contents to the search path
14366
if test -f /etc/ld.so.conf; then
14367
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14368
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14371
# We used to test for /lib/ld.so.1 and disable shared libraries on
14372
# powerpc, because MkLinux only supported shared libraries with the
14373
# GNU dynamic linker. Since this was broken with cross compilers,
14374
# most powerpc-linux boxes support dynamic linking these days and
14375
# people can always --disable-shared, the test was removed, and we
14376
# assume the GNU/Linux dynamic linker is in use.
14377
dynamic_linker='GNU/Linux ld.so'
14384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14385
soname_spec='${libname}${release}${shared_ext}$major'
14386
shlibpath_var=LD_LIBRARY_PATH
14387
shlibpath_overrides_runpath=no
14388
hardcode_into_libs=yes
14389
dynamic_linker='NetBSD ld.elf_so'
14396
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14397
soname_spec='${libname}${release}${shared_ext}$major'
14398
shlibpath_var=LD_LIBRARY_PATH
14399
shlibpath_overrides_runpath=no
14400
hardcode_into_libs=yes
14401
dynamic_linker='GNU ld.so'
14408
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14410
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14411
dynamic_linker='NetBSD (a.out) ld.so'
14413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14414
soname_spec='${libname}${release}${shared_ext}$major'
14415
dynamic_linker='NetBSD ld.elf_so'
14417
shlibpath_var=LD_LIBRARY_PATH
14418
shlibpath_overrides_runpath=yes
14419
hardcode_into_libs=yes
14424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425
shlibpath_var=LD_LIBRARY_PATH
14426
shlibpath_overrides_runpath=yes
14433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434
soname_spec='${libname}${release}${shared_ext}$major'
14435
shlibpath_var=LD_LIBRARY_PATH
14436
shlibpath_overrides_runpath=yes
14443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14444
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14445
shlibpath_var=LD_LIBRARY_PATH
14446
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14448
openbsd2.[89] | openbsd2.[89].*)
14449
shlibpath_overrides_runpath=no
14452
shlibpath_overrides_runpath=yes
14456
shlibpath_overrides_runpath=yes
14461
libname_spec='$name'
14464
library_names_spec='$libname${shared_ext} $libname.a'
14465
dynamic_linker='OS/2 ld.exe'
14466
shlibpath_var=LIBPATH
14469
osf3* | osf4* | osf5*)
14473
soname_spec='${libname}${release}${shared_ext}$major'
14474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475
shlibpath_var=LD_LIBRARY_PATH
14476
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14477
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14482
soname_spec='${libname}${release}${shared_ext}$major'
14483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484
shlibpath_var=LD_LIBRARY_PATH
14491
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492
soname_spec='${libname}${release}${shared_ext}$major'
14493
shlibpath_var=LD_LIBRARY_PATH
14494
shlibpath_overrides_runpath=yes
14495
hardcode_into_libs=yes
14496
# ldd complains unless libraries are executable
14497
postinstall_cmds='chmod +x $lib'
14502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14503
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14504
shlibpath_var=LD_LIBRARY_PATH
14505
shlibpath_overrides_runpath=yes
14506
if test "$with_gnu_ld" = yes; then
14512
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515
soname_spec='${libname}${release}${shared_ext}$major'
14516
shlibpath_var=LD_LIBRARY_PATH
14517
case $host_vendor in
14519
shlibpath_overrides_runpath=no
14521
export_dynamic_flag_spec='${wl}-Blargedynsym'
14522
runpath_var=LD_RUN_PATH
14530
shlibpath_overrides_runpath=no
14531
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14537
if test -d /usr/nec ;then
14539
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14540
soname_spec='$libname${shared_ext}.$major'
14541
shlibpath_var=LD_LIBRARY_PATH
14547
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548
soname_spec='${libname}${release}${shared_ext}$major'
14549
shlibpath_var=LD_LIBRARY_PATH
14556
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14557
echo "${ECHO_T}$dynamic_linker" >&6
14558
test "$dynamic_linker" = no && can_build_shared=no
14560
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14561
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14562
hardcode_action_CXX=
14563
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14564
test -n "$runpath_var CXX" || \
14565
test "X$hardcode_automatic_CXX"="Xyes" ; then
14567
# We can hardcode non-existant directories.
14568
if test "$hardcode_direct_CXX" != no &&
14569
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14570
# have to relink, otherwise we might link with an installed library
14571
# when we should be linking with a yet-to-be-installed one
14572
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14573
test "$hardcode_minus_L_CXX" != no; then
14574
# Linking always hardcodes the temporary library directory.
14575
hardcode_action_CXX=relink
14577
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14578
hardcode_action_CXX=immediate
14581
# We cannot hardcode anything, or else we can only hardcode existing
14583
hardcode_action_CXX=unsupported
14585
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14586
echo "${ECHO_T}$hardcode_action_CXX" >&6
14588
if test "$hardcode_action_CXX" = relink; then
14589
# Fast installation is not supported
14590
enable_fast_install=no
14591
elif test "$shlibpath_overrides_runpath" = yes ||
14592
test "$enable_shared" = no; then
14593
# Fast installation is not necessary
14594
enable_fast_install=needless
14599
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14600
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14601
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14602
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14603
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14604
echo "$as_me:$LINENO: result: yes" >&5
14605
echo "${ECHO_T}yes" >&6
14607
# FIXME - insert some real tests, host_os isn't really good enough
14610
if test -n "$STRIP" ; then
14611
striplib="$STRIP -x"
14612
echo "$as_me:$LINENO: result: yes" >&5
14613
echo "${ECHO_T}yes" >&6
14615
echo "$as_me:$LINENO: result: no" >&5
14616
echo "${ECHO_T}no" >&6
14620
echo "$as_me:$LINENO: result: no" >&5
14621
echo "${ECHO_T}no" >&6
14626
if test "x$enable_dlopen" != xyes; then
14627
enable_dlopen=unknown
14628
enable_dlopen_self=unknown
14629
enable_dlopen_self_static=unknown
14636
lt_cv_dlopen="load_add_on"
14638
lt_cv_dlopen_self=yes
14642
lt_cv_dlopen="LoadLibrary"
14647
lt_cv_dlopen="dlopen"
14652
# if libdl is installed we need to link against it
14653
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14654
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14655
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14656
echo $ECHO_N "(cached) $ECHO_C" >&6
14658
ac_check_lib_save_LIBS=$LIBS
14660
cat >conftest.$ac_ext <<_ACEOF
14663
cat confdefs.h >>conftest.$ac_ext
14664
cat >>conftest.$ac_ext <<_ACEOF
14665
/* end confdefs.h. */
14667
/* Override any gcc2 internal prototype to avoid an error. */
14671
/* We use char because int might match the return type of a gcc2
14672
builtin and then its argument prototype would still apply. */
14682
rm -f conftest.$ac_objext conftest$ac_exeext
14683
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14684
(eval $ac_link) 2>conftest.er1
14686
grep -v '^ *+' conftest.er1 >conftest.err
14688
cat conftest.err >&5
14689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690
(exit $ac_status); } &&
14691
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14692
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693
(eval $ac_try) 2>&5
14695
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696
(exit $ac_status); }; } &&
14697
{ ac_try='test -s conftest$ac_exeext'
14698
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699
(eval $ac_try) 2>&5
14701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702
(exit $ac_status); }; }; then
14703
ac_cv_lib_dl_dlopen=yes
14705
echo "$as_me: failed program was:" >&5
14706
sed 's/^/| /' conftest.$ac_ext >&5
14708
ac_cv_lib_dl_dlopen=no
14710
rm -f conftest.err conftest.$ac_objext \
14711
conftest$ac_exeext conftest.$ac_ext
14712
LIBS=$ac_check_lib_save_LIBS
14714
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14715
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14716
if test $ac_cv_lib_dl_dlopen = yes; then
14717
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14720
lt_cv_dlopen="dyld"
14722
lt_cv_dlopen_self=yes
14729
echo "$as_me:$LINENO: checking for shl_load" >&5
14730
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14731
if test "${ac_cv_func_shl_load+set}" = set; then
14732
echo $ECHO_N "(cached) $ECHO_C" >&6
14734
cat >conftest.$ac_ext <<_ACEOF
14737
cat confdefs.h >>conftest.$ac_ext
14738
cat >>conftest.$ac_ext <<_ACEOF
14739
/* end confdefs.h. */
14740
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14741
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14742
#define shl_load innocuous_shl_load
14744
/* System header to define __stub macros and hopefully few prototypes,
14745
which can conflict with char shl_load (); below.
14746
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14747
<limits.h> exists even on freestanding compilers. */
14750
# include <limits.h>
14752
# include <assert.h>
14757
/* Override any gcc2 internal prototype to avoid an error. */
14762
/* We use char because int might match the return type of a gcc2
14763
builtin and then its argument prototype would still apply. */
14765
/* The GNU C library defines this for functions which it implements
14766
to always fail with ENOSYS. Some functions are actually named
14767
something starting with __ and the normal name is an alias. */
14768
#if defined (__stub_shl_load) || defined (__stub___shl_load)
14771
char (*f) () = shl_load;
14780
return f != shl_load;
14785
rm -f conftest.$ac_objext conftest$ac_exeext
14786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787
(eval $ac_link) 2>conftest.er1
14789
grep -v '^ *+' conftest.er1 >conftest.err
14791
cat conftest.err >&5
14792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793
(exit $ac_status); } &&
14794
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796
(eval $ac_try) 2>&5
14798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799
(exit $ac_status); }; } &&
14800
{ ac_try='test -s conftest$ac_exeext'
14801
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802
(eval $ac_try) 2>&5
14804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805
(exit $ac_status); }; }; then
14806
ac_cv_func_shl_load=yes
14808
echo "$as_me: failed program was:" >&5
14809
sed 's/^/| /' conftest.$ac_ext >&5
14811
ac_cv_func_shl_load=no
14813
rm -f conftest.err conftest.$ac_objext \
14814
conftest$ac_exeext conftest.$ac_ext
14816
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14817
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14818
if test $ac_cv_func_shl_load = yes; then
14819
lt_cv_dlopen="shl_load"
14821
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14822
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14823
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14824
echo $ECHO_N "(cached) $ECHO_C" >&6
14826
ac_check_lib_save_LIBS=$LIBS
14828
cat >conftest.$ac_ext <<_ACEOF
14831
cat confdefs.h >>conftest.$ac_ext
14832
cat >>conftest.$ac_ext <<_ACEOF
14833
/* end confdefs.h. */
14835
/* Override any gcc2 internal prototype to avoid an error. */
14839
/* We use char because int might match the return type of a gcc2
14840
builtin and then its argument prototype would still apply. */
14850
rm -f conftest.$ac_objext conftest$ac_exeext
14851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852
(eval $ac_link) 2>conftest.er1
14854
grep -v '^ *+' conftest.er1 >conftest.err
14856
cat conftest.err >&5
14857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858
(exit $ac_status); } &&
14859
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861
(eval $ac_try) 2>&5
14863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864
(exit $ac_status); }; } &&
14865
{ ac_try='test -s conftest$ac_exeext'
14866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867
(eval $ac_try) 2>&5
14869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870
(exit $ac_status); }; }; then
14871
ac_cv_lib_dld_shl_load=yes
14873
echo "$as_me: failed program was:" >&5
14874
sed 's/^/| /' conftest.$ac_ext >&5
14876
ac_cv_lib_dld_shl_load=no
14878
rm -f conftest.err conftest.$ac_objext \
14879
conftest$ac_exeext conftest.$ac_ext
14880
LIBS=$ac_check_lib_save_LIBS
14882
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14883
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14884
if test $ac_cv_lib_dld_shl_load = yes; then
14885
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14887
echo "$as_me:$LINENO: checking for dlopen" >&5
14888
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14889
if test "${ac_cv_func_dlopen+set}" = set; then
14890
echo $ECHO_N "(cached) $ECHO_C" >&6
14892
cat >conftest.$ac_ext <<_ACEOF
14895
cat confdefs.h >>conftest.$ac_ext
14896
cat >>conftest.$ac_ext <<_ACEOF
14897
/* end confdefs.h. */
14898
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14899
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14900
#define dlopen innocuous_dlopen
14902
/* System header to define __stub macros and hopefully few prototypes,
14903
which can conflict with char dlopen (); below.
14904
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14905
<limits.h> exists even on freestanding compilers. */
14908
# include <limits.h>
14910
# include <assert.h>
14915
/* Override any gcc2 internal prototype to avoid an error. */
14920
/* We use char because int might match the return type of a gcc2
14921
builtin and then its argument prototype would still apply. */
14923
/* The GNU C library defines this for functions which it implements
14924
to always fail with ENOSYS. Some functions are actually named
14925
something starting with __ and the normal name is an alias. */
14926
#if defined (__stub_dlopen) || defined (__stub___dlopen)
14929
char (*f) () = dlopen;
14938
return f != dlopen;
14943
rm -f conftest.$ac_objext conftest$ac_exeext
14944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14945
(eval $ac_link) 2>conftest.er1
14947
grep -v '^ *+' conftest.er1 >conftest.err
14949
cat conftest.err >&5
14950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951
(exit $ac_status); } &&
14952
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954
(eval $ac_try) 2>&5
14956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957
(exit $ac_status); }; } &&
14958
{ ac_try='test -s conftest$ac_exeext'
14959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960
(eval $ac_try) 2>&5
14962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963
(exit $ac_status); }; }; then
14964
ac_cv_func_dlopen=yes
14966
echo "$as_me: failed program was:" >&5
14967
sed 's/^/| /' conftest.$ac_ext >&5
14969
ac_cv_func_dlopen=no
14971
rm -f conftest.err conftest.$ac_objext \
14972
conftest$ac_exeext conftest.$ac_ext
14974
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14975
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14976
if test $ac_cv_func_dlopen = yes; then
14977
lt_cv_dlopen="dlopen"
14979
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14980
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14981
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14982
echo $ECHO_N "(cached) $ECHO_C" >&6
14984
ac_check_lib_save_LIBS=$LIBS
14986
cat >conftest.$ac_ext <<_ACEOF
14989
cat confdefs.h >>conftest.$ac_ext
14990
cat >>conftest.$ac_ext <<_ACEOF
14991
/* end confdefs.h. */
14993
/* Override any gcc2 internal prototype to avoid an error. */
14997
/* We use char because int might match the return type of a gcc2
14998
builtin and then its argument prototype would still apply. */
15008
rm -f conftest.$ac_objext conftest$ac_exeext
15009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010
(eval $ac_link) 2>conftest.er1
15012
grep -v '^ *+' conftest.er1 >conftest.err
15014
cat conftest.err >&5
15015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016
(exit $ac_status); } &&
15017
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15018
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019
(eval $ac_try) 2>&5
15021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022
(exit $ac_status); }; } &&
15023
{ ac_try='test -s conftest$ac_exeext'
15024
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025
(eval $ac_try) 2>&5
15027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028
(exit $ac_status); }; }; then
15029
ac_cv_lib_dl_dlopen=yes
15031
echo "$as_me: failed program was:" >&5
15032
sed 's/^/| /' conftest.$ac_ext >&5
15034
ac_cv_lib_dl_dlopen=no
15036
rm -f conftest.err conftest.$ac_objext \
15037
conftest$ac_exeext conftest.$ac_ext
15038
LIBS=$ac_check_lib_save_LIBS
15040
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15041
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15042
if test $ac_cv_lib_dl_dlopen = yes; then
15043
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15045
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15046
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15047
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15048
echo $ECHO_N "(cached) $ECHO_C" >&6
15050
ac_check_lib_save_LIBS=$LIBS
15051
LIBS="-lsvld $LIBS"
15052
cat >conftest.$ac_ext <<_ACEOF
15055
cat confdefs.h >>conftest.$ac_ext
15056
cat >>conftest.$ac_ext <<_ACEOF
15057
/* end confdefs.h. */
15059
/* Override any gcc2 internal prototype to avoid an error. */
15063
/* We use char because int might match the return type of a gcc2
15064
builtin and then its argument prototype would still apply. */
15074
rm -f conftest.$ac_objext conftest$ac_exeext
15075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15076
(eval $ac_link) 2>conftest.er1
15078
grep -v '^ *+' conftest.er1 >conftest.err
15080
cat conftest.err >&5
15081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082
(exit $ac_status); } &&
15083
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15084
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085
(eval $ac_try) 2>&5
15087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088
(exit $ac_status); }; } &&
15089
{ ac_try='test -s conftest$ac_exeext'
15090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091
(eval $ac_try) 2>&5
15093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094
(exit $ac_status); }; }; then
15095
ac_cv_lib_svld_dlopen=yes
15097
echo "$as_me: failed program was:" >&5
15098
sed 's/^/| /' conftest.$ac_ext >&5
15100
ac_cv_lib_svld_dlopen=no
15102
rm -f conftest.err conftest.$ac_objext \
15103
conftest$ac_exeext conftest.$ac_ext
15104
LIBS=$ac_check_lib_save_LIBS
15106
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15107
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15108
if test $ac_cv_lib_svld_dlopen = yes; then
15109
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15111
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15112
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15113
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15114
echo $ECHO_N "(cached) $ECHO_C" >&6
15116
ac_check_lib_save_LIBS=$LIBS
15118
cat >conftest.$ac_ext <<_ACEOF
15121
cat confdefs.h >>conftest.$ac_ext
15122
cat >>conftest.$ac_ext <<_ACEOF
15123
/* end confdefs.h. */
15125
/* Override any gcc2 internal prototype to avoid an error. */
15129
/* We use char because int might match the return type of a gcc2
15130
builtin and then its argument prototype would still apply. */
15140
rm -f conftest.$ac_objext conftest$ac_exeext
15141
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142
(eval $ac_link) 2>conftest.er1
15144
grep -v '^ *+' conftest.er1 >conftest.err
15146
cat conftest.err >&5
15147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148
(exit $ac_status); } &&
15149
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151
(eval $ac_try) 2>&5
15153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154
(exit $ac_status); }; } &&
15155
{ ac_try='test -s conftest$ac_exeext'
15156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157
(eval $ac_try) 2>&5
15159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160
(exit $ac_status); }; }; then
15161
ac_cv_lib_dld_dld_link=yes
15163
echo "$as_me: failed program was:" >&5
15164
sed 's/^/| /' conftest.$ac_ext >&5
15166
ac_cv_lib_dld_dld_link=no
15168
rm -f conftest.err conftest.$ac_objext \
15169
conftest$ac_exeext conftest.$ac_ext
15170
LIBS=$ac_check_lib_save_LIBS
15172
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15173
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15174
if test $ac_cv_lib_dld_dld_link = yes; then
15175
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15196
if test "x$lt_cv_dlopen" != xno; then
15202
case $lt_cv_dlopen in
15204
save_CPPFLAGS="$CPPFLAGS"
15205
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15207
save_LDFLAGS="$LDFLAGS"
15208
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15211
LIBS="$lt_cv_dlopen_libs $LIBS"
15213
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15214
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15215
if test "${lt_cv_dlopen_self+set}" = set; then
15216
echo $ECHO_N "(cached) $ECHO_C" >&6
15218
if test "$cross_compiling" = yes; then :
15219
lt_cv_dlopen_self=cross
15221
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15222
lt_status=$lt_dlunknown
15223
cat > conftest.$ac_ext <<EOF
15224
#line __oline__ "configure"
15225
#include "confdefs.h"
15234
# define LT_DLGLOBAL RTLD_GLOBAL
15237
# define LT_DLGLOBAL DL_GLOBAL
15239
# define LT_DLGLOBAL 0
15243
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15244
find out it does not work in some platform. */
15245
#ifndef LT_DLLAZY_OR_NOW
15247
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15250
# define LT_DLLAZY_OR_NOW DL_LAZY
15253
# define LT_DLLAZY_OR_NOW RTLD_NOW
15256
# define LT_DLLAZY_OR_NOW DL_NOW
15258
# define LT_DLLAZY_OR_NOW 0
15266
extern "C" void exit (int);
15269
void fnord() { int i=42;}
15272
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15273
int status = $lt_dlunknown;
15277
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15278
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15279
/* dlclose (self); */
15285
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286
(eval $ac_link) 2>&5
15288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15290
(./conftest; exit; ) 2>/dev/null
15292
case x$lt_status in
15293
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15294
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15295
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15298
# compilation failed
15299
lt_cv_dlopen_self=no
15306
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15307
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15309
if test "x$lt_cv_dlopen_self" = xyes; then
15310
LDFLAGS="$LDFLAGS $link_static_flag"
15311
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15312
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15313
if test "${lt_cv_dlopen_self_static+set}" = set; then
15314
echo $ECHO_N "(cached) $ECHO_C" >&6
15316
if test "$cross_compiling" = yes; then :
15317
lt_cv_dlopen_self_static=cross
15319
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15320
lt_status=$lt_dlunknown
15321
cat > conftest.$ac_ext <<EOF
15322
#line __oline__ "configure"
15323
#include "confdefs.h"
15332
# define LT_DLGLOBAL RTLD_GLOBAL
15335
# define LT_DLGLOBAL DL_GLOBAL
15337
# define LT_DLGLOBAL 0
15341
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15342
find out it does not work in some platform. */
15343
#ifndef LT_DLLAZY_OR_NOW
15345
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15348
# define LT_DLLAZY_OR_NOW DL_LAZY
15351
# define LT_DLLAZY_OR_NOW RTLD_NOW
15354
# define LT_DLLAZY_OR_NOW DL_NOW
15356
# define LT_DLLAZY_OR_NOW 0
15364
extern "C" void exit (int);
15367
void fnord() { int i=42;}
15370
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15371
int status = $lt_dlunknown;
15375
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15376
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15377
/* dlclose (self); */
15383
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384
(eval $ac_link) 2>&5
15386
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15388
(./conftest; exit; ) 2>/dev/null
15390
case x$lt_status in
15391
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15392
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15393
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15396
# compilation failed
15397
lt_cv_dlopen_self_static=no
15404
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15405
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15408
CPPFLAGS="$save_CPPFLAGS"
15409
LDFLAGS="$save_LDFLAGS"
15414
case $lt_cv_dlopen_self in
15415
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15416
*) enable_dlopen_self=unknown ;;
15419
case $lt_cv_dlopen_self_static in
15420
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15421
*) enable_dlopen_self_static=unknown ;;
15426
# The else clause should only fire when bootstrapping the
15427
# libtool distribution, otherwise you forgot to ship ltmain.sh
15428
# with your package, and you will get complaints that there are
15429
# no rules to generate ltmain.sh.
15430
if test -f "$ltmain"; then
15431
# See if we are running on zsh, and set the options which allow our commands through
15432
# without removal of \ escapes.
15433
if test -n "${ZSH_VERSION+set}" ; then
15434
setopt NO_GLOB_SUBST
15436
# Now quote all the things that may contain metacharacters while being
15437
# careful not to overquote the AC_SUBSTed values. We take copies of the
15438
# variables and quote the copies for generation of the libtool script.
15439
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15441
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15442
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15443
deplibs_check_method reload_flag reload_cmds need_locks \
15444
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15445
lt_cv_sys_global_symbol_to_c_name_address \
15446
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15447
old_postinstall_cmds old_postuninstall_cmds \
15451
lt_prog_compiler_wl_CXX \
15452
lt_prog_compiler_pic_CXX \
15453
lt_prog_compiler_static_CXX \
15454
lt_prog_compiler_no_builtin_flag_CXX \
15455
export_dynamic_flag_spec_CXX \
15456
thread_safe_flag_spec_CXX \
15457
whole_archive_flag_spec_CXX \
15458
enable_shared_with_static_runtimes_CXX \
15459
old_archive_cmds_CXX \
15460
old_archive_from_new_cmds_CXX \
15461
predep_objects_CXX \
15462
postdep_objects_CXX \
15465
compiler_lib_search_path_CXX \
15467
archive_expsym_cmds_CXX \
15468
postinstall_cmds_CXX \
15469
postuninstall_cmds_CXX \
15470
old_archive_from_expsyms_cmds_CXX \
15471
allow_undefined_flag_CXX \
15472
no_undefined_flag_CXX \
15473
export_symbols_cmds_CXX \
15474
hardcode_libdir_flag_spec_CXX \
15475
hardcode_libdir_flag_spec_ld_CXX \
15476
hardcode_libdir_separator_CXX \
15477
hardcode_automatic_CXX \
15479
module_expsym_cmds_CXX \
15480
lt_cv_prog_compiler_c_o_CXX \
15481
exclude_expsyms_CXX \
15482
include_expsyms_CXX; do
15485
old_archive_cmds_CXX | \
15486
old_archive_from_new_cmds_CXX | \
15487
archive_cmds_CXX | \
15488
archive_expsym_cmds_CXX | \
15489
module_cmds_CXX | \
15490
module_expsym_cmds_CXX | \
15491
old_archive_from_expsyms_cmds_CXX | \
15492
export_symbols_cmds_CXX | \
15493
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15494
postinstall_cmds | postuninstall_cmds | \
15495
old_postinstall_cmds | old_postuninstall_cmds | \
15496
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15497
# Double-quote double-evaled strings.
15498
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15501
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15507
*'\$0 --fallback-echo"')
15508
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15514
cat <<__EOF__ >> "$cfgfile"
15515
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15517
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15519
# Shell to use when invoking shell scripts.
15522
# Whether or not to build shared libraries.
15523
build_libtool_libs=$enable_shared
15525
# Whether or not to build static libraries.
15526
build_old_libs=$enable_static
15528
# Whether or not to add -lc for building shared libraries.
15529
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15531
# Whether or not to disallow shared libs when runtime libs are static
15532
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15534
# Whether or not to optimize for fast installation.
15535
fast_install=$enable_fast_install
15538
host_alias=$host_alias
15541
# An echo program that does not interpret backslashes.
15546
AR_FLAGS=$lt_AR_FLAGS
15551
# A language-specific compiler.
15552
CC=$lt_compiler_CXX
15554
# Is the compiler the GNU C compiler?
15560
# The linker used to build libraries.
15563
# Whether we need hard or soft links.
15566
# A BSD-compatible nm program.
15569
# A symbol stripping program
15572
# Used to examine libraries when file_magic_cmd begins "file"
15573
MAGIC_CMD=$MAGIC_CMD
15575
# Used on cygwin: DLL creation program.
15578
# Used on cygwin: object dumper.
15581
# Used on cygwin: assembler.
15584
# The name of the directory that contains temporary libtool files.
15587
# How to create reloadable object files.
15588
reload_flag=$lt_reload_flag
15589
reload_cmds=$lt_reload_cmds
15591
# How to pass a linker flag through the compiler.
15592
wl=$lt_lt_prog_compiler_wl_CXX
15594
# Object file suffix (normally "o").
15595
objext="$ac_objext"
15597
# Old archive suffix (normally "a").
15600
# Shared library suffix (normally ".so").
15601
shrext_cmds='$shrext_cmds'
15603
# Executable file suffix (normally "").
15606
# Additional compiler flags for building library objects.
15607
pic_flag=$lt_lt_prog_compiler_pic_CXX
15610
# What is the maximum length of a command?
15611
max_cmd_len=$lt_cv_sys_max_cmd_len
15613
# Does compiler simultaneously support -c and -o options?
15614
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15616
# Must we lock files when doing compilation ?
15617
need_locks=$lt_need_locks
15619
# Do we need the lib prefix for modules?
15620
need_lib_prefix=$need_lib_prefix
15622
# Do we need a version for libraries?
15623
need_version=$need_version
15625
# Whether dlopen is supported.
15626
dlopen_support=$enable_dlopen
15628
# Whether dlopen of programs is supported.
15629
dlopen_self=$enable_dlopen_self
15631
# Whether dlopen of statically linked programs is supported.
15632
dlopen_self_static=$enable_dlopen_self_static
15634
# Compiler flag to prevent dynamic linking.
15635
link_static_flag=$lt_lt_prog_compiler_static_CXX
15637
# Compiler flag to turn off builtin functions.
15638
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15640
# Compiler flag to allow reflexive dlopens.
15641
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15643
# Compiler flag to generate shared objects directly from archives.
15644
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15646
# Compiler flag to generate thread-safe objects.
15647
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15649
# Library versioning type.
15650
version_type=$version_type
15652
# Format of library name prefix.
15653
libname_spec=$lt_libname_spec
15655
# List of archive names. First name is the real one, the rest are links.
15656
# The last name is the one that the linker finds with -lNAME.
15657
library_names_spec=$lt_library_names_spec
15659
# The coded name of the library, if different from the real name.
15660
soname_spec=$lt_soname_spec
15662
# Commands used to build and install an old-style archive.
15664
old_archive_cmds=$lt_old_archive_cmds_CXX
15665
old_postinstall_cmds=$lt_old_postinstall_cmds
15666
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15668
# Create an old-style archive from a shared archive.
15669
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15671
# Create a temporary old-style archive to link instead of a shared archive.
15672
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15674
# Commands used to build and install a shared archive.
15675
archive_cmds=$lt_archive_cmds_CXX
15676
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15677
postinstall_cmds=$lt_postinstall_cmds
15678
postuninstall_cmds=$lt_postuninstall_cmds
15680
# Commands used to build a loadable module (assumed same as above if empty)
15681
module_cmds=$lt_module_cmds_CXX
15682
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15684
# Commands to strip libraries.
15685
old_striplib=$lt_old_striplib
15686
striplib=$lt_striplib
15688
# Dependencies to place before the objects being linked to create a
15690
predep_objects=$lt_predep_objects_CXX
15692
# Dependencies to place after the objects being linked to create a
15694
postdep_objects=$lt_postdep_objects_CXX
15696
# Dependencies to place before the objects being linked to create a
15698
predeps=$lt_predeps_CXX
15700
# Dependencies to place after the objects being linked to create a
15702
postdeps=$lt_postdeps_CXX
15704
# The library search path used internally by the compiler when linking
15705
# a shared library.
15706
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15708
# Method to check whether dependent libraries are shared objects.
15709
deplibs_check_method=$lt_deplibs_check_method
15711
# Command to use when deplibs_check_method == file_magic.
15712
file_magic_cmd=$lt_file_magic_cmd
15714
# Flag that allows shared libraries with undefined symbols to be built.
15715
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15717
# Flag that forces no undefined symbols.
15718
no_undefined_flag=$lt_no_undefined_flag_CXX
15720
# Commands used to finish a libtool library installation in a directory.
15721
finish_cmds=$lt_finish_cmds
15723
# Same as above, but a single script fragment to be evaled but not shown.
15724
finish_eval=$lt_finish_eval
15726
# Take the output of nm and produce a listing of raw symbols and C names.
15727
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15729
# Transform the output of nm in a proper C declaration
15730
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15732
# Transform the output of nm in a C name address pair
15733
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15735
# This is the shared library runtime path variable.
15736
runpath_var=$runpath_var
15738
# This is the shared library path variable.
15739
shlibpath_var=$shlibpath_var
15741
# Is shlibpath searched before the hard-coded library search path?
15742
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15744
# How to hardcode a shared library path into an executable.
15745
hardcode_action=$hardcode_action_CXX
15747
# Whether we should hardcode library paths into libraries.
15748
hardcode_into_libs=$hardcode_into_libs
15750
# Flag to hardcode \$libdir into a binary during linking.
15751
# This must work even if \$libdir does not exist.
15752
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15754
# If ld is used when linking, flag to hardcode \$libdir into
15755
# a binary during linking. This must work even if \$libdir does
15757
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15759
# Whether we need a single -rpath flag with a separated argument.
15760
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15762
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15763
# resulting binary.
15764
hardcode_direct=$hardcode_direct_CXX
15766
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15767
# resulting binary.
15768
hardcode_minus_L=$hardcode_minus_L_CXX
15770
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15771
# the resulting binary.
15772
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15774
# Set to yes if building a shared library automatically hardcodes DIR into the library
15775
# and all subsequent libraries and executables linked against it.
15776
hardcode_automatic=$hardcode_automatic_CXX
15778
# Variables whose values should be saved in libtool wrapper scripts and
15779
# restored at relink time.
15780
variables_saved_for_relink="$variables_saved_for_relink"
15782
# Whether libtool must link a program against all its dependency libraries.
15783
link_all_deplibs=$link_all_deplibs_CXX
15785
# Compile-time system search path for libraries
15786
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15788
# Run-time system search path for libraries
15789
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15791
# Fix the shell variable \$srcfile for the compiler.
15792
fix_srcfile_path="$fix_srcfile_path_CXX"
15794
# Set to yes if exported symbols are required.
15795
always_export_symbols=$always_export_symbols_CXX
15797
# The commands to list exported symbols.
15798
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15800
# The commands to extract the exported symbol list from a shared archive.
15801
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15803
# Symbols that should not be listed in the preloaded symbols.
15804
exclude_expsyms=$lt_exclude_expsyms_CXX
15806
# Symbols that must always be exported.
15807
include_expsyms=$lt_include_expsyms_CXX
15809
# ### END LIBTOOL TAG CONFIG: $tagname
15815
# If there is no Makefile yet, we rely on a make rule to execute
15816
# `config.status --recheck' to rerun these tests and create the
15817
# libtool script then.
15818
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15819
if test -f "$ltmain_in"; then
15820
test -f Makefile && make "$ltmain"
15826
ac_cpp='$CPP $CPPFLAGS'
15827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15835
with_gnu_ldcxx=$with_gnu_ld
15836
with_gnu_ld=$lt_save_with_gnu_ld
15837
lt_cv_path_LDCXX=$lt_cv_path_LD
15838
lt_cv_path_LD=$lt_save_path_LD
15839
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15840
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15848
if test -n "$F77" && test "X$F77" != "Xno"; then
15851
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15852
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15856
archive_cmds_need_lc_F77=no
15857
allow_undefined_flag_F77=
15858
always_export_symbols_F77=no
15859
archive_expsym_cmds_F77=
15860
export_dynamic_flag_spec_F77=
15861
hardcode_direct_F77=no
15862
hardcode_libdir_flag_spec_F77=
15863
hardcode_libdir_flag_spec_ld_F77=
15864
hardcode_libdir_separator_F77=
15865
hardcode_minus_L_F77=no
15866
hardcode_automatic_F77=no
15868
module_expsym_cmds_F77=
15869
link_all_deplibs_F77=unknown
15870
old_archive_cmds_F77=$old_archive_cmds
15871
no_undefined_flag_F77=
15872
whole_archive_flag_spec_F77=
15873
enable_shared_with_static_runtimes_F77=no
15875
# Source file extension for f77 test sources.
15878
# Object file extension for compiled f77 test sources.
15882
# Code to be used in simple compile tests
15883
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15885
# Code to be used in simple link tests
15886
lt_simple_link_test_code=" program t\n end\n"
15888
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15890
# If no C compiler was specified, use CC.
15893
# Allow CC to be a program name with arguments.
15897
# Allow CC to be a program name with arguments.
15902
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15904
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15905
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15906
echo "$as_me:$LINENO: result: $can_build_shared" >&5
15907
echo "${ECHO_T}$can_build_shared" >&6
15909
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15910
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15911
test "$can_build_shared" = "no" && enable_shared=no
15913
# On AIX, shared libraries and static libraries use the same namespace, and
15914
# are all built from PIC.
15917
test "$enable_shared" = yes && enable_static=no
15918
if test -n "$RANLIB"; then
15919
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15920
postinstall_cmds='$RANLIB $lib'
15924
test "$enable_shared" = yes && enable_static=no
15927
echo "$as_me:$LINENO: result: $enable_shared" >&5
15928
echo "${ECHO_T}$enable_shared" >&6
15930
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15931
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15932
# Make sure either enable_shared or enable_static is yes.
15933
test "$enable_shared" = yes || enable_static=yes
15934
echo "$as_me:$LINENO: result: $enable_static" >&5
15935
echo "${ECHO_T}$enable_static" >&6
15937
test "$ld_shlibs_F77" = no && can_build_shared=no
15942
lt_prog_compiler_wl_F77=
15943
lt_prog_compiler_pic_F77=
15944
lt_prog_compiler_static_F77=
15946
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15947
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15949
if test "$GCC" = yes; then
15950
lt_prog_compiler_wl_F77='-Wl,'
15951
lt_prog_compiler_static_F77='-static'
15955
# All AIX code is PIC.
15956
if test "$host_cpu" = ia64; then
15957
# AIX 5 now supports IA64 processor
15958
lt_prog_compiler_static_F77='-Bstatic'
15963
# FIXME: we need at least 68020 code to build shared libraries, but
15964
# adding the `-m68020' flag to GCC prevents building anything better,
15966
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15969
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15970
# PIC is the default for these OSes.
15973
mingw* | pw32* | os2*)
15974
# This hack is so that the source file can tell whether it is being
15975
# built for inclusion in a dll (and should export symbols for example).
15976
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15979
darwin* | rhapsody*)
15980
# PIC is the default on this platform
15981
# Common symbols not allowed in MH_DYLIB files
15982
lt_prog_compiler_pic_F77='-fno-common'
15986
# Just because we use GCC doesn't mean we suddenly get shared libraries
15987
# on systems that don't support them.
15988
lt_prog_compiler_can_build_shared_F77=no
15993
if test -d /usr/nec; then
15994
lt_prog_compiler_pic_F77=-Kconform_pic
15999
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16000
# not for PA HP-UX.
16001
case "$host_cpu" in
16006
lt_prog_compiler_pic_F77='-fPIC'
16012
lt_prog_compiler_pic_F77='-fPIC'
16016
# PORTME Check for flag to pass linker flags through the system compiler.
16019
lt_prog_compiler_wl_F77='-Wl,'
16020
if test "$host_cpu" = ia64; then
16021
# AIX 5 now supports IA64 processor
16022
lt_prog_compiler_static_F77='-Bstatic'
16024
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16028
mingw* | pw32* | os2*)
16029
# This hack is so that the source file can tell whether it is being
16030
# built for inclusion in a dll (and should export symbols for example).
16031
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16034
hpux9* | hpux10* | hpux11*)
16035
lt_prog_compiler_wl_F77='-Wl,'
16036
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16037
# not for PA HP-UX.
16038
case "$host_cpu" in
16043
lt_prog_compiler_pic_F77='+Z'
16046
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16047
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16050
irix5* | irix6* | nonstopux*)
16051
lt_prog_compiler_wl_F77='-Wl,'
16052
# PIC (with -KPIC) is the default.
16053
lt_prog_compiler_static_F77='-non_shared'
16057
lt_prog_compiler_pic_F77='-KPIC'
16058
lt_prog_compiler_static_F77='-Bstatic'
16064
lt_prog_compiler_wl_F77='-Wl,'
16065
lt_prog_compiler_pic_F77='-KPIC'
16066
lt_prog_compiler_static_F77='-static'
16069
lt_prog_compiler_wl_F77='-Wl,'
16070
# All Alpha code is PIC.
16071
lt_prog_compiler_static_F77='-non_shared'
16076
osf3* | osf4* | osf5*)
16077
lt_prog_compiler_wl_F77='-Wl,'
16078
# All OSF/1 code is PIC.
16079
lt_prog_compiler_static_F77='-non_shared'
16083
lt_prog_compiler_pic_F77='-Kpic'
16084
lt_prog_compiler_static_F77='-dn'
16088
lt_prog_compiler_wl_F77='-Wl,'
16089
lt_prog_compiler_pic_F77='-KPIC'
16090
lt_prog_compiler_static_F77='-Bstatic'
16094
lt_prog_compiler_wl_F77='-Qoption ld '
16095
lt_prog_compiler_pic_F77='-PIC'
16096
lt_prog_compiler_static_F77='-Bstatic'
16099
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16100
lt_prog_compiler_wl_F77='-Wl,'
16101
lt_prog_compiler_pic_F77='-KPIC'
16102
lt_prog_compiler_static_F77='-Bstatic'
16106
if test -d /usr/nec ;then
16107
lt_prog_compiler_pic_F77='-Kconform_pic'
16108
lt_prog_compiler_static_F77='-Bstatic'
16113
lt_prog_compiler_pic_F77='-pic'
16114
lt_prog_compiler_static_F77='-Bstatic'
16118
lt_prog_compiler_can_build_shared_F77=no
16123
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16124
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16127
# Check to make sure the PIC flag actually works.
16129
if test -n "$lt_prog_compiler_pic_F77"; then
16131
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16132
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16133
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16134
echo $ECHO_N "(cached) $ECHO_C" >&6
16136
lt_prog_compiler_pic_works_F77=no
16137
ac_outfile=conftest.$ac_objext
16138
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16139
lt_compiler_flag="$lt_prog_compiler_pic_F77"
16140
# Insert the option either (1) after the last *FLAGS variable, or
16141
# (2) before a word containing "conftest.", or (3) at the end.
16142
# Note that $ac_compile itself does not contain backslashes and begins
16143
# with a dollar sign (not a hyphen), so the echo should work correctly.
16144
# The option is referenced via a variable to avoid confusing sed.
16145
lt_compile=`echo "$ac_compile" | $SED \
16146
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16147
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16148
-e 's:$: $lt_compiler_flag:'`
16149
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16150
(eval "$lt_compile" 2>conftest.err)
16152
cat conftest.err >&5
16153
echo "$as_me:__oline__: \$? = $ac_status" >&5
16154
if (exit $ac_status) && test -s "$ac_outfile"; then
16155
# The compiler can only warn and ignore the option if not recognized
16156
# So say no if there are warnings
16157
if test ! -s conftest.err; then
16158
lt_prog_compiler_pic_works_F77=yes
16164
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16165
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16167
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16168
case $lt_prog_compiler_pic_F77 in
16170
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16173
lt_prog_compiler_pic_F77=
16174
lt_prog_compiler_can_build_shared_F77=no
16179
# For platforms which do not support PIC, -DPIC is meaningless:
16181
lt_prog_compiler_pic_F77=
16184
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16188
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16189
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16190
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16191
echo $ECHO_N "(cached) $ECHO_C" >&6
16193
lt_cv_prog_compiler_c_o_F77=no
16194
$rm -r conftest 2>/dev/null
16198
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16200
lt_compiler_flag="-o out/conftest2.$ac_objext"
16201
# Insert the option either (1) after the last *FLAGS variable, or
16202
# (2) before a word containing "conftest.", or (3) at the end.
16203
# Note that $ac_compile itself does not contain backslashes and begins
16204
# with a dollar sign (not a hyphen), so the echo should work correctly.
16205
lt_compile=`echo "$ac_compile" | $SED \
16206
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16207
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16208
-e 's:$: $lt_compiler_flag:'`
16209
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16210
(eval "$lt_compile" 2>out/conftest.err)
16212
cat out/conftest.err >&5
16213
echo "$as_me:__oline__: \$? = $ac_status" >&5
16214
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16216
# The compiler can only warn and ignore the option if not recognized
16217
# So say no if there are warnings
16218
if test ! -s out/conftest.err; then
16219
lt_cv_prog_compiler_c_o_F77=yes
16224
# SGI C++ compiler will create directory out/ii_files/ for
16225
# template instantiation
16226
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16227
$rm out/* && rmdir out
16233
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16234
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16237
hard_links="nottested"
16238
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16239
# do not overwrite the value of need_locks provided by the user
16240
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16241
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16244
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16246
ln conftest.a conftest.b 2>&5 || hard_links=no
16247
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16248
echo "$as_me:$LINENO: result: $hard_links" >&5
16249
echo "${ECHO_T}$hard_links" >&6
16250
if test "$hard_links" = no; then
16251
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16252
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16259
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16260
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16263
allow_undefined_flag_F77=
16264
enable_shared_with_static_runtimes_F77=no
16266
archive_expsym_cmds_F77=
16267
old_archive_From_new_cmds_F77=
16268
old_archive_from_expsyms_cmds_F77=
16269
export_dynamic_flag_spec_F77=
16270
whole_archive_flag_spec_F77=
16271
thread_safe_flag_spec_F77=
16272
hardcode_libdir_flag_spec_F77=
16273
hardcode_libdir_flag_spec_ld_F77=
16274
hardcode_libdir_separator_F77=
16275
hardcode_direct_F77=no
16276
hardcode_minus_L_F77=no
16277
hardcode_shlibpath_var_F77=unsupported
16278
link_all_deplibs_F77=unknown
16279
hardcode_automatic_F77=no
16281
module_expsym_cmds_F77=
16282
always_export_symbols_F77=no
16283
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16284
# include_expsyms should be a list of space-separated symbols to be *always*
16285
# included in the symbol list
16286
include_expsyms_F77=
16287
# exclude_expsyms can be an extended regexp of symbols to exclude
16288
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16289
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16290
# as well as any symbol that contains `d'.
16291
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16292
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16293
# platforms (ab)use it in PIC code, but their linkers get confused if
16294
# the symbol is explicitly referenced. Since portable code cannot
16295
# rely on this symbol name, it's probably fine to never include it in
16296
# preloaded symbol tables.
16297
extract_expsyms_cmds=
16300
cygwin* | mingw* | pw32*)
16301
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16302
# When not using gcc, we currently assume that we are using
16303
# Microsoft Visual C++.
16304
if test "$GCC" != yes; then
16314
if test "$with_gnu_ld" = yes; then
16315
# If archive_cmds runs LD, not CC, wlarc should be empty
16318
# See if GNU ld supports shared libraries.
16320
aix3* | aix4* | aix5*)
16321
# On AIX/PPC, the GNU linker is very broken
16322
if test "$host_cpu" != ia64; then
16326
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16327
*** to be unable to reliably create shared libraries on AIX.
16328
*** Therefore, libtool is disabling shared libraries support. If you
16329
*** really care for shared libraries, you may want to modify your PATH
16330
*** so that a non-GNU linker is found, and then restart.
16337
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)'
16338
hardcode_libdir_flag_spec_F77='-L$libdir'
16339
hardcode_minus_L_F77=yes
16341
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16342
# that the semantics of dynamic libraries on AmigaOS, at least up
16343
# to version 4, is to share data among multiple programs linked
16344
# with the same dynamic library. Since this doesn't match the
16345
# behavior of shared libraries on other platforms, we can't use
16351
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16352
allow_undefined_flag_F77=unsupported
16353
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16354
# support --undefined. This deserves some investigation. FIXME
16355
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16361
cygwin* | mingw* | pw32*)
16362
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16363
# as there is no search path for DLLs.
16364
hardcode_libdir_flag_spec_F77='-L$libdir'
16365
allow_undefined_flag_F77=unsupported
16366
always_export_symbols_F77=no
16367
enable_shared_with_static_runtimes_F77=yes
16368
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16370
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16371
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16372
# If the export-symbols file already is a .def file (1st line
16373
# is EXPORTS), use it as is; otherwise, prepend...
16374
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16375
cp $export_symbols $output_objdir/$soname.def;
16377
echo EXPORTS > $output_objdir/$soname.def;
16378
cat $export_symbols >> $output_objdir/$soname.def;
16380
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16386
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16387
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16388
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16391
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16392
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16397
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16401
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16402
*** create shared libraries on Solaris systems. Therefore, libtool
16403
*** is disabling shared libraries support. We urge you to upgrade GNU
16404
*** binutils to release 2.9.1 or newer. Another option is to modify
16405
*** your PATH or compiler configuration so that the native linker is
16406
*** used, and then restart.
16409
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16410
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16411
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16418
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16420
hardcode_direct_F77=yes
16421
hardcode_shlibpath_var_F77=no
16425
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16426
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16427
archive_cmds_F77="$tmp_archive_cmds"
16428
supports_anon_versioning=no
16429
case `$LD -v 2>/dev/null` in
16430
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16431
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16432
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16433
*\ 2.11.*) ;; # other 2.11 versions
16434
*) supports_anon_versioning=yes ;;
16436
if test $supports_anon_versioning = yes; then
16437
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16438
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16439
$echo "local: *; };" >> $output_objdir/$libname.ver~
16440
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16442
archive_expsym_cmds_F77="$tmp_archive_cmds"
16444
link_all_deplibs_F77=no
16451
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16452
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16453
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16460
if test "$ld_shlibs_F77" = yes; then
16461
runpath_var=LD_RUN_PATH
16462
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16463
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16464
# ancient GNU ld didn't support --whole-archive et. al.
16465
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16466
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16468
whole_archive_flag_spec_F77=
16472
# PORTME fill in a description of your system's linker (not GNU ld)
16475
allow_undefined_flag_F77=unsupported
16476
always_export_symbols_F77=yes
16477
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'
16478
# Note: this linker hardcodes the directories in LIBPATH if there
16479
# are no directories specified by -L.
16480
hardcode_minus_L_F77=yes
16481
if test "$GCC" = yes && test -z "$link_static_flag"; then
16482
# Neither direct hardcoding nor static linking is supported with a
16484
hardcode_direct_F77=unsupported
16489
if test "$host_cpu" = ia64; then
16490
# On IA64, the linker does run time linking by default, so we don't
16491
# have to do anything special.
16492
aix_use_runtimelinking=no
16493
exp_sym_flag='-Bexport'
16496
# If we're using GNU nm, then we don't want the "-C" option.
16497
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16498
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16499
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'
16501
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'
16503
aix_use_runtimelinking=no
16505
# Test if we are trying to use run time linking or normal
16506
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16507
# need to do runtime linking.
16508
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16509
for ld_flag in $LDFLAGS; do
16510
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16511
aix_use_runtimelinking=yes
16517
exp_sym_flag='-bexport'
16518
no_entry_flag='-bnoentry'
16521
# When large executables or shared objects are built, AIX ld can
16522
# have problems creating the table of contents. If linking a library
16523
# or program results in "error TOC overflow" add -mminimal-toc to
16524
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16525
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16527
archive_cmds_F77=''
16528
hardcode_direct_F77=yes
16529
hardcode_libdir_separator_F77=':'
16530
link_all_deplibs_F77=yes
16532
if test "$GCC" = yes; then
16533
case $host_os in aix4.012|aix4.012.*)
16534
# We only want to do this on AIX 4.2 and lower, the check
16535
# below for broken collect2 doesn't work under 4.3+
16536
collect2name=`${CC} -print-prog-name=collect2`
16537
if test -f "$collect2name" && \
16538
strings "$collect2name" | grep resolve_lib_name >/dev/null
16540
# We have reworked collect2
16541
hardcode_direct_F77=yes
16543
# We have old collect2
16544
hardcode_direct_F77=unsupported
16545
# It fails to find uninstalled libraries when the uninstalled
16546
# path is not listed in the libpath. Setting hardcode_minus_L
16547
# to unsupported forces relinking
16548
hardcode_minus_L_F77=yes
16549
hardcode_libdir_flag_spec_F77='-L$libdir'
16550
hardcode_libdir_separator_F77=
16553
shared_flag='-shared'
16556
if test "$host_cpu" = ia64; then
16557
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16558
# chokes on -Wl,-G. The following line is correct:
16561
if test "$aix_use_runtimelinking" = yes; then
16562
shared_flag='${wl}-G'
16564
shared_flag='${wl}-bM:SRE'
16569
# It seems that -bexpall does not export symbols beginning with
16570
# underscore (_), so it is better to generate a list of symbols to export.
16571
always_export_symbols_F77=yes
16572
if test "$aix_use_runtimelinking" = yes; then
16573
# Warning - without using the other runtime loading flags (-brtl),
16574
# -berok will link without error, but may produce a broken library.
16575
allow_undefined_flag_F77='-berok'
16576
# Determine the default libpath from the value encoded in an empty executable.
16577
cat >conftest.$ac_ext <<_ACEOF
16582
rm -f conftest.$ac_objext conftest$ac_exeext
16583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16584
(eval $ac_link) 2>conftest.er1
16586
grep -v '^ *+' conftest.er1 >conftest.err
16588
cat conftest.err >&5
16589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590
(exit $ac_status); } &&
16591
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16592
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593
(eval $ac_try) 2>&5
16595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596
(exit $ac_status); }; } &&
16597
{ ac_try='test -s conftest$ac_exeext'
16598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16599
(eval $ac_try) 2>&5
16601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602
(exit $ac_status); }; }; then
16604
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16606
# Check for a 64-bit object if we didn't find anything.
16607
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; }
16610
echo "$as_me: failed program was:" >&5
16611
sed 's/^/| /' conftest.$ac_ext >&5
16614
rm -f conftest.err conftest.$ac_objext \
16615
conftest$ac_exeext conftest.$ac_ext
16616
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16618
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16619
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16621
if test "$host_cpu" = ia64; then
16622
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16623
allow_undefined_flag_F77="-z nodefs"
16624
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16626
# Determine the default libpath from the value encoded in an empty executable.
16627
cat >conftest.$ac_ext <<_ACEOF
16632
rm -f conftest.$ac_objext conftest$ac_exeext
16633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634
(eval $ac_link) 2>conftest.er1
16636
grep -v '^ *+' conftest.er1 >conftest.err
16638
cat conftest.err >&5
16639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640
(exit $ac_status); } &&
16641
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16642
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643
(eval $ac_try) 2>&5
16645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646
(exit $ac_status); }; } &&
16647
{ ac_try='test -s conftest$ac_exeext'
16648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649
(eval $ac_try) 2>&5
16651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652
(exit $ac_status); }; }; then
16654
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16656
# Check for a 64-bit object if we didn't find anything.
16657
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; }
16660
echo "$as_me: failed program was:" >&5
16661
sed 's/^/| /' conftest.$ac_ext >&5
16664
rm -f conftest.err conftest.$ac_objext \
16665
conftest$ac_exeext conftest.$ac_ext
16666
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16668
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16669
# Warning - without using the other run time loading flags,
16670
# -berok will link without error, but may produce a broken library.
16671
no_undefined_flag_F77=' ${wl}-bernotok'
16672
allow_undefined_flag_F77=' ${wl}-berok'
16673
# -bexpall does not export symbols beginning with underscore (_)
16674
always_export_symbols_F77=yes
16675
# Exported symbols can be pulled into shared objects from archives
16676
whole_archive_flag_spec_F77=' '
16677
archive_cmds_need_lc_F77=yes
16678
# This is similar to how AIX traditionally builds it's shared libraries.
16679
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16685
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)'
16686
hardcode_libdir_flag_spec_F77='-L$libdir'
16687
hardcode_minus_L_F77=yes
16688
# see comment about different semantics on the GNU ld section
16693
export_dynamic_flag_spec_F77=-rdynamic
16696
cygwin* | mingw* | pw32*)
16697
# When not using gcc, we currently assume that we are using
16698
# Microsoft Visual C++.
16699
# hardcode_libdir_flag_spec is actually meaningless, as there is
16700
# no search path for DLLs.
16701
hardcode_libdir_flag_spec_F77=' '
16702
allow_undefined_flag_F77=unsupported
16703
# Tell ltmain to make .lib files, not .a files.
16705
# Tell ltmain to make .dll files, not .so files.
16707
# FIXME: Setting linknames here is a bad hack.
16708
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16709
# The linker will automatically build a .lib file if we build a DLL.
16710
old_archive_From_new_cmds_F77='true'
16711
# FIXME: Should let the user specify the lib program.
16712
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16713
fix_srcfile_path='`cygpath -w "$srcfile"`'
16714
enable_shared_with_static_runtimes_F77=yes
16717
darwin* | rhapsody*)
16718
if test "$GXX" = yes ; then
16719
archive_cmds_need_lc_F77=no
16721
rhapsody* | darwin1.[012])
16722
allow_undefined_flag_F77='-undefined suppress'
16725
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16726
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16728
case ${MACOSX_DEPLOYMENT_TARGET} in
16730
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16733
allow_undefined_flag_F77='-undefined dynamic_lookup'
16739
lt_int_apple_cc_single_mod=no
16740
output_verbose_link_cmd='echo'
16741
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16742
lt_int_apple_cc_single_mod=yes
16744
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16745
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16747
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16749
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16750
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16751
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16752
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16754
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16756
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}'
16757
hardcode_direct_F77=no
16758
hardcode_automatic_F77=yes
16759
hardcode_shlibpath_var_F77=unsupported
16760
whole_archive_flag_spec_F77='-all_load $convenience'
16761
link_all_deplibs_F77=yes
16768
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769
hardcode_libdir_flag_spec_F77='-L$libdir'
16770
hardcode_shlibpath_var_F77=no
16777
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16778
# support. Future versions do this automatically, but an explicit c++rt0.o
16779
# does not break anything, and helps significantly (at the cost of a little
16782
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16783
hardcode_libdir_flag_spec_F77='-R$libdir'
16784
hardcode_direct_F77=yes
16785
hardcode_shlibpath_var_F77=no
16788
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16790
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16791
hardcode_direct_F77=yes
16792
hardcode_minus_L_F77=yes
16793
hardcode_shlibpath_var_F77=no
16796
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16797
freebsd* | kfreebsd*-gnu)
16798
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16799
hardcode_libdir_flag_spec_F77='-R$libdir'
16800
hardcode_direct_F77=yes
16801
hardcode_shlibpath_var_F77=no
16805
if test "$GCC" = yes; then
16806
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'
16808
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'
16810
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16811
hardcode_libdir_separator_F77=:
16812
hardcode_direct_F77=yes
16814
# hardcode_minus_L: Not really in the search PATH,
16815
# but as the default location of the library.
16816
hardcode_minus_L_F77=yes
16817
export_dynamic_flag_spec_F77='${wl}-E'
16821
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16822
case "$host_cpu" in
16824
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16827
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16831
case "$host_cpu" in
16833
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16836
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16840
if test "$with_gnu_ld" = no; then
16841
case "$host_cpu" in
16843
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16844
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16845
hardcode_libdir_separator_F77=:
16846
hardcode_direct_F77=no
16847
hardcode_shlibpath_var_F77=no
16850
hardcode_libdir_flag_spec_F77='-L$libdir'
16851
hardcode_direct_F77=no
16852
hardcode_shlibpath_var_F77=no
16854
# hardcode_minus_L: Not really in the search PATH,
16855
# but as the default location of the library.
16856
hardcode_minus_L_F77=yes
16859
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16860
hardcode_libdir_separator_F77=:
16861
hardcode_direct_F77=yes
16862
export_dynamic_flag_spec_F77='${wl}-E'
16864
# hardcode_minus_L: Not really in the search PATH,
16865
# but as the default location of the library.
16866
hardcode_minus_L_F77=yes
16872
irix5* | irix6* | nonstopux*)
16873
if test "$GCC" = yes; then
16874
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'
16876
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'
16877
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16879
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16880
hardcode_libdir_separator_F77=:
16881
link_all_deplibs_F77=yes
16884
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16885
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16886
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16888
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16890
hardcode_libdir_flag_spec_F77='-R$libdir'
16891
hardcode_direct_F77=yes
16892
hardcode_shlibpath_var_F77=no
16896
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897
hardcode_direct_F77=yes
16898
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16899
hardcode_libdir_separator_F77=:
16900
hardcode_shlibpath_var_F77=no
16904
hardcode_direct_F77=yes
16905
hardcode_shlibpath_var_F77=no
16906
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16907
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16908
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16909
export_dynamic_flag_spec_F77='${wl}-E'
16912
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16913
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16914
hardcode_libdir_flag_spec_F77='-R$libdir'
16917
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16918
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16925
hardcode_libdir_flag_spec_F77='-L$libdir'
16926
hardcode_minus_L_F77=yes
16927
allow_undefined_flag_F77=unsupported
16928
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'
16929
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16933
if test "$GCC" = yes; then
16934
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16935
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'
16937
allow_undefined_flag_F77=' -expect_unresolved \*'
16938
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'
16940
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16941
hardcode_libdir_separator_F77=:
16944
osf4* | osf5*) # as osf3* with the addition of -msym flag
16945
if test "$GCC" = yes; then
16946
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16947
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'
16948
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16950
allow_undefined_flag_F77=' -expect_unresolved \*'
16951
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'
16952
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~
16953
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16955
# Both c and cxx compiler support -rpath directly
16956
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16958
hardcode_libdir_separator_F77=:
16962
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963
hardcode_shlibpath_var_F77=no
16964
export_dynamic_flag_spec_F77='${wl}-Bexport'
16965
runpath_var=LD_RUN_PATH
16966
hardcode_runpath_var=yes
16970
no_undefined_flag_F77=' -z text'
16971
if test "$GCC" = yes; then
16972
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16973
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16974
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16976
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16977
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16978
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16980
hardcode_libdir_flag_spec_F77='-R$libdir'
16981
hardcode_shlibpath_var_F77=no
16983
solaris2.[0-5] | solaris2.[0-5].*) ;;
16984
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16985
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16987
link_all_deplibs_F77=yes
16991
if test "x$host_vendor" = xsequent; then
16992
# Use $CC to link under sequent, because it throws in some extra .o
16993
# files that make .init and .fini sections work.
16994
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16996
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16998
hardcode_libdir_flag_spec_F77='-L$libdir'
16999
hardcode_direct_F77=yes
17000
hardcode_minus_L_F77=yes
17001
hardcode_shlibpath_var_F77=no
17005
case $host_vendor in
17007
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17008
hardcode_direct_F77=yes # is this really true???
17011
## LD is ld it makes a PLAMLIB
17012
## CC just makes a GrossModule.
17013
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17014
reload_cmds_F77='$CC -r -o $output$reload_objs'
17015
hardcode_direct_F77=no
17018
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17019
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17022
runpath_var='LD_RUN_PATH'
17023
hardcode_shlibpath_var_F77=no
17027
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17028
hardcode_shlibpath_var_F77=no
17029
export_dynamic_flag_spec_F77='-Bexport'
17033
if test -d /usr/nec; then
17034
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17035
hardcode_shlibpath_var_F77=no
17036
runpath_var=LD_RUN_PATH
17037
hardcode_runpath_var=yes
17043
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17044
hardcode_direct_F77=yes
17045
hardcode_minus_L_F77=no
17046
hardcode_shlibpath_var_F77=no
17047
hardcode_runpath_var=yes
17048
runpath_var=LD_RUN_PATH
17051
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17052
no_undefined_flag_F77='${wl}-z ${wl}text'
17053
if test "$GCC" = yes; then
17054
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17056
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17058
runpath_var='LD_RUN_PATH'
17059
hardcode_shlibpath_var_F77=no
17063
no_undefined_flag_F77=' -z text'
17064
# $CC -shared without GNU ld will not create a library from C++
17065
# object files and a static libstdc++, better avoid it by now
17066
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17067
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17068
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17069
hardcode_libdir_flag_spec_F77=
17070
hardcode_shlibpath_var_F77=no
17071
runpath_var='LD_RUN_PATH'
17075
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17076
hardcode_libdir_flag_spec_F77='-L$libdir'
17077
hardcode_shlibpath_var_F77=no
17086
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17087
echo "${ECHO_T}$ld_shlibs_F77" >&6
17088
test "$ld_shlibs_F77" = no && can_build_shared=no
17090
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17091
if test "$GCC" = yes; then
17092
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17096
# Do we need to explicitly link libc?
17098
case "x$archive_cmds_need_lc_F77" in
17100
# Assume -lc should be added
17101
archive_cmds_need_lc_F77=yes
17103
if test "$enable_shared" = yes && test "$GCC" = yes; then
17104
case $archive_cmds_F77 in
17106
# FIXME: we may have to deal with multi-command sequences.
17109
# Test whether the compiler implicitly links with -lc since on some
17110
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17111
# to ld, don't add -lc before -lgcc.
17112
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17113
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17115
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17117
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118
(eval $ac_compile) 2>&5
17120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121
(exit $ac_status); } 2>conftest.err; then
17124
libobjs=conftest.$ac_objext
17126
wl=$lt_prog_compiler_wl_F77
17132
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17133
allow_undefined_flag_F77=
17134
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17135
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138
(exit $ac_status); }
17140
archive_cmds_need_lc_F77=no
17142
archive_cmds_need_lc_F77=yes
17144
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17146
cat conftest.err 1>&5
17149
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17150
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17157
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17158
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17159
library_names_spec=
17160
libname_spec='lib$name'
17164
postuninstall_cmds=
17168
shlibpath_overrides_runpath=unknown
17170
dynamic_linker="$host_os ld.so"
17171
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17172
if test "$GCC" = yes; then
17173
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17174
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17175
# if the path contains ";" then we assume it to be the separator
17176
# otherwise default to the standard path separator (i.e. ":") - it is
17177
# assumed that no part of a normal pathname contains ";" but that should
17178
# okay in the real world where ";" in dirpaths is itself problematic.
17179
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17181
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17184
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17186
need_lib_prefix=unknown
17187
hardcode_into_libs=no
17189
# when you set need_version to no, make sure it does not cause -set_version
17190
# flags to be left without arguments
17191
need_version=unknown
17196
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17197
shlibpath_var=LIBPATH
17199
# AIX 3 has no versioning support, so we append a major version to the name.
17200
soname_spec='${libname}${release}${shared_ext}$major'
17207
hardcode_into_libs=yes
17208
if test "$host_cpu" = ia64; then
17209
# AIX 5 supports IA64
17210
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17211
shlibpath_var=LD_LIBRARY_PATH
17213
# With GCC up to 2.95.x, collect2 would create an import file
17214
# for dependence libraries. The import file would start with
17215
# the line `#! .'. This would cause the generated library to
17216
# depend on `.', always an invalid library. This was fixed in
17217
# development snapshots of GCC prior to 3.0.
17219
aix4 | aix4.[01] | aix4.[01].*)
17220
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17222
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17225
can_build_shared=no
17229
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17230
# soname into executable. Probably we can add versioning support to
17231
# collect2, so additional links can be useful in future.
17232
if test "$aix_use_runtimelinking" = yes; then
17233
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17234
# instead of lib<name>.a to let people know that these are not
17235
# typical AIX shared libraries.
17236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238
# We preserve .a as extension for shared libraries through AIX4.2
17239
# and later when we are not doing run time linking.
17240
library_names_spec='${libname}${release}.a $libname.a'
17241
soname_spec='${libname}${release}${shared_ext}$major'
17243
shlibpath_var=LIBPATH
17248
library_names_spec='$libname.ixlibrary $libname.a'
17249
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17250
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'
17254
library_names_spec='${libname}${shared_ext}'
17255
dynamic_linker="$host_os ld.so"
17256
shlibpath_var=LIBRARY_PATH
17262
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263
soname_spec='${libname}${release}${shared_ext}$major'
17264
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17265
shlibpath_var=LD_LIBRARY_PATH
17266
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17267
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17268
# the default ld.so.conf also contains /usr/contrib/lib and
17269
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17270
# libtool to hard-code these into programs
17273
cygwin* | mingw* | pw32*)
17274
version_type=windows
17279
case $GCC,$host_os in
17280
yes,cygwin* | yes,mingw* | yes,pw32*)
17281
library_names_spec='$libname.dll.a'
17282
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17283
postinstall_cmds='base_file=`basename \${file}`~
17284
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17285
dldir=$destdir/`dirname \$dlpath`~
17286
test -d \$dldir || mkdir -p \$dldir~
17287
$install_prog $dir/$dlname \$dldir/$dlname'
17288
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17289
dlpath=$dir/\$dldll~
17291
shlibpath_overrides_runpath=yes
17295
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17296
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17297
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17300
# MinGW DLLs use traditional 'lib' prefix
17301
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17302
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17303
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17304
# It is most probably a Windows format PATH printed by
17305
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17306
# path with ; separators, and with drive letters. We can handle the
17307
# drive letters (cygwin fileutils understands them), so leave them,
17308
# especially as we might pass files found there to a mingw objdump,
17309
# which wouldn't understand a cygwinified path. Ahh.
17310
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17312
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17316
# pw32 DLLs use 'pw' prefix rather than 'lib'
17317
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17323
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17326
dynamic_linker='Win32 ld.exe'
17327
# FIXME: first we should search . and the directory the executable is in
17331
darwin* | rhapsody*)
17332
dynamic_linker="$host_os dyld"
17333
version_type=darwin
17336
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17337
soname_spec='${libname}${release}${major}$shared_ext'
17338
shlibpath_overrides_runpath=yes
17339
shlibpath_var=DYLD_LIBRARY_PATH
17340
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17341
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17342
if test "$GCC" = yes; then
17343
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"`
17345
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17347
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17355
soname_spec='${libname}${release}${shared_ext}$major'
17356
shlibpath_var=LD_LIBRARY_PATH
17367
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17368
soname_spec='${libname}${release}${shared_ext}$major'
17369
shlibpath_var=LD_LIBRARY_PATH
17370
shlibpath_overrides_runpath=no
17371
hardcode_into_libs=yes
17372
dynamic_linker='GNU ld.so'
17376
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17377
version_type=freebsd-$objformat
17378
case $version_type in
17380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17385
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17389
shlibpath_var=LD_LIBRARY_PATH
17392
shlibpath_overrides_runpath=yes
17394
freebsd3.01* | freebsdelf3.01*)
17395
shlibpath_overrides_runpath=yes
17396
hardcode_into_libs=yes
17399
shlibpath_overrides_runpath=no
17400
hardcode_into_libs=yes
17409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17410
soname_spec='${libname}${release}${shared_ext}$major'
17411
shlibpath_var=LD_LIBRARY_PATH
17412
hardcode_into_libs=yes
17415
hpux9* | hpux10* | hpux11*)
17416
# Give a soname corresponding to the major version so that dld.sl refuses to
17417
# link against other versions.
17421
case "$host_cpu" in
17424
hardcode_into_libs=yes
17425
dynamic_linker="$host_os dld.so"
17426
shlibpath_var=LD_LIBRARY_PATH
17427
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429
soname_spec='${libname}${release}${shared_ext}$major'
17430
if test "X$HPUX_IA64_MODE" = X32; then
17431
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17433
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17435
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17439
hardcode_into_libs=yes
17440
dynamic_linker="$host_os dld.sl"
17441
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17442
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444
soname_spec='${libname}${release}${shared_ext}$major'
17445
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17446
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17450
dynamic_linker="$host_os dld.sl"
17451
shlibpath_var=SHLIB_PATH
17452
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17453
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454
soname_spec='${libname}${release}${shared_ext}$major'
17457
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17458
postinstall_cmds='chmod 555 $lib'
17461
irix5* | irix6* | nonstopux*)
17463
nonstopux*) version_type=nonstopux ;;
17465
if test "$lt_cv_prog_gnu_ld" = yes; then
17473
soname_spec='${libname}${release}${shared_ext}$major'
17474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17476
irix5* | nonstopux*)
17477
libsuff= shlibsuff=
17480
case $LD in # libtool.m4 will add one of these switches to LD
17481
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17482
libsuff= shlibsuff= libmagic=32-bit;;
17483
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17484
libsuff=32 shlibsuff=N32 libmagic=N32;;
17485
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17486
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17487
*) libsuff= shlibsuff= libmagic=never-match;;
17491
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17492
shlibpath_overrides_runpath=no
17493
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17494
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17495
hardcode_into_libs=yes
17498
# No shared lib support for Linux oldld, aout, or coff.
17499
linux*oldld* | linux*aout* | linux*coff*)
17503
# This must be Linux ELF.
17508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509
soname_spec='${libname}${release}${shared_ext}$major'
17510
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17511
shlibpath_var=LD_LIBRARY_PATH
17512
shlibpath_overrides_runpath=no
17513
# This implies no fast_install, which is unacceptable.
17514
# Some rework will be needed to allow for fast_install
17515
# before this can be enabled.
17516
hardcode_into_libs=yes
17518
# Append ld.so.conf contents to the search path
17519
if test -f /etc/ld.so.conf; then
17520
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17521
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17524
# We used to test for /lib/ld.so.1 and disable shared libraries on
17525
# powerpc, because MkLinux only supported shared libraries with the
17526
# GNU dynamic linker. Since this was broken with cross compilers,
17527
# most powerpc-linux boxes support dynamic linking these days and
17528
# people can always --disable-shared, the test was removed, and we
17529
# assume the GNU/Linux dynamic linker is in use.
17530
dynamic_linker='GNU/Linux ld.so'
17537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17538
soname_spec='${libname}${release}${shared_ext}$major'
17539
shlibpath_var=LD_LIBRARY_PATH
17540
shlibpath_overrides_runpath=no
17541
hardcode_into_libs=yes
17542
dynamic_linker='NetBSD ld.elf_so'
17549
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17550
soname_spec='${libname}${release}${shared_ext}$major'
17551
shlibpath_var=LD_LIBRARY_PATH
17552
shlibpath_overrides_runpath=no
17553
hardcode_into_libs=yes
17554
dynamic_linker='GNU ld.so'
17561
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17563
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17564
dynamic_linker='NetBSD (a.out) ld.so'
17566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17567
soname_spec='${libname}${release}${shared_ext}$major'
17568
dynamic_linker='NetBSD ld.elf_so'
17570
shlibpath_var=LD_LIBRARY_PATH
17571
shlibpath_overrides_runpath=yes
17572
hardcode_into_libs=yes
17577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578
shlibpath_var=LD_LIBRARY_PATH
17579
shlibpath_overrides_runpath=yes
17586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587
soname_spec='${libname}${release}${shared_ext}$major'
17588
shlibpath_var=LD_LIBRARY_PATH
17589
shlibpath_overrides_runpath=yes
17596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17597
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17598
shlibpath_var=LD_LIBRARY_PATH
17599
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17601
openbsd2.[89] | openbsd2.[89].*)
17602
shlibpath_overrides_runpath=no
17605
shlibpath_overrides_runpath=yes
17609
shlibpath_overrides_runpath=yes
17614
libname_spec='$name'
17617
library_names_spec='$libname${shared_ext} $libname.a'
17618
dynamic_linker='OS/2 ld.exe'
17619
shlibpath_var=LIBPATH
17622
osf3* | osf4* | osf5*)
17626
soname_spec='${libname}${release}${shared_ext}$major'
17627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17628
shlibpath_var=LD_LIBRARY_PATH
17629
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17630
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17635
soname_spec='${libname}${release}${shared_ext}$major'
17636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637
shlibpath_var=LD_LIBRARY_PATH
17644
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17645
soname_spec='${libname}${release}${shared_ext}$major'
17646
shlibpath_var=LD_LIBRARY_PATH
17647
shlibpath_overrides_runpath=yes
17648
hardcode_into_libs=yes
17649
# ldd complains unless libraries are executable
17650
postinstall_cmds='chmod +x $lib'
17655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17656
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17657
shlibpath_var=LD_LIBRARY_PATH
17658
shlibpath_overrides_runpath=yes
17659
if test "$with_gnu_ld" = yes; then
17665
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668
soname_spec='${libname}${release}${shared_ext}$major'
17669
shlibpath_var=LD_LIBRARY_PATH
17670
case $host_vendor in
17672
shlibpath_overrides_runpath=no
17674
export_dynamic_flag_spec='${wl}-Blargedynsym'
17675
runpath_var=LD_RUN_PATH
17683
shlibpath_overrides_runpath=no
17684
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17690
if test -d /usr/nec ;then
17692
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17693
soname_spec='$libname${shared_ext}.$major'
17694
shlibpath_var=LD_LIBRARY_PATH
17700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701
soname_spec='${libname}${release}${shared_ext}$major'
17702
shlibpath_var=LD_LIBRARY_PATH
17709
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17710
echo "${ECHO_T}$dynamic_linker" >&6
17711
test "$dynamic_linker" = no && can_build_shared=no
17713
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17714
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17715
hardcode_action_F77=
17716
if test -n "$hardcode_libdir_flag_spec_F77" || \
17717
test -n "$runpath_var F77" || \
17718
test "X$hardcode_automatic_F77"="Xyes" ; then
17720
# We can hardcode non-existant directories.
17721
if test "$hardcode_direct_F77" != no &&
17722
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17723
# have to relink, otherwise we might link with an installed library
17724
# when we should be linking with a yet-to-be-installed one
17725
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17726
test "$hardcode_minus_L_F77" != no; then
17727
# Linking always hardcodes the temporary library directory.
17728
hardcode_action_F77=relink
17730
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17731
hardcode_action_F77=immediate
17734
# We cannot hardcode anything, or else we can only hardcode existing
17736
hardcode_action_F77=unsupported
17738
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17739
echo "${ECHO_T}$hardcode_action_F77" >&6
17741
if test "$hardcode_action_F77" = relink; then
17742
# Fast installation is not supported
17743
enable_fast_install=no
17744
elif test "$shlibpath_overrides_runpath" = yes ||
17745
test "$enable_shared" = no; then
17746
# Fast installation is not necessary
17747
enable_fast_install=needless
17752
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17753
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17754
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17755
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17756
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17757
echo "$as_me:$LINENO: result: yes" >&5
17758
echo "${ECHO_T}yes" >&6
17760
# FIXME - insert some real tests, host_os isn't really good enough
17763
if test -n "$STRIP" ; then
17764
striplib="$STRIP -x"
17765
echo "$as_me:$LINENO: result: yes" >&5
17766
echo "${ECHO_T}yes" >&6
17768
echo "$as_me:$LINENO: result: no" >&5
17769
echo "${ECHO_T}no" >&6
17773
echo "$as_me:$LINENO: result: no" >&5
17774
echo "${ECHO_T}no" >&6
17781
# The else clause should only fire when bootstrapping the
17782
# libtool distribution, otherwise you forgot to ship ltmain.sh
17783
# with your package, and you will get complaints that there are
17784
# no rules to generate ltmain.sh.
17785
if test -f "$ltmain"; then
17786
# See if we are running on zsh, and set the options which allow our commands through
17787
# without removal of \ escapes.
17788
if test -n "${ZSH_VERSION+set}" ; then
17789
setopt NO_GLOB_SUBST
17791
# Now quote all the things that may contain metacharacters while being
17792
# careful not to overquote the AC_SUBSTed values. We take copies of the
17793
# variables and quote the copies for generation of the libtool script.
17794
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17796
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17797
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17798
deplibs_check_method reload_flag reload_cmds need_locks \
17799
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17800
lt_cv_sys_global_symbol_to_c_name_address \
17801
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17802
old_postinstall_cmds old_postuninstall_cmds \
17806
lt_prog_compiler_wl_F77 \
17807
lt_prog_compiler_pic_F77 \
17808
lt_prog_compiler_static_F77 \
17809
lt_prog_compiler_no_builtin_flag_F77 \
17810
export_dynamic_flag_spec_F77 \
17811
thread_safe_flag_spec_F77 \
17812
whole_archive_flag_spec_F77 \
17813
enable_shared_with_static_runtimes_F77 \
17814
old_archive_cmds_F77 \
17815
old_archive_from_new_cmds_F77 \
17816
predep_objects_F77 \
17817
postdep_objects_F77 \
17820
compiler_lib_search_path_F77 \
17822
archive_expsym_cmds_F77 \
17823
postinstall_cmds_F77 \
17824
postuninstall_cmds_F77 \
17825
old_archive_from_expsyms_cmds_F77 \
17826
allow_undefined_flag_F77 \
17827
no_undefined_flag_F77 \
17828
export_symbols_cmds_F77 \
17829
hardcode_libdir_flag_spec_F77 \
17830
hardcode_libdir_flag_spec_ld_F77 \
17831
hardcode_libdir_separator_F77 \
17832
hardcode_automatic_F77 \
17834
module_expsym_cmds_F77 \
17835
lt_cv_prog_compiler_c_o_F77 \
17836
exclude_expsyms_F77 \
17837
include_expsyms_F77; do
17840
old_archive_cmds_F77 | \
17841
old_archive_from_new_cmds_F77 | \
17842
archive_cmds_F77 | \
17843
archive_expsym_cmds_F77 | \
17844
module_cmds_F77 | \
17845
module_expsym_cmds_F77 | \
17846
old_archive_from_expsyms_cmds_F77 | \
17847
export_symbols_cmds_F77 | \
17848
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17849
postinstall_cmds | postuninstall_cmds | \
17850
old_postinstall_cmds | old_postuninstall_cmds | \
17851
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17852
# Double-quote double-evaled strings.
17853
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17856
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17862
*'\$0 --fallback-echo"')
17863
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17869
cat <<__EOF__ >> "$cfgfile"
17870
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17872
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17874
# Shell to use when invoking shell scripts.
17877
# Whether or not to build shared libraries.
17878
build_libtool_libs=$enable_shared
17880
# Whether or not to build static libraries.
17881
build_old_libs=$enable_static
17883
# Whether or not to add -lc for building shared libraries.
17884
build_libtool_need_lc=$archive_cmds_need_lc_F77
17886
# Whether or not to disallow shared libs when runtime libs are static
17887
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17889
# Whether or not to optimize for fast installation.
17890
fast_install=$enable_fast_install
17893
host_alias=$host_alias
17896
# An echo program that does not interpret backslashes.
17901
AR_FLAGS=$lt_AR_FLAGS
17906
# A language-specific compiler.
17907
CC=$lt_compiler_F77
17909
# Is the compiler the GNU C compiler?
17915
# The linker used to build libraries.
17918
# Whether we need hard or soft links.
17921
# A BSD-compatible nm program.
17924
# A symbol stripping program
17927
# Used to examine libraries when file_magic_cmd begins "file"
17928
MAGIC_CMD=$MAGIC_CMD
17930
# Used on cygwin: DLL creation program.
17933
# Used on cygwin: object dumper.
17936
# Used on cygwin: assembler.
17939
# The name of the directory that contains temporary libtool files.
17942
# How to create reloadable object files.
17943
reload_flag=$lt_reload_flag
17944
reload_cmds=$lt_reload_cmds
17946
# How to pass a linker flag through the compiler.
17947
wl=$lt_lt_prog_compiler_wl_F77
17949
# Object file suffix (normally "o").
17950
objext="$ac_objext"
17952
# Old archive suffix (normally "a").
17955
# Shared library suffix (normally ".so").
17956
shrext_cmds='$shrext_cmds'
17958
# Executable file suffix (normally "").
17961
# Additional compiler flags for building library objects.
17962
pic_flag=$lt_lt_prog_compiler_pic_F77
17965
# What is the maximum length of a command?
17966
max_cmd_len=$lt_cv_sys_max_cmd_len
17968
# Does compiler simultaneously support -c and -o options?
17969
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17971
# Must we lock files when doing compilation ?
17972
need_locks=$lt_need_locks
17974
# Do we need the lib prefix for modules?
17975
need_lib_prefix=$need_lib_prefix
17977
# Do we need a version for libraries?
17978
need_version=$need_version
17980
# Whether dlopen is supported.
17981
dlopen_support=$enable_dlopen
17983
# Whether dlopen of programs is supported.
17984
dlopen_self=$enable_dlopen_self
17986
# Whether dlopen of statically linked programs is supported.
17987
dlopen_self_static=$enable_dlopen_self_static
17989
# Compiler flag to prevent dynamic linking.
17990
link_static_flag=$lt_lt_prog_compiler_static_F77
17992
# Compiler flag to turn off builtin functions.
17993
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17995
# Compiler flag to allow reflexive dlopens.
17996
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17998
# Compiler flag to generate shared objects directly from archives.
17999
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18001
# Compiler flag to generate thread-safe objects.
18002
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18004
# Library versioning type.
18005
version_type=$version_type
18007
# Format of library name prefix.
18008
libname_spec=$lt_libname_spec
18010
# List of archive names. First name is the real one, the rest are links.
18011
# The last name is the one that the linker finds with -lNAME.
18012
library_names_spec=$lt_library_names_spec
18014
# The coded name of the library, if different from the real name.
18015
soname_spec=$lt_soname_spec
18017
# Commands used to build and install an old-style archive.
18019
old_archive_cmds=$lt_old_archive_cmds_F77
18020
old_postinstall_cmds=$lt_old_postinstall_cmds
18021
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18023
# Create an old-style archive from a shared archive.
18024
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18026
# Create a temporary old-style archive to link instead of a shared archive.
18027
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18029
# Commands used to build and install a shared archive.
18030
archive_cmds=$lt_archive_cmds_F77
18031
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18032
postinstall_cmds=$lt_postinstall_cmds
18033
postuninstall_cmds=$lt_postuninstall_cmds
18035
# Commands used to build a loadable module (assumed same as above if empty)
18036
module_cmds=$lt_module_cmds_F77
18037
module_expsym_cmds=$lt_module_expsym_cmds_F77
18039
# Commands to strip libraries.
18040
old_striplib=$lt_old_striplib
18041
striplib=$lt_striplib
18043
# Dependencies to place before the objects being linked to create a
18045
predep_objects=$lt_predep_objects_F77
18047
# Dependencies to place after the objects being linked to create a
18049
postdep_objects=$lt_postdep_objects_F77
18051
# Dependencies to place before the objects being linked to create a
18053
predeps=$lt_predeps_F77
18055
# Dependencies to place after the objects being linked to create a
18057
postdeps=$lt_postdeps_F77
18059
# The library search path used internally by the compiler when linking
18060
# a shared library.
18061
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18063
# Method to check whether dependent libraries are shared objects.
18064
deplibs_check_method=$lt_deplibs_check_method
18066
# Command to use when deplibs_check_method == file_magic.
18067
file_magic_cmd=$lt_file_magic_cmd
18069
# Flag that allows shared libraries with undefined symbols to be built.
18070
allow_undefined_flag=$lt_allow_undefined_flag_F77
18072
# Flag that forces no undefined symbols.
18073
no_undefined_flag=$lt_no_undefined_flag_F77
18075
# Commands used to finish a libtool library installation in a directory.
18076
finish_cmds=$lt_finish_cmds
18078
# Same as above, but a single script fragment to be evaled but not shown.
18079
finish_eval=$lt_finish_eval
18081
# Take the output of nm and produce a listing of raw symbols and C names.
18082
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18084
# Transform the output of nm in a proper C declaration
18085
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18087
# Transform the output of nm in a C name address pair
18088
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18090
# This is the shared library runtime path variable.
18091
runpath_var=$runpath_var
18093
# This is the shared library path variable.
18094
shlibpath_var=$shlibpath_var
18096
# Is shlibpath searched before the hard-coded library search path?
18097
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18099
# How to hardcode a shared library path into an executable.
18100
hardcode_action=$hardcode_action_F77
18102
# Whether we should hardcode library paths into libraries.
18103
hardcode_into_libs=$hardcode_into_libs
18105
# Flag to hardcode \$libdir into a binary during linking.
18106
# This must work even if \$libdir does not exist.
18107
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18109
# If ld is used when linking, flag to hardcode \$libdir into
18110
# a binary during linking. This must work even if \$libdir does
18112
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18114
# Whether we need a single -rpath flag with a separated argument.
18115
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18117
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18118
# resulting binary.
18119
hardcode_direct=$hardcode_direct_F77
18121
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18122
# resulting binary.
18123
hardcode_minus_L=$hardcode_minus_L_F77
18125
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18126
# the resulting binary.
18127
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18129
# Set to yes if building a shared library automatically hardcodes DIR into the library
18130
# and all subsequent libraries and executables linked against it.
18131
hardcode_automatic=$hardcode_automatic_F77
18133
# Variables whose values should be saved in libtool wrapper scripts and
18134
# restored at relink time.
18135
variables_saved_for_relink="$variables_saved_for_relink"
18137
# Whether libtool must link a program against all its dependency libraries.
18138
link_all_deplibs=$link_all_deplibs_F77
18140
# Compile-time system search path for libraries
18141
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18143
# Run-time system search path for libraries
18144
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18146
# Fix the shell variable \$srcfile for the compiler.
18147
fix_srcfile_path="$fix_srcfile_path_F77"
18149
# Set to yes if exported symbols are required.
18150
always_export_symbols=$always_export_symbols_F77
18152
# The commands to list exported symbols.
18153
export_symbols_cmds=$lt_export_symbols_cmds_F77
18155
# The commands to extract the exported symbol list from a shared archive.
18156
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18158
# Symbols that should not be listed in the preloaded symbols.
18159
exclude_expsyms=$lt_exclude_expsyms_F77
18161
# Symbols that must always be exported.
18162
include_expsyms=$lt_include_expsyms_F77
18164
# ### END LIBTOOL TAG CONFIG: $tagname
18170
# If there is no Makefile yet, we rely on a make rule to execute
18171
# `config.status --recheck' to rerun these tests and create the
18172
# libtool script then.
18173
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18174
if test -f "$ltmain_in"; then
18175
test -f Makefile && make "$ltmain"
18181
ac_cpp='$CPP $CPPFLAGS'
18182
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18183
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18184
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18194
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18198
# Source file extension for Java test sources.
18201
# Object file extension for compiled Java test sources.
18205
# Code to be used in simple compile tests
18206
lt_simple_compile_test_code="class foo {}\n"
18208
# Code to be used in simple link tests
18209
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18211
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18213
# If no C compiler was specified, use CC.
18216
# Allow CC to be a program name with arguments.
18220
# Allow CC to be a program name with arguments.
18226
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18227
archive_cmds_need_lc_GCJ=no
18230
## There is no encapsulation within the following macros, do not change
18231
## the running order or otherwise move them around unless you know exactly
18232
## what you are doing...
18234
lt_prog_compiler_no_builtin_flag_GCJ=
18236
if test "$GCC" = yes; then
18237
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18240
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18241
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18242
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18243
echo $ECHO_N "(cached) $ECHO_C" >&6
18245
lt_cv_prog_compiler_rtti_exceptions=no
18246
ac_outfile=conftest.$ac_objext
18247
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18248
lt_compiler_flag="-fno-rtti -fno-exceptions"
18249
# Insert the option either (1) after the last *FLAGS variable, or
18250
# (2) before a word containing "conftest.", or (3) at the end.
18251
# Note that $ac_compile itself does not contain backslashes and begins
18252
# with a dollar sign (not a hyphen), so the echo should work correctly.
18253
# The option is referenced via a variable to avoid confusing sed.
18254
lt_compile=`echo "$ac_compile" | $SED \
18255
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18256
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18257
-e 's:$: $lt_compiler_flag:'`
18258
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18259
(eval "$lt_compile" 2>conftest.err)
18261
cat conftest.err >&5
18262
echo "$as_me:__oline__: \$? = $ac_status" >&5
18263
if (exit $ac_status) && test -s "$ac_outfile"; then
18264
# The compiler can only warn and ignore the option if not recognized
18265
# So say no if there are warnings
18266
if test ! -s conftest.err; then
18267
lt_cv_prog_compiler_rtti_exceptions=yes
18273
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18274
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18276
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18277
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18284
lt_prog_compiler_wl_GCJ=
18285
lt_prog_compiler_pic_GCJ=
18286
lt_prog_compiler_static_GCJ=
18288
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18289
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18291
if test "$GCC" = yes; then
18292
lt_prog_compiler_wl_GCJ='-Wl,'
18293
lt_prog_compiler_static_GCJ='-static'
18297
# All AIX code is PIC.
18298
if test "$host_cpu" = ia64; then
18299
# AIX 5 now supports IA64 processor
18300
lt_prog_compiler_static_GCJ='-Bstatic'
18305
# FIXME: we need at least 68020 code to build shared libraries, but
18306
# adding the `-m68020' flag to GCC prevents building anything better,
18308
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18311
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18312
# PIC is the default for these OSes.
18315
mingw* | pw32* | os2*)
18316
# This hack is so that the source file can tell whether it is being
18317
# built for inclusion in a dll (and should export symbols for example).
18318
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18321
darwin* | rhapsody*)
18322
# PIC is the default on this platform
18323
# Common symbols not allowed in MH_DYLIB files
18324
lt_prog_compiler_pic_GCJ='-fno-common'
18328
# Just because we use GCC doesn't mean we suddenly get shared libraries
18329
# on systems that don't support them.
18330
lt_prog_compiler_can_build_shared_GCJ=no
18335
if test -d /usr/nec; then
18336
lt_prog_compiler_pic_GCJ=-Kconform_pic
18341
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18342
# not for PA HP-UX.
18343
case "$host_cpu" in
18348
lt_prog_compiler_pic_GCJ='-fPIC'
18354
lt_prog_compiler_pic_GCJ='-fPIC'
18358
# PORTME Check for flag to pass linker flags through the system compiler.
18361
lt_prog_compiler_wl_GCJ='-Wl,'
18362
if test "$host_cpu" = ia64; then
18363
# AIX 5 now supports IA64 processor
18364
lt_prog_compiler_static_GCJ='-Bstatic'
18366
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18370
mingw* | pw32* | os2*)
18371
# This hack is so that the source file can tell whether it is being
18372
# built for inclusion in a dll (and should export symbols for example).
18373
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18376
hpux9* | hpux10* | hpux11*)
18377
lt_prog_compiler_wl_GCJ='-Wl,'
18378
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18379
# not for PA HP-UX.
18380
case "$host_cpu" in
18385
lt_prog_compiler_pic_GCJ='+Z'
18388
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18389
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18392
irix5* | irix6* | nonstopux*)
18393
lt_prog_compiler_wl_GCJ='-Wl,'
18394
# PIC (with -KPIC) is the default.
18395
lt_prog_compiler_static_GCJ='-non_shared'
18399
lt_prog_compiler_pic_GCJ='-KPIC'
18400
lt_prog_compiler_static_GCJ='-Bstatic'
18406
lt_prog_compiler_wl_GCJ='-Wl,'
18407
lt_prog_compiler_pic_GCJ='-KPIC'
18408
lt_prog_compiler_static_GCJ='-static'
18411
lt_prog_compiler_wl_GCJ='-Wl,'
18412
# All Alpha code is PIC.
18413
lt_prog_compiler_static_GCJ='-non_shared'
18418
osf3* | osf4* | osf5*)
18419
lt_prog_compiler_wl_GCJ='-Wl,'
18420
# All OSF/1 code is PIC.
18421
lt_prog_compiler_static_GCJ='-non_shared'
18425
lt_prog_compiler_pic_GCJ='-Kpic'
18426
lt_prog_compiler_static_GCJ='-dn'
18430
lt_prog_compiler_wl_GCJ='-Wl,'
18431
lt_prog_compiler_pic_GCJ='-KPIC'
18432
lt_prog_compiler_static_GCJ='-Bstatic'
18436
lt_prog_compiler_wl_GCJ='-Qoption ld '
18437
lt_prog_compiler_pic_GCJ='-PIC'
18438
lt_prog_compiler_static_GCJ='-Bstatic'
18441
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18442
lt_prog_compiler_wl_GCJ='-Wl,'
18443
lt_prog_compiler_pic_GCJ='-KPIC'
18444
lt_prog_compiler_static_GCJ='-Bstatic'
18448
if test -d /usr/nec ;then
18449
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18450
lt_prog_compiler_static_GCJ='-Bstatic'
18455
lt_prog_compiler_pic_GCJ='-pic'
18456
lt_prog_compiler_static_GCJ='-Bstatic'
18460
lt_prog_compiler_can_build_shared_GCJ=no
18465
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18466
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18469
# Check to make sure the PIC flag actually works.
18471
if test -n "$lt_prog_compiler_pic_GCJ"; then
18473
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18474
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18475
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18476
echo $ECHO_N "(cached) $ECHO_C" >&6
18478
lt_prog_compiler_pic_works_GCJ=no
18479
ac_outfile=conftest.$ac_objext
18480
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18481
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18482
# Insert the option either (1) after the last *FLAGS variable, or
18483
# (2) before a word containing "conftest.", or (3) at the end.
18484
# Note that $ac_compile itself does not contain backslashes and begins
18485
# with a dollar sign (not a hyphen), so the echo should work correctly.
18486
# The option is referenced via a variable to avoid confusing sed.
18487
lt_compile=`echo "$ac_compile" | $SED \
18488
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18489
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18490
-e 's:$: $lt_compiler_flag:'`
18491
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18492
(eval "$lt_compile" 2>conftest.err)
18494
cat conftest.err >&5
18495
echo "$as_me:__oline__: \$? = $ac_status" >&5
18496
if (exit $ac_status) && test -s "$ac_outfile"; then
18497
# The compiler can only warn and ignore the option if not recognized
18498
# So say no if there are warnings
18499
if test ! -s conftest.err; then
18500
lt_prog_compiler_pic_works_GCJ=yes
18506
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18507
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18509
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18510
case $lt_prog_compiler_pic_GCJ in
18512
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18515
lt_prog_compiler_pic_GCJ=
18516
lt_prog_compiler_can_build_shared_GCJ=no
18521
# For platforms which do not support PIC, -DPIC is meaningless:
18523
lt_prog_compiler_pic_GCJ=
18526
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18530
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18531
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18532
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18533
echo $ECHO_N "(cached) $ECHO_C" >&6
18535
lt_cv_prog_compiler_c_o_GCJ=no
18536
$rm -r conftest 2>/dev/null
18540
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18542
lt_compiler_flag="-o out/conftest2.$ac_objext"
18543
# Insert the option either (1) after the last *FLAGS variable, or
18544
# (2) before a word containing "conftest.", or (3) at the end.
18545
# Note that $ac_compile itself does not contain backslashes and begins
18546
# with a dollar sign (not a hyphen), so the echo should work correctly.
18547
lt_compile=`echo "$ac_compile" | $SED \
18548
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18549
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18550
-e 's:$: $lt_compiler_flag:'`
18551
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18552
(eval "$lt_compile" 2>out/conftest.err)
18554
cat out/conftest.err >&5
18555
echo "$as_me:__oline__: \$? = $ac_status" >&5
18556
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18558
# The compiler can only warn and ignore the option if not recognized
18559
# So say no if there are warnings
18560
if test ! -s out/conftest.err; then
18561
lt_cv_prog_compiler_c_o_GCJ=yes
18566
# SGI C++ compiler will create directory out/ii_files/ for
18567
# template instantiation
18568
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18569
$rm out/* && rmdir out
18575
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18576
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18579
hard_links="nottested"
18580
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18581
# do not overwrite the value of need_locks provided by the user
18582
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18583
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18586
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18588
ln conftest.a conftest.b 2>&5 || hard_links=no
18589
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18590
echo "$as_me:$LINENO: result: $hard_links" >&5
18591
echo "${ECHO_T}$hard_links" >&6
18592
if test "$hard_links" = no; then
18593
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18594
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18601
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18602
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18605
allow_undefined_flag_GCJ=
18606
enable_shared_with_static_runtimes_GCJ=no
18608
archive_expsym_cmds_GCJ=
18609
old_archive_From_new_cmds_GCJ=
18610
old_archive_from_expsyms_cmds_GCJ=
18611
export_dynamic_flag_spec_GCJ=
18612
whole_archive_flag_spec_GCJ=
18613
thread_safe_flag_spec_GCJ=
18614
hardcode_libdir_flag_spec_GCJ=
18615
hardcode_libdir_flag_spec_ld_GCJ=
18616
hardcode_libdir_separator_GCJ=
18617
hardcode_direct_GCJ=no
18618
hardcode_minus_L_GCJ=no
18619
hardcode_shlibpath_var_GCJ=unsupported
18620
link_all_deplibs_GCJ=unknown
18621
hardcode_automatic_GCJ=no
18623
module_expsym_cmds_GCJ=
18624
always_export_symbols_GCJ=no
18625
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18626
# include_expsyms should be a list of space-separated symbols to be *always*
18627
# included in the symbol list
18628
include_expsyms_GCJ=
18629
# exclude_expsyms can be an extended regexp of symbols to exclude
18630
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18631
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18632
# as well as any symbol that contains `d'.
18633
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18634
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18635
# platforms (ab)use it in PIC code, but their linkers get confused if
18636
# the symbol is explicitly referenced. Since portable code cannot
18637
# rely on this symbol name, it's probably fine to never include it in
18638
# preloaded symbol tables.
18639
extract_expsyms_cmds=
18642
cygwin* | mingw* | pw32*)
18643
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18644
# When not using gcc, we currently assume that we are using
18645
# Microsoft Visual C++.
18646
if test "$GCC" != yes; then
18656
if test "$with_gnu_ld" = yes; then
18657
# If archive_cmds runs LD, not CC, wlarc should be empty
18660
# See if GNU ld supports shared libraries.
18662
aix3* | aix4* | aix5*)
18663
# On AIX/PPC, the GNU linker is very broken
18664
if test "$host_cpu" != ia64; then
18668
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18669
*** to be unable to reliably create shared libraries on AIX.
18670
*** Therefore, libtool is disabling shared libraries support. If you
18671
*** really care for shared libraries, you may want to modify your PATH
18672
*** so that a non-GNU linker is found, and then restart.
18679
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)'
18680
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18681
hardcode_minus_L_GCJ=yes
18683
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18684
# that the semantics of dynamic libraries on AmigaOS, at least up
18685
# to version 4, is to share data among multiple programs linked
18686
# with the same dynamic library. Since this doesn't match the
18687
# behavior of shared libraries on other platforms, we can't use
18693
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18694
allow_undefined_flag_GCJ=unsupported
18695
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18696
# support --undefined. This deserves some investigation. FIXME
18697
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703
cygwin* | mingw* | pw32*)
18704
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18705
# as there is no search path for DLLs.
18706
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18707
allow_undefined_flag_GCJ=unsupported
18708
always_export_symbols_GCJ=no
18709
enable_shared_with_static_runtimes_GCJ=yes
18710
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18712
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18713
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18714
# If the export-symbols file already is a .def file (1st line
18715
# is EXPORTS), use it as is; otherwise, prepend...
18716
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18717
cp $export_symbols $output_objdir/$soname.def;
18719
echo EXPORTS > $output_objdir/$soname.def;
18720
cat $export_symbols >> $output_objdir/$soname.def;
18722
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18728
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18729
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18730
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18733
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18734
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18739
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18743
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18744
*** create shared libraries on Solaris systems. Therefore, libtool
18745
*** is disabling shared libraries support. We urge you to upgrade GNU
18746
*** binutils to release 2.9.1 or newer. Another option is to modify
18747
*** your PATH or compiler configuration so that the native linker is
18748
*** used, and then restart.
18751
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18752
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18753
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18760
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18762
hardcode_direct_GCJ=yes
18763
hardcode_shlibpath_var_GCJ=no
18767
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18768
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18769
archive_cmds_GCJ="$tmp_archive_cmds"
18770
supports_anon_versioning=no
18771
case `$LD -v 2>/dev/null` in
18772
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18773
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18774
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18775
*\ 2.11.*) ;; # other 2.11 versions
18776
*) supports_anon_versioning=yes ;;
18778
if test $supports_anon_versioning = yes; then
18779
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18780
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18781
$echo "local: *; };" >> $output_objdir/$libname.ver~
18782
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18784
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18786
link_all_deplibs_GCJ=no
18793
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18794
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18795
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18802
if test "$ld_shlibs_GCJ" = yes; then
18803
runpath_var=LD_RUN_PATH
18804
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18805
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18806
# ancient GNU ld didn't support --whole-archive et. al.
18807
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18808
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18810
whole_archive_flag_spec_GCJ=
18814
# PORTME fill in a description of your system's linker (not GNU ld)
18817
allow_undefined_flag_GCJ=unsupported
18818
always_export_symbols_GCJ=yes
18819
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'
18820
# Note: this linker hardcodes the directories in LIBPATH if there
18821
# are no directories specified by -L.
18822
hardcode_minus_L_GCJ=yes
18823
if test "$GCC" = yes && test -z "$link_static_flag"; then
18824
# Neither direct hardcoding nor static linking is supported with a
18826
hardcode_direct_GCJ=unsupported
18831
if test "$host_cpu" = ia64; then
18832
# On IA64, the linker does run time linking by default, so we don't
18833
# have to do anything special.
18834
aix_use_runtimelinking=no
18835
exp_sym_flag='-Bexport'
18838
# If we're using GNU nm, then we don't want the "-C" option.
18839
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18840
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18841
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'
18843
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'
18845
aix_use_runtimelinking=no
18847
# Test if we are trying to use run time linking or normal
18848
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18849
# need to do runtime linking.
18850
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18851
for ld_flag in $LDFLAGS; do
18852
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18853
aix_use_runtimelinking=yes
18859
exp_sym_flag='-bexport'
18860
no_entry_flag='-bnoentry'
18863
# When large executables or shared objects are built, AIX ld can
18864
# have problems creating the table of contents. If linking a library
18865
# or program results in "error TOC overflow" add -mminimal-toc to
18866
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18867
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18869
archive_cmds_GCJ=''
18870
hardcode_direct_GCJ=yes
18871
hardcode_libdir_separator_GCJ=':'
18872
link_all_deplibs_GCJ=yes
18874
if test "$GCC" = yes; then
18875
case $host_os in aix4.012|aix4.012.*)
18876
# We only want to do this on AIX 4.2 and lower, the check
18877
# below for broken collect2 doesn't work under 4.3+
18878
collect2name=`${CC} -print-prog-name=collect2`
18879
if test -f "$collect2name" && \
18880
strings "$collect2name" | grep resolve_lib_name >/dev/null
18882
# We have reworked collect2
18883
hardcode_direct_GCJ=yes
18885
# We have old collect2
18886
hardcode_direct_GCJ=unsupported
18887
# It fails to find uninstalled libraries when the uninstalled
18888
# path is not listed in the libpath. Setting hardcode_minus_L
18889
# to unsupported forces relinking
18890
hardcode_minus_L_GCJ=yes
18891
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18892
hardcode_libdir_separator_GCJ=
18895
shared_flag='-shared'
18898
if test "$host_cpu" = ia64; then
18899
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18900
# chokes on -Wl,-G. The following line is correct:
18903
if test "$aix_use_runtimelinking" = yes; then
18904
shared_flag='${wl}-G'
18906
shared_flag='${wl}-bM:SRE'
18911
# It seems that -bexpall does not export symbols beginning with
18912
# underscore (_), so it is better to generate a list of symbols to export.
18913
always_export_symbols_GCJ=yes
18914
if test "$aix_use_runtimelinking" = yes; then
18915
# Warning - without using the other runtime loading flags (-brtl),
18916
# -berok will link without error, but may produce a broken library.
18917
allow_undefined_flag_GCJ='-berok'
18918
# Determine the default libpath from the value encoded in an empty executable.
18919
cat >conftest.$ac_ext <<_ACEOF
18922
cat confdefs.h >>conftest.$ac_ext
18923
cat >>conftest.$ac_ext <<_ACEOF
18924
/* end confdefs.h. */
18934
rm -f conftest.$ac_objext conftest$ac_exeext
18935
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18936
(eval $ac_link) 2>conftest.er1
18938
grep -v '^ *+' conftest.er1 >conftest.err
18940
cat conftest.err >&5
18941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942
(exit $ac_status); } &&
18943
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945
(eval $ac_try) 2>&5
18947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948
(exit $ac_status); }; } &&
18949
{ ac_try='test -s conftest$ac_exeext'
18950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951
(eval $ac_try) 2>&5
18953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954
(exit $ac_status); }; }; then
18956
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18958
# Check for a 64-bit object if we didn't find anything.
18959
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; }
18962
echo "$as_me: failed program was:" >&5
18963
sed 's/^/| /' conftest.$ac_ext >&5
18966
rm -f conftest.err conftest.$ac_objext \
18967
conftest$ac_exeext conftest.$ac_ext
18968
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18970
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18971
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18973
if test "$host_cpu" = ia64; then
18974
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18975
allow_undefined_flag_GCJ="-z nodefs"
18976
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18978
# Determine the default libpath from the value encoded in an empty executable.
18979
cat >conftest.$ac_ext <<_ACEOF
18982
cat confdefs.h >>conftest.$ac_ext
18983
cat >>conftest.$ac_ext <<_ACEOF
18984
/* end confdefs.h. */
18994
rm -f conftest.$ac_objext conftest$ac_exeext
18995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18996
(eval $ac_link) 2>conftest.er1
18998
grep -v '^ *+' conftest.er1 >conftest.err
19000
cat conftest.err >&5
19001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002
(exit $ac_status); } &&
19003
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005
(eval $ac_try) 2>&5
19007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008
(exit $ac_status); }; } &&
19009
{ ac_try='test -s conftest$ac_exeext'
19010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011
(eval $ac_try) 2>&5
19013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014
(exit $ac_status); }; }; then
19016
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19018
# Check for a 64-bit object if we didn't find anything.
19019
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; }
19022
echo "$as_me: failed program was:" >&5
19023
sed 's/^/| /' conftest.$ac_ext >&5
19026
rm -f conftest.err conftest.$ac_objext \
19027
conftest$ac_exeext conftest.$ac_ext
19028
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19030
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19031
# Warning - without using the other run time loading flags,
19032
# -berok will link without error, but may produce a broken library.
19033
no_undefined_flag_GCJ=' ${wl}-bernotok'
19034
allow_undefined_flag_GCJ=' ${wl}-berok'
19035
# -bexpall does not export symbols beginning with underscore (_)
19036
always_export_symbols_GCJ=yes
19037
# Exported symbols can be pulled into shared objects from archives
19038
whole_archive_flag_spec_GCJ=' '
19039
archive_cmds_need_lc_GCJ=yes
19040
# This is similar to how AIX traditionally builds it's shared libraries.
19041
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19047
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)'
19048
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19049
hardcode_minus_L_GCJ=yes
19050
# see comment about different semantics on the GNU ld section
19055
export_dynamic_flag_spec_GCJ=-rdynamic
19058
cygwin* | mingw* | pw32*)
19059
# When not using gcc, we currently assume that we are using
19060
# Microsoft Visual C++.
19061
# hardcode_libdir_flag_spec is actually meaningless, as there is
19062
# no search path for DLLs.
19063
hardcode_libdir_flag_spec_GCJ=' '
19064
allow_undefined_flag_GCJ=unsupported
19065
# Tell ltmain to make .lib files, not .a files.
19067
# Tell ltmain to make .dll files, not .so files.
19069
# FIXME: Setting linknames here is a bad hack.
19070
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19071
# The linker will automatically build a .lib file if we build a DLL.
19072
old_archive_From_new_cmds_GCJ='true'
19073
# FIXME: Should let the user specify the lib program.
19074
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19075
fix_srcfile_path='`cygpath -w "$srcfile"`'
19076
enable_shared_with_static_runtimes_GCJ=yes
19079
darwin* | rhapsody*)
19080
if test "$GXX" = yes ; then
19081
archive_cmds_need_lc_GCJ=no
19083
rhapsody* | darwin1.[012])
19084
allow_undefined_flag_GCJ='-undefined suppress'
19087
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19088
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19090
case ${MACOSX_DEPLOYMENT_TARGET} in
19092
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19095
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
19101
lt_int_apple_cc_single_mod=no
19102
output_verbose_link_cmd='echo'
19103
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19104
lt_int_apple_cc_single_mod=yes
19106
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19107
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19109
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19111
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19112
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19113
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19114
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19116
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19118
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}'
19119
hardcode_direct_GCJ=no
19120
hardcode_automatic_GCJ=yes
19121
hardcode_shlibpath_var_GCJ=unsupported
19122
whole_archive_flag_spec_GCJ='-all_load $convenience'
19123
link_all_deplibs_GCJ=yes
19130
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19131
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19132
hardcode_shlibpath_var_GCJ=no
19139
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19140
# support. Future versions do this automatically, but an explicit c++rt0.o
19141
# does not break anything, and helps significantly (at the cost of a little
19144
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19145
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19146
hardcode_direct_GCJ=yes
19147
hardcode_shlibpath_var_GCJ=no
19150
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19152
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19153
hardcode_direct_GCJ=yes
19154
hardcode_minus_L_GCJ=yes
19155
hardcode_shlibpath_var_GCJ=no
19158
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19159
freebsd* | kfreebsd*-gnu)
19160
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19161
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19162
hardcode_direct_GCJ=yes
19163
hardcode_shlibpath_var_GCJ=no
19167
if test "$GCC" = yes; then
19168
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'
19170
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'
19172
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19173
hardcode_libdir_separator_GCJ=:
19174
hardcode_direct_GCJ=yes
19176
# hardcode_minus_L: Not really in the search PATH,
19177
# but as the default location of the library.
19178
hardcode_minus_L_GCJ=yes
19179
export_dynamic_flag_spec_GCJ='${wl}-E'
19183
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19184
case "$host_cpu" in
19186
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19189
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19193
case "$host_cpu" in
19195
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19198
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19202
if test "$with_gnu_ld" = no; then
19203
case "$host_cpu" in
19205
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19206
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19207
hardcode_libdir_separator_GCJ=:
19208
hardcode_direct_GCJ=no
19209
hardcode_shlibpath_var_GCJ=no
19212
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19213
hardcode_direct_GCJ=no
19214
hardcode_shlibpath_var_GCJ=no
19216
# hardcode_minus_L: Not really in the search PATH,
19217
# but as the default location of the library.
19218
hardcode_minus_L_GCJ=yes
19221
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19222
hardcode_libdir_separator_GCJ=:
19223
hardcode_direct_GCJ=yes
19224
export_dynamic_flag_spec_GCJ='${wl}-E'
19226
# hardcode_minus_L: Not really in the search PATH,
19227
# but as the default location of the library.
19228
hardcode_minus_L_GCJ=yes
19234
irix5* | irix6* | nonstopux*)
19235
if test "$GCC" = yes; then
19236
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'
19238
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'
19239
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19241
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19242
hardcode_libdir_separator_GCJ=:
19243
link_all_deplibs_GCJ=yes
19246
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
19247
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19248
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19250
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19252
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19253
hardcode_direct_GCJ=yes
19254
hardcode_shlibpath_var_GCJ=no
19258
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19259
hardcode_direct_GCJ=yes
19260
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19261
hardcode_libdir_separator_GCJ=:
19262
hardcode_shlibpath_var_GCJ=no
19266
hardcode_direct_GCJ=yes
19267
hardcode_shlibpath_var_GCJ=no
19268
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19269
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19270
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19271
export_dynamic_flag_spec_GCJ='${wl}-E'
19274
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19275
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19276
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19279
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19280
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19287
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19288
hardcode_minus_L_GCJ=yes
19289
allow_undefined_flag_GCJ=unsupported
19290
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'
19291
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19295
if test "$GCC" = yes; then
19296
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19297
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'
19299
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19300
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'
19302
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19303
hardcode_libdir_separator_GCJ=:
19306
osf4* | osf5*) # as osf3* with the addition of -msym flag
19307
if test "$GCC" = yes; then
19308
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19309
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'
19310
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19312
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19313
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'
19314
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~
19315
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19317
# Both c and cxx compiler support -rpath directly
19318
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19320
hardcode_libdir_separator_GCJ=:
19324
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19325
hardcode_shlibpath_var_GCJ=no
19326
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19327
runpath_var=LD_RUN_PATH
19328
hardcode_runpath_var=yes
19332
no_undefined_flag_GCJ=' -z text'
19333
if test "$GCC" = yes; then
19334
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19335
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19336
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19338
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19339
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19340
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19342
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19343
hardcode_shlibpath_var_GCJ=no
19345
solaris2.[0-5] | solaris2.[0-5].*) ;;
19346
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
19347
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19349
link_all_deplibs_GCJ=yes
19353
if test "x$host_vendor" = xsequent; then
19354
# Use $CC to link under sequent, because it throws in some extra .o
19355
# files that make .init and .fini sections work.
19356
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19358
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19360
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19361
hardcode_direct_GCJ=yes
19362
hardcode_minus_L_GCJ=yes
19363
hardcode_shlibpath_var_GCJ=no
19367
case $host_vendor in
19369
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19370
hardcode_direct_GCJ=yes # is this really true???
19373
## LD is ld it makes a PLAMLIB
19374
## CC just makes a GrossModule.
19375
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19376
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19377
hardcode_direct_GCJ=no
19380
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19381
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19384
runpath_var='LD_RUN_PATH'
19385
hardcode_shlibpath_var_GCJ=no
19389
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19390
hardcode_shlibpath_var_GCJ=no
19391
export_dynamic_flag_spec_GCJ='-Bexport'
19395
if test -d /usr/nec; then
19396
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19397
hardcode_shlibpath_var_GCJ=no
19398
runpath_var=LD_RUN_PATH
19399
hardcode_runpath_var=yes
19405
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19406
hardcode_direct_GCJ=yes
19407
hardcode_minus_L_GCJ=no
19408
hardcode_shlibpath_var_GCJ=no
19409
hardcode_runpath_var=yes
19410
runpath_var=LD_RUN_PATH
19413
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19414
no_undefined_flag_GCJ='${wl}-z ${wl}text'
19415
if test "$GCC" = yes; then
19416
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19418
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19420
runpath_var='LD_RUN_PATH'
19421
hardcode_shlibpath_var_GCJ=no
19425
no_undefined_flag_GCJ=' -z text'
19426
# $CC -shared without GNU ld will not create a library from C++
19427
# object files and a static libstdc++, better avoid it by now
19428
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19429
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19430
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19431
hardcode_libdir_flag_spec_GCJ=
19432
hardcode_shlibpath_var_GCJ=no
19433
runpath_var='LD_RUN_PATH'
19437
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19438
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19439
hardcode_shlibpath_var_GCJ=no
19448
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19449
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19450
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19452
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19453
if test "$GCC" = yes; then
19454
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19458
# Do we need to explicitly link libc?
19460
case "x$archive_cmds_need_lc_GCJ" in
19462
# Assume -lc should be added
19463
archive_cmds_need_lc_GCJ=yes
19465
if test "$enable_shared" = yes && test "$GCC" = yes; then
19466
case $archive_cmds_GCJ in
19468
# FIXME: we may have to deal with multi-command sequences.
19471
# Test whether the compiler implicitly links with -lc since on some
19472
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19473
# to ld, don't add -lc before -lgcc.
19474
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19475
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19477
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19480
(eval $ac_compile) 2>&5
19482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483
(exit $ac_status); } 2>conftest.err; then
19486
libobjs=conftest.$ac_objext
19488
wl=$lt_prog_compiler_wl_GCJ
19494
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19495
allow_undefined_flag_GCJ=
19496
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19497
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500
(exit $ac_status); }
19502
archive_cmds_need_lc_GCJ=no
19504
archive_cmds_need_lc_GCJ=yes
19506
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19508
cat conftest.err 1>&5
19511
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19512
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19519
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19520
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19521
library_names_spec=
19522
libname_spec='lib$name'
19526
postuninstall_cmds=
19530
shlibpath_overrides_runpath=unknown
19532
dynamic_linker="$host_os ld.so"
19533
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19534
if test "$GCC" = yes; then
19535
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19536
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19537
# if the path contains ";" then we assume it to be the separator
19538
# otherwise default to the standard path separator (i.e. ":") - it is
19539
# assumed that no part of a normal pathname contains ";" but that should
19540
# okay in the real world where ";" in dirpaths is itself problematic.
19541
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19543
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19546
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19548
need_lib_prefix=unknown
19549
hardcode_into_libs=no
19551
# when you set need_version to no, make sure it does not cause -set_version
19552
# flags to be left without arguments
19553
need_version=unknown
19558
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19559
shlibpath_var=LIBPATH
19561
# AIX 3 has no versioning support, so we append a major version to the name.
19562
soname_spec='${libname}${release}${shared_ext}$major'
19569
hardcode_into_libs=yes
19570
if test "$host_cpu" = ia64; then
19571
# AIX 5 supports IA64
19572
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19573
shlibpath_var=LD_LIBRARY_PATH
19575
# With GCC up to 2.95.x, collect2 would create an import file
19576
# for dependence libraries. The import file would start with
19577
# the line `#! .'. This would cause the generated library to
19578
# depend on `.', always an invalid library. This was fixed in
19579
# development snapshots of GCC prior to 3.0.
19581
aix4 | aix4.[01] | aix4.[01].*)
19582
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19584
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19587
can_build_shared=no
19591
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19592
# soname into executable. Probably we can add versioning support to
19593
# collect2, so additional links can be useful in future.
19594
if test "$aix_use_runtimelinking" = yes; then
19595
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19596
# instead of lib<name>.a to let people know that these are not
19597
# typical AIX shared libraries.
19598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19600
# We preserve .a as extension for shared libraries through AIX4.2
19601
# and later when we are not doing run time linking.
19602
library_names_spec='${libname}${release}.a $libname.a'
19603
soname_spec='${libname}${release}${shared_ext}$major'
19605
shlibpath_var=LIBPATH
19610
library_names_spec='$libname.ixlibrary $libname.a'
19611
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19612
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'
19616
library_names_spec='${libname}${shared_ext}'
19617
dynamic_linker="$host_os ld.so"
19618
shlibpath_var=LIBRARY_PATH
19624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19625
soname_spec='${libname}${release}${shared_ext}$major'
19626
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19627
shlibpath_var=LD_LIBRARY_PATH
19628
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19629
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19630
# the default ld.so.conf also contains /usr/contrib/lib and
19631
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19632
# libtool to hard-code these into programs
19635
cygwin* | mingw* | pw32*)
19636
version_type=windows
19641
case $GCC,$host_os in
19642
yes,cygwin* | yes,mingw* | yes,pw32*)
19643
library_names_spec='$libname.dll.a'
19644
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19645
postinstall_cmds='base_file=`basename \${file}`~
19646
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19647
dldir=$destdir/`dirname \$dlpath`~
19648
test -d \$dldir || mkdir -p \$dldir~
19649
$install_prog $dir/$dlname \$dldir/$dlname'
19650
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19651
dlpath=$dir/\$dldll~
19653
shlibpath_overrides_runpath=yes
19657
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19658
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19659
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19662
# MinGW DLLs use traditional 'lib' prefix
19663
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19664
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19665
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19666
# It is most probably a Windows format PATH printed by
19667
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19668
# path with ; separators, and with drive letters. We can handle the
19669
# drive letters (cygwin fileutils understands them), so leave them,
19670
# especially as we might pass files found there to a mingw objdump,
19671
# which wouldn't understand a cygwinified path. Ahh.
19672
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19674
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19678
# pw32 DLLs use 'pw' prefix rather than 'lib'
19679
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19685
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19688
dynamic_linker='Win32 ld.exe'
19689
# FIXME: first we should search . and the directory the executable is in
19693
darwin* | rhapsody*)
19694
dynamic_linker="$host_os dyld"
19695
version_type=darwin
19698
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19699
soname_spec='${libname}${release}${major}$shared_ext'
19700
shlibpath_overrides_runpath=yes
19701
shlibpath_var=DYLD_LIBRARY_PATH
19702
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19703
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19704
if test "$GCC" = yes; then
19705
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"`
19707
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19709
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19717
soname_spec='${libname}${release}${shared_ext}$major'
19718
shlibpath_var=LD_LIBRARY_PATH
19729
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19730
soname_spec='${libname}${release}${shared_ext}$major'
19731
shlibpath_var=LD_LIBRARY_PATH
19732
shlibpath_overrides_runpath=no
19733
hardcode_into_libs=yes
19734
dynamic_linker='GNU ld.so'
19738
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19739
version_type=freebsd-$objformat
19740
case $version_type in
19742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19747
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19751
shlibpath_var=LD_LIBRARY_PATH
19754
shlibpath_overrides_runpath=yes
19756
freebsd3.01* | freebsdelf3.01*)
19757
shlibpath_overrides_runpath=yes
19758
hardcode_into_libs=yes
19761
shlibpath_overrides_runpath=no
19762
hardcode_into_libs=yes
19771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19772
soname_spec='${libname}${release}${shared_ext}$major'
19773
shlibpath_var=LD_LIBRARY_PATH
19774
hardcode_into_libs=yes
19777
hpux9* | hpux10* | hpux11*)
19778
# Give a soname corresponding to the major version so that dld.sl refuses to
19779
# link against other versions.
19783
case "$host_cpu" in
19786
hardcode_into_libs=yes
19787
dynamic_linker="$host_os dld.so"
19788
shlibpath_var=LD_LIBRARY_PATH
19789
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19791
soname_spec='${libname}${release}${shared_ext}$major'
19792
if test "X$HPUX_IA64_MODE" = X32; then
19793
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19795
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19797
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19801
hardcode_into_libs=yes
19802
dynamic_linker="$host_os dld.sl"
19803
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19804
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19806
soname_spec='${libname}${release}${shared_ext}$major'
19807
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19808
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19812
dynamic_linker="$host_os dld.sl"
19813
shlibpath_var=SHLIB_PATH
19814
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19816
soname_spec='${libname}${release}${shared_ext}$major'
19819
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19820
postinstall_cmds='chmod 555 $lib'
19823
irix5* | irix6* | nonstopux*)
19825
nonstopux*) version_type=nonstopux ;;
19827
if test "$lt_cv_prog_gnu_ld" = yes; then
19835
soname_spec='${libname}${release}${shared_ext}$major'
19836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19838
irix5* | nonstopux*)
19839
libsuff= shlibsuff=
19842
case $LD in # libtool.m4 will add one of these switches to LD
19843
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19844
libsuff= shlibsuff= libmagic=32-bit;;
19845
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19846
libsuff=32 shlibsuff=N32 libmagic=N32;;
19847
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19848
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19849
*) libsuff= shlibsuff= libmagic=never-match;;
19853
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19854
shlibpath_overrides_runpath=no
19855
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19856
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19857
hardcode_into_libs=yes
19860
# No shared lib support for Linux oldld, aout, or coff.
19861
linux*oldld* | linux*aout* | linux*coff*)
19865
# This must be Linux ELF.
19870
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19871
soname_spec='${libname}${release}${shared_ext}$major'
19872
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19873
shlibpath_var=LD_LIBRARY_PATH
19874
shlibpath_overrides_runpath=no
19875
# This implies no fast_install, which is unacceptable.
19876
# Some rework will be needed to allow for fast_install
19877
# before this can be enabled.
19878
hardcode_into_libs=yes
19880
# Append ld.so.conf contents to the search path
19881
if test -f /etc/ld.so.conf; then
19882
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19883
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19886
# We used to test for /lib/ld.so.1 and disable shared libraries on
19887
# powerpc, because MkLinux only supported shared libraries with the
19888
# GNU dynamic linker. Since this was broken with cross compilers,
19889
# most powerpc-linux boxes support dynamic linking these days and
19890
# people can always --disable-shared, the test was removed, and we
19891
# assume the GNU/Linux dynamic linker is in use.
19892
dynamic_linker='GNU/Linux ld.so'
19899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19900
soname_spec='${libname}${release}${shared_ext}$major'
19901
shlibpath_var=LD_LIBRARY_PATH
19902
shlibpath_overrides_runpath=no
19903
hardcode_into_libs=yes
19904
dynamic_linker='NetBSD ld.elf_so'
19911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19912
soname_spec='${libname}${release}${shared_ext}$major'
19913
shlibpath_var=LD_LIBRARY_PATH
19914
shlibpath_overrides_runpath=no
19915
hardcode_into_libs=yes
19916
dynamic_linker='GNU ld.so'
19923
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19924
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19925
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19926
dynamic_linker='NetBSD (a.out) ld.so'
19928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19929
soname_spec='${libname}${release}${shared_ext}$major'
19930
dynamic_linker='NetBSD ld.elf_so'
19932
shlibpath_var=LD_LIBRARY_PATH
19933
shlibpath_overrides_runpath=yes
19934
hardcode_into_libs=yes
19939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19940
shlibpath_var=LD_LIBRARY_PATH
19941
shlibpath_overrides_runpath=yes
19948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19949
soname_spec='${libname}${release}${shared_ext}$major'
19950
shlibpath_var=LD_LIBRARY_PATH
19951
shlibpath_overrides_runpath=yes
19958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19959
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19960
shlibpath_var=LD_LIBRARY_PATH
19961
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19963
openbsd2.[89] | openbsd2.[89].*)
19964
shlibpath_overrides_runpath=no
19967
shlibpath_overrides_runpath=yes
19971
shlibpath_overrides_runpath=yes
19976
libname_spec='$name'
19979
library_names_spec='$libname${shared_ext} $libname.a'
19980
dynamic_linker='OS/2 ld.exe'
19981
shlibpath_var=LIBPATH
19984
osf3* | osf4* | osf5*)
19988
soname_spec='${libname}${release}${shared_ext}$major'
19989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990
shlibpath_var=LD_LIBRARY_PATH
19991
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19992
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19997
soname_spec='${libname}${release}${shared_ext}$major'
19998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19999
shlibpath_var=LD_LIBRARY_PATH
20006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20007
soname_spec='${libname}${release}${shared_ext}$major'
20008
shlibpath_var=LD_LIBRARY_PATH
20009
shlibpath_overrides_runpath=yes
20010
hardcode_into_libs=yes
20011
# ldd complains unless libraries are executable
20012
postinstall_cmds='chmod +x $lib'
20017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20018
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20019
shlibpath_var=LD_LIBRARY_PATH
20020
shlibpath_overrides_runpath=yes
20021
if test "$with_gnu_ld" = yes; then
20027
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20029
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20030
soname_spec='${libname}${release}${shared_ext}$major'
20031
shlibpath_var=LD_LIBRARY_PATH
20032
case $host_vendor in
20034
shlibpath_overrides_runpath=no
20036
export_dynamic_flag_spec='${wl}-Blargedynsym'
20037
runpath_var=LD_RUN_PATH
20045
shlibpath_overrides_runpath=no
20046
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20052
if test -d /usr/nec ;then
20054
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20055
soname_spec='$libname${shared_ext}.$major'
20056
shlibpath_var=LD_LIBRARY_PATH
20062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063
soname_spec='${libname}${release}${shared_ext}$major'
20064
shlibpath_var=LD_LIBRARY_PATH
20071
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20072
echo "${ECHO_T}$dynamic_linker" >&6
20073
test "$dynamic_linker" = no && can_build_shared=no
20075
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20076
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20077
hardcode_action_GCJ=
20078
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20079
test -n "$runpath_var GCJ" || \
20080
test "X$hardcode_automatic_GCJ"="Xyes" ; then
20082
# We can hardcode non-existant directories.
20083
if test "$hardcode_direct_GCJ" != no &&
20084
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20085
# have to relink, otherwise we might link with an installed library
20086
# when we should be linking with a yet-to-be-installed one
20087
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20088
test "$hardcode_minus_L_GCJ" != no; then
20089
# Linking always hardcodes the temporary library directory.
20090
hardcode_action_GCJ=relink
20092
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20093
hardcode_action_GCJ=immediate
20096
# We cannot hardcode anything, or else we can only hardcode existing
20098
hardcode_action_GCJ=unsupported
20100
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20101
echo "${ECHO_T}$hardcode_action_GCJ" >&6
20103
if test "$hardcode_action_GCJ" = relink; then
20104
# Fast installation is not supported
20105
enable_fast_install=no
20106
elif test "$shlibpath_overrides_runpath" = yes ||
20107
test "$enable_shared" = no; then
20108
# Fast installation is not necessary
20109
enable_fast_install=needless
20114
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20115
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20116
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20117
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20118
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20119
echo "$as_me:$LINENO: result: yes" >&5
20120
echo "${ECHO_T}yes" >&6
20122
# FIXME - insert some real tests, host_os isn't really good enough
20125
if test -n "$STRIP" ; then
20126
striplib="$STRIP -x"
20127
echo "$as_me:$LINENO: result: yes" >&5
20128
echo "${ECHO_T}yes" >&6
20130
echo "$as_me:$LINENO: result: no" >&5
20131
echo "${ECHO_T}no" >&6
20135
echo "$as_me:$LINENO: result: no" >&5
20136
echo "${ECHO_T}no" >&6
20141
if test "x$enable_dlopen" != xyes; then
20142
enable_dlopen=unknown
20143
enable_dlopen_self=unknown
20144
enable_dlopen_self_static=unknown
20151
lt_cv_dlopen="load_add_on"
20153
lt_cv_dlopen_self=yes
20157
lt_cv_dlopen="LoadLibrary"
20162
lt_cv_dlopen="dlopen"
20167
# if libdl is installed we need to link against it
20168
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20169
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20170
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20171
echo $ECHO_N "(cached) $ECHO_C" >&6
20173
ac_check_lib_save_LIBS=$LIBS
20175
cat >conftest.$ac_ext <<_ACEOF
20178
cat confdefs.h >>conftest.$ac_ext
20179
cat >>conftest.$ac_ext <<_ACEOF
20180
/* end confdefs.h. */
20182
/* Override any gcc2 internal prototype to avoid an error. */
20186
/* We use char because int might match the return type of a gcc2
20187
builtin and then its argument prototype would still apply. */
20197
rm -f conftest.$ac_objext conftest$ac_exeext
20198
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20199
(eval $ac_link) 2>conftest.er1
20201
grep -v '^ *+' conftest.er1 >conftest.err
20203
cat conftest.err >&5
20204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205
(exit $ac_status); } &&
20206
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208
(eval $ac_try) 2>&5
20210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211
(exit $ac_status); }; } &&
20212
{ ac_try='test -s conftest$ac_exeext'
20213
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214
(eval $ac_try) 2>&5
20216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217
(exit $ac_status); }; }; then
20218
ac_cv_lib_dl_dlopen=yes
20220
echo "$as_me: failed program was:" >&5
20221
sed 's/^/| /' conftest.$ac_ext >&5
20223
ac_cv_lib_dl_dlopen=no
20225
rm -f conftest.err conftest.$ac_objext \
20226
conftest$ac_exeext conftest.$ac_ext
20227
LIBS=$ac_check_lib_save_LIBS
20229
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20230
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20231
if test $ac_cv_lib_dl_dlopen = yes; then
20232
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20235
lt_cv_dlopen="dyld"
20237
lt_cv_dlopen_self=yes
20244
echo "$as_me:$LINENO: checking for shl_load" >&5
20245
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20246
if test "${ac_cv_func_shl_load+set}" = set; then
20247
echo $ECHO_N "(cached) $ECHO_C" >&6
20249
cat >conftest.$ac_ext <<_ACEOF
20252
cat confdefs.h >>conftest.$ac_ext
20253
cat >>conftest.$ac_ext <<_ACEOF
20254
/* end confdefs.h. */
20255
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20256
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20257
#define shl_load innocuous_shl_load
20259
/* System header to define __stub macros and hopefully few prototypes,
20260
which can conflict with char shl_load (); below.
20261
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20262
<limits.h> exists even on freestanding compilers. */
20265
# include <limits.h>
20267
# include <assert.h>
20272
/* Override any gcc2 internal prototype to avoid an error. */
20277
/* We use char because int might match the return type of a gcc2
20278
builtin and then its argument prototype would still apply. */
20280
/* The GNU C library defines this for functions which it implements
20281
to always fail with ENOSYS. Some functions are actually named
20282
something starting with __ and the normal name is an alias. */
20283
#if defined (__stub_shl_load) || defined (__stub___shl_load)
20286
char (*f) () = shl_load;
20295
return f != shl_load;
20300
rm -f conftest.$ac_objext conftest$ac_exeext
20301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20302
(eval $ac_link) 2>conftest.er1
20304
grep -v '^ *+' conftest.er1 >conftest.err
20306
cat conftest.err >&5
20307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308
(exit $ac_status); } &&
20309
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311
(eval $ac_try) 2>&5
20313
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314
(exit $ac_status); }; } &&
20315
{ ac_try='test -s conftest$ac_exeext'
20316
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317
(eval $ac_try) 2>&5
20319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320
(exit $ac_status); }; }; then
20321
ac_cv_func_shl_load=yes
20323
echo "$as_me: failed program was:" >&5
20324
sed 's/^/| /' conftest.$ac_ext >&5
20326
ac_cv_func_shl_load=no
20328
rm -f conftest.err conftest.$ac_objext \
20329
conftest$ac_exeext conftest.$ac_ext
20331
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20332
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20333
if test $ac_cv_func_shl_load = yes; then
20334
lt_cv_dlopen="shl_load"
20336
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20337
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20338
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20339
echo $ECHO_N "(cached) $ECHO_C" >&6
20341
ac_check_lib_save_LIBS=$LIBS
20343
cat >conftest.$ac_ext <<_ACEOF
20346
cat confdefs.h >>conftest.$ac_ext
20347
cat >>conftest.$ac_ext <<_ACEOF
20348
/* end confdefs.h. */
20350
/* Override any gcc2 internal prototype to avoid an error. */
20354
/* We use char because int might match the return type of a gcc2
20355
builtin and then its argument prototype would still apply. */
20365
rm -f conftest.$ac_objext conftest$ac_exeext
20366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367
(eval $ac_link) 2>conftest.er1
20369
grep -v '^ *+' conftest.er1 >conftest.err
20371
cat conftest.err >&5
20372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373
(exit $ac_status); } &&
20374
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376
(eval $ac_try) 2>&5
20378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379
(exit $ac_status); }; } &&
20380
{ ac_try='test -s conftest$ac_exeext'
20381
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382
(eval $ac_try) 2>&5
20384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385
(exit $ac_status); }; }; then
20386
ac_cv_lib_dld_shl_load=yes
20388
echo "$as_me: failed program was:" >&5
20389
sed 's/^/| /' conftest.$ac_ext >&5
20391
ac_cv_lib_dld_shl_load=no
20393
rm -f conftest.err conftest.$ac_objext \
20394
conftest$ac_exeext conftest.$ac_ext
20395
LIBS=$ac_check_lib_save_LIBS
20397
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20398
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20399
if test $ac_cv_lib_dld_shl_load = yes; then
20400
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20402
echo "$as_me:$LINENO: checking for dlopen" >&5
20403
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20404
if test "${ac_cv_func_dlopen+set}" = set; then
20405
echo $ECHO_N "(cached) $ECHO_C" >&6
20407
cat >conftest.$ac_ext <<_ACEOF
20410
cat confdefs.h >>conftest.$ac_ext
20411
cat >>conftest.$ac_ext <<_ACEOF
20412
/* end confdefs.h. */
20413
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20414
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20415
#define dlopen innocuous_dlopen
20417
/* System header to define __stub macros and hopefully few prototypes,
20418
which can conflict with char dlopen (); below.
20419
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20420
<limits.h> exists even on freestanding compilers. */
20423
# include <limits.h>
20425
# include <assert.h>
20430
/* Override any gcc2 internal prototype to avoid an error. */
20435
/* We use char because int might match the return type of a gcc2
20436
builtin and then its argument prototype would still apply. */
20438
/* The GNU C library defines this for functions which it implements
20439
to always fail with ENOSYS. Some functions are actually named
20440
something starting with __ and the normal name is an alias. */
20441
#if defined (__stub_dlopen) || defined (__stub___dlopen)
20444
char (*f) () = dlopen;
20453
return f != dlopen;
20458
rm -f conftest.$ac_objext conftest$ac_exeext
20459
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20460
(eval $ac_link) 2>conftest.er1
20462
grep -v '^ *+' conftest.er1 >conftest.err
20464
cat conftest.err >&5
20465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466
(exit $ac_status); } &&
20467
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20468
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469
(eval $ac_try) 2>&5
20471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472
(exit $ac_status); }; } &&
20473
{ ac_try='test -s conftest$ac_exeext'
20474
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475
(eval $ac_try) 2>&5
20477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478
(exit $ac_status); }; }; then
20479
ac_cv_func_dlopen=yes
20481
echo "$as_me: failed program was:" >&5
20482
sed 's/^/| /' conftest.$ac_ext >&5
20484
ac_cv_func_dlopen=no
20486
rm -f conftest.err conftest.$ac_objext \
20487
conftest$ac_exeext conftest.$ac_ext
20489
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20490
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20491
if test $ac_cv_func_dlopen = yes; then
20492
lt_cv_dlopen="dlopen"
20494
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20495
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20496
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20497
echo $ECHO_N "(cached) $ECHO_C" >&6
20499
ac_check_lib_save_LIBS=$LIBS
20501
cat >conftest.$ac_ext <<_ACEOF
20504
cat confdefs.h >>conftest.$ac_ext
20505
cat >>conftest.$ac_ext <<_ACEOF
20506
/* end confdefs.h. */
20508
/* Override any gcc2 internal prototype to avoid an error. */
20512
/* We use char because int might match the return type of a gcc2
20513
builtin and then its argument prototype would still apply. */
20523
rm -f conftest.$ac_objext conftest$ac_exeext
20524
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20525
(eval $ac_link) 2>conftest.er1
20527
grep -v '^ *+' conftest.er1 >conftest.err
20529
cat conftest.err >&5
20530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531
(exit $ac_status); } &&
20532
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534
(eval $ac_try) 2>&5
20536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537
(exit $ac_status); }; } &&
20538
{ ac_try='test -s conftest$ac_exeext'
20539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540
(eval $ac_try) 2>&5
20542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543
(exit $ac_status); }; }; then
20544
ac_cv_lib_dl_dlopen=yes
20546
echo "$as_me: failed program was:" >&5
20547
sed 's/^/| /' conftest.$ac_ext >&5
20549
ac_cv_lib_dl_dlopen=no
20551
rm -f conftest.err conftest.$ac_objext \
20552
conftest$ac_exeext conftest.$ac_ext
20553
LIBS=$ac_check_lib_save_LIBS
20555
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20556
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20557
if test $ac_cv_lib_dl_dlopen = yes; then
20558
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20560
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20561
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20562
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20563
echo $ECHO_N "(cached) $ECHO_C" >&6
20565
ac_check_lib_save_LIBS=$LIBS
20566
LIBS="-lsvld $LIBS"
20567
cat >conftest.$ac_ext <<_ACEOF
20570
cat confdefs.h >>conftest.$ac_ext
20571
cat >>conftest.$ac_ext <<_ACEOF
20572
/* end confdefs.h. */
20574
/* Override any gcc2 internal prototype to avoid an error. */
20578
/* We use char because int might match the return type of a gcc2
20579
builtin and then its argument prototype would still apply. */
20589
rm -f conftest.$ac_objext conftest$ac_exeext
20590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20591
(eval $ac_link) 2>conftest.er1
20593
grep -v '^ *+' conftest.er1 >conftest.err
20595
cat conftest.err >&5
20596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597
(exit $ac_status); } &&
20598
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600
(eval $ac_try) 2>&5
20602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603
(exit $ac_status); }; } &&
20604
{ ac_try='test -s conftest$ac_exeext'
20605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606
(eval $ac_try) 2>&5
20608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609
(exit $ac_status); }; }; then
20610
ac_cv_lib_svld_dlopen=yes
20612
echo "$as_me: failed program was:" >&5
20613
sed 's/^/| /' conftest.$ac_ext >&5
20615
ac_cv_lib_svld_dlopen=no
20617
rm -f conftest.err conftest.$ac_objext \
20618
conftest$ac_exeext conftest.$ac_ext
20619
LIBS=$ac_check_lib_save_LIBS
20621
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20622
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20623
if test $ac_cv_lib_svld_dlopen = yes; then
20624
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20626
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20627
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20628
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20629
echo $ECHO_N "(cached) $ECHO_C" >&6
20631
ac_check_lib_save_LIBS=$LIBS
20633
cat >conftest.$ac_ext <<_ACEOF
20636
cat confdefs.h >>conftest.$ac_ext
20637
cat >>conftest.$ac_ext <<_ACEOF
20638
/* end confdefs.h. */
20640
/* Override any gcc2 internal prototype to avoid an error. */
20644
/* We use char because int might match the return type of a gcc2
20645
builtin and then its argument prototype would still apply. */
20655
rm -f conftest.$ac_objext conftest$ac_exeext
20656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20657
(eval $ac_link) 2>conftest.er1
20659
grep -v '^ *+' conftest.er1 >conftest.err
20661
cat conftest.err >&5
20662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663
(exit $ac_status); } &&
20664
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666
(eval $ac_try) 2>&5
20668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669
(exit $ac_status); }; } &&
20670
{ ac_try='test -s conftest$ac_exeext'
20671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672
(eval $ac_try) 2>&5
20674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675
(exit $ac_status); }; }; then
20676
ac_cv_lib_dld_dld_link=yes
20678
echo "$as_me: failed program was:" >&5
20679
sed 's/^/| /' conftest.$ac_ext >&5
20681
ac_cv_lib_dld_dld_link=no
20683
rm -f conftest.err conftest.$ac_objext \
20684
conftest$ac_exeext conftest.$ac_ext
20685
LIBS=$ac_check_lib_save_LIBS
20687
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20688
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20689
if test $ac_cv_lib_dld_dld_link = yes; then
20690
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20711
if test "x$lt_cv_dlopen" != xno; then
20717
case $lt_cv_dlopen in
20719
save_CPPFLAGS="$CPPFLAGS"
20720
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20722
save_LDFLAGS="$LDFLAGS"
20723
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20726
LIBS="$lt_cv_dlopen_libs $LIBS"
20728
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20729
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20730
if test "${lt_cv_dlopen_self+set}" = set; then
20731
echo $ECHO_N "(cached) $ECHO_C" >&6
20733
if test "$cross_compiling" = yes; then :
20734
lt_cv_dlopen_self=cross
20736
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20737
lt_status=$lt_dlunknown
20738
cat > conftest.$ac_ext <<EOF
20739
#line __oline__ "configure"
20740
#include "confdefs.h"
20749
# define LT_DLGLOBAL RTLD_GLOBAL
20752
# define LT_DLGLOBAL DL_GLOBAL
20754
# define LT_DLGLOBAL 0
20758
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20759
find out it does not work in some platform. */
20760
#ifndef LT_DLLAZY_OR_NOW
20762
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20765
# define LT_DLLAZY_OR_NOW DL_LAZY
20768
# define LT_DLLAZY_OR_NOW RTLD_NOW
20771
# define LT_DLLAZY_OR_NOW DL_NOW
20773
# define LT_DLLAZY_OR_NOW 0
20781
extern "C" void exit (int);
20784
void fnord() { int i=42;}
20787
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20788
int status = $lt_dlunknown;
20792
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20793
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20794
/* dlclose (self); */
20800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20801
(eval $ac_link) 2>&5
20803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20805
(./conftest; exit; ) 2>/dev/null
20807
case x$lt_status in
20808
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20809
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20810
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20813
# compilation failed
20814
lt_cv_dlopen_self=no
20821
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20822
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20824
if test "x$lt_cv_dlopen_self" = xyes; then
20825
LDFLAGS="$LDFLAGS $link_static_flag"
20826
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20827
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20828
if test "${lt_cv_dlopen_self_static+set}" = set; then
20829
echo $ECHO_N "(cached) $ECHO_C" >&6
20831
if test "$cross_compiling" = yes; then :
20832
lt_cv_dlopen_self_static=cross
20834
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20835
lt_status=$lt_dlunknown
20836
cat > conftest.$ac_ext <<EOF
20837
#line __oline__ "configure"
20838
#include "confdefs.h"
20847
# define LT_DLGLOBAL RTLD_GLOBAL
20850
# define LT_DLGLOBAL DL_GLOBAL
20852
# define LT_DLGLOBAL 0
20856
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20857
find out it does not work in some platform. */
20858
#ifndef LT_DLLAZY_OR_NOW
20860
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20863
# define LT_DLLAZY_OR_NOW DL_LAZY
20866
# define LT_DLLAZY_OR_NOW RTLD_NOW
20869
# define LT_DLLAZY_OR_NOW DL_NOW
20871
# define LT_DLLAZY_OR_NOW 0
20879
extern "C" void exit (int);
20882
void fnord() { int i=42;}
20885
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20886
int status = $lt_dlunknown;
20890
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20891
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20892
/* dlclose (self); */
20898
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899
(eval $ac_link) 2>&5
20901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20903
(./conftest; exit; ) 2>/dev/null
20905
case x$lt_status in
20906
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20907
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20908
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20911
# compilation failed
20912
lt_cv_dlopen_self_static=no
20919
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20920
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20923
CPPFLAGS="$save_CPPFLAGS"
20924
LDFLAGS="$save_LDFLAGS"
20929
case $lt_cv_dlopen_self in
20930
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20931
*) enable_dlopen_self=unknown ;;
20934
case $lt_cv_dlopen_self_static in
20935
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20936
*) enable_dlopen_self_static=unknown ;;
20941
# The else clause should only fire when bootstrapping the
20942
# libtool distribution, otherwise you forgot to ship ltmain.sh
20943
# with your package, and you will get complaints that there are
20944
# no rules to generate ltmain.sh.
20945
if test -f "$ltmain"; then
20946
# See if we are running on zsh, and set the options which allow our commands through
20947
# without removal of \ escapes.
20948
if test -n "${ZSH_VERSION+set}" ; then
20949
setopt NO_GLOB_SUBST
20951
# Now quote all the things that may contain metacharacters while being
20952
# careful not to overquote the AC_SUBSTed values. We take copies of the
20953
# variables and quote the copies for generation of the libtool script.
20954
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20956
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20957
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20958
deplibs_check_method reload_flag reload_cmds need_locks \
20959
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20960
lt_cv_sys_global_symbol_to_c_name_address \
20961
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20962
old_postinstall_cmds old_postuninstall_cmds \
20966
lt_prog_compiler_wl_GCJ \
20967
lt_prog_compiler_pic_GCJ \
20968
lt_prog_compiler_static_GCJ \
20969
lt_prog_compiler_no_builtin_flag_GCJ \
20970
export_dynamic_flag_spec_GCJ \
20971
thread_safe_flag_spec_GCJ \
20972
whole_archive_flag_spec_GCJ \
20973
enable_shared_with_static_runtimes_GCJ \
20974
old_archive_cmds_GCJ \
20975
old_archive_from_new_cmds_GCJ \
20976
predep_objects_GCJ \
20977
postdep_objects_GCJ \
20980
compiler_lib_search_path_GCJ \
20982
archive_expsym_cmds_GCJ \
20983
postinstall_cmds_GCJ \
20984
postuninstall_cmds_GCJ \
20985
old_archive_from_expsyms_cmds_GCJ \
20986
allow_undefined_flag_GCJ \
20987
no_undefined_flag_GCJ \
20988
export_symbols_cmds_GCJ \
20989
hardcode_libdir_flag_spec_GCJ \
20990
hardcode_libdir_flag_spec_ld_GCJ \
20991
hardcode_libdir_separator_GCJ \
20992
hardcode_automatic_GCJ \
20994
module_expsym_cmds_GCJ \
20995
lt_cv_prog_compiler_c_o_GCJ \
20996
exclude_expsyms_GCJ \
20997
include_expsyms_GCJ; do
21000
old_archive_cmds_GCJ | \
21001
old_archive_from_new_cmds_GCJ | \
21002
archive_cmds_GCJ | \
21003
archive_expsym_cmds_GCJ | \
21004
module_cmds_GCJ | \
21005
module_expsym_cmds_GCJ | \
21006
old_archive_from_expsyms_cmds_GCJ | \
21007
export_symbols_cmds_GCJ | \
21008
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21009
postinstall_cmds | postuninstall_cmds | \
21010
old_postinstall_cmds | old_postuninstall_cmds | \
21011
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21012
# Double-quote double-evaled strings.
21013
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21016
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21022
*'\$0 --fallback-echo"')
21023
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21029
cat <<__EOF__ >> "$cfgfile"
21030
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21032
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21034
# Shell to use when invoking shell scripts.
21037
# Whether or not to build shared libraries.
21038
build_libtool_libs=$enable_shared
21040
# Whether or not to build static libraries.
21041
build_old_libs=$enable_static
21043
# Whether or not to add -lc for building shared libraries.
21044
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21046
# Whether or not to disallow shared libs when runtime libs are static
21047
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21049
# Whether or not to optimize for fast installation.
21050
fast_install=$enable_fast_install
21053
host_alias=$host_alias
21056
# An echo program that does not interpret backslashes.
21061
AR_FLAGS=$lt_AR_FLAGS
21066
# A language-specific compiler.
21067
CC=$lt_compiler_GCJ
21069
# Is the compiler the GNU C compiler?
21075
# The linker used to build libraries.
21078
# Whether we need hard or soft links.
21081
# A BSD-compatible nm program.
21084
# A symbol stripping program
21087
# Used to examine libraries when file_magic_cmd begins "file"
21088
MAGIC_CMD=$MAGIC_CMD
21090
# Used on cygwin: DLL creation program.
21093
# Used on cygwin: object dumper.
21096
# Used on cygwin: assembler.
21099
# The name of the directory that contains temporary libtool files.
21102
# How to create reloadable object files.
21103
reload_flag=$lt_reload_flag
21104
reload_cmds=$lt_reload_cmds
21106
# How to pass a linker flag through the compiler.
21107
wl=$lt_lt_prog_compiler_wl_GCJ
21109
# Object file suffix (normally "o").
21110
objext="$ac_objext"
21112
# Old archive suffix (normally "a").
21115
# Shared library suffix (normally ".so").
21116
shrext_cmds='$shrext_cmds'
21118
# Executable file suffix (normally "").
21121
# Additional compiler flags for building library objects.
21122
pic_flag=$lt_lt_prog_compiler_pic_GCJ
21125
# What is the maximum length of a command?
21126
max_cmd_len=$lt_cv_sys_max_cmd_len
21128
# Does compiler simultaneously support -c and -o options?
21129
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21131
# Must we lock files when doing compilation ?
21132
need_locks=$lt_need_locks
21134
# Do we need the lib prefix for modules?
21135
need_lib_prefix=$need_lib_prefix
21137
# Do we need a version for libraries?
21138
need_version=$need_version
21140
# Whether dlopen is supported.
21141
dlopen_support=$enable_dlopen
21143
# Whether dlopen of programs is supported.
21144
dlopen_self=$enable_dlopen_self
21146
# Whether dlopen of statically linked programs is supported.
21147
dlopen_self_static=$enable_dlopen_self_static
21149
# Compiler flag to prevent dynamic linking.
21150
link_static_flag=$lt_lt_prog_compiler_static_GCJ
21152
# Compiler flag to turn off builtin functions.
21153
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21155
# Compiler flag to allow reflexive dlopens.
21156
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21158
# Compiler flag to generate shared objects directly from archives.
21159
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21161
# Compiler flag to generate thread-safe objects.
21162
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21164
# Library versioning type.
21165
version_type=$version_type
21167
# Format of library name prefix.
21168
libname_spec=$lt_libname_spec
21170
# List of archive names. First name is the real one, the rest are links.
21171
# The last name is the one that the linker finds with -lNAME.
21172
library_names_spec=$lt_library_names_spec
21174
# The coded name of the library, if different from the real name.
21175
soname_spec=$lt_soname_spec
21177
# Commands used to build and install an old-style archive.
21179
old_archive_cmds=$lt_old_archive_cmds_GCJ
21180
old_postinstall_cmds=$lt_old_postinstall_cmds
21181
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21183
# Create an old-style archive from a shared archive.
21184
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21186
# Create a temporary old-style archive to link instead of a shared archive.
21187
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21189
# Commands used to build and install a shared archive.
21190
archive_cmds=$lt_archive_cmds_GCJ
21191
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21192
postinstall_cmds=$lt_postinstall_cmds
21193
postuninstall_cmds=$lt_postuninstall_cmds
21195
# Commands used to build a loadable module (assumed same as above if empty)
21196
module_cmds=$lt_module_cmds_GCJ
21197
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21199
# Commands to strip libraries.
21200
old_striplib=$lt_old_striplib
21201
striplib=$lt_striplib
21203
# Dependencies to place before the objects being linked to create a
21205
predep_objects=$lt_predep_objects_GCJ
21207
# Dependencies to place after the objects being linked to create a
21209
postdep_objects=$lt_postdep_objects_GCJ
21211
# Dependencies to place before the objects being linked to create a
21213
predeps=$lt_predeps_GCJ
21215
# Dependencies to place after the objects being linked to create a
21217
postdeps=$lt_postdeps_GCJ
21219
# The library search path used internally by the compiler when linking
21220
# a shared library.
21221
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21223
# Method to check whether dependent libraries are shared objects.
21224
deplibs_check_method=$lt_deplibs_check_method
21226
# Command to use when deplibs_check_method == file_magic.
21227
file_magic_cmd=$lt_file_magic_cmd
21229
# Flag that allows shared libraries with undefined symbols to be built.
21230
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21232
# Flag that forces no undefined symbols.
21233
no_undefined_flag=$lt_no_undefined_flag_GCJ
21235
# Commands used to finish a libtool library installation in a directory.
21236
finish_cmds=$lt_finish_cmds
21238
# Same as above, but a single script fragment to be evaled but not shown.
21239
finish_eval=$lt_finish_eval
21241
# Take the output of nm and produce a listing of raw symbols and C names.
21242
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21244
# Transform the output of nm in a proper C declaration
21245
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21247
# Transform the output of nm in a C name address pair
21248
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21250
# This is the shared library runtime path variable.
21251
runpath_var=$runpath_var
21253
# This is the shared library path variable.
21254
shlibpath_var=$shlibpath_var
21256
# Is shlibpath searched before the hard-coded library search path?
21257
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21259
# How to hardcode a shared library path into an executable.
21260
hardcode_action=$hardcode_action_GCJ
21262
# Whether we should hardcode library paths into libraries.
21263
hardcode_into_libs=$hardcode_into_libs
21265
# Flag to hardcode \$libdir into a binary during linking.
21266
# This must work even if \$libdir does not exist.
21267
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21269
# If ld is used when linking, flag to hardcode \$libdir into
21270
# a binary during linking. This must work even if \$libdir does
21272
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21274
# Whether we need a single -rpath flag with a separated argument.
21275
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21277
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21278
# resulting binary.
21279
hardcode_direct=$hardcode_direct_GCJ
21281
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21282
# resulting binary.
21283
hardcode_minus_L=$hardcode_minus_L_GCJ
21285
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21286
# the resulting binary.
21287
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21289
# Set to yes if building a shared library automatically hardcodes DIR into the library
21290
# and all subsequent libraries and executables linked against it.
21291
hardcode_automatic=$hardcode_automatic_GCJ
21293
# Variables whose values should be saved in libtool wrapper scripts and
21294
# restored at relink time.
21295
variables_saved_for_relink="$variables_saved_for_relink"
21297
# Whether libtool must link a program against all its dependency libraries.
21298
link_all_deplibs=$link_all_deplibs_GCJ
21300
# Compile-time system search path for libraries
21301
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21303
# Run-time system search path for libraries
21304
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21306
# Fix the shell variable \$srcfile for the compiler.
21307
fix_srcfile_path="$fix_srcfile_path_GCJ"
21309
# Set to yes if exported symbols are required.
21310
always_export_symbols=$always_export_symbols_GCJ
21312
# The commands to list exported symbols.
21313
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21315
# The commands to extract the exported symbol list from a shared archive.
21316
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21318
# Symbols that should not be listed in the preloaded symbols.
21319
exclude_expsyms=$lt_exclude_expsyms_GCJ
21321
# Symbols that must always be exported.
21322
include_expsyms=$lt_include_expsyms_GCJ
21324
# ### END LIBTOOL TAG CONFIG: $tagname
21330
# If there is no Makefile yet, we rely on a make rule to execute
21331
# `config.status --recheck' to rerun these tests and create the
21332
# libtool script then.
21333
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21334
if test -f "$ltmain_in"; then
21335
test -f Makefile && make "$ltmain"
21341
ac_cpp='$CPP $CPPFLAGS'
21342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21343
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21344
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21357
# Source file extension for RC test sources.
21360
# Object file extension for compiled RC test sources.
21364
# Code to be used in simple compile tests
21365
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21367
# Code to be used in simple link tests
21368
lt_simple_link_test_code="$lt_simple_compile_test_code"
21370
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21372
# If no C compiler was specified, use CC.
21375
# Allow CC to be a program name with arguments.
21379
# Allow CC to be a program name with arguments.
21384
lt_cv_prog_compiler_c_o_RC=yes
21386
# The else clause should only fire when bootstrapping the
21387
# libtool distribution, otherwise you forgot to ship ltmain.sh
21388
# with your package, and you will get complaints that there are
21389
# no rules to generate ltmain.sh.
21390
if test -f "$ltmain"; then
21391
# See if we are running on zsh, and set the options which allow our commands through
21392
# without removal of \ escapes.
21393
if test -n "${ZSH_VERSION+set}" ; then
21394
setopt NO_GLOB_SUBST
21396
# Now quote all the things that may contain metacharacters while being
21397
# careful not to overquote the AC_SUBSTed values. We take copies of the
21398
# variables and quote the copies for generation of the libtool script.
21399
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21401
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21402
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21403
deplibs_check_method reload_flag reload_cmds need_locks \
21404
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21405
lt_cv_sys_global_symbol_to_c_name_address \
21406
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21407
old_postinstall_cmds old_postuninstall_cmds \
21411
lt_prog_compiler_wl_RC \
21412
lt_prog_compiler_pic_RC \
21413
lt_prog_compiler_static_RC \
21414
lt_prog_compiler_no_builtin_flag_RC \
21415
export_dynamic_flag_spec_RC \
21416
thread_safe_flag_spec_RC \
21417
whole_archive_flag_spec_RC \
21418
enable_shared_with_static_runtimes_RC \
21419
old_archive_cmds_RC \
21420
old_archive_from_new_cmds_RC \
21421
predep_objects_RC \
21422
postdep_objects_RC \
21425
compiler_lib_search_path_RC \
21427
archive_expsym_cmds_RC \
21428
postinstall_cmds_RC \
21429
postuninstall_cmds_RC \
21430
old_archive_from_expsyms_cmds_RC \
21431
allow_undefined_flag_RC \
21432
no_undefined_flag_RC \
21433
export_symbols_cmds_RC \
21434
hardcode_libdir_flag_spec_RC \
21435
hardcode_libdir_flag_spec_ld_RC \
21436
hardcode_libdir_separator_RC \
21437
hardcode_automatic_RC \
21439
module_expsym_cmds_RC \
21440
lt_cv_prog_compiler_c_o_RC \
21441
exclude_expsyms_RC \
21442
include_expsyms_RC; do
21445
old_archive_cmds_RC | \
21446
old_archive_from_new_cmds_RC | \
21447
archive_cmds_RC | \
21448
archive_expsym_cmds_RC | \
21450
module_expsym_cmds_RC | \
21451
old_archive_from_expsyms_cmds_RC | \
21452
export_symbols_cmds_RC | \
21453
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21454
postinstall_cmds | postuninstall_cmds | \
21455
old_postinstall_cmds | old_postuninstall_cmds | \
21456
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21457
# Double-quote double-evaled strings.
21458
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21461
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21467
*'\$0 --fallback-echo"')
21468
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21474
cat <<__EOF__ >> "$cfgfile"
21475
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21477
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21479
# Shell to use when invoking shell scripts.
21482
# Whether or not to build shared libraries.
21483
build_libtool_libs=$enable_shared
21485
# Whether or not to build static libraries.
21486
build_old_libs=$enable_static
21488
# Whether or not to add -lc for building shared libraries.
21489
build_libtool_need_lc=$archive_cmds_need_lc_RC
21491
# Whether or not to disallow shared libs when runtime libs are static
21492
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21494
# Whether or not to optimize for fast installation.
21495
fast_install=$enable_fast_install
21498
host_alias=$host_alias
21501
# An echo program that does not interpret backslashes.
21506
AR_FLAGS=$lt_AR_FLAGS
21511
# A language-specific compiler.
21514
# Is the compiler the GNU C compiler?
21520
# The linker used to build libraries.
21523
# Whether we need hard or soft links.
21526
# A BSD-compatible nm program.
21529
# A symbol stripping program
21532
# Used to examine libraries when file_magic_cmd begins "file"
21533
MAGIC_CMD=$MAGIC_CMD
21535
# Used on cygwin: DLL creation program.
21538
# Used on cygwin: object dumper.
21541
# Used on cygwin: assembler.
21544
# The name of the directory that contains temporary libtool files.
21547
# How to create reloadable object files.
21548
reload_flag=$lt_reload_flag
21549
reload_cmds=$lt_reload_cmds
21551
# How to pass a linker flag through the compiler.
21552
wl=$lt_lt_prog_compiler_wl_RC
21554
# Object file suffix (normally "o").
21555
objext="$ac_objext"
21557
# Old archive suffix (normally "a").
21560
# Shared library suffix (normally ".so").
21561
shrext_cmds='$shrext_cmds'
21563
# Executable file suffix (normally "").
21566
# Additional compiler flags for building library objects.
21567
pic_flag=$lt_lt_prog_compiler_pic_RC
21570
# What is the maximum length of a command?
21571
max_cmd_len=$lt_cv_sys_max_cmd_len
21573
# Does compiler simultaneously support -c and -o options?
21574
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21576
# Must we lock files when doing compilation ?
21577
need_locks=$lt_need_locks
21579
# Do we need the lib prefix for modules?
21580
need_lib_prefix=$need_lib_prefix
21582
# Do we need a version for libraries?
21583
need_version=$need_version
21585
# Whether dlopen is supported.
21586
dlopen_support=$enable_dlopen
21588
# Whether dlopen of programs is supported.
21589
dlopen_self=$enable_dlopen_self
21591
# Whether dlopen of statically linked programs is supported.
21592
dlopen_self_static=$enable_dlopen_self_static
21594
# Compiler flag to prevent dynamic linking.
21595
link_static_flag=$lt_lt_prog_compiler_static_RC
21597
# Compiler flag to turn off builtin functions.
21598
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21600
# Compiler flag to allow reflexive dlopens.
21601
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21603
# Compiler flag to generate shared objects directly from archives.
21604
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21606
# Compiler flag to generate thread-safe objects.
21607
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21609
# Library versioning type.
21610
version_type=$version_type
21612
# Format of library name prefix.
21613
libname_spec=$lt_libname_spec
21615
# List of archive names. First name is the real one, the rest are links.
21616
# The last name is the one that the linker finds with -lNAME.
21617
library_names_spec=$lt_library_names_spec
21619
# The coded name of the library, if different from the real name.
21620
soname_spec=$lt_soname_spec
21622
# Commands used to build and install an old-style archive.
21624
old_archive_cmds=$lt_old_archive_cmds_RC
21625
old_postinstall_cmds=$lt_old_postinstall_cmds
21626
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21628
# Create an old-style archive from a shared archive.
21629
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21631
# Create a temporary old-style archive to link instead of a shared archive.
21632
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21634
# Commands used to build and install a shared archive.
21635
archive_cmds=$lt_archive_cmds_RC
21636
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21637
postinstall_cmds=$lt_postinstall_cmds
21638
postuninstall_cmds=$lt_postuninstall_cmds
21640
# Commands used to build a loadable module (assumed same as above if empty)
21641
module_cmds=$lt_module_cmds_RC
21642
module_expsym_cmds=$lt_module_expsym_cmds_RC
21644
# Commands to strip libraries.
21645
old_striplib=$lt_old_striplib
21646
striplib=$lt_striplib
21648
# Dependencies to place before the objects being linked to create a
21650
predep_objects=$lt_predep_objects_RC
21652
# Dependencies to place after the objects being linked to create a
21654
postdep_objects=$lt_postdep_objects_RC
21656
# Dependencies to place before the objects being linked to create a
21658
predeps=$lt_predeps_RC
21660
# Dependencies to place after the objects being linked to create a
21662
postdeps=$lt_postdeps_RC
21664
# The library search path used internally by the compiler when linking
21665
# a shared library.
21666
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21668
# Method to check whether dependent libraries are shared objects.
21669
deplibs_check_method=$lt_deplibs_check_method
21671
# Command to use when deplibs_check_method == file_magic.
21672
file_magic_cmd=$lt_file_magic_cmd
21674
# Flag that allows shared libraries with undefined symbols to be built.
21675
allow_undefined_flag=$lt_allow_undefined_flag_RC
21677
# Flag that forces no undefined symbols.
21678
no_undefined_flag=$lt_no_undefined_flag_RC
21680
# Commands used to finish a libtool library installation in a directory.
21681
finish_cmds=$lt_finish_cmds
21683
# Same as above, but a single script fragment to be evaled but not shown.
21684
finish_eval=$lt_finish_eval
21686
# Take the output of nm and produce a listing of raw symbols and C names.
21687
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21689
# Transform the output of nm in a proper C declaration
21690
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21692
# Transform the output of nm in a C name address pair
21693
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21695
# This is the shared library runtime path variable.
21696
runpath_var=$runpath_var
21698
# This is the shared library path variable.
21699
shlibpath_var=$shlibpath_var
21701
# Is shlibpath searched before the hard-coded library search path?
21702
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21704
# How to hardcode a shared library path into an executable.
21705
hardcode_action=$hardcode_action_RC
21707
# Whether we should hardcode library paths into libraries.
21708
hardcode_into_libs=$hardcode_into_libs
21710
# Flag to hardcode \$libdir into a binary during linking.
21711
# This must work even if \$libdir does not exist.
21712
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21714
# If ld is used when linking, flag to hardcode \$libdir into
21715
# a binary during linking. This must work even if \$libdir does
21717
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21719
# Whether we need a single -rpath flag with a separated argument.
21720
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21722
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21723
# resulting binary.
21724
hardcode_direct=$hardcode_direct_RC
21726
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21727
# resulting binary.
21728
hardcode_minus_L=$hardcode_minus_L_RC
21730
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21731
# the resulting binary.
21732
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21734
# Set to yes if building a shared library automatically hardcodes DIR into the library
21735
# and all subsequent libraries and executables linked against it.
21736
hardcode_automatic=$hardcode_automatic_RC
21738
# Variables whose values should be saved in libtool wrapper scripts and
21739
# restored at relink time.
21740
variables_saved_for_relink="$variables_saved_for_relink"
21742
# Whether libtool must link a program against all its dependency libraries.
21743
link_all_deplibs=$link_all_deplibs_RC
21745
# Compile-time system search path for libraries
21746
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21748
# Run-time system search path for libraries
21749
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21751
# Fix the shell variable \$srcfile for the compiler.
21752
fix_srcfile_path="$fix_srcfile_path_RC"
21754
# Set to yes if exported symbols are required.
21755
always_export_symbols=$always_export_symbols_RC
21757
# The commands to list exported symbols.
21758
export_symbols_cmds=$lt_export_symbols_cmds_RC
21760
# The commands to extract the exported symbol list from a shared archive.
21761
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21763
# Symbols that should not be listed in the preloaded symbols.
21764
exclude_expsyms=$lt_exclude_expsyms_RC
21766
# Symbols that must always be exported.
21767
include_expsyms=$lt_include_expsyms_RC
21769
# ### END LIBTOOL TAG CONFIG: $tagname
21775
# If there is no Makefile yet, we rely on a make rule to execute
21776
# `config.status --recheck' to rerun these tests and create the
21777
# libtool script then.
21778
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21779
if test -f "$ltmain_in"; then
21780
test -f Makefile && make "$ltmain"
21786
ac_cpp='$CPP $CPPFLAGS'
21787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21796
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21797
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21798
{ (exit 1); exit 1; }; }
21802
# Append the new tag name to the list of available tags.
21803
if test -n "$tagname" ; then
21804
available_tags="$available_tags $tagname"
21810
# Now substitute the updated list of available tags.
21811
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21812
mv "${ofile}T" "$ofile"
21816
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21817
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21818
{ (exit 1); exit 1; }; }
21824
# This can be used to rebuild libtool when needed
21825
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21827
# Always use our own libtool.
21828
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21830
# Prevent multiple expansion
21853
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
21854
# Check whether --enable-build-warnings or --disable-build-warnings was given.
21855
if test "${enable_build_warnings+set}" = set; then
21856
enableval="$enable_build_warnings"
21859
if test x"$build_warnings" = xyes; then
21860
if test x"$GCC" = xyes; then
21861
WARN_CFLAGS="${build_warnings}"
21867
ac_config_files="$ac_config_files Makefile src/Judy1/Makefile src/JudyCommon/Makefile src/JudyHS/Makefile src/JudyL/Makefile src/JudySL/Makefile src/Makefile src/obj/Makefile tool/Makefile doc/Makefile test/Makefile"
21871
cat >confcache <<\_ACEOF
21872
# This file is a shell script that caches the results of configure
21873
# tests run on this system so they can be shared between configure
21874
# scripts and configure runs, see configure's option --config-cache.
21875
# It is not useful on other systems. If it contains results you don't
21876
# want to keep, you may remove or edit it.
21878
# config.status only pays attention to the cache file if you give it
21879
# the --recheck option to rerun configure.
21881
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21882
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21883
# following values.
21887
# The following way of writing the cache mishandles newlines in values,
21888
# but we know of no workaround that is simple, portable, and efficient.
21889
# So, don't put newlines in cache variables' values.
21890
# Ultrix sh set writes to stderr and can't be redirected directly,
21891
# and sets the high bit in the cache file unless we assign to the vars.
21894
case `(ac_space=' '; set | grep ac_space) 2>&1` in
21896
# `set' does not quote correctly, so add quotes (double-quote
21897
# substitution turns \\\\ into \\, and sed turns \\ into \).
21900
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21903
# `set' quotes correctly as required by POSIX, so do not add quotes.
21905
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21912
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21914
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21916
if diff $cache_file confcache >/dev/null 2>&1; then :; else
21917
if test -w $cache_file; then
21918
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21919
cat confcache >$cache_file
21921
echo "not updating unwritable cache $cache_file"
21926
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21927
# Let make expand exec_prefix.
21928
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21930
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21931
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21932
# trailing colons and then remove the whole line if VPATH becomes empty
21933
# (actually we leave an empty line to preserve line numbers).
21934
if test "x$srcdir" = x.; then
21935
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21936
s/:*\$(srcdir):*/:/;
21937
s/:*\${srcdir}:*/:/;
21939
s/^\([^=]*=[ ]*\):*/\1/;
21945
DEFS=-DHAVE_CONFIG_H
21949
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21950
# 1. Remove the extension, and $U if already installed.
21951
ac_i=`echo "$ac_i" |
21952
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21954
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21955
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21957
LIB@&t@OBJS=$ac_libobjs
21959
LTLIBOBJS=$ac_ltlibobjs
21962
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21963
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21964
Usually this means the macro was only invoked conditionally." >&5
21965
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21966
Usually this means the macro was only invoked conditionally." >&2;}
21967
{ (exit 1); exit 1; }; }
21969
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21970
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21971
Usually this means the macro was only invoked conditionally." >&5
21972
echo "$as_me: error: conditional \"AMDEP\" was never defined.
21973
Usually this means the macro was only invoked conditionally." >&2;}
21974
{ (exit 1); exit 1; }; }
21976
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21977
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21978
Usually this means the macro was only invoked conditionally." >&5
21979
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21980
Usually this means the macro was only invoked conditionally." >&2;}
21981
{ (exit 1); exit 1; }; }
21983
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21984
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21985
Usually this means the macro was only invoked conditionally." >&5
21986
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21987
Usually this means the macro was only invoked conditionally." >&2;}
21988
{ (exit 1); exit 1; }; }
21991
: ${CONFIG_STATUS=./config.status}
21992
ac_clean_files_save=$ac_clean_files
21993
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21994
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21995
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21996
cat >$CONFIG_STATUS <<_ACEOF
21998
# Generated by $as_me.
21999
# Run this file to recreate the current configuration.
22000
# Compiler output produced by configure, useful for debugging
22001
# configure, is in config.log if it exists.
22004
ac_cs_recheck=false
22006
SHELL=\${CONFIG_SHELL-$SHELL}
22009
cat >>$CONFIG_STATUS <<\_ACEOF
22010
## --------------------- ##
22011
## M4sh Initialization. ##
22012
## --------------------- ##
22014
# Be Bourne compatible
22015
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22018
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22019
# is contrary to our usage. Disable this feature.
22020
alias -g '${1+"$@"}'='"$@"'
22021
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22024
DUALCASE=1; export DUALCASE # for MKS sh
22026
# Support unset when possible.
22027
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22034
# Work around bugs in pre-3.0 UWIN ksh.
22035
$as_unset ENV MAIL MAILPATH
22042
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22043
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22044
LC_TELEPHONE LC_TIME
22046
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22047
eval $as_var=C; export $as_var
22053
# Required to use basename.
22054
if expr a : '\(a\)' >/dev/null 2>&1; then
22060
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22061
as_basename=basename
22067
# Name of the executable.
22068
as_me=`$as_basename "$0" ||
22069
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22070
X"$0" : 'X\(//\)$' \| \
22071
X"$0" : 'X\(/\)$' \| \
22072
. : '\(.\)' 2>/dev/null ||
22074
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22075
/^X\/\(\/\/\)$/{ s//\1/; q; }
22076
/^X\/\(\/\).*/{ s//\1/; q; }
22080
# PATH needs CR, and LINENO needs CR and PATH.
22081
# Avoid depending upon Character Ranges.
22082
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22083
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22084
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22085
as_cr_digits='0123456789'
22086
as_cr_alnum=$as_cr_Letters$as_cr_digits
22088
# The user is always right.
22089
if test "${PATH_SEPARATOR+set}" != set; then
22090
echo "#! /bin/sh" >conf$$.sh
22091
echo "exit 0" >>conf$$.sh
22093
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22102
as_lineno_1=$LINENO
22103
as_lineno_2=$LINENO
22104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22105
test "x$as_lineno_1" != "x$as_lineno_2" &&
22106
test "x$as_lineno_3" = "x$as_lineno_2" || {
22107
# Find who we are. Look in the path if we contain no path at all
22110
*[\\/]* ) as_myself=$0 ;;
22111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22112
for as_dir in $PATH
22115
test -z "$as_dir" && as_dir=.
22116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22121
# We did not find ourselves, most probably we were run as `sh COMMAND'
22122
# in which case we are not to be found in the path.
22123
if test "x$as_myself" = x; then
22126
if test ! -f "$as_myself"; then
22127
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22128
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22129
{ (exit 1); exit 1; }; }
22131
case $CONFIG_SHELL in
22133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22137
test -z "$as_dir" && as_dir=.
22138
for as_base in sh bash ksh sh5; do
22141
if ("$as_dir/$as_base" -c '
22142
as_lineno_1=$LINENO
22143
as_lineno_2=$LINENO
22144
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22145
test "x$as_lineno_1" != "x$as_lineno_2" &&
22146
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22147
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22148
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22149
CONFIG_SHELL=$as_dir/$as_base
22150
export CONFIG_SHELL
22151
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22159
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22160
# uniformly replaced by the line number. The first 'sed' inserts a
22161
# line-number line before each line; the second 'sed' does the real
22162
# work. The second script uses 'N' to pair each line-number line
22163
# with the numbered line, and appends trailing '-' during
22164
# substitution so that $LINENO is not a special case at line end.
22165
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22166
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22167
sed '=' <$as_myself |
22172
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22175
s,^['$as_cr_digits']*\n,,
22176
' >$as_me.lineno &&
22177
chmod +x $as_me.lineno ||
22178
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22179
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22180
{ (exit 1); exit 1; }; }
22182
# Don't try to exec as it changes $[0], causing all sort of problems
22183
# (the dirname of $[0] is not the place where we might find the
22184
# original and so on. Autoconf is especially sensible to this).
22186
# Exit status is that of the last command.
22191
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22192
*c*,-n*) ECHO_N= ECHO_C='
22194
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22195
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22198
if expr a : '\(a\)' >/dev/null 2>&1; then
22204
rm -f conf$$ conf$$.exe conf$$.file
22206
if ln -s conf$$.file conf$$ 2>/dev/null; then
22207
# We could just check for DJGPP; but this test a) works b) is more generic
22208
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22209
if test -f conf$$.exe; then
22210
# Don't use ln at all; we don't have any links
22215
elif ln conf$$.file conf$$ 2>/dev/null; then
22220
rm -f conf$$ conf$$.exe conf$$.file
22222
if mkdir -p . 2>/dev/null; then
22225
test -d ./-p && rmdir ./-p
22229
as_executable_p="test -f"
22231
# Sed expression to map a string onto a valid CPP name.
22232
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22234
# Sed expression to map a string onto a valid variable name.
22235
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22239
# We need space, tab and new line, in precisely that order.
22249
# Open the log real soon, to keep \$[0] and so on meaningful, and to
22250
# report actual input values of CONFIG_FILES etc. instead of their
22251
# values after options handling. Logging --version etc. is OK.
22255
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22256
@%:@@%:@ Running $as_me. @%:@@%:@
22261
This file was extended by Judy $as_me 1.0.0, which was
22262
generated by GNU Autoconf 2.59. Invocation command line was
22264
CONFIG_FILES = $CONFIG_FILES
22265
CONFIG_HEADERS = $CONFIG_HEADERS
22266
CONFIG_LINKS = $CONFIG_LINKS
22267
CONFIG_COMMANDS = $CONFIG_COMMANDS
22271
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22275
# Files that config.status was made for.
22276
if test -n "$ac_config_files"; then
22277
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22280
if test -n "$ac_config_headers"; then
22281
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22284
if test -n "$ac_config_links"; then
22285
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22288
if test -n "$ac_config_commands"; then
22289
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22292
cat >>$CONFIG_STATUS <<\_ACEOF
22295
\`$as_me' instantiates files from templates according to the
22296
current configuration.
22298
Usage: $0 [OPTIONS] [FILE]...
22300
-h, --help print this help, then exit
22301
-V, --version print version number, then exit
22302
-q, --quiet do not print progress messages
22303
-d, --debug don't remove temporary files
22304
--recheck update $as_me by reconfiguring in the same conditions
22305
--file=FILE[:TEMPLATE]
22306
instantiate the configuration file FILE
22307
--header=FILE[:TEMPLATE]
22308
instantiate the configuration header FILE
22310
Configuration files:
22313
Configuration headers:
22316
Configuration commands:
22319
Report bugs to <bug-autoconf@gnu.org>."
22322
cat >>$CONFIG_STATUS <<_ACEOF
22324
Judy config.status 1.0.0
22325
configured by $0, generated by GNU Autoconf 2.59,
22326
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22328
Copyright (C) 2003 Free Software Foundation, Inc.
22329
This config.status script is free software; the Free Software Foundation
22330
gives unlimited permission to copy, distribute and modify it."
22335
cat >>$CONFIG_STATUS <<\_ACEOF
22336
# If no file are specified by the user, then we need to provide default
22337
# value. By we need to know if files were specified by the user.
22343
ac_option=`expr "x$1" : 'x\([^=]*\)='`
22344
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22352
*) # This is not an option, so the user has probably given explicit
22355
ac_need_defaults=false;;
22359
# Handling of the options.
22361
cat >>$CONFIG_STATUS <<\_ACEOF
22362
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22364
--version | --vers* | -V )
22365
echo "$ac_cs_version"; exit 0 ;;
22367
# Conflict between --help and --header
22368
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
22369
Try \`$0 --help' for more information." >&5
22370
echo "$as_me: error: ambiguous option: $1
22371
Try \`$0 --help' for more information." >&2;}
22372
{ (exit 1); exit 1; }; };;
22373
--help | --hel | -h )
22374
echo "$ac_cs_usage"; exit 0 ;;
22375
--debug | --d* | -d )
22377
--file | --fil | --fi | --f )
22379
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22380
ac_need_defaults=false;;
22381
--header | --heade | --head | --hea )
22383
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22384
ac_need_defaults=false;;
22385
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22386
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22389
# This is an error.
22390
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22391
Try \`$0 --help' for more information." >&5
22392
echo "$as_me: error: unrecognized option: $1
22393
Try \`$0 --help' for more information." >&2;}
22394
{ (exit 1); exit 1; }; } ;;
22396
*) ac_config_targets="$ac_config_targets $1" ;;
22402
ac_configure_extra_args=
22404
if $ac_cs_silent; then
22406
ac_configure_extra_args="$ac_configure_extra_args --silent"
22410
cat >>$CONFIG_STATUS <<_ACEOF
22411
if \$ac_cs_recheck; then
22412
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22413
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22418
cat >>$CONFIG_STATUS <<_ACEOF
22420
# INIT-COMMANDS section.
22423
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22429
cat >>$CONFIG_STATUS <<\_ACEOF
22430
for ac_config_target in $ac_config_targets
22432
case "$ac_config_target" in
22433
# Handling of arguments.
22434
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22435
"src/Judy1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Judy1/Makefile" ;;
22436
"src/JudyCommon/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyCommon/Makefile" ;;
22437
"src/JudyHS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyHS/Makefile" ;;
22438
"src/JudyL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyL/Makefile" ;;
22439
"src/JudySL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudySL/Makefile" ;;
22440
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22441
"src/obj/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/obj/Makefile" ;;
22442
"tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES tool/Makefile" ;;
22443
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22444
"test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22445
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22446
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22447
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22448
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22449
{ (exit 1); exit 1; }; };;
22453
# If the user did not use the arguments to specify the items to instantiate,
22454
# then the envvar interface is used. Set only those that are not.
22455
# We use the long form for the default assignment because of an extremely
22456
# bizarre bug on SunOS 4.1.3.
22457
if $ac_need_defaults; then
22458
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22459
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22460
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22463
# Have a temporary directory for convenience. Make it in the build tree
22464
# simply because there is no reason to put it here, and in addition,
22465
# creating and moving files from /tmp can sometimes cause problems.
22466
# Create a temporary directory, and hook for its removal unless debugging.
22469
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22470
trap '{ (exit 1); exit 1; }' 1 2 13 15
22473
# Create a (secure) tmp directory for tmp files.
22476
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22477
test -n "$tmp" && test -d "$tmp"
22480
tmp=./confstat$$-$RANDOM
22481
(umask 077 && mkdir $tmp)
22484
echo "$me: cannot create a temporary directory in ." >&2
22485
{ (exit 1); exit 1; }
22490
cat >>$CONFIG_STATUS <<_ACEOF
22493
# CONFIG_FILES section.
22496
# No need to generate the scripts if there are no CONFIG_FILES.
22497
# This happens for instance when ./config.status config.h
22498
if test -n "\$CONFIG_FILES"; then
22499
# Protect against being on the right side of a sed subst in config.status.
22500
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22501
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22502
s,@SHELL@,$SHELL,;t t
22503
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22504
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22505
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22506
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22507
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22508
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22509
s,@exec_prefix@,$exec_prefix,;t t
22510
s,@prefix@,$prefix,;t t
22511
s,@program_transform_name@,$program_transform_name,;t t
22512
s,@bindir@,$bindir,;t t
22513
s,@sbindir@,$sbindir,;t t
22514
s,@libexecdir@,$libexecdir,;t t
22515
s,@datadir@,$datadir,;t t
22516
s,@sysconfdir@,$sysconfdir,;t t
22517
s,@sharedstatedir@,$sharedstatedir,;t t
22518
s,@localstatedir@,$localstatedir,;t t
22519
s,@libdir@,$libdir,;t t
22520
s,@includedir@,$includedir,;t t
22521
s,@oldincludedir@,$oldincludedir,;t t
22522
s,@infodir@,$infodir,;t t
22523
s,@mandir@,$mandir,;t t
22524
s,@build_alias@,$build_alias,;t t
22525
s,@host_alias@,$host_alias,;t t
22526
s,@target_alias@,$target_alias,;t t
22527
s,@DEFS@,$DEFS,;t t
22528
s,@ECHO_C@,$ECHO_C,;t t
22529
s,@ECHO_N@,$ECHO_N,;t t
22530
s,@ECHO_T@,$ECHO_T,;t t
22531
s,@LIBS@,$LIBS,;t t
22532
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22533
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22534
s,@MAINT@,$MAINT,;t t
22535
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22536
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22537
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22538
s,@CYGPATH_W@,$CYGPATH_W,;t t
22539
s,@PACKAGE@,$PACKAGE,;t t
22540
s,@VERSION@,$VERSION,;t t
22541
s,@ACLOCAL@,$ACLOCAL,;t t
22542
s,@AUTOCONF@,$AUTOCONF,;t t
22543
s,@AUTOMAKE@,$AUTOMAKE,;t t
22544
s,@AUTOHEADER@,$AUTOHEADER,;t t
22545
s,@MAKEINFO@,$MAKEINFO,;t t
22546
s,@install_sh@,$install_sh,;t t
22547
s,@STRIP@,$STRIP,;t t
22548
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22549
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22550
s,@mkdir_p@,$mkdir_p,;t t
22552
s,@SET_MAKE@,$SET_MAKE,;t t
22553
s,@am__leading_dot@,$am__leading_dot,;t t
22554
s,@AMTAR@,$AMTAR,;t t
22555
s,@am__tar@,$am__tar,;t t
22556
s,@am__untar@,$am__untar,;t t
22557
s,@VERSION_INFO@,$VERSION_INFO,;t t
22558
s,@FLAVOR@,$FLAVOR,;t t
22560
s,@CFLAGS@,$CFLAGS,;t t
22561
s,@LDFLAGS@,$LDFLAGS,;t t
22562
s,@CPPFLAGS@,$CPPFLAGS,;t t
22563
s,@ac_ct_CC@,$ac_ct_CC,;t t
22564
s,@EXEEXT@,$EXEEXT,;t t
22565
s,@OBJEXT@,$OBJEXT,;t t
22566
s,@DEPDIR@,$DEPDIR,;t t
22567
s,@am__include@,$am__include,;t t
22568
s,@am__quote@,$am__quote,;t t
22569
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22570
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22571
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22572
s,@CCDEPMODE@,$CCDEPMODE,;t t
22573
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22574
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22576
s,@LN_S@,$LN_S,;t t
22577
s,@EGREP@,$EGREP,;t t
22578
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
22580
s,@ac_ct_AR@,$ac_ct_AR,;t t
22582
s,@ac_ct_LD@,$ac_ct_LD,;t t
22583
s,@RANLIB@,$RANLIB,;t t
22584
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22585
s,@build@,$build,;t t
22586
s,@build_cpu@,$build_cpu,;t t
22587
s,@build_vendor@,$build_vendor,;t t
22588
s,@build_os@,$build_os,;t t
22589
s,@host@,$host,;t t
22590
s,@host_cpu@,$host_cpu,;t t
22591
s,@host_vendor@,$host_vendor,;t t
22592
s,@host_os@,$host_os,;t t
22593
s,@ECHO@,$ECHO,;t t
22595
s,@CXXFLAGS@,$CXXFLAGS,;t t
22596
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22597
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22598
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22599
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22600
s,@CXXCPP@,$CXXCPP,;t t
22602
s,@FFLAGS@,$FFLAGS,;t t
22603
s,@ac_ct_F77@,$ac_ct_F77,;t t
22604
s,@LIBTOOL@,$LIBTOOL,;t t
22605
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22606
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22611
cat >>$CONFIG_STATUS <<\_ACEOF
22612
# Split the substitutions into bite-sized pieces for seds with
22613
# small command number limits, like on Digital OSF/1 and HP-UX.
22614
ac_max_sed_lines=48
22615
ac_sed_frag=1 # Number of current file.
22616
ac_beg=1 # First line for current file.
22617
ac_end=$ac_max_sed_lines # Line after last line for current file.
22620
while $ac_more_lines; do
22621
if test $ac_beg -gt 1; then
22622
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22624
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22626
if test ! -s $tmp/subs.frag; then
22627
ac_more_lines=false
22629
# The purpose of the label and of the branching condition is to
22630
# speed up the sed processing (if there are no `@' at all, there
22631
# is no need to browse any of the substitutions).
22632
# These are the two extra sed commands mentioned above.
22634
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22635
if test -z "$ac_sed_cmds"; then
22636
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22638
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22640
ac_sed_frag=`expr $ac_sed_frag + 1`
22642
ac_end=`expr $ac_end + $ac_max_sed_lines`
22645
if test -z "$ac_sed_cmds"; then
22648
fi # test -n "$CONFIG_FILES"
22651
cat >>$CONFIG_STATUS <<\_ACEOF
22652
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22653
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22655
- | *:- | *:-:* ) # input from stdin
22657
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22658
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22659
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22660
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22661
* ) ac_file_in=$ac_file.in ;;
22664
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22665
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22666
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22667
X"$ac_file" : 'X\(//\)[^/]' \| \
22668
X"$ac_file" : 'X\(//\)$' \| \
22669
X"$ac_file" : 'X\(/\)' \| \
22670
. : '\(.\)' 2>/dev/null ||
22672
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22673
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22674
/^X\(\/\/\)$/{ s//\1/; q; }
22675
/^X\(\/\).*/{ s//\1/; q; }
22677
{ if $as_mkdir_p; then
22682
while test ! -d "$as_dir"; do
22683
as_dirs="$as_dir $as_dirs"
22684
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22685
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22686
X"$as_dir" : 'X\(//\)[^/]' \| \
22687
X"$as_dir" : 'X\(//\)$' \| \
22688
X"$as_dir" : 'X\(/\)' \| \
22689
. : '\(.\)' 2>/dev/null ||
22691
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22692
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22693
/^X\(\/\/\)$/{ s//\1/; q; }
22694
/^X\(\/\).*/{ s//\1/; q; }
22697
test ! -n "$as_dirs" || mkdir $as_dirs
22698
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22699
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22700
{ (exit 1); exit 1; }; }; }
22704
if test "$ac_dir" != .; then
22705
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22706
# A "../" for each directory in $ac_dir_suffix.
22707
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22709
ac_dir_suffix= ac_top_builddir=
22713
.) # No --srcdir option. We are building in place.
22715
if test -z "$ac_top_builddir"; then
22718
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22720
[\\/]* | ?:[\\/]* ) # Absolute path.
22721
ac_srcdir=$srcdir$ac_dir_suffix;
22722
ac_top_srcdir=$srcdir ;;
22723
*) # Relative path.
22724
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22725
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22728
# Do not use `cd foo && pwd` to compute absolute paths, because
22729
# the directories may not exist.
22731
.) ac_abs_builddir="$ac_dir";;
22734
.) ac_abs_builddir=`pwd`;;
22735
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22736
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22739
case $ac_abs_builddir in
22740
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22742
case ${ac_top_builddir}. in
22743
.) ac_abs_top_builddir=$ac_abs_builddir;;
22744
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22745
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22748
case $ac_abs_builddir in
22749
.) ac_abs_srcdir=$ac_srcdir;;
22752
.) ac_abs_srcdir=$ac_abs_builddir;;
22753
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22754
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22757
case $ac_abs_builddir in
22758
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22760
case $ac_top_srcdir in
22761
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22762
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22763
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22769
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22770
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22773
# Let's still pretend it is `configure' which instantiates (i.e., don't
22774
# use $as_me), people would be surprised to read:
22775
# /* config.h. Generated by config.status. */
22776
if test x"$ac_file" = x-; then
22779
configure_input="$ac_file. "
22781
configure_input=$configure_input"Generated from `echo $ac_file_in |
22782
sed 's,.*/,,'` by configure."
22784
# First look for the input files in the build tree, otherwise in the
22786
ac_file_inputs=`IFS=:
22787
for f in $ac_file_in; do
22789
-) echo $tmp/stdin ;;
22791
# Absolute (can't be DOS-style, as IFS=:)
22792
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22793
echo "$as_me: error: cannot find input file: $f" >&2;}
22794
{ (exit 1); exit 1; }; }
22797
if test -f "$f"; then
22800
elif test -f "$srcdir/$f"; then
22805
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22806
echo "$as_me: error: cannot find input file: $f" >&2;}
22807
{ (exit 1); exit 1; }; }
22810
done` || { (exit 1); exit 1; }
22812
if test x"$ac_file" != x-; then
22813
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22814
echo "$as_me: creating $ac_file" >&6;}
22818
cat >>$CONFIG_STATUS <<_ACEOF
22822
cat >>$CONFIG_STATUS <<\_ACEOF
22824
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22825
s,@configure_input@,$configure_input,;t t
22826
s,@srcdir@,$ac_srcdir,;t t
22827
s,@abs_srcdir@,$ac_abs_srcdir,;t t
22828
s,@top_srcdir@,$ac_top_srcdir,;t t
22829
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22830
s,@builddir@,$ac_builddir,;t t
22831
s,@abs_builddir@,$ac_abs_builddir,;t t
22832
s,@top_builddir@,$ac_top_builddir,;t t
22833
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22834
s,@INSTALL@,$ac_INSTALL,;t t
22835
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22837
if test x"$ac_file" != x-; then
22838
mv $tmp/out $ac_file
22846
cat >>$CONFIG_STATUS <<\_ACEOF
22849
# CONFIG_HEADER section.
22852
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22853
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22855
# ac_d sets the value in "#define NAME VALUE" lines.
22856
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22857
ac_dB='[ ].*$,\1#\2'
22860
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22861
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22862
ac_uB='$,\1#\2define\3'
22866
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22867
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22869
- | *:- | *:-:* ) # input from stdin
22871
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22872
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22873
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22874
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22875
* ) ac_file_in=$ac_file.in ;;
22878
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22879
echo "$as_me: creating $ac_file" >&6;}
22881
# First look for the input files in the build tree, otherwise in the
22883
ac_file_inputs=`IFS=:
22884
for f in $ac_file_in; do
22886
-) echo $tmp/stdin ;;
22888
# Absolute (can't be DOS-style, as IFS=:)
22889
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22890
echo "$as_me: error: cannot find input file: $f" >&2;}
22891
{ (exit 1); exit 1; }; }
22892
# Do quote $f, to prevent DOS paths from being IFS'd.
22895
if test -f "$f"; then
22898
elif test -f "$srcdir/$f"; then
22903
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22904
echo "$as_me: error: cannot find input file: $f" >&2;}
22905
{ (exit 1); exit 1; }; }
22908
done` || { (exit 1); exit 1; }
22909
# Remove the trailing spaces.
22910
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22914
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22915
# `conftest.undefs', that substitutes the proper values into
22916
# config.h.in to produce config.h. The first handles `#define'
22917
# templates, and the second `#undef' templates.
22918
# And first: Protect against being on the right side of a sed subst in
22919
# config.status. Protect against being in an unquoted here document
22920
# in config.status.
22921
rm -f conftest.defines conftest.undefs
22922
# Using a here document instead of a string reduces the quoting nightmare.
22923
# Putting comments in sed scripts is not portable.
22925
# `end' is used to avoid that the second main sed command (meant for
22926
# 0-ary CPP macros) applies to n-ary macro definitions.
22927
# See the Autoconf documentation for `clear'.
22928
cat >confdef2sed.sed <<\_ACEOF
22933
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22935
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22938
# If some macros were called several times there might be several times
22939
# the same #defines, which is useless. Nevertheless, we may not want to
22940
# sort them, since we want the *last* AC-DEFINE to be honored.
22941
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22942
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22943
rm -f confdef2sed.sed
22945
# This sed command replaces #undef with comments. This is necessary, for
22946
# example, in the case of _POSIX_SOURCE, which is predefined and required
22947
# on some systems where configure will not decide to define it.
22948
cat >>conftest.undefs <<\_ACEOF
22949
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22952
# Break up conftest.defines because some shells have a limit on the size
22953
# of here documents, and old seds have small limits too (100 cmds).
22954
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22955
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22956
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22957
echo ' :' >>$CONFIG_STATUS
22958
rm -f conftest.tail
22959
while grep . conftest.defines >/dev/null
22961
# Write a limited-size here document to $tmp/defines.sed.
22962
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22963
# Speed up: don't consider the non `#define' lines.
22964
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22965
# Work around the forget-to-reset-the-flag bug.
22966
echo 't clr' >>$CONFIG_STATUS
22967
echo ': clr' >>$CONFIG_STATUS
22968
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22970
sed -f $tmp/defines.sed $tmp/in >$tmp/out
22972
mv $tmp/out $tmp/in
22974
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22975
rm -f conftest.defines
22976
mv conftest.tail conftest.defines
22978
rm -f conftest.defines
22979
echo ' fi # grep' >>$CONFIG_STATUS
22980
echo >>$CONFIG_STATUS
22982
# Break up conftest.undefs because some shells have a limit on the size
22983
# of here documents, and old seds have small limits too (100 cmds).
22984
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22985
rm -f conftest.tail
22986
while grep . conftest.undefs >/dev/null
22988
# Write a limited-size here document to $tmp/undefs.sed.
22989
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22990
# Speed up: don't consider the non `#undef'
22991
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22992
# Work around the forget-to-reset-the-flag bug.
22993
echo 't clr' >>$CONFIG_STATUS
22994
echo ': clr' >>$CONFIG_STATUS
22995
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22997
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22999
mv $tmp/out $tmp/in
23001
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23002
rm -f conftest.undefs
23003
mv conftest.tail conftest.undefs
23005
rm -f conftest.undefs
23007
cat >>$CONFIG_STATUS <<\_ACEOF
23008
# Let's still pretend it is `configure' which instantiates (i.e., don't
23009
# use $as_me), people would be surprised to read:
23010
# /* config.h. Generated by config.status. */
23011
if test x"$ac_file" = x-; then
23012
echo "/* Generated by configure. */" >$tmp/config.h
23014
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23016
cat $tmp/in >>$tmp/config.h
23018
if test x"$ac_file" != x-; then
23019
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23020
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23021
echo "$as_me: $ac_file is unchanged" >&6;}
23023
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23024
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23025
X"$ac_file" : 'X\(//\)[^/]' \| \
23026
X"$ac_file" : 'X\(//\)$' \| \
23027
X"$ac_file" : 'X\(/\)' \| \
23028
. : '\(.\)' 2>/dev/null ||
23030
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23031
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23032
/^X\(\/\/\)$/{ s//\1/; q; }
23033
/^X\(\/\).*/{ s//\1/; q; }
23035
{ if $as_mkdir_p; then
23040
while test ! -d "$as_dir"; do
23041
as_dirs="$as_dir $as_dirs"
23042
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23043
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23044
X"$as_dir" : 'X\(//\)[^/]' \| \
23045
X"$as_dir" : 'X\(//\)$' \| \
23046
X"$as_dir" : 'X\(/\)' \| \
23047
. : '\(.\)' 2>/dev/null ||
23049
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23050
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23051
/^X\(\/\/\)$/{ s//\1/; q; }
23052
/^X\(\/\).*/{ s//\1/; q; }
23055
test ! -n "$as_dirs" || mkdir $as_dirs
23056
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23057
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23058
{ (exit 1); exit 1; }; }; }
23061
mv $tmp/config.h $ac_file
23065
rm -f $tmp/config.h
23067
# Compute $ac_file's index in $config_headers.
23069
for _am_header in $config_headers :; do
23070
case $_am_header in
23071
$ac_file | $ac_file:* )
23074
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
23077
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23078
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23079
X$ac_file : 'X\(//\)[^/]' \| \
23080
X$ac_file : 'X\(//\)$' \| \
23081
X$ac_file : 'X\(/\)' \| \
23082
. : '\(.\)' 2>/dev/null ||
23084
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23085
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23086
/^X\(\/\/\)$/{ s//\1/; q; }
23087
/^X\(\/\).*/{ s//\1/; q; }
23088
s/.*/./; q'`/stamp-h$_am_stamp_count
23091
cat >>$CONFIG_STATUS <<\_ACEOF
23094
# CONFIG_COMMANDS section.
23096
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23097
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23098
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23099
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23100
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23101
X"$ac_dest" : 'X\(//\)[^/]' \| \
23102
X"$ac_dest" : 'X\(//\)$' \| \
23103
X"$ac_dest" : 'X\(/\)' \| \
23104
. : '\(.\)' 2>/dev/null ||
23106
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23107
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23108
/^X\(\/\/\)$/{ s//\1/; q; }
23109
/^X\(\/\).*/{ s//\1/; q; }
23111
{ if $as_mkdir_p; then
23116
while test ! -d "$as_dir"; do
23117
as_dirs="$as_dir $as_dirs"
23118
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23119
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23120
X"$as_dir" : 'X\(//\)[^/]' \| \
23121
X"$as_dir" : 'X\(//\)$' \| \
23122
X"$as_dir" : 'X\(/\)' \| \
23123
. : '\(.\)' 2>/dev/null ||
23125
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23126
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23127
/^X\(\/\/\)$/{ s//\1/; q; }
23128
/^X\(\/\).*/{ s//\1/; q; }
23131
test ! -n "$as_dirs" || mkdir $as_dirs
23132
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23133
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23134
{ (exit 1); exit 1; }; }; }
23138
if test "$ac_dir" != .; then
23139
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23140
# A "../" for each directory in $ac_dir_suffix.
23141
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23143
ac_dir_suffix= ac_top_builddir=
23147
.) # No --srcdir option. We are building in place.
23149
if test -z "$ac_top_builddir"; then
23152
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23154
[\\/]* | ?:[\\/]* ) # Absolute path.
23155
ac_srcdir=$srcdir$ac_dir_suffix;
23156
ac_top_srcdir=$srcdir ;;
23157
*) # Relative path.
23158
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23159
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23162
# Do not use `cd foo && pwd` to compute absolute paths, because
23163
# the directories may not exist.
23165
.) ac_abs_builddir="$ac_dir";;
23168
.) ac_abs_builddir=`pwd`;;
23169
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23170
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23173
case $ac_abs_builddir in
23174
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23176
case ${ac_top_builddir}. in
23177
.) ac_abs_top_builddir=$ac_abs_builddir;;
23178
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23179
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23182
case $ac_abs_builddir in
23183
.) ac_abs_srcdir=$ac_srcdir;;
23186
.) ac_abs_srcdir=$ac_abs_builddir;;
23187
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23188
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23191
case $ac_abs_builddir in
23192
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23194
case $ac_top_srcdir in
23195
.) ac_abs_top_srcdir=$ac_abs_builddir;;
23196
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23197
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23202
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23203
echo "$as_me: executing $ac_dest commands" >&6;}
23205
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23206
# Strip MF so we end up with the name of the file.
23207
mf=`echo "$mf" | sed -e 's/:.*$//'`
23208
# Check whether this is an Automake generated Makefile or not.
23209
# We used to match only the files named `Makefile.in', but
23210
# some people rename them; so instead we look at the file content.
23211
# Grep'ing the first line is not enough: some people post-process
23212
# each Makefile.in and add a new line on top of each file to say so.
23213
# So let's grep whole file.
23214
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23215
dirpart=`(dirname "$mf") 2>/dev/null ||
23216
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23217
X"$mf" : 'X\(//\)[^/]' \| \
23218
X"$mf" : 'X\(//\)$' \| \
23219
X"$mf" : 'X\(/\)' \| \
23220
. : '\(.\)' 2>/dev/null ||
23222
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23223
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23224
/^X\(\/\/\)$/{ s//\1/; q; }
23225
/^X\(\/\).*/{ s//\1/; q; }
23230
# Extract the definition of DEPDIR, am__include, and am__quote
23231
# from the Makefile without running `make'.
23232
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23233
test -z "$DEPDIR" && continue
23234
am__include=`sed -n 's/^am__include = //p' < "$mf"`
23235
test -z "am__include" && continue
23236
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23237
# When using ansi2knr, U may be empty or an underscore; expand it
23238
U=`sed -n 's/^U = //p' < "$mf"`
23239
# Find all dependency output files, they are included files with
23240
# $(DEPDIR) in their names. We invoke sed twice because it is the
23241
# simplest approach to changing $(DEPDIR) to its actual value in the
23243
for file in `sed -n "
23244
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23245
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23246
# Make sure the directory exists.
23247
test -f "$dirpart/$file" && continue
23248
fdir=`(dirname "$file") 2>/dev/null ||
23249
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23250
X"$file" : 'X\(//\)[^/]' \| \
23251
X"$file" : 'X\(//\)$' \| \
23252
X"$file" : 'X\(/\)' \| \
23253
. : '\(.\)' 2>/dev/null ||
23255
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23256
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23257
/^X\(\/\/\)$/{ s//\1/; q; }
23258
/^X\(\/\).*/{ s//\1/; q; }
23260
{ if $as_mkdir_p; then
23261
mkdir -p $dirpart/$fdir
23263
as_dir=$dirpart/$fdir
23265
while test ! -d "$as_dir"; do
23266
as_dirs="$as_dir $as_dirs"
23267
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23268
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23269
X"$as_dir" : 'X\(//\)[^/]' \| \
23270
X"$as_dir" : 'X\(//\)$' \| \
23271
X"$as_dir" : 'X\(/\)' \| \
23272
. : '\(.\)' 2>/dev/null ||
23274
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23275
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23276
/^X\(\/\/\)$/{ s//\1/; q; }
23277
/^X\(\/\).*/{ s//\1/; q; }
23280
test ! -n "$as_dirs" || mkdir $as_dirs
23281
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23282
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23283
{ (exit 1); exit 1; }; }; }
23285
# echo "creating $dirpart/$file"
23286
echo '# dummy' > "$dirpart/$file"
23294
cat >>$CONFIG_STATUS <<\_ACEOF
23296
{ (exit 0); exit 0; }
23298
chmod +x $CONFIG_STATUS
23299
ac_clean_files=$ac_clean_files_save
23302
# configure is writing to config.log, and then calls config.status.
23303
# config.status does its own redirection, appending to config.log.
23304
# Unfortunately, on DOS this fails, as config.log is still kept open
23305
# by configure, so config.status won't be able to write to it; its
23306
# output is simply discarded. So we exec the FD to /dev/null,
23307
# effectively closing config.log, so it can be properly (re)opened and
23308
# appended to by config.status. When coming back to configure, we
23309
# need to make the FD available again.
23310
if test "$no_create" != yes; then
23312
ac_config_status_args=
23313
test "$silent" = yes &&
23314
ac_config_status_args="$ac_config_status_args --quiet"
23316
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23318
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23319
# would make configure fail if this is the last instruction.
23320
$ac_cs_success || { (exit 1); exit 1; }