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
lt_prog_compiler_no_builtin_flag=
9009
if test "$GCC" = yes; then
9010
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9013
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9014
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9015
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9016
echo $ECHO_N "(cached) $ECHO_C" >&6
9018
lt_cv_prog_compiler_rtti_exceptions=no
9019
ac_outfile=conftest.$ac_objext
9020
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9021
lt_compiler_flag="-fno-rtti -fno-exceptions"
9022
# Insert the option either (1) after the last *FLAGS variable, or
9023
# (2) before a word containing "conftest.", or (3) at the end.
9024
# Note that $ac_compile itself does not contain backslashes and begins
9025
# with a dollar sign (not a hyphen), so the echo should work correctly.
9026
# The option is referenced via a variable to avoid confusing sed.
9027
lt_compile=`echo "$ac_compile" | $SED \
9028
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9029
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030
-e 's:$: $lt_compiler_flag:'`
9031
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9032
(eval "$lt_compile" 2>conftest.err)
9034
cat conftest.err >&5
9035
echo "$as_me:__oline__: \$? = $ac_status" >&5
9036
if (exit $ac_status) && test -s "$ac_outfile"; then
9037
# The compiler can only warn and ignore the option if not recognized
9038
# So say no if there are warnings
9039
if test ! -s conftest.err; then
9040
lt_cv_prog_compiler_rtti_exceptions=yes
9046
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9047
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9049
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9050
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9057
lt_prog_compiler_wl=
9058
lt_prog_compiler_pic=
9059
lt_prog_compiler_static=
9061
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9062
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9064
if test "$GCC" = yes; then
9065
lt_prog_compiler_wl='-Wl,'
9066
lt_prog_compiler_static='-static'
9070
# All AIX code is PIC.
9071
if test "$host_cpu" = ia64; then
9072
# AIX 5 now supports IA64 processor
9073
lt_prog_compiler_static='-Bstatic'
9078
# FIXME: we need at least 68020 code to build shared libraries, but
9079
# adding the `-m68020' flag to GCC prevents building anything better,
9081
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9084
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9085
# PIC is the default for these OSes.
9088
mingw* | pw32* | os2*)
9089
# This hack is so that the source file can tell whether it is being
9090
# built for inclusion in a dll (and should export symbols for example).
9091
lt_prog_compiler_pic='-DDLL_EXPORT'
9094
darwin* | rhapsody*)
9095
# PIC is the default on this platform
9096
# Common symbols not allowed in MH_DYLIB files
9097
lt_prog_compiler_pic='-fno-common'
9101
# Just because we use GCC doesn't mean we suddenly get shared libraries
9102
# on systems that don't support them.
9103
lt_prog_compiler_can_build_shared=no
9108
if test -d /usr/nec; then
9109
lt_prog_compiler_pic=-Kconform_pic
9114
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9121
lt_prog_compiler_pic='-fPIC'
9127
lt_prog_compiler_pic='-fPIC'
9131
# PORTME Check for flag to pass linker flags through the system compiler.
9134
lt_prog_compiler_wl='-Wl,'
9135
if test "$host_cpu" = ia64; then
9136
# AIX 5 now supports IA64 processor
9137
lt_prog_compiler_static='-Bstatic'
9139
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9143
mingw* | pw32* | os2*)
9144
# This hack is so that the source file can tell whether it is being
9145
# built for inclusion in a dll (and should export symbols for example).
9146
lt_prog_compiler_pic='-DDLL_EXPORT'
9149
hpux9* | hpux10* | hpux11*)
9150
lt_prog_compiler_wl='-Wl,'
9151
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9158
lt_prog_compiler_pic='+Z'
9161
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9162
lt_prog_compiler_static='${wl}-a ${wl}archive'
9165
irix5* | irix6* | nonstopux*)
9166
lt_prog_compiler_wl='-Wl,'
9167
# PIC (with -KPIC) is the default.
9168
lt_prog_compiler_static='-non_shared'
9172
lt_prog_compiler_pic='-KPIC'
9173
lt_prog_compiler_static='-Bstatic'
9179
lt_prog_compiler_wl='-Wl,'
9180
lt_prog_compiler_pic='-KPIC'
9181
lt_prog_compiler_static='-static'
9184
lt_prog_compiler_wl='-Wl,'
9185
# All Alpha code is PIC.
9186
lt_prog_compiler_static='-non_shared'
9191
osf3* | osf4* | osf5*)
9192
lt_prog_compiler_wl='-Wl,'
9193
# All OSF/1 code is PIC.
9194
lt_prog_compiler_static='-non_shared'
9198
lt_prog_compiler_pic='-Kpic'
9199
lt_prog_compiler_static='-dn'
9203
lt_prog_compiler_wl='-Wl,'
9204
lt_prog_compiler_pic='-KPIC'
9205
lt_prog_compiler_static='-Bstatic'
9209
lt_prog_compiler_wl='-Qoption ld '
9210
lt_prog_compiler_pic='-PIC'
9211
lt_prog_compiler_static='-Bstatic'
9214
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9215
lt_prog_compiler_wl='-Wl,'
9216
lt_prog_compiler_pic='-KPIC'
9217
lt_prog_compiler_static='-Bstatic'
9221
if test -d /usr/nec ;then
9222
lt_prog_compiler_pic='-Kconform_pic'
9223
lt_prog_compiler_static='-Bstatic'
9228
lt_prog_compiler_pic='-pic'
9229
lt_prog_compiler_static='-Bstatic'
9233
lt_prog_compiler_can_build_shared=no
9238
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9239
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9242
# Check to make sure the PIC flag actually works.
9244
if test -n "$lt_prog_compiler_pic"; then
9246
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9247
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9248
if test "${lt_prog_compiler_pic_works+set}" = set; then
9249
echo $ECHO_N "(cached) $ECHO_C" >&6
9251
lt_prog_compiler_pic_works=no
9252
ac_outfile=conftest.$ac_objext
9253
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9254
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9255
# Insert the option either (1) after the last *FLAGS variable, or
9256
# (2) before a word containing "conftest.", or (3) at the end.
9257
# Note that $ac_compile itself does not contain backslashes and begins
9258
# with a dollar sign (not a hyphen), so the echo should work correctly.
9259
# The option is referenced via a variable to avoid confusing sed.
9260
lt_compile=`echo "$ac_compile" | $SED \
9261
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9262
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9263
-e 's:$: $lt_compiler_flag:'`
9264
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9265
(eval "$lt_compile" 2>conftest.err)
9267
cat conftest.err >&5
9268
echo "$as_me:__oline__: \$? = $ac_status" >&5
9269
if (exit $ac_status) && test -s "$ac_outfile"; then
9270
# The compiler can only warn and ignore the option if not recognized
9271
# So say no if there are warnings
9272
if test ! -s conftest.err; then
9273
lt_prog_compiler_pic_works=yes
9279
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9280
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9282
if test x"$lt_prog_compiler_pic_works" = xyes; then
9283
case $lt_prog_compiler_pic in
9285
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9288
lt_prog_compiler_pic=
9289
lt_prog_compiler_can_build_shared=no
9294
# For platforms which do not support PIC, -DPIC is meaningless:
9296
lt_prog_compiler_pic=
9299
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9303
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9304
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9305
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9306
echo $ECHO_N "(cached) $ECHO_C" >&6
9308
lt_cv_prog_compiler_c_o=no
9309
$rm -r conftest 2>/dev/null
9313
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9315
lt_compiler_flag="-o out/conftest2.$ac_objext"
9316
# Insert the option either (1) after the last *FLAGS variable, or
9317
# (2) before a word containing "conftest.", or (3) at the end.
9318
# Note that $ac_compile itself does not contain backslashes and begins
9319
# with a dollar sign (not a hyphen), so the echo should work correctly.
9320
lt_compile=`echo "$ac_compile" | $SED \
9321
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9322
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9323
-e 's:$: $lt_compiler_flag:'`
9324
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9325
(eval "$lt_compile" 2>out/conftest.err)
9327
cat out/conftest.err >&5
9328
echo "$as_me:__oline__: \$? = $ac_status" >&5
9329
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9331
# The compiler can only warn and ignore the option if not recognized
9332
# So say no if there are warnings
9333
if test ! -s out/conftest.err; then
9334
lt_cv_prog_compiler_c_o=yes
9339
# SGI C++ compiler will create directory out/ii_files/ for
9340
# template instantiation
9341
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9342
$rm out/* && rmdir out
9348
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9349
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9352
hard_links="nottested"
9353
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9354
# do not overwrite the value of need_locks provided by the user
9355
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9356
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9359
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9361
ln conftest.a conftest.b 2>&5 || hard_links=no
9362
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9363
echo "$as_me:$LINENO: result: $hard_links" >&5
9364
echo "${ECHO_T}$hard_links" >&6
9365
if test "$hard_links" = no; then
9366
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9367
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9374
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9375
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9378
allow_undefined_flag=
9379
enable_shared_with_static_runtimes=no
9381
archive_expsym_cmds=
9382
old_archive_From_new_cmds=
9383
old_archive_from_expsyms_cmds=
9384
export_dynamic_flag_spec=
9385
whole_archive_flag_spec=
9386
thread_safe_flag_spec=
9387
hardcode_libdir_flag_spec=
9388
hardcode_libdir_flag_spec_ld=
9389
hardcode_libdir_separator=
9392
hardcode_shlibpath_var=unsupported
9393
link_all_deplibs=unknown
9394
hardcode_automatic=no
9397
always_export_symbols=no
9398
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9399
# include_expsyms should be a list of space-separated symbols to be *always*
9400
# included in the symbol list
9402
# exclude_expsyms can be an extended regexp of symbols to exclude
9403
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9404
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9405
# as well as any symbol that contains `d'.
9406
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9407
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9408
# platforms (ab)use it in PIC code, but their linkers get confused if
9409
# the symbol is explicitly referenced. Since portable code cannot
9410
# rely on this symbol name, it's probably fine to never include it in
9411
# preloaded symbol tables.
9412
extract_expsyms_cmds=
9415
cygwin* | mingw* | pw32*)
9416
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9417
# When not using gcc, we currently assume that we are using
9418
# Microsoft Visual C++.
9419
if test "$GCC" != yes; then
9429
if test "$with_gnu_ld" = yes; then
9430
# If archive_cmds runs LD, not CC, wlarc should be empty
9433
# See if GNU ld supports shared libraries.
9435
aix3* | aix4* | aix5*)
9436
# On AIX/PPC, the GNU linker is very broken
9437
if test "$host_cpu" != ia64; then
9441
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9442
*** to be unable to reliably create shared libraries on AIX.
9443
*** Therefore, libtool is disabling shared libraries support. If you
9444
*** really care for shared libraries, you may want to modify your PATH
9445
*** so that a non-GNU linker is found, and then restart.
9452
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)'
9453
hardcode_libdir_flag_spec='-L$libdir'
9454
hardcode_minus_L=yes
9456
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9457
# that the semantics of dynamic libraries on AmigaOS, at least up
9458
# to version 4, is to share data among multiple programs linked
9459
# with the same dynamic library. Since this doesn't match the
9460
# behavior of shared libraries on other platforms, we can't use
9466
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9467
allow_undefined_flag=unsupported
9468
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9469
# support --undefined. This deserves some investigation. FIXME
9470
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9476
cygwin* | mingw* | pw32*)
9477
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9478
# as there is no search path for DLLs.
9479
hardcode_libdir_flag_spec='-L$libdir'
9480
allow_undefined_flag=unsupported
9481
always_export_symbols=no
9482
enable_shared_with_static_runtimes=yes
9483
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9485
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9486
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9487
# If the export-symbols file already is a .def file (1st line
9488
# is EXPORTS), use it as is; otherwise, prepend...
9489
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9490
cp $export_symbols $output_objdir/$soname.def;
9492
echo EXPORTS > $output_objdir/$soname.def;
9493
cat $export_symbols >> $output_objdir/$soname.def;
9495
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9501
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
9502
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9503
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9506
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9512
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9516
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9517
*** create shared libraries on Solaris systems. Therefore, libtool
9518
*** is disabling shared libraries support. We urge you to upgrade GNU
9519
*** binutils to release 2.9.1 or newer. Another option is to modify
9520
*** your PATH or compiler configuration so that the native linker is
9521
*** used, and then restart.
9524
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9525
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9533
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9536
hardcode_shlibpath_var=no
9540
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9541
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542
archive_cmds="$tmp_archive_cmds"
9543
supports_anon_versioning=no
9544
case `$LD -v 2>/dev/null` in
9545
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9546
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9547
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9548
*\ 2.11.*) ;; # other 2.11 versions
9549
*) supports_anon_versioning=yes ;;
9551
if test $supports_anon_versioning = yes; then
9552
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9553
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9554
$echo "local: *; };" >> $output_objdir/$libname.ver~
9555
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9557
archive_expsym_cmds="$tmp_archive_cmds"
9566
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9567
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9575
if test "$ld_shlibs" = yes; then
9576
runpath_var=LD_RUN_PATH
9577
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9578
export_dynamic_flag_spec='${wl}--export-dynamic'
9579
# ancient GNU ld didn't support --whole-archive et. al.
9580
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9581
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9583
whole_archive_flag_spec=
9587
# PORTME fill in a description of your system's linker (not GNU ld)
9590
allow_undefined_flag=unsupported
9591
always_export_symbols=yes
9592
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'
9593
# Note: this linker hardcodes the directories in LIBPATH if there
9594
# are no directories specified by -L.
9595
hardcode_minus_L=yes
9596
if test "$GCC" = yes && test -z "$link_static_flag"; then
9597
# Neither direct hardcoding nor static linking is supported with a
9599
hardcode_direct=unsupported
9604
if test "$host_cpu" = ia64; then
9605
# On IA64, the linker does run time linking by default, so we don't
9606
# have to do anything special.
9607
aix_use_runtimelinking=no
9608
exp_sym_flag='-Bexport'
9611
# If we're using GNU nm, then we don't want the "-C" option.
9612
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9613
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9614
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'
9616
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'
9618
aix_use_runtimelinking=no
9620
# Test if we are trying to use run time linking or normal
9621
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9622
# need to do runtime linking.
9623
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9624
for ld_flag in $LDFLAGS; do
9625
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9626
aix_use_runtimelinking=yes
9632
exp_sym_flag='-bexport'
9633
no_entry_flag='-bnoentry'
9636
# When large executables or shared objects are built, AIX ld can
9637
# have problems creating the table of contents. If linking a library
9638
# or program results in "error TOC overflow" add -mminimal-toc to
9639
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9640
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644
hardcode_libdir_separator=':'
9645
link_all_deplibs=yes
9647
if test "$GCC" = yes; then
9648
case $host_os in aix4.012|aix4.012.*)
9649
# We only want to do this on AIX 4.2 and lower, the check
9650
# below for broken collect2 doesn't work under 4.3+
9651
collect2name=`${CC} -print-prog-name=collect2`
9652
if test -f "$collect2name" && \
9653
strings "$collect2name" | grep resolve_lib_name >/dev/null
9655
# We have reworked collect2
9658
# We have old collect2
9659
hardcode_direct=unsupported
9660
# It fails to find uninstalled libraries when the uninstalled
9661
# path is not listed in the libpath. Setting hardcode_minus_L
9662
# to unsupported forces relinking
9663
hardcode_minus_L=yes
9664
hardcode_libdir_flag_spec='-L$libdir'
9665
hardcode_libdir_separator=
9668
shared_flag='-shared'
9671
if test "$host_cpu" = ia64; then
9672
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9673
# chokes on -Wl,-G. The following line is correct:
9676
if test "$aix_use_runtimelinking" = yes; then
9677
shared_flag='${wl}-G'
9679
shared_flag='${wl}-bM:SRE'
9684
# It seems that -bexpall does not export symbols beginning with
9685
# underscore (_), so it is better to generate a list of symbols to export.
9686
always_export_symbols=yes
9687
if test "$aix_use_runtimelinking" = yes; then
9688
# Warning - without using the other runtime loading flags (-brtl),
9689
# -berok will link without error, but may produce a broken library.
9690
allow_undefined_flag='-berok'
9691
# Determine the default libpath from the value encoded in an empty executable.
9692
cat >conftest.$ac_ext <<_ACEOF
9695
cat confdefs.h >>conftest.$ac_ext
9696
cat >>conftest.$ac_ext <<_ACEOF
9697
/* end confdefs.h. */
9707
rm -f conftest.$ac_objext conftest$ac_exeext
9708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709
(eval $ac_link) 2>conftest.er1
9711
grep -v '^ *+' conftest.er1 >conftest.err
9713
cat conftest.err >&5
9714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715
(exit $ac_status); } &&
9716
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721
(exit $ac_status); }; } &&
9722
{ ac_try='test -s conftest$ac_exeext'
9723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727
(exit $ac_status); }; }; then
9729
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9731
# Check for a 64-bit object if we didn't find anything.
9732
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; }
9735
echo "$as_me: failed program was:" >&5
9736
sed 's/^/| /' conftest.$ac_ext >&5
9739
rm -f conftest.err conftest.$ac_objext \
9740
conftest$ac_exeext conftest.$ac_ext
9741
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9743
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9744
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"
9746
if test "$host_cpu" = ia64; then
9747
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9748
allow_undefined_flag="-z nodefs"
9749
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"
9751
# Determine the default libpath from the value encoded in an empty executable.
9752
cat >conftest.$ac_ext <<_ACEOF
9755
cat confdefs.h >>conftest.$ac_ext
9756
cat >>conftest.$ac_ext <<_ACEOF
9757
/* end confdefs.h. */
9767
rm -f conftest.$ac_objext conftest$ac_exeext
9768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769
(eval $ac_link) 2>conftest.er1
9771
grep -v '^ *+' conftest.er1 >conftest.err
9773
cat conftest.err >&5
9774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775
(exit $ac_status); } &&
9776
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781
(exit $ac_status); }; } &&
9782
{ ac_try='test -s conftest$ac_exeext'
9783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787
(exit $ac_status); }; }; then
9789
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9791
# Check for a 64-bit object if we didn't find anything.
9792
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; }
9795
echo "$as_me: failed program was:" >&5
9796
sed 's/^/| /' conftest.$ac_ext >&5
9799
rm -f conftest.err conftest.$ac_objext \
9800
conftest$ac_exeext conftest.$ac_ext
9801
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9803
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9804
# Warning - without using the other run time loading flags,
9805
# -berok will link without error, but may produce a broken library.
9806
no_undefined_flag=' ${wl}-bernotok'
9807
allow_undefined_flag=' ${wl}-berok'
9808
# -bexpall does not export symbols beginning with underscore (_)
9809
always_export_symbols=yes
9810
# Exported symbols can be pulled into shared objects from archives
9811
whole_archive_flag_spec=' '
9812
archive_cmds_need_lc=yes
9813
# This is similar to how AIX traditionally builds it's shared libraries.
9814
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'
9820
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)'
9821
hardcode_libdir_flag_spec='-L$libdir'
9822
hardcode_minus_L=yes
9823
# see comment about different semantics on the GNU ld section
9828
export_dynamic_flag_spec=-rdynamic
9831
cygwin* | mingw* | pw32*)
9832
# When not using gcc, we currently assume that we are using
9833
# Microsoft Visual C++.
9834
# hardcode_libdir_flag_spec is actually meaningless, as there is
9835
# no search path for DLLs.
9836
hardcode_libdir_flag_spec=' '
9837
allow_undefined_flag=unsupported
9838
# Tell ltmain to make .lib files, not .a files.
9840
# Tell ltmain to make .dll files, not .so files.
9842
# FIXME: Setting linknames here is a bad hack.
9843
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9844
# The linker will automatically build a .lib file if we build a DLL.
9845
old_archive_From_new_cmds='true'
9846
# FIXME: Should let the user specify the lib program.
9847
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9848
fix_srcfile_path='`cygpath -w "$srcfile"`'
9849
enable_shared_with_static_runtimes=yes
9852
darwin* | rhapsody*)
9853
if test "$GXX" = yes ; then
9854
archive_cmds_need_lc=no
9856
rhapsody* | darwin1.[012])
9857
allow_undefined_flag='-undefined suppress'
9860
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9861
allow_undefined_flag='-flat_namespace -undefined suppress'
9863
case ${MACOSX_DEPLOYMENT_TARGET} in
9865
allow_undefined_flag='-flat_namespace -undefined suppress'
9868
allow_undefined_flag='-undefined dynamic_lookup'
9874
lt_int_apple_cc_single_mod=no
9875
output_verbose_link_cmd='echo'
9876
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9877
lt_int_apple_cc_single_mod=yes
9879
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9880
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9882
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'
9884
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9885
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9886
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9887
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}'
9889
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}'
9891
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}'
9893
hardcode_automatic=yes
9894
hardcode_shlibpath_var=unsupported
9895
whole_archive_flag_spec='-all_load $convenience'
9896
link_all_deplibs=yes
9903
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904
hardcode_libdir_flag_spec='-L$libdir'
9905
hardcode_shlibpath_var=no
9912
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9913
# support. Future versions do this automatically, but an explicit c++rt0.o
9914
# does not break anything, and helps significantly (at the cost of a little
9917
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9918
hardcode_libdir_flag_spec='-R$libdir'
9920
hardcode_shlibpath_var=no
9923
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9925
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9927
hardcode_minus_L=yes
9928
hardcode_shlibpath_var=no
9931
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9932
freebsd* | kfreebsd*-gnu)
9933
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9934
hardcode_libdir_flag_spec='-R$libdir'
9936
hardcode_shlibpath_var=no
9940
if test "$GCC" = yes; then
9941
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'
9943
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'
9945
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9946
hardcode_libdir_separator=:
9949
# hardcode_minus_L: Not really in the search PATH,
9950
# but as the default location of the library.
9951
hardcode_minus_L=yes
9952
export_dynamic_flag_spec='${wl}-E'
9956
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9959
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9962
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9968
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9971
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9975
if test "$with_gnu_ld" = no; then
9978
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9979
hardcode_libdir_flag_spec_ld='+b $libdir'
9980
hardcode_libdir_separator=:
9982
hardcode_shlibpath_var=no
9985
hardcode_libdir_flag_spec='-L$libdir'
9987
hardcode_shlibpath_var=no
9989
# hardcode_minus_L: Not really in the search PATH,
9990
# but as the default location of the library.
9991
hardcode_minus_L=yes
9994
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995
hardcode_libdir_separator=:
9997
export_dynamic_flag_spec='${wl}-E'
9999
# hardcode_minus_L: Not really in the search PATH,
10000
# but as the default location of the library.
10001
hardcode_minus_L=yes
10007
irix5* | irix6* | nonstopux*)
10008
if test "$GCC" = yes; then
10009
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'
10011
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'
10012
hardcode_libdir_flag_spec_ld='-rpath $libdir'
10014
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10015
hardcode_libdir_separator=:
10016
link_all_deplibs=yes
10019
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10020
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10021
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10023
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10025
hardcode_libdir_flag_spec='-R$libdir'
10026
hardcode_direct=yes
10027
hardcode_shlibpath_var=no
10031
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032
hardcode_direct=yes
10033
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034
hardcode_libdir_separator=:
10035
hardcode_shlibpath_var=no
10039
hardcode_direct=yes
10040
hardcode_shlibpath_var=no
10041
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10042
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10043
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044
export_dynamic_flag_spec='${wl}-E'
10047
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10048
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10049
hardcode_libdir_flag_spec='-R$libdir'
10052
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10053
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10060
hardcode_libdir_flag_spec='-L$libdir'
10061
hardcode_minus_L=yes
10062
allow_undefined_flag=unsupported
10063
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'
10064
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10068
if test "$GCC" = yes; then
10069
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10070
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'
10072
allow_undefined_flag=' -expect_unresolved \*'
10073
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'
10075
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10076
hardcode_libdir_separator=:
10079
osf4* | osf5*) # as osf3* with the addition of -msym flag
10080
if test "$GCC" = yes; then
10081
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10082
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'
10083
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085
allow_undefined_flag=' -expect_unresolved \*'
10086
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'
10087
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10088
$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'
10090
# Both c and cxx compiler support -rpath directly
10091
hardcode_libdir_flag_spec='-rpath $libdir'
10093
hardcode_libdir_separator=:
10097
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098
hardcode_shlibpath_var=no
10099
export_dynamic_flag_spec='${wl}-Bexport'
10100
runpath_var=LD_RUN_PATH
10101
hardcode_runpath_var=yes
10105
no_undefined_flag=' -z text'
10106
if test "$GCC" = yes; then
10107
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10108
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10109
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10111
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10113
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10115
hardcode_libdir_flag_spec='-R$libdir'
10116
hardcode_shlibpath_var=no
10118
solaris2.[0-5] | solaris2.[0-5].*) ;;
10119
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
10120
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10122
link_all_deplibs=yes
10126
if test "x$host_vendor" = xsequent; then
10127
# Use $CC to link under sequent, because it throws in some extra .o
10128
# files that make .init and .fini sections work.
10129
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10131
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10133
hardcode_libdir_flag_spec='-L$libdir'
10134
hardcode_direct=yes
10135
hardcode_minus_L=yes
10136
hardcode_shlibpath_var=no
10140
case $host_vendor in
10142
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143
hardcode_direct=yes # is this really true???
10146
## LD is ld it makes a PLAMLIB
10147
## CC just makes a GrossModule.
10148
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10149
reload_cmds='$CC -r -o $output$reload_objs'
10153
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10154
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10157
runpath_var='LD_RUN_PATH'
10158
hardcode_shlibpath_var=no
10162
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163
hardcode_shlibpath_var=no
10164
export_dynamic_flag_spec='-Bexport'
10168
if test -d /usr/nec; then
10169
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170
hardcode_shlibpath_var=no
10171
runpath_var=LD_RUN_PATH
10172
hardcode_runpath_var=yes
10178
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10179
hardcode_direct=yes
10180
hardcode_minus_L=no
10181
hardcode_shlibpath_var=no
10182
hardcode_runpath_var=yes
10183
runpath_var=LD_RUN_PATH
10186
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10187
no_undefined_flag='${wl}-z ${wl}text'
10188
if test "$GCC" = yes; then
10189
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10191
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10193
runpath_var='LD_RUN_PATH'
10194
hardcode_shlibpath_var=no
10198
no_undefined_flag=' -z text'
10199
# $CC -shared without GNU ld will not create a library from C++
10200
# object files and a static libstdc++, better avoid it by now
10201
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10203
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10204
hardcode_libdir_flag_spec=
10205
hardcode_shlibpath_var=no
10206
runpath_var='LD_RUN_PATH'
10210
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211
hardcode_libdir_flag_spec='-L$libdir'
10212
hardcode_shlibpath_var=no
10221
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10222
echo "${ECHO_T}$ld_shlibs" >&6
10223
test "$ld_shlibs" = no && can_build_shared=no
10225
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10226
if test "$GCC" = yes; then
10227
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10231
# Do we need to explicitly link libc?
10233
case "x$archive_cmds_need_lc" in
10235
# Assume -lc should be added
10236
archive_cmds_need_lc=yes
10238
if test "$enable_shared" = yes && test "$GCC" = yes; then
10239
case $archive_cmds in
10241
# FIXME: we may have to deal with multi-command sequences.
10244
# Test whether the compiler implicitly links with -lc since on some
10245
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10246
# to ld, don't add -lc before -lgcc.
10247
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10248
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10250
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10252
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253
(eval $ac_compile) 2>&5
10255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256
(exit $ac_status); } 2>conftest.err; then
10259
libobjs=conftest.$ac_objext
10261
wl=$lt_prog_compiler_wl
10267
lt_save_allow_undefined_flag=$allow_undefined_flag
10268
allow_undefined_flag=
10269
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10270
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273
(exit $ac_status); }
10275
archive_cmds_need_lc=no
10277
archive_cmds_need_lc=yes
10279
allow_undefined_flag=$lt_save_allow_undefined_flag
10281
cat conftest.err 1>&5
10284
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10285
echo "${ECHO_T}$archive_cmds_need_lc" >&6
10292
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10293
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10294
library_names_spec=
10295
libname_spec='lib$name'
10299
postuninstall_cmds=
10303
shlibpath_overrides_runpath=unknown
10305
dynamic_linker="$host_os ld.so"
10306
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10307
if test "$GCC" = yes; then
10308
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10309
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10310
# if the path contains ";" then we assume it to be the separator
10311
# otherwise default to the standard path separator (i.e. ":") - it is
10312
# assumed that no part of a normal pathname contains ";" but that should
10313
# okay in the real world where ";" in dirpaths is itself problematic.
10314
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10316
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10319
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10321
need_lib_prefix=unknown
10322
hardcode_into_libs=no
10324
# when you set need_version to no, make sure it does not cause -set_version
10325
# flags to be left without arguments
10326
need_version=unknown
10331
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10332
shlibpath_var=LIBPATH
10334
# AIX 3 has no versioning support, so we append a major version to the name.
10335
soname_spec='${libname}${release}${shared_ext}$major'
10342
hardcode_into_libs=yes
10343
if test "$host_cpu" = ia64; then
10344
# AIX 5 supports IA64
10345
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10346
shlibpath_var=LD_LIBRARY_PATH
10348
# With GCC up to 2.95.x, collect2 would create an import file
10349
# for dependence libraries. The import file would start with
10350
# the line `#! .'. This would cause the generated library to
10351
# depend on `.', always an invalid library. This was fixed in
10352
# development snapshots of GCC prior to 3.0.
10354
aix4 | aix4.[01] | aix4.[01].*)
10355
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10357
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10360
can_build_shared=no
10364
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10365
# soname into executable. Probably we can add versioning support to
10366
# collect2, so additional links can be useful in future.
10367
if test "$aix_use_runtimelinking" = yes; then
10368
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10369
# instead of lib<name>.a to let people know that these are not
10370
# typical AIX shared libraries.
10371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373
# We preserve .a as extension for shared libraries through AIX4.2
10374
# and later when we are not doing run time linking.
10375
library_names_spec='${libname}${release}.a $libname.a'
10376
soname_spec='${libname}${release}${shared_ext}$major'
10378
shlibpath_var=LIBPATH
10383
library_names_spec='$libname.ixlibrary $libname.a'
10384
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10385
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'
10389
library_names_spec='${libname}${shared_ext}'
10390
dynamic_linker="$host_os ld.so"
10391
shlibpath_var=LIBRARY_PATH
10397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398
soname_spec='${libname}${release}${shared_ext}$major'
10399
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10400
shlibpath_var=LD_LIBRARY_PATH
10401
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10402
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10403
# the default ld.so.conf also contains /usr/contrib/lib and
10404
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10405
# libtool to hard-code these into programs
10408
cygwin* | mingw* | pw32*)
10409
version_type=windows
10414
case $GCC,$host_os in
10415
yes,cygwin* | yes,mingw* | yes,pw32*)
10416
library_names_spec='$libname.dll.a'
10417
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10418
postinstall_cmds='base_file=`basename \${file}`~
10419
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10420
dldir=$destdir/`dirname \$dlpath`~
10421
test -d \$dldir || mkdir -p \$dldir~
10422
$install_prog $dir/$dlname \$dldir/$dlname'
10423
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10424
dlpath=$dir/\$dldll~
10426
shlibpath_overrides_runpath=yes
10430
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10431
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10432
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10435
# MinGW DLLs use traditional 'lib' prefix
10436
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10437
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10438
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10439
# It is most probably a Windows format PATH printed by
10440
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10441
# path with ; separators, and with drive letters. We can handle the
10442
# drive letters (cygwin fileutils understands them), so leave them,
10443
# especially as we might pass files found there to a mingw objdump,
10444
# which wouldn't understand a cygwinified path. Ahh.
10445
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10447
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10451
# pw32 DLLs use 'pw' prefix rather than 'lib'
10452
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10458
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10461
dynamic_linker='Win32 ld.exe'
10462
# FIXME: first we should search . and the directory the executable is in
10466
darwin* | rhapsody*)
10467
dynamic_linker="$host_os dyld"
10468
version_type=darwin
10471
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10472
soname_spec='${libname}${release}${major}$shared_ext'
10473
shlibpath_overrides_runpath=yes
10474
shlibpath_var=DYLD_LIBRARY_PATH
10475
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10476
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10477
if test "$GCC" = yes; then
10478
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"`
10480
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10482
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10490
soname_spec='${libname}${release}${shared_ext}$major'
10491
shlibpath_var=LD_LIBRARY_PATH
10502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10503
soname_spec='${libname}${release}${shared_ext}$major'
10504
shlibpath_var=LD_LIBRARY_PATH
10505
shlibpath_overrides_runpath=no
10506
hardcode_into_libs=yes
10507
dynamic_linker='GNU ld.so'
10511
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10512
version_type=freebsd-$objformat
10513
case $version_type in
10515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10520
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10524
shlibpath_var=LD_LIBRARY_PATH
10527
shlibpath_overrides_runpath=yes
10529
freebsd3.01* | freebsdelf3.01*)
10530
shlibpath_overrides_runpath=yes
10531
hardcode_into_libs=yes
10534
shlibpath_overrides_runpath=no
10535
hardcode_into_libs=yes
10544
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10545
soname_spec='${libname}${release}${shared_ext}$major'
10546
shlibpath_var=LD_LIBRARY_PATH
10547
hardcode_into_libs=yes
10550
hpux9* | hpux10* | hpux11*)
10551
# Give a soname corresponding to the major version so that dld.sl refuses to
10552
# link against other versions.
10556
case "$host_cpu" in
10559
hardcode_into_libs=yes
10560
dynamic_linker="$host_os dld.so"
10561
shlibpath_var=LD_LIBRARY_PATH
10562
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564
soname_spec='${libname}${release}${shared_ext}$major'
10565
if test "X$HPUX_IA64_MODE" = X32; then
10566
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10568
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10570
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10574
hardcode_into_libs=yes
10575
dynamic_linker="$host_os dld.sl"
10576
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10577
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579
soname_spec='${libname}${release}${shared_ext}$major'
10580
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10581
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10585
dynamic_linker="$host_os dld.sl"
10586
shlibpath_var=SHLIB_PATH
10587
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589
soname_spec='${libname}${release}${shared_ext}$major'
10592
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10593
postinstall_cmds='chmod 555 $lib'
10596
irix5* | irix6* | nonstopux*)
10598
nonstopux*) version_type=nonstopux ;;
10600
if test "$lt_cv_prog_gnu_ld" = yes; then
10608
soname_spec='${libname}${release}${shared_ext}$major'
10609
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10611
irix5* | nonstopux*)
10612
libsuff= shlibsuff=
10615
case $LD in # libtool.m4 will add one of these switches to LD
10616
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10617
libsuff= shlibsuff= libmagic=32-bit;;
10618
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10619
libsuff=32 shlibsuff=N32 libmagic=N32;;
10620
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10621
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10622
*) libsuff= shlibsuff= libmagic=never-match;;
10626
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10627
shlibpath_overrides_runpath=no
10628
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10629
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10630
hardcode_into_libs=yes
10633
# No shared lib support for Linux oldld, aout, or coff.
10634
linux*oldld* | linux*aout* | linux*coff*)
10638
# This must be Linux ELF.
10643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644
soname_spec='${libname}${release}${shared_ext}$major'
10645
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10646
shlibpath_var=LD_LIBRARY_PATH
10647
shlibpath_overrides_runpath=no
10648
# This implies no fast_install, which is unacceptable.
10649
# Some rework will be needed to allow for fast_install
10650
# before this can be enabled.
10651
hardcode_into_libs=yes
10653
# Append ld.so.conf contents to the search path
10654
if test -f /etc/ld.so.conf; then
10655
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
10656
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10659
# We used to test for /lib/ld.so.1 and disable shared libraries on
10660
# powerpc, because MkLinux only supported shared libraries with the
10661
# GNU dynamic linker. Since this was broken with cross compilers,
10662
# most powerpc-linux boxes support dynamic linking these days and
10663
# people can always --disable-shared, the test was removed, and we
10664
# assume the GNU/Linux dynamic linker is in use.
10665
dynamic_linker='GNU/Linux ld.so'
10672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10673
soname_spec='${libname}${release}${shared_ext}$major'
10674
shlibpath_var=LD_LIBRARY_PATH
10675
shlibpath_overrides_runpath=no
10676
hardcode_into_libs=yes
10677
dynamic_linker='NetBSD ld.elf_so'
10684
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10685
soname_spec='${libname}${release}${shared_ext}$major'
10686
shlibpath_var=LD_LIBRARY_PATH
10687
shlibpath_overrides_runpath=no
10688
hardcode_into_libs=yes
10689
dynamic_linker='GNU ld.so'
10696
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10699
dynamic_linker='NetBSD (a.out) ld.so'
10701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10702
soname_spec='${libname}${release}${shared_ext}$major'
10703
dynamic_linker='NetBSD ld.elf_so'
10705
shlibpath_var=LD_LIBRARY_PATH
10706
shlibpath_overrides_runpath=yes
10707
hardcode_into_libs=yes
10712
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713
shlibpath_var=LD_LIBRARY_PATH
10714
shlibpath_overrides_runpath=yes
10721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722
soname_spec='${libname}${release}${shared_ext}$major'
10723
shlibpath_var=LD_LIBRARY_PATH
10724
shlibpath_overrides_runpath=yes
10731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10732
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10733
shlibpath_var=LD_LIBRARY_PATH
10734
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10736
openbsd2.[89] | openbsd2.[89].*)
10737
shlibpath_overrides_runpath=no
10740
shlibpath_overrides_runpath=yes
10744
shlibpath_overrides_runpath=yes
10749
libname_spec='$name'
10752
library_names_spec='$libname${shared_ext} $libname.a'
10753
dynamic_linker='OS/2 ld.exe'
10754
shlibpath_var=LIBPATH
10757
osf3* | osf4* | osf5*)
10761
soname_spec='${libname}${release}${shared_ext}$major'
10762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763
shlibpath_var=LD_LIBRARY_PATH
10764
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10765
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10770
soname_spec='${libname}${release}${shared_ext}$major'
10771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772
shlibpath_var=LD_LIBRARY_PATH
10779
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780
soname_spec='${libname}${release}${shared_ext}$major'
10781
shlibpath_var=LD_LIBRARY_PATH
10782
shlibpath_overrides_runpath=yes
10783
hardcode_into_libs=yes
10784
# ldd complains unless libraries are executable
10785
postinstall_cmds='chmod +x $lib'
10790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10791
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10792
shlibpath_var=LD_LIBRARY_PATH
10793
shlibpath_overrides_runpath=yes
10794
if test "$with_gnu_ld" = yes; then
10800
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803
soname_spec='${libname}${release}${shared_ext}$major'
10804
shlibpath_var=LD_LIBRARY_PATH
10805
case $host_vendor in
10807
shlibpath_overrides_runpath=no
10809
export_dynamic_flag_spec='${wl}-Blargedynsym'
10810
runpath_var=LD_RUN_PATH
10818
shlibpath_overrides_runpath=no
10819
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10825
if test -d /usr/nec ;then
10827
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10828
soname_spec='$libname${shared_ext}.$major'
10829
shlibpath_var=LD_LIBRARY_PATH
10835
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836
soname_spec='${libname}${release}${shared_ext}$major'
10837
shlibpath_var=LD_LIBRARY_PATH
10844
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10845
echo "${ECHO_T}$dynamic_linker" >&6
10846
test "$dynamic_linker" = no && can_build_shared=no
10848
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10849
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10851
if test -n "$hardcode_libdir_flag_spec" || \
10852
test -n "$runpath_var " || \
10853
test "X$hardcode_automatic"="Xyes" ; then
10855
# We can hardcode non-existant directories.
10856
if test "$hardcode_direct" != no &&
10857
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10858
# have to relink, otherwise we might link with an installed library
10859
# when we should be linking with a yet-to-be-installed one
10860
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10861
test "$hardcode_minus_L" != no; then
10862
# Linking always hardcodes the temporary library directory.
10863
hardcode_action=relink
10865
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10866
hardcode_action=immediate
10869
# We cannot hardcode anything, or else we can only hardcode existing
10871
hardcode_action=unsupported
10873
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10874
echo "${ECHO_T}$hardcode_action" >&6
10876
if test "$hardcode_action" = relink; then
10877
# Fast installation is not supported
10878
enable_fast_install=no
10879
elif test "$shlibpath_overrides_runpath" = yes ||
10880
test "$enable_shared" = no; then
10881
# Fast installation is not necessary
10882
enable_fast_install=needless
10887
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10888
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10889
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10890
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10891
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10892
echo "$as_me:$LINENO: result: yes" >&5
10893
echo "${ECHO_T}yes" >&6
10895
# FIXME - insert some real tests, host_os isn't really good enough
10898
if test -n "$STRIP" ; then
10899
striplib="$STRIP -x"
10900
echo "$as_me:$LINENO: result: yes" >&5
10901
echo "${ECHO_T}yes" >&6
10903
echo "$as_me:$LINENO: result: no" >&5
10904
echo "${ECHO_T}no" >&6
10908
echo "$as_me:$LINENO: result: no" >&5
10909
echo "${ECHO_T}no" >&6
10914
if test "x$enable_dlopen" != xyes; then
10915
enable_dlopen=unknown
10916
enable_dlopen_self=unknown
10917
enable_dlopen_self_static=unknown
10924
lt_cv_dlopen="load_add_on"
10926
lt_cv_dlopen_self=yes
10930
lt_cv_dlopen="LoadLibrary"
10935
lt_cv_dlopen="dlopen"
10940
# if libdl is installed we need to link against it
10941
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10942
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10943
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10944
echo $ECHO_N "(cached) $ECHO_C" >&6
10946
ac_check_lib_save_LIBS=$LIBS
10948
cat >conftest.$ac_ext <<_ACEOF
10951
cat confdefs.h >>conftest.$ac_ext
10952
cat >>conftest.$ac_ext <<_ACEOF
10953
/* end confdefs.h. */
10955
/* Override any gcc2 internal prototype to avoid an error. */
10959
/* We use char because int might match the return type of a gcc2
10960
builtin and then its argument prototype would still apply. */
10970
rm -f conftest.$ac_objext conftest$ac_exeext
10971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972
(eval $ac_link) 2>conftest.er1
10974
grep -v '^ *+' conftest.er1 >conftest.err
10976
cat conftest.err >&5
10977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978
(exit $ac_status); } &&
10979
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981
(eval $ac_try) 2>&5
10983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984
(exit $ac_status); }; } &&
10985
{ ac_try='test -s conftest$ac_exeext'
10986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987
(eval $ac_try) 2>&5
10989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990
(exit $ac_status); }; }; then
10991
ac_cv_lib_dl_dlopen=yes
10993
echo "$as_me: failed program was:" >&5
10994
sed 's/^/| /' conftest.$ac_ext >&5
10996
ac_cv_lib_dl_dlopen=no
10998
rm -f conftest.err conftest.$ac_objext \
10999
conftest$ac_exeext conftest.$ac_ext
11000
LIBS=$ac_check_lib_save_LIBS
11002
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11003
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11004
if test $ac_cv_lib_dl_dlopen = yes; then
11005
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11008
lt_cv_dlopen="dyld"
11010
lt_cv_dlopen_self=yes
11017
echo "$as_me:$LINENO: checking for shl_load" >&5
11018
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11019
if test "${ac_cv_func_shl_load+set}" = set; then
11020
echo $ECHO_N "(cached) $ECHO_C" >&6
11022
cat >conftest.$ac_ext <<_ACEOF
11025
cat confdefs.h >>conftest.$ac_ext
11026
cat >>conftest.$ac_ext <<_ACEOF
11027
/* end confdefs.h. */
11028
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11029
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11030
#define shl_load innocuous_shl_load
11032
/* System header to define __stub macros and hopefully few prototypes,
11033
which can conflict with char shl_load (); below.
11034
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035
<limits.h> exists even on freestanding compilers. */
11038
# include <limits.h>
11040
# include <assert.h>
11045
/* Override any gcc2 internal prototype to avoid an error. */
11050
/* We use char because int might match the return type of a gcc2
11051
builtin and then its argument prototype would still apply. */
11053
/* The GNU C library defines this for functions which it implements
11054
to always fail with ENOSYS. Some functions are actually named
11055
something starting with __ and the normal name is an alias. */
11056
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11059
char (*f) () = shl_load;
11068
return f != shl_load;
11073
rm -f conftest.$ac_objext conftest$ac_exeext
11074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075
(eval $ac_link) 2>conftest.er1
11077
grep -v '^ *+' conftest.er1 >conftest.err
11079
cat conftest.err >&5
11080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081
(exit $ac_status); } &&
11082
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11083
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084
(eval $ac_try) 2>&5
11086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087
(exit $ac_status); }; } &&
11088
{ ac_try='test -s conftest$ac_exeext'
11089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090
(eval $ac_try) 2>&5
11092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093
(exit $ac_status); }; }; then
11094
ac_cv_func_shl_load=yes
11096
echo "$as_me: failed program was:" >&5
11097
sed 's/^/| /' conftest.$ac_ext >&5
11099
ac_cv_func_shl_load=no
11101
rm -f conftest.err conftest.$ac_objext \
11102
conftest$ac_exeext conftest.$ac_ext
11104
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11105
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11106
if test $ac_cv_func_shl_load = yes; then
11107
lt_cv_dlopen="shl_load"
11109
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11110
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11111
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11112
echo $ECHO_N "(cached) $ECHO_C" >&6
11114
ac_check_lib_save_LIBS=$LIBS
11116
cat >conftest.$ac_ext <<_ACEOF
11119
cat confdefs.h >>conftest.$ac_ext
11120
cat >>conftest.$ac_ext <<_ACEOF
11121
/* end confdefs.h. */
11123
/* Override any gcc2 internal prototype to avoid an error. */
11127
/* We use char because int might match the return type of a gcc2
11128
builtin and then its argument prototype would still apply. */
11138
rm -f conftest.$ac_objext conftest$ac_exeext
11139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11140
(eval $ac_link) 2>conftest.er1
11142
grep -v '^ *+' conftest.er1 >conftest.err
11144
cat conftest.err >&5
11145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146
(exit $ac_status); } &&
11147
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149
(eval $ac_try) 2>&5
11151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152
(exit $ac_status); }; } &&
11153
{ ac_try='test -s conftest$ac_exeext'
11154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155
(eval $ac_try) 2>&5
11157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158
(exit $ac_status); }; }; then
11159
ac_cv_lib_dld_shl_load=yes
11161
echo "$as_me: failed program was:" >&5
11162
sed 's/^/| /' conftest.$ac_ext >&5
11164
ac_cv_lib_dld_shl_load=no
11166
rm -f conftest.err conftest.$ac_objext \
11167
conftest$ac_exeext conftest.$ac_ext
11168
LIBS=$ac_check_lib_save_LIBS
11170
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11171
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11172
if test $ac_cv_lib_dld_shl_load = yes; then
11173
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11175
echo "$as_me:$LINENO: checking for dlopen" >&5
11176
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11177
if test "${ac_cv_func_dlopen+set}" = set; then
11178
echo $ECHO_N "(cached) $ECHO_C" >&6
11180
cat >conftest.$ac_ext <<_ACEOF
11183
cat confdefs.h >>conftest.$ac_ext
11184
cat >>conftest.$ac_ext <<_ACEOF
11185
/* end confdefs.h. */
11186
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11187
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11188
#define dlopen innocuous_dlopen
11190
/* System header to define __stub macros and hopefully few prototypes,
11191
which can conflict with char dlopen (); below.
11192
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11193
<limits.h> exists even on freestanding compilers. */
11196
# include <limits.h>
11198
# include <assert.h>
11203
/* Override any gcc2 internal prototype to avoid an error. */
11208
/* We use char because int might match the return type of a gcc2
11209
builtin and then its argument prototype would still apply. */
11211
/* The GNU C library defines this for functions which it implements
11212
to always fail with ENOSYS. Some functions are actually named
11213
something starting with __ and the normal name is an alias. */
11214
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11217
char (*f) () = dlopen;
11226
return f != dlopen;
11231
rm -f conftest.$ac_objext conftest$ac_exeext
11232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233
(eval $ac_link) 2>conftest.er1
11235
grep -v '^ *+' conftest.er1 >conftest.err
11237
cat conftest.err >&5
11238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239
(exit $ac_status); } &&
11240
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242
(eval $ac_try) 2>&5
11244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245
(exit $ac_status); }; } &&
11246
{ ac_try='test -s conftest$ac_exeext'
11247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248
(eval $ac_try) 2>&5
11250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251
(exit $ac_status); }; }; then
11252
ac_cv_func_dlopen=yes
11254
echo "$as_me: failed program was:" >&5
11255
sed 's/^/| /' conftest.$ac_ext >&5
11257
ac_cv_func_dlopen=no
11259
rm -f conftest.err conftest.$ac_objext \
11260
conftest$ac_exeext conftest.$ac_ext
11262
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11263
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11264
if test $ac_cv_func_dlopen = yes; then
11265
lt_cv_dlopen="dlopen"
11267
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11268
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11269
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11270
echo $ECHO_N "(cached) $ECHO_C" >&6
11272
ac_check_lib_save_LIBS=$LIBS
11274
cat >conftest.$ac_ext <<_ACEOF
11277
cat confdefs.h >>conftest.$ac_ext
11278
cat >>conftest.$ac_ext <<_ACEOF
11279
/* end confdefs.h. */
11281
/* Override any gcc2 internal prototype to avoid an error. */
11285
/* We use char because int might match the return type of a gcc2
11286
builtin and then its argument prototype would still apply. */
11296
rm -f conftest.$ac_objext conftest$ac_exeext
11297
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298
(eval $ac_link) 2>conftest.er1
11300
grep -v '^ *+' conftest.er1 >conftest.err
11302
cat conftest.err >&5
11303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304
(exit $ac_status); } &&
11305
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307
(eval $ac_try) 2>&5
11309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310
(exit $ac_status); }; } &&
11311
{ ac_try='test -s conftest$ac_exeext'
11312
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313
(eval $ac_try) 2>&5
11315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316
(exit $ac_status); }; }; then
11317
ac_cv_lib_dl_dlopen=yes
11319
echo "$as_me: failed program was:" >&5
11320
sed 's/^/| /' conftest.$ac_ext >&5
11322
ac_cv_lib_dl_dlopen=no
11324
rm -f conftest.err conftest.$ac_objext \
11325
conftest$ac_exeext conftest.$ac_ext
11326
LIBS=$ac_check_lib_save_LIBS
11328
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11329
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11330
if test $ac_cv_lib_dl_dlopen = yes; then
11331
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11333
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11334
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11335
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11336
echo $ECHO_N "(cached) $ECHO_C" >&6
11338
ac_check_lib_save_LIBS=$LIBS
11339
LIBS="-lsvld $LIBS"
11340
cat >conftest.$ac_ext <<_ACEOF
11343
cat confdefs.h >>conftest.$ac_ext
11344
cat >>conftest.$ac_ext <<_ACEOF
11345
/* end confdefs.h. */
11347
/* Override any gcc2 internal prototype to avoid an error. */
11351
/* We use char because int might match the return type of a gcc2
11352
builtin and then its argument prototype would still apply. */
11362
rm -f conftest.$ac_objext conftest$ac_exeext
11363
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11364
(eval $ac_link) 2>conftest.er1
11366
grep -v '^ *+' conftest.er1 >conftest.err
11368
cat conftest.err >&5
11369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370
(exit $ac_status); } &&
11371
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373
(eval $ac_try) 2>&5
11375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376
(exit $ac_status); }; } &&
11377
{ ac_try='test -s conftest$ac_exeext'
11378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379
(eval $ac_try) 2>&5
11381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382
(exit $ac_status); }; }; then
11383
ac_cv_lib_svld_dlopen=yes
11385
echo "$as_me: failed program was:" >&5
11386
sed 's/^/| /' conftest.$ac_ext >&5
11388
ac_cv_lib_svld_dlopen=no
11390
rm -f conftest.err conftest.$ac_objext \
11391
conftest$ac_exeext conftest.$ac_ext
11392
LIBS=$ac_check_lib_save_LIBS
11394
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11395
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11396
if test $ac_cv_lib_svld_dlopen = yes; then
11397
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11399
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11400
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11401
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11402
echo $ECHO_N "(cached) $ECHO_C" >&6
11404
ac_check_lib_save_LIBS=$LIBS
11406
cat >conftest.$ac_ext <<_ACEOF
11409
cat confdefs.h >>conftest.$ac_ext
11410
cat >>conftest.$ac_ext <<_ACEOF
11411
/* end confdefs.h. */
11413
/* Override any gcc2 internal prototype to avoid an error. */
11417
/* We use char because int might match the return type of a gcc2
11418
builtin and then its argument prototype would still apply. */
11428
rm -f conftest.$ac_objext conftest$ac_exeext
11429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11430
(eval $ac_link) 2>conftest.er1
11432
grep -v '^ *+' conftest.er1 >conftest.err
11434
cat conftest.err >&5
11435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436
(exit $ac_status); } &&
11437
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439
(eval $ac_try) 2>&5
11441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442
(exit $ac_status); }; } &&
11443
{ ac_try='test -s conftest$ac_exeext'
11444
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445
(eval $ac_try) 2>&5
11447
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448
(exit $ac_status); }; }; then
11449
ac_cv_lib_dld_dld_link=yes
11451
echo "$as_me: failed program was:" >&5
11452
sed 's/^/| /' conftest.$ac_ext >&5
11454
ac_cv_lib_dld_dld_link=no
11456
rm -f conftest.err conftest.$ac_objext \
11457
conftest$ac_exeext conftest.$ac_ext
11458
LIBS=$ac_check_lib_save_LIBS
11460
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11461
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11462
if test $ac_cv_lib_dld_dld_link = yes; then
11463
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11484
if test "x$lt_cv_dlopen" != xno; then
11490
case $lt_cv_dlopen in
11492
save_CPPFLAGS="$CPPFLAGS"
11493
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11495
save_LDFLAGS="$LDFLAGS"
11496
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11499
LIBS="$lt_cv_dlopen_libs $LIBS"
11501
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11502
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11503
if test "${lt_cv_dlopen_self+set}" = set; then
11504
echo $ECHO_N "(cached) $ECHO_C" >&6
11506
if test "$cross_compiling" = yes; then :
11507
lt_cv_dlopen_self=cross
11509
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11510
lt_status=$lt_dlunknown
11511
cat > conftest.$ac_ext <<EOF
11512
#line __oline__ "configure"
11513
#include "confdefs.h"
11522
# define LT_DLGLOBAL RTLD_GLOBAL
11525
# define LT_DLGLOBAL DL_GLOBAL
11527
# define LT_DLGLOBAL 0
11531
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11532
find out it does not work in some platform. */
11533
#ifndef LT_DLLAZY_OR_NOW
11535
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11538
# define LT_DLLAZY_OR_NOW DL_LAZY
11541
# define LT_DLLAZY_OR_NOW RTLD_NOW
11544
# define LT_DLLAZY_OR_NOW DL_NOW
11546
# define LT_DLLAZY_OR_NOW 0
11554
extern "C" void exit (int);
11557
void fnord() { int i=42;}
11560
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11561
int status = $lt_dlunknown;
11565
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11566
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567
/* dlclose (self); */
11573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574
(eval $ac_link) 2>&5
11576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11578
(./conftest; exit; ) 2>/dev/null
11580
case x$lt_status in
11581
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11582
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11583
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11586
# compilation failed
11587
lt_cv_dlopen_self=no
11594
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11595
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11597
if test "x$lt_cv_dlopen_self" = xyes; then
11598
LDFLAGS="$LDFLAGS $link_static_flag"
11599
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11600
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11601
if test "${lt_cv_dlopen_self_static+set}" = set; then
11602
echo $ECHO_N "(cached) $ECHO_C" >&6
11604
if test "$cross_compiling" = yes; then :
11605
lt_cv_dlopen_self_static=cross
11607
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11608
lt_status=$lt_dlunknown
11609
cat > conftest.$ac_ext <<EOF
11610
#line __oline__ "configure"
11611
#include "confdefs.h"
11620
# define LT_DLGLOBAL RTLD_GLOBAL
11623
# define LT_DLGLOBAL DL_GLOBAL
11625
# define LT_DLGLOBAL 0
11629
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11630
find out it does not work in some platform. */
11631
#ifndef LT_DLLAZY_OR_NOW
11633
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11636
# define LT_DLLAZY_OR_NOW DL_LAZY
11639
# define LT_DLLAZY_OR_NOW RTLD_NOW
11642
# define LT_DLLAZY_OR_NOW DL_NOW
11644
# define LT_DLLAZY_OR_NOW 0
11652
extern "C" void exit (int);
11655
void fnord() { int i=42;}
11658
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659
int status = $lt_dlunknown;
11663
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11664
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665
/* dlclose (self); */
11671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672
(eval $ac_link) 2>&5
11674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11676
(./conftest; exit; ) 2>/dev/null
11678
case x$lt_status in
11679
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11680
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11681
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11684
# compilation failed
11685
lt_cv_dlopen_self_static=no
11692
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11693
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11696
CPPFLAGS="$save_CPPFLAGS"
11697
LDFLAGS="$save_LDFLAGS"
11702
case $lt_cv_dlopen_self in
11703
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11704
*) enable_dlopen_self=unknown ;;
11707
case $lt_cv_dlopen_self_static in
11708
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11709
*) enable_dlopen_self_static=unknown ;;
11714
# Report which librarie types wil actually be built
11715
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11716
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11717
echo "$as_me:$LINENO: result: $can_build_shared" >&5
11718
echo "${ECHO_T}$can_build_shared" >&6
11720
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11721
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11722
test "$can_build_shared" = "no" && enable_shared=no
11724
# On AIX, shared libraries and static libraries use the same namespace, and
11725
# are all built from PIC.
11728
test "$enable_shared" = yes && enable_static=no
11729
if test -n "$RANLIB"; then
11730
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11731
postinstall_cmds='$RANLIB $lib'
11736
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11737
test "$enable_shared" = yes && enable_static=no
11740
darwin* | rhapsody*)
11741
if test "$GCC" = yes; then
11742
archive_cmds_need_lc=no
11744
rhapsody* | darwin1.[012])
11745
allow_undefined_flag='-undefined suppress'
11748
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11749
allow_undefined_flag='-flat_namespace -undefined suppress'
11751
case ${MACOSX_DEPLOYMENT_TARGET} in
11753
allow_undefined_flag='-flat_namespace -undefined suppress'
11756
allow_undefined_flag='-undefined dynamic_lookup'
11762
output_verbose_link_cmd='echo'
11763
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
11764
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11765
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11766
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}'
11767
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}'
11769
hardcode_automatic=yes
11770
hardcode_shlibpath_var=unsupported
11771
whole_archive_flag_spec='-all_load $convenience'
11772
link_all_deplibs=yes
11778
echo "$as_me:$LINENO: result: $enable_shared" >&5
11779
echo "${ECHO_T}$enable_shared" >&6
11781
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11782
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11783
# Make sure either enable_shared or enable_static is yes.
11784
test "$enable_shared" = yes || enable_static=yes
11785
echo "$as_me:$LINENO: result: $enable_static" >&5
11786
echo "${ECHO_T}$enable_static" >&6
11788
# The else clause should only fire when bootstrapping the
11789
# libtool distribution, otherwise you forgot to ship ltmain.sh
11790
# with your package, and you will get complaints that there are
11791
# no rules to generate ltmain.sh.
11792
if test -f "$ltmain"; then
11793
# See if we are running on zsh, and set the options which allow our commands through
11794
# without removal of \ escapes.
11795
if test -n "${ZSH_VERSION+set}" ; then
11796
setopt NO_GLOB_SUBST
11798
# Now quote all the things that may contain metacharacters while being
11799
# careful not to overquote the AC_SUBSTed values. We take copies of the
11800
# variables and quote the copies for generation of the libtool script.
11801
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11803
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11804
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11805
deplibs_check_method reload_flag reload_cmds need_locks \
11806
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11807
lt_cv_sys_global_symbol_to_c_name_address \
11808
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11809
old_postinstall_cmds old_postuninstall_cmds \
11813
lt_prog_compiler_wl \
11814
lt_prog_compiler_pic \
11815
lt_prog_compiler_static \
11816
lt_prog_compiler_no_builtin_flag \
11817
export_dynamic_flag_spec \
11818
thread_safe_flag_spec \
11819
whole_archive_flag_spec \
11820
enable_shared_with_static_runtimes \
11822
old_archive_from_new_cmds \
11827
compiler_lib_search_path \
11829
archive_expsym_cmds \
11831
postuninstall_cmds \
11832
old_archive_from_expsyms_cmds \
11833
allow_undefined_flag \
11834
no_undefined_flag \
11835
export_symbols_cmds \
11836
hardcode_libdir_flag_spec \
11837
hardcode_libdir_flag_spec_ld \
11838
hardcode_libdir_separator \
11839
hardcode_automatic \
11841
module_expsym_cmds \
11842
lt_cv_prog_compiler_c_o \
11844
include_expsyms; do
11847
old_archive_cmds | \
11848
old_archive_from_new_cmds | \
11850
archive_expsym_cmds | \
11852
module_expsym_cmds | \
11853
old_archive_from_expsyms_cmds | \
11854
export_symbols_cmds | \
11855
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11856
postinstall_cmds | postuninstall_cmds | \
11857
old_postinstall_cmds | old_postuninstall_cmds | \
11858
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11859
# Double-quote double-evaled strings.
11860
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11863
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11869
*'\$0 --fallback-echo"')
11870
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11874
cfgfile="${ofile}T"
11875
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11877
{ echo "$as_me:$LINENO: creating $ofile" >&5
11878
echo "$as_me: creating $ofile" >&6;}
11880
cat <<__EOF__ >> "$cfgfile"
11883
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11884
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11885
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11887
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11888
# Free Software Foundation, Inc.
11890
# This file is part of GNU Libtool:
11891
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11893
# This program is free software; you can redistribute it and/or modify
11894
# it under the terms of the GNU General Public License as published by
11895
# the Free Software Foundation; either version 2 of the License, or
11896
# (at your option) any later version.
11898
# This program is distributed in the hope that it will be useful, but
11899
# WITHOUT ANY WARRANTY; without even the implied warranty of
11900
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11901
# General Public License for more details.
11903
# You should have received a copy of the GNU General Public License
11904
# along with this program; if not, write to the Free Software
11905
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11907
# As a special exception to the GNU General Public License, if you
11908
# distribute this file as part of a program that contains a
11909
# configuration script generated by Autoconf, you may include it under
11910
# the same distribution terms that you use for the rest of that program.
11912
# A sed program that does not truncate output.
11915
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11916
Xsed="$SED -e s/^X//"
11918
# The HP-UX ksh and POSIX shell print the target directory to stdout
11919
# if CDPATH is set.
11920
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11922
# The names of the tagged configurations supported by this script.
11925
# ### BEGIN LIBTOOL CONFIG
11927
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11929
# Shell to use when invoking shell scripts.
11932
# Whether or not to build shared libraries.
11933
build_libtool_libs=$enable_shared
11935
# Whether or not to build static libraries.
11936
build_old_libs=$enable_static
11938
# Whether or not to add -lc for building shared libraries.
11939
build_libtool_need_lc=$archive_cmds_need_lc
11941
# Whether or not to disallow shared libs when runtime libs are static
11942
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11944
# Whether or not to optimize for fast installation.
11945
fast_install=$enable_fast_install
11948
host_alias=$host_alias
11951
# An echo program that does not interpret backslashes.
11956
AR_FLAGS=$lt_AR_FLAGS
11961
# A language-specific compiler.
11964
# Is the compiler the GNU C compiler?
11970
# The linker used to build libraries.
11973
# Whether we need hard or soft links.
11976
# A BSD-compatible nm program.
11979
# A symbol stripping program
11982
# Used to examine libraries when file_magic_cmd begins "file"
11983
MAGIC_CMD=$MAGIC_CMD
11985
# Used on cygwin: DLL creation program.
11988
# Used on cygwin: object dumper.
11991
# Used on cygwin: assembler.
11994
# The name of the directory that contains temporary libtool files.
11997
# How to create reloadable object files.
11998
reload_flag=$lt_reload_flag
11999
reload_cmds=$lt_reload_cmds
12001
# How to pass a linker flag through the compiler.
12002
wl=$lt_lt_prog_compiler_wl
12004
# Object file suffix (normally "o").
12005
objext="$ac_objext"
12007
# Old archive suffix (normally "a").
12010
# Shared library suffix (normally ".so").
12011
shrext_cmds='$shrext_cmds'
12013
# Executable file suffix (normally "").
12016
# Additional compiler flags for building library objects.
12017
pic_flag=$lt_lt_prog_compiler_pic
12020
# What is the maximum length of a command?
12021
max_cmd_len=$lt_cv_sys_max_cmd_len
12023
# Does compiler simultaneously support -c and -o options?
12024
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12026
# Must we lock files when doing compilation ?
12027
need_locks=$lt_need_locks
12029
# Do we need the lib prefix for modules?
12030
need_lib_prefix=$need_lib_prefix
12032
# Do we need a version for libraries?
12033
need_version=$need_version
12035
# Whether dlopen is supported.
12036
dlopen_support=$enable_dlopen
12038
# Whether dlopen of programs is supported.
12039
dlopen_self=$enable_dlopen_self
12041
# Whether dlopen of statically linked programs is supported.
12042
dlopen_self_static=$enable_dlopen_self_static
12044
# Compiler flag to prevent dynamic linking.
12045
link_static_flag=$lt_lt_prog_compiler_static
12047
# Compiler flag to turn off builtin functions.
12048
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12050
# Compiler flag to allow reflexive dlopens.
12051
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12053
# Compiler flag to generate shared objects directly from archives.
12054
whole_archive_flag_spec=$lt_whole_archive_flag_spec
12056
# Compiler flag to generate thread-safe objects.
12057
thread_safe_flag_spec=$lt_thread_safe_flag_spec
12059
# Library versioning type.
12060
version_type=$version_type
12062
# Format of library name prefix.
12063
libname_spec=$lt_libname_spec
12065
# List of archive names. First name is the real one, the rest are links.
12066
# The last name is the one that the linker finds with -lNAME.
12067
library_names_spec=$lt_library_names_spec
12069
# The coded name of the library, if different from the real name.
12070
soname_spec=$lt_soname_spec
12072
# Commands used to build and install an old-style archive.
12074
old_archive_cmds=$lt_old_archive_cmds
12075
old_postinstall_cmds=$lt_old_postinstall_cmds
12076
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12078
# Create an old-style archive from a shared archive.
12079
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12081
# Create a temporary old-style archive to link instead of a shared archive.
12082
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12084
# Commands used to build and install a shared archive.
12085
archive_cmds=$lt_archive_cmds
12086
archive_expsym_cmds=$lt_archive_expsym_cmds
12087
postinstall_cmds=$lt_postinstall_cmds
12088
postuninstall_cmds=$lt_postuninstall_cmds
12090
# Commands used to build a loadable module (assumed same as above if empty)
12091
module_cmds=$lt_module_cmds
12092
module_expsym_cmds=$lt_module_expsym_cmds
12094
# Commands to strip libraries.
12095
old_striplib=$lt_old_striplib
12096
striplib=$lt_striplib
12098
# Dependencies to place before the objects being linked to create a
12100
predep_objects=$lt_predep_objects
12102
# Dependencies to place after the objects being linked to create a
12104
postdep_objects=$lt_postdep_objects
12106
# Dependencies to place before the objects being linked to create a
12108
predeps=$lt_predeps
12110
# Dependencies to place after the objects being linked to create a
12112
postdeps=$lt_postdeps
12114
# The library search path used internally by the compiler when linking
12115
# a shared library.
12116
compiler_lib_search_path=$lt_compiler_lib_search_path
12118
# Method to check whether dependent libraries are shared objects.
12119
deplibs_check_method=$lt_deplibs_check_method
12121
# Command to use when deplibs_check_method == file_magic.
12122
file_magic_cmd=$lt_file_magic_cmd
12124
# Flag that allows shared libraries with undefined symbols to be built.
12125
allow_undefined_flag=$lt_allow_undefined_flag
12127
# Flag that forces no undefined symbols.
12128
no_undefined_flag=$lt_no_undefined_flag
12130
# Commands used to finish a libtool library installation in a directory.
12131
finish_cmds=$lt_finish_cmds
12133
# Same as above, but a single script fragment to be evaled but not shown.
12134
finish_eval=$lt_finish_eval
12136
# Take the output of nm and produce a listing of raw symbols and C names.
12137
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12139
# Transform the output of nm in a proper C declaration
12140
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12142
# Transform the output of nm in a C name address pair
12143
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12145
# This is the shared library runtime path variable.
12146
runpath_var=$runpath_var
12148
# This is the shared library path variable.
12149
shlibpath_var=$shlibpath_var
12151
# Is shlibpath searched before the hard-coded library search path?
12152
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12154
# How to hardcode a shared library path into an executable.
12155
hardcode_action=$hardcode_action
12157
# Whether we should hardcode library paths into libraries.
12158
hardcode_into_libs=$hardcode_into_libs
12160
# Flag to hardcode \$libdir into a binary during linking.
12161
# This must work even if \$libdir does not exist.
12162
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12164
# If ld is used when linking, flag to hardcode \$libdir into
12165
# a binary during linking. This must work even if \$libdir does
12167
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12169
# Whether we need a single -rpath flag with a separated argument.
12170
hardcode_libdir_separator=$lt_hardcode_libdir_separator
12172
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12173
# resulting binary.
12174
hardcode_direct=$hardcode_direct
12176
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12177
# resulting binary.
12178
hardcode_minus_L=$hardcode_minus_L
12180
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12181
# the resulting binary.
12182
hardcode_shlibpath_var=$hardcode_shlibpath_var
12184
# Set to yes if building a shared library automatically hardcodes DIR into the library
12185
# and all subsequent libraries and executables linked against it.
12186
hardcode_automatic=$hardcode_automatic
12188
# Variables whose values should be saved in libtool wrapper scripts and
12189
# restored at relink time.
12190
variables_saved_for_relink="$variables_saved_for_relink"
12192
# Whether libtool must link a program against all its dependency libraries.
12193
link_all_deplibs=$link_all_deplibs
12195
# Compile-time system search path for libraries
12196
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12198
# Run-time system search path for libraries
12199
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12201
# Fix the shell variable \$srcfile for the compiler.
12202
fix_srcfile_path="$fix_srcfile_path"
12204
# Set to yes if exported symbols are required.
12205
always_export_symbols=$always_export_symbols
12207
# The commands to list exported symbols.
12208
export_symbols_cmds=$lt_export_symbols_cmds
12210
# The commands to extract the exported symbol list from a shared archive.
12211
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12213
# Symbols that should not be listed in the preloaded symbols.
12214
exclude_expsyms=$lt_exclude_expsyms
12216
# Symbols that must always be exported.
12217
include_expsyms=$lt_include_expsyms
12219
# ### END LIBTOOL CONFIG
12226
cat <<\EOF >> "$cfgfile"
12228
# AIX sometimes has problems with the GCC collect2 program. For some
12229
# reason, if we set the COLLECT_NAMES environment variable, the problems
12230
# vanish in a puff of smoke.
12231
if test "X${COLLECT_NAMES+set}" != Xset; then
12233
export COLLECT_NAMES
12239
# We use sed instead of cat because bash on DJGPP gets confused if
12240
# if finds mixed CR/LF and LF-only lines. Since sed operates in
12241
# text mode, it properly converts lines to CR/LF. This bash problem
12242
# is reportedly fixed, but why not run on old versions too?
12243
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12245
mv -f "$cfgfile" "$ofile" || \
12246
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12250
# If there is no Makefile yet, we rely on a make rule to execute
12251
# `config.status --recheck' to rerun these tests and create the
12252
# libtool script then.
12253
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12254
if test -f "$ltmain_in"; then
12255
test -f Makefile && make "$ltmain"
12261
ac_cpp='$CPP $CPPFLAGS'
12262
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12263
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12264
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12269
# Check whether --with-tags or --without-tags was given.
12270
if test "${with_tags+set}" = set; then
12271
withval="$with_tags"
12272
tagnames="$withval"
12275
if test -f "$ltmain" && test -n "$tagnames"; then
12276
if test ! -f "${ofile}"; then
12277
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12278
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12281
if test -z "$LTCC"; then
12282
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12283
if test -z "$LTCC"; then
12284
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12285
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12287
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12288
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12292
# Extract list of available tagged configurations in $ofile.
12293
# Note that this assumes the entire list is on one line.
12294
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12296
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12297
for tagname in $tagnames; do
12299
# Check whether tagname contains only valid characters
12300
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12302
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12303
echo "$as_me: error: invalid tag name: $tagname" >&2;}
12304
{ (exit 1); exit 1; }; }
12308
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12310
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12311
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12312
{ (exit 1); exit 1; }; }
12315
# Update the list of available tags.
12316
if test -n "$tagname"; then
12317
echo appending configuration tag \"$tagname\" to $ofile
12321
if test -n "$CXX" && test "X$CXX" != "Xno"; then
12323
ac_cpp='$CXXCPP $CPPFLAGS'
12324
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12325
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12326
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12331
archive_cmds_need_lc_CXX=no
12332
allow_undefined_flag_CXX=
12333
always_export_symbols_CXX=no
12334
archive_expsym_cmds_CXX=
12335
export_dynamic_flag_spec_CXX=
12336
hardcode_direct_CXX=no
12337
hardcode_libdir_flag_spec_CXX=
12338
hardcode_libdir_flag_spec_ld_CXX=
12339
hardcode_libdir_separator_CXX=
12340
hardcode_minus_L_CXX=no
12341
hardcode_automatic_CXX=no
12343
module_expsym_cmds_CXX=
12344
link_all_deplibs_CXX=unknown
12345
old_archive_cmds_CXX=$old_archive_cmds
12346
no_undefined_flag_CXX=
12347
whole_archive_flag_spec_CXX=
12348
enable_shared_with_static_runtimes_CXX=no
12350
# Dependencies to place before and after the object being linked:
12351
predep_objects_CXX=
12352
postdep_objects_CXX=
12355
compiler_lib_search_path_CXX=
12357
# Source file extension for C++ test sources.
12360
# Object file extension for compiled C++ test sources.
12364
# Code to be used in simple compile tests
12365
lt_simple_compile_test_code="int some_variable = 0;\n"
12367
# Code to be used in simple link tests
12368
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12370
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12372
# If no C compiler was specified, use CC.
12375
# Allow CC to be a program name with arguments.
12379
# Allow CC to be a program name with arguments.
12384
lt_save_with_gnu_ld=$with_gnu_ld
12385
lt_save_path_LD=$lt_cv_path_LD
12386
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12387
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12389
unset lt_cv_prog_gnu_ld
12391
if test -n "${lt_cv_path_LDCXX+set}"; then
12392
lt_cv_path_LD=$lt_cv_path_LDCXX
12394
unset lt_cv_path_LD
12396
test -z "${LDCXX+set}" || LD=$LDCXX
12400
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12402
# We don't want -fno-exception wen compiling C++ code, so set the
12403
# no_builtin_flag separately
12404
if test "$GXX" = yes; then
12405
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12407
lt_prog_compiler_no_builtin_flag_CXX=
12410
if test "$GXX" = yes; then
12411
# Set up default GNU C++ configuration
12414
# Check whether --with-gnu-ld or --without-gnu-ld was given.
12415
if test "${with_gnu_ld+set}" = set; then
12416
withval="$with_gnu_ld"
12417
test "$withval" = no || with_gnu_ld=yes
12422
if test "$GCC" = yes; then
12423
# Check if gcc -print-prog-name=ld gives a path.
12424
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12425
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12428
# gcc leaves a trailing carriage return which upsets mingw
12429
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12431
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12434
# Accept absolute paths.
12436
re_direlt='/[^/][^/]*/\.\./'
12437
# Canonicalize the pathname of ld
12438
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12439
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12440
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12442
test -z "$LD" && LD="$ac_prog"
12445
# If it fails, then pretend we aren't using GCC.
12449
# If it is relative, then search for the first ld in PATH.
12450
with_gnu_ld=unknown
12453
elif test "$with_gnu_ld" = yes; then
12454
echo "$as_me:$LINENO: checking for GNU ld" >&5
12455
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12457
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12458
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12460
if test "${lt_cv_path_LD+set}" = set; then
12461
echo $ECHO_N "(cached) $ECHO_C" >&6
12463
if test -z "$LD"; then
12464
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12465
for ac_dir in $PATH; do
12467
test -z "$ac_dir" && ac_dir=.
12468
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12469
lt_cv_path_LD="$ac_dir/$ac_prog"
12470
# Check to see if the program is GNU ld. I'd rather use --version,
12471
# but apparently some GNU ld's only accept -v.
12472
# Break only if it was the GNU/non-GNU ld that we prefer.
12473
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12474
*GNU* | *'with BFD'*)
12475
test "$with_gnu_ld" != no && break
12478
test "$with_gnu_ld" != yes && break
12485
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12489
LD="$lt_cv_path_LD"
12490
if test -n "$LD"; then
12491
echo "$as_me:$LINENO: result: $LD" >&5
12492
echo "${ECHO_T}$LD" >&6
12494
echo "$as_me:$LINENO: result: no" >&5
12495
echo "${ECHO_T}no" >&6
12497
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12498
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12499
{ (exit 1); exit 1; }; }
12500
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12501
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12502
if test "${lt_cv_prog_gnu_ld+set}" = set; then
12503
echo $ECHO_N "(cached) $ECHO_C" >&6
12505
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
12506
case `$LD -v 2>&1 </dev/null` in
12507
*GNU* | *'with BFD'*)
12508
lt_cv_prog_gnu_ld=yes
12511
lt_cv_prog_gnu_ld=no
12515
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12516
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12517
with_gnu_ld=$lt_cv_prog_gnu_ld
12521
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12522
# archiving commands below assume that GNU ld is being used.
12523
if test "$with_gnu_ld" = yes; then
12524
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12525
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'
12527
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12528
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12530
# If archive_cmds runs LD, not CC, wlarc should be empty
12531
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12532
# investigate it a little bit more. (MM)
12535
# ancient GNU ld didn't support --whole-archive et. al.
12536
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12537
grep 'no-whole-archive' > /dev/null; then
12538
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12540
whole_archive_flag_spec_CXX=
12546
# A generic and very simple default shared library creation
12547
# command for GNU C++ for the case where it uses the native
12548
# linker, instead of GNU ld. If possible, this setting should
12549
# overridden to take advantage of the native linker features on
12550
# the platform it is being used on.
12551
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12554
# Commands to make compiler produce verbose output that lists
12555
# what "hidden" libraries, object files and flags are used when
12556
# linking a shared library.
12557
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12565
# PORTME: fill in a description of your system's C++ link characteristics
12566
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12567
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12571
# FIXME: insert proper C++ library support
12575
if test "$host_cpu" = ia64; then
12576
# On IA64, the linker does run time linking by default, so we don't
12577
# have to do anything special.
12578
aix_use_runtimelinking=no
12579
exp_sym_flag='-Bexport'
12582
aix_use_runtimelinking=no
12584
# Test if we are trying to use run time linking or normal
12585
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12586
# need to do runtime linking.
12587
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12588
for ld_flag in $LDFLAGS; do
12591
aix_use_runtimelinking=yes
12598
exp_sym_flag='-bexport'
12599
no_entry_flag='-bnoentry'
12602
# When large executables or shared objects are built, AIX ld can
12603
# have problems creating the table of contents. If linking a library
12604
# or program results in "error TOC overflow" add -mminimal-toc to
12605
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12606
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12608
archive_cmds_CXX=''
12609
hardcode_direct_CXX=yes
12610
hardcode_libdir_separator_CXX=':'
12611
link_all_deplibs_CXX=yes
12613
if test "$GXX" = yes; then
12614
case $host_os in aix4.012|aix4.012.*)
12615
# We only want to do this on AIX 4.2 and lower, the check
12616
# below for broken collect2 doesn't work under 4.3+
12617
collect2name=`${CC} -print-prog-name=collect2`
12618
if test -f "$collect2name" && \
12619
strings "$collect2name" | grep resolve_lib_name >/dev/null
12621
# We have reworked collect2
12622
hardcode_direct_CXX=yes
12624
# We have old collect2
12625
hardcode_direct_CXX=unsupported
12626
# It fails to find uninstalled libraries when the uninstalled
12627
# path is not listed in the libpath. Setting hardcode_minus_L
12628
# to unsupported forces relinking
12629
hardcode_minus_L_CXX=yes
12630
hardcode_libdir_flag_spec_CXX='-L$libdir'
12631
hardcode_libdir_separator_CXX=
12634
shared_flag='-shared'
12637
if test "$host_cpu" = ia64; then
12638
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12639
# chokes on -Wl,-G. The following line is correct:
12642
if test "$aix_use_runtimelinking" = yes; then
12643
shared_flag='${wl}-G'
12645
shared_flag='${wl}-bM:SRE'
12650
# It seems that -bexpall does not export symbols beginning with
12651
# underscore (_), so it is better to generate a list of symbols to export.
12652
always_export_symbols_CXX=yes
12653
if test "$aix_use_runtimelinking" = yes; then
12654
# Warning - without using the other runtime loading flags (-brtl),
12655
# -berok will link without error, but may produce a broken library.
12656
allow_undefined_flag_CXX='-berok'
12657
# Determine the default libpath from the value encoded in an empty executable.
12658
cat >conftest.$ac_ext <<_ACEOF
12661
cat confdefs.h >>conftest.$ac_ext
12662
cat >>conftest.$ac_ext <<_ACEOF
12663
/* end confdefs.h. */
12673
rm -f conftest.$ac_objext conftest$ac_exeext
12674
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12675
(eval $ac_link) 2>conftest.er1
12677
grep -v '^ *+' conftest.er1 >conftest.err
12679
cat conftest.err >&5
12680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681
(exit $ac_status); } &&
12682
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684
(eval $ac_try) 2>&5
12686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687
(exit $ac_status); }; } &&
12688
{ ac_try='test -s conftest$ac_exeext'
12689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690
(eval $ac_try) 2>&5
12692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693
(exit $ac_status); }; }; then
12695
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12697
# Check for a 64-bit object if we didn't find anything.
12698
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; }
12701
echo "$as_me: failed program was:" >&5
12702
sed 's/^/| /' conftest.$ac_ext >&5
12705
rm -f conftest.err conftest.$ac_objext \
12706
conftest$ac_exeext conftest.$ac_ext
12707
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12709
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12711
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"
12713
if test "$host_cpu" = ia64; then
12714
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12715
allow_undefined_flag_CXX="-z nodefs"
12716
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"
12718
# Determine the default libpath from the value encoded in an empty executable.
12719
cat >conftest.$ac_ext <<_ACEOF
12722
cat confdefs.h >>conftest.$ac_ext
12723
cat >>conftest.$ac_ext <<_ACEOF
12724
/* end confdefs.h. */
12734
rm -f conftest.$ac_objext conftest$ac_exeext
12735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12736
(eval $ac_link) 2>conftest.er1
12738
grep -v '^ *+' conftest.er1 >conftest.err
12740
cat conftest.err >&5
12741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742
(exit $ac_status); } &&
12743
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745
(eval $ac_try) 2>&5
12747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748
(exit $ac_status); }; } &&
12749
{ ac_try='test -s conftest$ac_exeext'
12750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751
(eval $ac_try) 2>&5
12753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754
(exit $ac_status); }; }; then
12756
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12758
# Check for a 64-bit object if we didn't find anything.
12759
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; }
12762
echo "$as_me: failed program was:" >&5
12763
sed 's/^/| /' conftest.$ac_ext >&5
12766
rm -f conftest.err conftest.$ac_objext \
12767
conftest$ac_exeext conftest.$ac_ext
12768
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12770
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12771
# Warning - without using the other run time loading flags,
12772
# -berok will link without error, but may produce a broken library.
12773
no_undefined_flag_CXX=' ${wl}-bernotok'
12774
allow_undefined_flag_CXX=' ${wl}-berok'
12775
# -bexpall does not export symbols beginning with underscore (_)
12776
always_export_symbols_CXX=yes
12777
# Exported symbols can be pulled into shared objects from archives
12778
whole_archive_flag_spec_CXX=' '
12779
archive_cmds_need_lc_CXX=yes
12780
# This is similar to how AIX traditionally builds it's shared libraries.
12781
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'
12786
case $cc_basename in
12788
# FIXME: insert proper C++ library support
12794
cygwin* | mingw* | pw32*)
12795
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12796
# as there is no search path for DLLs.
12797
hardcode_libdir_flag_spec_CXX='-L$libdir'
12798
allow_undefined_flag_CXX=unsupported
12799
always_export_symbols_CXX=no
12800
enable_shared_with_static_runtimes_CXX=yes
12802
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12803
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'
12804
# If the export-symbols file already is a .def file (1st line
12805
# is EXPORTS), use it as is; otherwise, prepend...
12806
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12807
cp $export_symbols $output_objdir/$soname.def;
12809
echo EXPORTS > $output_objdir/$soname.def;
12810
cat $export_symbols >> $output_objdir/$soname.def;
12812
$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'
12818
darwin* | rhapsody*)
12819
if test "$GXX" = yes; then
12820
archive_cmds_need_lc_CXX=no
12822
rhapsody* | darwin1.[012])
12823
allow_undefined_flag_CXX='-undefined suppress'
12826
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12827
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12829
case ${MACOSX_DEPLOYMENT_TARGET} in
12831
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12834
allow_undefined_flag_CXX='-undefined dynamic_lookup'
12840
lt_int_apple_cc_single_mod=no
12841
output_verbose_link_cmd='echo'
12842
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12843
lt_int_apple_cc_single_mod=yes
12845
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12846
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12848
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'
12850
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12852
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12853
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12854
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}'
12856
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}'
12858
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}'
12859
hardcode_direct_CXX=no
12860
hardcode_automatic_CXX=yes
12861
hardcode_shlibpath_var_CXX=unsupported
12862
whole_archive_flag_spec_CXX='-all_load $convenience'
12863
link_all_deplibs_CXX=yes
12870
case $cc_basename in
12872
# FIXME: insert proper C++ library support
12876
# Green Hills C++ Compiler
12877
# FIXME: insert proper C++ library support
12881
# FIXME: insert proper C++ library support
12887
# C++ shared libraries reported to be fairly broken before switch to ELF
12891
archive_cmds_need_lc_CXX=no
12893
freebsd* | kfreebsd*-gnu)
12894
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12901
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12902
hardcode_libdir_separator_CXX=:
12903
export_dynamic_flag_spec_CXX='${wl}-E'
12904
hardcode_direct_CXX=yes
12905
hardcode_minus_L_CXX=yes # Not in the search PATH,
12906
# but as the default
12907
# location of the library.
12909
case $cc_basename in
12911
# FIXME: insert proper C++ library support
12915
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'
12916
# Commands to make compiler produce verbose output that lists
12917
# what "hidden" libraries, object files and flags are used when
12918
# linking a shared library.
12920
# There doesn't appear to be a way to prevent this compiler from
12921
# explicitly linking system object files so we need to strip them
12922
# from the output so that they don't get included in the library
12924
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'
12927
if test "$GXX" = yes; then
12928
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'
12930
# FIXME: insert proper C++ library support
12937
if test $with_gnu_ld = no; then
12938
case "$host_cpu" in
12940
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12941
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12942
hardcode_libdir_separator_CXX=:
12945
hardcode_libdir_flag_spec_CXX='-L$libdir'
12948
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12949
hardcode_libdir_separator_CXX=:
12950
export_dynamic_flag_spec_CXX='${wl}-E'
12954
case "$host_cpu" in
12956
hardcode_direct_CXX=no
12957
hardcode_shlibpath_var_CXX=no
12960
hardcode_direct_CXX=no
12961
hardcode_shlibpath_var_CXX=no
12962
hardcode_minus_L_CXX=yes # Not in the search PATH,
12963
# but as the default
12964
# location of the library.
12967
hardcode_direct_CXX=yes
12968
hardcode_minus_L_CXX=yes # Not in the search PATH,
12969
# but as the default
12970
# location of the library.
12974
case $cc_basename in
12976
# FIXME: insert proper C++ library support
12980
case "$host_cpu" in
12982
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12985
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12988
# Commands to make compiler produce verbose output that lists
12989
# what "hidden" libraries, object files and flags are used when
12990
# linking a shared library.
12992
# There doesn't appear to be a way to prevent this compiler from
12993
# explicitly linking system object files so we need to strip them
12994
# from the output so that they don't get included in the library
12996
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'
12999
if test "$GXX" = yes; then
13000
if test $with_gnu_ld = no; then
13001
case "$host_cpu" in
13003
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13006
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'
13011
# FIXME: insert proper C++ library support
13018
case $cc_basename in
13021
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'
13023
# Archives containing C++ object files must be created using
13024
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13025
# necessary to make sure instantiated templates are included
13027
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13030
if test "$GXX" = yes; then
13031
if test "$with_gnu_ld" = no; then
13032
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'
13034
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'
13037
link_all_deplibs_CXX=yes
13040
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13041
hardcode_libdir_separator_CXX=:
13044
case $cc_basename in
13046
# Kuck and Associates, Inc. (KAI) C++ Compiler
13048
# KCC will only create a shared library if the output file
13049
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13050
# to its proper name (with version) after linking.
13051
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'
13052
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'
13053
# Commands to make compiler produce verbose output that lists
13054
# what "hidden" libraries, object files and flags are used when
13055
# linking a shared library.
13057
# There doesn't appear to be a way to prevent this compiler from
13058
# explicitly linking system object files so we need to strip them
13059
# from the output so that they don't get included in the library
13061
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'
13063
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13064
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13066
# Archives containing C++ object files must be created using
13067
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13068
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13073
archive_cmds_need_lc_CXX=no
13074
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075
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'
13076
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13077
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13078
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13082
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13083
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'
13085
runpath_var=LD_RUN_PATH
13086
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13087
hardcode_libdir_separator_CXX=:
13089
# Commands to make compiler produce verbose output that lists
13090
# what "hidden" libraries, object files and flags are used when
13091
# linking a shared library.
13093
# There doesn't appear to be a way to prevent this compiler from
13094
# explicitly linking system object files so we need to strip them
13095
# from the output so that they don't get included in the library
13097
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'
13102
# FIXME: insert proper C++ library support
13106
# FIXME: insert proper C++ library support
13110
case $cc_basename in
13112
# FIXME: insert proper C++ library support
13116
# FIXME: insert proper C++ library support
13121
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13122
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13123
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13125
hardcode_libdir_flag_spec_CXX='-R$libdir'
13126
hardcode_direct_CXX=yes
13127
hardcode_shlibpath_var_CXX=no
13129
# Workaround some broken pre-1.5 toolchains
13130
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13133
case $cc_basename in
13135
# Kuck and Associates, Inc. (KAI) C++ Compiler
13137
# KCC will only create a shared library if the output file
13138
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13139
# to its proper name (with version) after linking.
13140
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'
13142
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13143
hardcode_libdir_separator_CXX=:
13145
# Archives containing C++ object files must be created using
13146
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13147
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13151
# Rational C++ 2.4.1
13152
# FIXME: insert proper C++ library support
13156
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13157
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'
13159
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13160
hardcode_libdir_separator_CXX=:
13162
# Commands to make compiler produce verbose output that lists
13163
# what "hidden" libraries, object files and flags are used when
13164
# linking a shared library.
13166
# There doesn't appear to be a way to prevent this compiler from
13167
# explicitly linking system object files so we need to strip them
13168
# from the output so that they don't get included in the library
13170
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'
13173
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13174
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13175
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'
13177
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13178
hardcode_libdir_separator_CXX=:
13180
# Commands to make compiler produce verbose output that lists
13181
# what "hidden" libraries, object files and flags are used when
13182
# linking a shared library.
13183
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13186
# FIXME: insert proper C++ library support
13193
case $cc_basename in
13195
# Kuck and Associates, Inc. (KAI) C++ Compiler
13197
# KCC will only create a shared library if the output file
13198
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13199
# to its proper name (with version) after linking.
13200
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'
13202
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13203
hardcode_libdir_separator_CXX=:
13205
# Archives containing C++ object files must be created using
13206
# the KAI C++ compiler.
13207
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13210
# Rational C++ 2.4.1
13211
# FIXME: insert proper C++ library support
13215
allow_undefined_flag_CXX=' -expect_unresolved \*'
13216
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'
13217
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13218
echo "-hidden">> $lib.exp~
13219
$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~
13222
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13223
hardcode_libdir_separator_CXX=:
13225
# Commands to make compiler produce verbose output that lists
13226
# what "hidden" libraries, object files and flags are used when
13227
# linking a shared library.
13229
# There doesn't appear to be a way to prevent this compiler from
13230
# explicitly linking system object files so we need to strip them
13231
# from the output so that they don't get included in the library
13233
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'
13236
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13237
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13238
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'
13240
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13241
hardcode_libdir_separator_CXX=:
13243
# Commands to make compiler produce verbose output that lists
13244
# what "hidden" libraries, object files and flags are used when
13245
# linking a shared library.
13246
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13249
# FIXME: insert proper C++ library support
13256
# FIXME: insert proper C++ library support
13260
archive_cmds_need_lc_CXX=no
13261
case $cc_basename in
13263
# FIXME: insert proper C++ library support
13267
# FIXME: insert proper C++ library support
13273
case $cc_basename in
13276
# FIXME: insert proper C++ library support
13281
# FIXME: insert proper C++ library support
13285
# FIXME: insert proper C++ library support
13291
case $cc_basename in
13293
# Sun C++ 4.2, 5.x and Centerline C++
13294
no_undefined_flag_CXX=' -zdefs'
13295
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13296
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13297
$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'
13299
hardcode_libdir_flag_spec_CXX='-R$libdir'
13300
hardcode_shlibpath_var_CXX=no
13302
solaris2.0-5 | solaris2.0-5.*) ;;
13304
# The C++ compiler is used as linker so we must use $wl
13305
# flag to pass the commands to the underlying system
13307
# Supported since Solaris 2.6 (maybe 2.5.1?)
13308
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13311
link_all_deplibs_CXX=yes
13313
# Commands to make compiler produce verbose output that lists
13314
# what "hidden" libraries, object files and flags are used when
13315
# linking a shared library.
13317
# There doesn't appear to be a way to prevent this compiler from
13318
# explicitly linking system object files so we need to strip them
13319
# from the output so that they don't get included in the library
13321
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'
13323
# Archives containing C++ object files must be created using
13324
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13325
# necessary to make sure instantiated templates are included
13327
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13330
# Green Hills C++ Compiler
13331
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13333
# The C++ compiler must be used to create the archive.
13334
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13337
# GNU C++ compiler with Solaris linker
13338
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13339
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13340
if $CC --version | grep -v '^2\.7' > /dev/null; then
13341
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13342
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13343
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13345
# Commands to make compiler produce verbose output that lists
13346
# what "hidden" libraries, object files and flags are used when
13347
# linking a shared library.
13348
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13350
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13352
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13353
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13354
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13356
# Commands to make compiler produce verbose output that lists
13357
# what "hidden" libraries, object files and flags are used when
13358
# linking a shared library.
13359
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13362
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13367
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13368
archive_cmds_need_lc_CXX=no
13371
case $cc_basename in
13373
# NonStop-UX NCC 3.20
13374
# FIXME: insert proper C++ library support
13378
# FIXME: insert proper C++ library support
13384
# FIXME: insert proper C++ library support
13388
# FIXME: insert proper C++ library support
13392
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13393
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13394
test "$ld_shlibs_CXX" = no && can_build_shared=no
13400
cat > conftest.$ac_ext <<EOF
13404
Foo (void) { a = 0; }
13410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13411
(eval $ac_compile) 2>&5
13413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414
(exit $ac_status); }; then
13415
# Parse the compiler output and extract the necessary
13416
# objects, libraries and library flags.
13418
# Sentinel used to keep track of whether or not we are before
13419
# the conftest object file.
13420
pre_test_object_deps_done=no
13422
# The `*' in the case matches for architectures that use `case' in
13423
# $output_verbose_cmd can trigger glob expansion during the loop
13424
# eval without this substitution.
13425
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13427
for p in `eval $output_verbose_link_cmd`; do
13431
# Some compilers place space between "-{L,R}" and the path.
13432
# Remove the space.
13433
if test $p = "-L" \
13434
|| test $p = "-R"; then
13441
if test "$pre_test_object_deps_done" = no; then
13444
# Internal compiler library paths should come after those
13445
# provided the user. The postdeps already come after the
13446
# user supplied libs so there is no need to process them.
13447
if test -z "$compiler_lib_search_path_CXX"; then
13448
compiler_lib_search_path_CXX="${prev}${p}"
13450
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13453
# The "-l" case would never come before the object being
13454
# linked, so don't bother handling this case.
13457
if test -z "$postdeps_CXX"; then
13458
postdeps_CXX="${prev}${p}"
13460
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13466
# This assumes that the test object file only shows up
13467
# once in the compiler output.
13468
if test "$p" = "conftest.$objext"; then
13469
pre_test_object_deps_done=yes
13473
if test "$pre_test_object_deps_done" = no; then
13474
if test -z "$predep_objects_CXX"; then
13475
predep_objects_CXX="$p"
13477
predep_objects_CXX="$predep_objects_CXX $p"
13480
if test -z "$postdep_objects_CXX"; then
13481
postdep_objects_CXX="$p"
13483
postdep_objects_CXX="$postdep_objects_CXX $p"
13488
*) ;; # Ignore the rest.
13496
echo "libtool.m4: error: problem compiling CXX test program"
13499
$rm -f confest.$objext
13501
case " $postdeps_CXX " in
13502
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13505
lt_prog_compiler_wl_CXX=
13506
lt_prog_compiler_pic_CXX=
13507
lt_prog_compiler_static_CXX=
13509
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13510
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13512
# C++ specific cases for pic, static, wl, etc.
13513
if test "$GXX" = yes; then
13514
lt_prog_compiler_wl_CXX='-Wl,'
13515
lt_prog_compiler_static_CXX='-static'
13519
# All AIX code is PIC.
13520
if test "$host_cpu" = ia64; then
13521
# AIX 5 now supports IA64 processor
13522
lt_prog_compiler_static_CXX='-Bstatic'
13526
# FIXME: we need at least 68020 code to build shared libraries, but
13527
# adding the `-m68020' flag to GCC prevents building anything better,
13529
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13531
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13532
# PIC is the default for these OSes.
13534
mingw* | os2* | pw32*)
13535
# This hack is so that the source file can tell whether it is being
13536
# built for inclusion in a dll (and should export symbols for example).
13537
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13539
darwin* | rhapsody*)
13540
# PIC is the default on this platform
13541
# Common symbols not allowed in MH_DYLIB files
13542
lt_prog_compiler_pic_CXX='-fno-common'
13545
# DJGPP does not support shared libraries at all
13546
lt_prog_compiler_pic_CXX=
13549
if test -d /usr/nec; then
13550
lt_prog_compiler_pic_CXX=-Kconform_pic
13554
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13555
# not for PA HP-UX.
13556
case "$host_cpu" in
13560
lt_prog_compiler_pic_CXX='-fPIC'
13565
lt_prog_compiler_pic_CXX='-fPIC'
13571
# All AIX code is PIC.
13572
if test "$host_cpu" = ia64; then
13573
# AIX 5 now supports IA64 processor
13574
lt_prog_compiler_static_CXX='-Bstatic'
13576
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13580
case $cc_basename in
13582
# Green Hills C++ Compiler
13583
# _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"
13588
case $cc_basename in
13590
lt_prog_compiler_pic_CXX='-KPIC'
13593
# Green Hills C++ Compiler
13594
lt_prog_compiler_pic_CXX='-pic'
13600
freebsd* | kfreebsd*-gnu)
13601
# FreeBSD uses GNU C++
13603
hpux9* | hpux10* | hpux11*)
13604
case $cc_basename in
13606
lt_prog_compiler_wl_CXX='-Wl,'
13607
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13608
if test "$host_cpu" != ia64; then
13609
lt_prog_compiler_pic_CXX='+Z'
13613
lt_prog_compiler_wl_CXX='-Wl,'
13614
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13615
case "$host_cpu" in
13620
lt_prog_compiler_pic_CXX='+Z'
13628
irix5* | irix6* | nonstopux*)
13629
case $cc_basename in
13631
lt_prog_compiler_wl_CXX='-Wl,'
13632
lt_prog_compiler_static_CXX='-non_shared'
13633
# CC pic flag -KPIC is the default.
13640
case $cc_basename in
13643
lt_prog_compiler_wl_CXX='--backend -Wl,'
13644
lt_prog_compiler_pic_CXX='-fPIC'
13648
lt_prog_compiler_wl_CXX='-Wl,'
13649
lt_prog_compiler_pic_CXX='-KPIC'
13650
lt_prog_compiler_static_CXX='-static'
13654
# Make sure the PIC flag is empty. It appears that all Alpha
13655
# Linux and Compaq Tru64 Unix objects are PIC.
13656
lt_prog_compiler_pic_CXX=
13657
lt_prog_compiler_static_CXX='-non_shared'
13668
case $cc_basename in
13670
lt_prog_compiler_pic_CXX='-W c,exportall'
13676
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13678
osf3* | osf4* | osf5*)
13679
case $cc_basename in
13681
lt_prog_compiler_wl_CXX='--backend -Wl,'
13684
# Rational C++ 2.4.1
13685
lt_prog_compiler_pic_CXX='-pic'
13688
# Digital/Compaq C++
13689
lt_prog_compiler_wl_CXX='-Wl,'
13690
# Make sure the PIC flag is empty. It appears that all Alpha
13691
# Linux and Compaq Tru64 Unix objects are PIC.
13692
lt_prog_compiler_pic_CXX=
13693
lt_prog_compiler_static_CXX='-non_shared'
13702
case $cc_basename in
13704
lt_prog_compiler_pic_CXX='-fPIC'
13711
case $cc_basename in
13713
# Sun C++ 4.2, 5.x and Centerline C++
13714
lt_prog_compiler_pic_CXX='-KPIC'
13715
lt_prog_compiler_static_CXX='-Bstatic'
13716
lt_prog_compiler_wl_CXX='-Qoption ld '
13719
# Green Hills C++ Compiler
13720
lt_prog_compiler_pic_CXX='-PIC'
13727
case $cc_basename in
13730
lt_prog_compiler_pic_CXX='-pic'
13731
lt_prog_compiler_static_CXX='-Bstatic'
13735
lt_prog_compiler_pic_CXX='-pic'
13742
case $cc_basename in
13744
# NonStop-UX NCC 3.20
13745
lt_prog_compiler_pic_CXX='-KPIC'
13756
lt_prog_compiler_can_build_shared_CXX=no
13761
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13762
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13765
# Check to make sure the PIC flag actually works.
13767
if test -n "$lt_prog_compiler_pic_CXX"; then
13769
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13770
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13771
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13772
echo $ECHO_N "(cached) $ECHO_C" >&6
13774
lt_prog_compiler_pic_works_CXX=no
13775
ac_outfile=conftest.$ac_objext
13776
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13777
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13778
# Insert the option either (1) after the last *FLAGS variable, or
13779
# (2) before a word containing "conftest.", or (3) at the end.
13780
# Note that $ac_compile itself does not contain backslashes and begins
13781
# with a dollar sign (not a hyphen), so the echo should work correctly.
13782
# The option is referenced via a variable to avoid confusing sed.
13783
lt_compile=`echo "$ac_compile" | $SED \
13784
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13785
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13786
-e 's:$: $lt_compiler_flag:'`
13787
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13788
(eval "$lt_compile" 2>conftest.err)
13790
cat conftest.err >&5
13791
echo "$as_me:__oline__: \$? = $ac_status" >&5
13792
if (exit $ac_status) && test -s "$ac_outfile"; then
13793
# The compiler can only warn and ignore the option if not recognized
13794
# So say no if there are warnings
13795
if test ! -s conftest.err; then
13796
lt_prog_compiler_pic_works_CXX=yes
13802
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13803
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13805
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13806
case $lt_prog_compiler_pic_CXX in
13808
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13811
lt_prog_compiler_pic_CXX=
13812
lt_prog_compiler_can_build_shared_CXX=no
13817
# For platforms which do not support PIC, -DPIC is meaningless:
13819
lt_prog_compiler_pic_CXX=
13822
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13826
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13827
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13828
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13829
echo $ECHO_N "(cached) $ECHO_C" >&6
13831
lt_cv_prog_compiler_c_o_CXX=no
13832
$rm -r conftest 2>/dev/null
13836
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13838
lt_compiler_flag="-o out/conftest2.$ac_objext"
13839
# Insert the option either (1) after the last *FLAGS variable, or
13840
# (2) before a word containing "conftest.", or (3) at the end.
13841
# Note that $ac_compile itself does not contain backslashes and begins
13842
# with a dollar sign (not a hyphen), so the echo should work correctly.
13843
lt_compile=`echo "$ac_compile" | $SED \
13844
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13845
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13846
-e 's:$: $lt_compiler_flag:'`
13847
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13848
(eval "$lt_compile" 2>out/conftest.err)
13850
cat out/conftest.err >&5
13851
echo "$as_me:__oline__: \$? = $ac_status" >&5
13852
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13854
# The compiler can only warn and ignore the option if not recognized
13855
# So say no if there are warnings
13856
if test ! -s out/conftest.err; then
13857
lt_cv_prog_compiler_c_o_CXX=yes
13862
# SGI C++ compiler will create directory out/ii_files/ for
13863
# template instantiation
13864
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13865
$rm out/* && rmdir out
13871
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13872
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13875
hard_links="nottested"
13876
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13877
# do not overwrite the value of need_locks provided by the user
13878
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13879
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13882
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13884
ln conftest.a conftest.b 2>&5 || hard_links=no
13885
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13886
echo "$as_me:$LINENO: result: $hard_links" >&5
13887
echo "${ECHO_T}$hard_links" >&6
13888
if test "$hard_links" = no; then
13889
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13890
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13897
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13898
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13900
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13903
# If we're using GNU nm, then we don't want the "-C" option.
13904
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13905
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13906
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'
13908
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'
13912
export_symbols_cmds_CXX="$ltdll_cmds"
13915
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13918
link_all_deplibs_CXX=no
13921
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13925
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13926
echo "${ECHO_T}$ld_shlibs_CXX" >&6
13927
test "$ld_shlibs_CXX" = no && can_build_shared=no
13929
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13930
if test "$GCC" = yes; then
13931
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13935
# Do we need to explicitly link libc?
13937
case "x$archive_cmds_need_lc_CXX" in
13939
# Assume -lc should be added
13940
archive_cmds_need_lc_CXX=yes
13942
if test "$enable_shared" = yes && test "$GCC" = yes; then
13943
case $archive_cmds_CXX in
13945
# FIXME: we may have to deal with multi-command sequences.
13948
# Test whether the compiler implicitly links with -lc since on some
13949
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13950
# to ld, don't add -lc before -lgcc.
13951
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13952
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13954
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13956
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13957
(eval $ac_compile) 2>&5
13959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960
(exit $ac_status); } 2>conftest.err; then
13963
libobjs=conftest.$ac_objext
13965
wl=$lt_prog_compiler_wl_CXX
13971
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13972
allow_undefined_flag_CXX=
13973
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13974
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977
(exit $ac_status); }
13979
archive_cmds_need_lc_CXX=no
13981
archive_cmds_need_lc_CXX=yes
13983
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13985
cat conftest.err 1>&5
13988
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13989
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13996
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13997
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13998
library_names_spec=
13999
libname_spec='lib$name'
14003
postuninstall_cmds=
14007
shlibpath_overrides_runpath=unknown
14009
dynamic_linker="$host_os ld.so"
14010
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14011
if test "$GCC" = yes; then
14012
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14013
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14014
# if the path contains ";" then we assume it to be the separator
14015
# otherwise default to the standard path separator (i.e. ":") - it is
14016
# assumed that no part of a normal pathname contains ";" but that should
14017
# okay in the real world where ";" in dirpaths is itself problematic.
14018
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14020
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14023
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14025
need_lib_prefix=unknown
14026
hardcode_into_libs=no
14028
# when you set need_version to no, make sure it does not cause -set_version
14029
# flags to be left without arguments
14030
need_version=unknown
14035
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14036
shlibpath_var=LIBPATH
14038
# AIX 3 has no versioning support, so we append a major version to the name.
14039
soname_spec='${libname}${release}${shared_ext}$major'
14046
hardcode_into_libs=yes
14047
if test "$host_cpu" = ia64; then
14048
# AIX 5 supports IA64
14049
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14050
shlibpath_var=LD_LIBRARY_PATH
14052
# With GCC up to 2.95.x, collect2 would create an import file
14053
# for dependence libraries. The import file would start with
14054
# the line `#! .'. This would cause the generated library to
14055
# depend on `.', always an invalid library. This was fixed in
14056
# development snapshots of GCC prior to 3.0.
14058
aix4 | aix4.[01] | aix4.[01].*)
14059
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14061
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14064
can_build_shared=no
14068
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14069
# soname into executable. Probably we can add versioning support to
14070
# collect2, so additional links can be useful in future.
14071
if test "$aix_use_runtimelinking" = yes; then
14072
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14073
# instead of lib<name>.a to let people know that these are not
14074
# typical AIX shared libraries.
14075
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077
# We preserve .a as extension for shared libraries through AIX4.2
14078
# and later when we are not doing run time linking.
14079
library_names_spec='${libname}${release}.a $libname.a'
14080
soname_spec='${libname}${release}${shared_ext}$major'
14082
shlibpath_var=LIBPATH
14087
library_names_spec='$libname.ixlibrary $libname.a'
14088
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14089
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'
14093
library_names_spec='${libname}${shared_ext}'
14094
dynamic_linker="$host_os ld.so"
14095
shlibpath_var=LIBRARY_PATH
14101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102
soname_spec='${libname}${release}${shared_ext}$major'
14103
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14104
shlibpath_var=LD_LIBRARY_PATH
14105
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14106
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14107
# the default ld.so.conf also contains /usr/contrib/lib and
14108
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14109
# libtool to hard-code these into programs
14112
cygwin* | mingw* | pw32*)
14113
version_type=windows
14118
case $GCC,$host_os in
14119
yes,cygwin* | yes,mingw* | yes,pw32*)
14120
library_names_spec='$libname.dll.a'
14121
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14122
postinstall_cmds='base_file=`basename \${file}`~
14123
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14124
dldir=$destdir/`dirname \$dlpath`~
14125
test -d \$dldir || mkdir -p \$dldir~
14126
$install_prog $dir/$dlname \$dldir/$dlname'
14127
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14128
dlpath=$dir/\$dldll~
14130
shlibpath_overrides_runpath=yes
14134
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14135
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14136
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14139
# MinGW DLLs use traditional 'lib' prefix
14140
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14141
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14142
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14143
# It is most probably a Windows format PATH printed by
14144
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14145
# path with ; separators, and with drive letters. We can handle the
14146
# drive letters (cygwin fileutils understands them), so leave them,
14147
# especially as we might pass files found there to a mingw objdump,
14148
# which wouldn't understand a cygwinified path. Ahh.
14149
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14151
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14155
# pw32 DLLs use 'pw' prefix rather than 'lib'
14156
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14162
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14165
dynamic_linker='Win32 ld.exe'
14166
# FIXME: first we should search . and the directory the executable is in
14170
darwin* | rhapsody*)
14171
dynamic_linker="$host_os dyld"
14172
version_type=darwin
14175
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14176
soname_spec='${libname}${release}${major}$shared_ext'
14177
shlibpath_overrides_runpath=yes
14178
shlibpath_var=DYLD_LIBRARY_PATH
14179
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14180
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14181
if test "$GCC" = yes; then
14182
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"`
14184
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14186
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14194
soname_spec='${libname}${release}${shared_ext}$major'
14195
shlibpath_var=LD_LIBRARY_PATH
14206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14207
soname_spec='${libname}${release}${shared_ext}$major'
14208
shlibpath_var=LD_LIBRARY_PATH
14209
shlibpath_overrides_runpath=no
14210
hardcode_into_libs=yes
14211
dynamic_linker='GNU ld.so'
14215
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14216
version_type=freebsd-$objformat
14217
case $version_type in
14219
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14224
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14228
shlibpath_var=LD_LIBRARY_PATH
14231
shlibpath_overrides_runpath=yes
14233
freebsd3.01* | freebsdelf3.01*)
14234
shlibpath_overrides_runpath=yes
14235
hardcode_into_libs=yes
14238
shlibpath_overrides_runpath=no
14239
hardcode_into_libs=yes
14248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14249
soname_spec='${libname}${release}${shared_ext}$major'
14250
shlibpath_var=LD_LIBRARY_PATH
14251
hardcode_into_libs=yes
14254
hpux9* | hpux10* | hpux11*)
14255
# Give a soname corresponding to the major version so that dld.sl refuses to
14256
# link against other versions.
14260
case "$host_cpu" in
14263
hardcode_into_libs=yes
14264
dynamic_linker="$host_os dld.so"
14265
shlibpath_var=LD_LIBRARY_PATH
14266
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268
soname_spec='${libname}${release}${shared_ext}$major'
14269
if test "X$HPUX_IA64_MODE" = X32; then
14270
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14272
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14274
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14278
hardcode_into_libs=yes
14279
dynamic_linker="$host_os dld.sl"
14280
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14281
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14282
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283
soname_spec='${libname}${release}${shared_ext}$major'
14284
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14285
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14289
dynamic_linker="$host_os dld.sl"
14290
shlibpath_var=SHLIB_PATH
14291
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293
soname_spec='${libname}${release}${shared_ext}$major'
14296
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14297
postinstall_cmds='chmod 555 $lib'
14300
irix5* | irix6* | nonstopux*)
14302
nonstopux*) version_type=nonstopux ;;
14304
if test "$lt_cv_prog_gnu_ld" = yes; then
14312
soname_spec='${libname}${release}${shared_ext}$major'
14313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14315
irix5* | nonstopux*)
14316
libsuff= shlibsuff=
14319
case $LD in # libtool.m4 will add one of these switches to LD
14320
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14321
libsuff= shlibsuff= libmagic=32-bit;;
14322
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14323
libsuff=32 shlibsuff=N32 libmagic=N32;;
14324
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14325
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14326
*) libsuff= shlibsuff= libmagic=never-match;;
14330
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14331
shlibpath_overrides_runpath=no
14332
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14333
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14334
hardcode_into_libs=yes
14337
# No shared lib support for Linux oldld, aout, or coff.
14338
linux*oldld* | linux*aout* | linux*coff*)
14342
# This must be Linux ELF.
14347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348
soname_spec='${libname}${release}${shared_ext}$major'
14349
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14350
shlibpath_var=LD_LIBRARY_PATH
14351
shlibpath_overrides_runpath=no
14352
# This implies no fast_install, which is unacceptable.
14353
# Some rework will be needed to allow for fast_install
14354
# before this can be enabled.
14355
hardcode_into_libs=yes
14357
# Append ld.so.conf contents to the search path
14358
if test -f /etc/ld.so.conf; then
14359
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14360
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14363
# We used to test for /lib/ld.so.1 and disable shared libraries on
14364
# powerpc, because MkLinux only supported shared libraries with the
14365
# GNU dynamic linker. Since this was broken with cross compilers,
14366
# most powerpc-linux boxes support dynamic linking these days and
14367
# people can always --disable-shared, the test was removed, and we
14368
# assume the GNU/Linux dynamic linker is in use.
14369
dynamic_linker='GNU/Linux ld.so'
14376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14377
soname_spec='${libname}${release}${shared_ext}$major'
14378
shlibpath_var=LD_LIBRARY_PATH
14379
shlibpath_overrides_runpath=no
14380
hardcode_into_libs=yes
14381
dynamic_linker='NetBSD ld.elf_so'
14388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14389
soname_spec='${libname}${release}${shared_ext}$major'
14390
shlibpath_var=LD_LIBRARY_PATH
14391
shlibpath_overrides_runpath=no
14392
hardcode_into_libs=yes
14393
dynamic_linker='GNU ld.so'
14400
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14402
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14403
dynamic_linker='NetBSD (a.out) ld.so'
14405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14406
soname_spec='${libname}${release}${shared_ext}$major'
14407
dynamic_linker='NetBSD ld.elf_so'
14409
shlibpath_var=LD_LIBRARY_PATH
14410
shlibpath_overrides_runpath=yes
14411
hardcode_into_libs=yes
14416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417
shlibpath_var=LD_LIBRARY_PATH
14418
shlibpath_overrides_runpath=yes
14425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426
soname_spec='${libname}${release}${shared_ext}$major'
14427
shlibpath_var=LD_LIBRARY_PATH
14428
shlibpath_overrides_runpath=yes
14435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14436
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14437
shlibpath_var=LD_LIBRARY_PATH
14438
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14440
openbsd2.[89] | openbsd2.[89].*)
14441
shlibpath_overrides_runpath=no
14444
shlibpath_overrides_runpath=yes
14448
shlibpath_overrides_runpath=yes
14453
libname_spec='$name'
14456
library_names_spec='$libname${shared_ext} $libname.a'
14457
dynamic_linker='OS/2 ld.exe'
14458
shlibpath_var=LIBPATH
14461
osf3* | osf4* | osf5*)
14465
soname_spec='${libname}${release}${shared_ext}$major'
14466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467
shlibpath_var=LD_LIBRARY_PATH
14468
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14469
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14474
soname_spec='${libname}${release}${shared_ext}$major'
14475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476
shlibpath_var=LD_LIBRARY_PATH
14483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484
soname_spec='${libname}${release}${shared_ext}$major'
14485
shlibpath_var=LD_LIBRARY_PATH
14486
shlibpath_overrides_runpath=yes
14487
hardcode_into_libs=yes
14488
# ldd complains unless libraries are executable
14489
postinstall_cmds='chmod +x $lib'
14494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14495
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14496
shlibpath_var=LD_LIBRARY_PATH
14497
shlibpath_overrides_runpath=yes
14498
if test "$with_gnu_ld" = yes; then
14504
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14506
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507
soname_spec='${libname}${release}${shared_ext}$major'
14508
shlibpath_var=LD_LIBRARY_PATH
14509
case $host_vendor in
14511
shlibpath_overrides_runpath=no
14513
export_dynamic_flag_spec='${wl}-Blargedynsym'
14514
runpath_var=LD_RUN_PATH
14522
shlibpath_overrides_runpath=no
14523
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14529
if test -d /usr/nec ;then
14531
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14532
soname_spec='$libname${shared_ext}.$major'
14533
shlibpath_var=LD_LIBRARY_PATH
14539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540
soname_spec='${libname}${release}${shared_ext}$major'
14541
shlibpath_var=LD_LIBRARY_PATH
14548
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14549
echo "${ECHO_T}$dynamic_linker" >&6
14550
test "$dynamic_linker" = no && can_build_shared=no
14552
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14553
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14554
hardcode_action_CXX=
14555
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14556
test -n "$runpath_var CXX" || \
14557
test "X$hardcode_automatic_CXX"="Xyes" ; then
14559
# We can hardcode non-existant directories.
14560
if test "$hardcode_direct_CXX" != no &&
14561
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14562
# have to relink, otherwise we might link with an installed library
14563
# when we should be linking with a yet-to-be-installed one
14564
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14565
test "$hardcode_minus_L_CXX" != no; then
14566
# Linking always hardcodes the temporary library directory.
14567
hardcode_action_CXX=relink
14569
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14570
hardcode_action_CXX=immediate
14573
# We cannot hardcode anything, or else we can only hardcode existing
14575
hardcode_action_CXX=unsupported
14577
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14578
echo "${ECHO_T}$hardcode_action_CXX" >&6
14580
if test "$hardcode_action_CXX" = relink; then
14581
# Fast installation is not supported
14582
enable_fast_install=no
14583
elif test "$shlibpath_overrides_runpath" = yes ||
14584
test "$enable_shared" = no; then
14585
# Fast installation is not necessary
14586
enable_fast_install=needless
14591
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14592
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14593
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14594
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14595
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14596
echo "$as_me:$LINENO: result: yes" >&5
14597
echo "${ECHO_T}yes" >&6
14599
# FIXME - insert some real tests, host_os isn't really good enough
14602
if test -n "$STRIP" ; then
14603
striplib="$STRIP -x"
14604
echo "$as_me:$LINENO: result: yes" >&5
14605
echo "${ECHO_T}yes" >&6
14607
echo "$as_me:$LINENO: result: no" >&5
14608
echo "${ECHO_T}no" >&6
14612
echo "$as_me:$LINENO: result: no" >&5
14613
echo "${ECHO_T}no" >&6
14618
if test "x$enable_dlopen" != xyes; then
14619
enable_dlopen=unknown
14620
enable_dlopen_self=unknown
14621
enable_dlopen_self_static=unknown
14628
lt_cv_dlopen="load_add_on"
14630
lt_cv_dlopen_self=yes
14634
lt_cv_dlopen="LoadLibrary"
14639
lt_cv_dlopen="dlopen"
14644
# if libdl is installed we need to link against it
14645
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14646
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14647
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14648
echo $ECHO_N "(cached) $ECHO_C" >&6
14650
ac_check_lib_save_LIBS=$LIBS
14652
cat >conftest.$ac_ext <<_ACEOF
14655
cat confdefs.h >>conftest.$ac_ext
14656
cat >>conftest.$ac_ext <<_ACEOF
14657
/* end confdefs.h. */
14659
/* Override any gcc2 internal prototype to avoid an error. */
14663
/* We use char because int might match the return type of a gcc2
14664
builtin and then its argument prototype would still apply. */
14674
rm -f conftest.$ac_objext conftest$ac_exeext
14675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676
(eval $ac_link) 2>conftest.er1
14678
grep -v '^ *+' conftest.er1 >conftest.err
14680
cat conftest.err >&5
14681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682
(exit $ac_status); } &&
14683
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685
(eval $ac_try) 2>&5
14687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688
(exit $ac_status); }; } &&
14689
{ ac_try='test -s conftest$ac_exeext'
14690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691
(eval $ac_try) 2>&5
14693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694
(exit $ac_status); }; }; then
14695
ac_cv_lib_dl_dlopen=yes
14697
echo "$as_me: failed program was:" >&5
14698
sed 's/^/| /' conftest.$ac_ext >&5
14700
ac_cv_lib_dl_dlopen=no
14702
rm -f conftest.err conftest.$ac_objext \
14703
conftest$ac_exeext conftest.$ac_ext
14704
LIBS=$ac_check_lib_save_LIBS
14706
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14707
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14708
if test $ac_cv_lib_dl_dlopen = yes; then
14709
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14712
lt_cv_dlopen="dyld"
14714
lt_cv_dlopen_self=yes
14721
echo "$as_me:$LINENO: checking for shl_load" >&5
14722
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14723
if test "${ac_cv_func_shl_load+set}" = set; then
14724
echo $ECHO_N "(cached) $ECHO_C" >&6
14726
cat >conftest.$ac_ext <<_ACEOF
14729
cat confdefs.h >>conftest.$ac_ext
14730
cat >>conftest.$ac_ext <<_ACEOF
14731
/* end confdefs.h. */
14732
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14733
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14734
#define shl_load innocuous_shl_load
14736
/* System header to define __stub macros and hopefully few prototypes,
14737
which can conflict with char shl_load (); below.
14738
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14739
<limits.h> exists even on freestanding compilers. */
14742
# include <limits.h>
14744
# include <assert.h>
14749
/* Override any gcc2 internal prototype to avoid an error. */
14754
/* We use char because int might match the return type of a gcc2
14755
builtin and then its argument prototype would still apply. */
14757
/* The GNU C library defines this for functions which it implements
14758
to always fail with ENOSYS. Some functions are actually named
14759
something starting with __ and the normal name is an alias. */
14760
#if defined (__stub_shl_load) || defined (__stub___shl_load)
14763
char (*f) () = shl_load;
14772
return f != shl_load;
14777
rm -f conftest.$ac_objext conftest$ac_exeext
14778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779
(eval $ac_link) 2>conftest.er1
14781
grep -v '^ *+' conftest.er1 >conftest.err
14783
cat conftest.err >&5
14784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785
(exit $ac_status); } &&
14786
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788
(eval $ac_try) 2>&5
14790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791
(exit $ac_status); }; } &&
14792
{ ac_try='test -s conftest$ac_exeext'
14793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794
(eval $ac_try) 2>&5
14796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797
(exit $ac_status); }; }; then
14798
ac_cv_func_shl_load=yes
14800
echo "$as_me: failed program was:" >&5
14801
sed 's/^/| /' conftest.$ac_ext >&5
14803
ac_cv_func_shl_load=no
14805
rm -f conftest.err conftest.$ac_objext \
14806
conftest$ac_exeext conftest.$ac_ext
14808
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14809
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14810
if test $ac_cv_func_shl_load = yes; then
14811
lt_cv_dlopen="shl_load"
14813
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14814
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14815
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14816
echo $ECHO_N "(cached) $ECHO_C" >&6
14818
ac_check_lib_save_LIBS=$LIBS
14820
cat >conftest.$ac_ext <<_ACEOF
14823
cat confdefs.h >>conftest.$ac_ext
14824
cat >>conftest.$ac_ext <<_ACEOF
14825
/* end confdefs.h. */
14827
/* Override any gcc2 internal prototype to avoid an error. */
14831
/* We use char because int might match the return type of a gcc2
14832
builtin and then its argument prototype would still apply. */
14842
rm -f conftest.$ac_objext conftest$ac_exeext
14843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14844
(eval $ac_link) 2>conftest.er1
14846
grep -v '^ *+' conftest.er1 >conftest.err
14848
cat conftest.err >&5
14849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850
(exit $ac_status); } &&
14851
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14852
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853
(eval $ac_try) 2>&5
14855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856
(exit $ac_status); }; } &&
14857
{ ac_try='test -s conftest$ac_exeext'
14858
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859
(eval $ac_try) 2>&5
14861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862
(exit $ac_status); }; }; then
14863
ac_cv_lib_dld_shl_load=yes
14865
echo "$as_me: failed program was:" >&5
14866
sed 's/^/| /' conftest.$ac_ext >&5
14868
ac_cv_lib_dld_shl_load=no
14870
rm -f conftest.err conftest.$ac_objext \
14871
conftest$ac_exeext conftest.$ac_ext
14872
LIBS=$ac_check_lib_save_LIBS
14874
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14875
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14876
if test $ac_cv_lib_dld_shl_load = yes; then
14877
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14879
echo "$as_me:$LINENO: checking for dlopen" >&5
14880
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14881
if test "${ac_cv_func_dlopen+set}" = set; then
14882
echo $ECHO_N "(cached) $ECHO_C" >&6
14884
cat >conftest.$ac_ext <<_ACEOF
14887
cat confdefs.h >>conftest.$ac_ext
14888
cat >>conftest.$ac_ext <<_ACEOF
14889
/* end confdefs.h. */
14890
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14891
For example, HP-UX 11i <limits.h> declares gettimeofday. */
14892
#define dlopen innocuous_dlopen
14894
/* System header to define __stub macros and hopefully few prototypes,
14895
which can conflict with char dlopen (); below.
14896
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14897
<limits.h> exists even on freestanding compilers. */
14900
# include <limits.h>
14902
# include <assert.h>
14907
/* Override any gcc2 internal prototype to avoid an error. */
14912
/* We use char because int might match the return type of a gcc2
14913
builtin and then its argument prototype would still apply. */
14915
/* The GNU C library defines this for functions which it implements
14916
to always fail with ENOSYS. Some functions are actually named
14917
something starting with __ and the normal name is an alias. */
14918
#if defined (__stub_dlopen) || defined (__stub___dlopen)
14921
char (*f) () = dlopen;
14930
return f != dlopen;
14935
rm -f conftest.$ac_objext conftest$ac_exeext
14936
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14937
(eval $ac_link) 2>conftest.er1
14939
grep -v '^ *+' conftest.er1 >conftest.err
14941
cat conftest.err >&5
14942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943
(exit $ac_status); } &&
14944
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946
(eval $ac_try) 2>&5
14948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949
(exit $ac_status); }; } &&
14950
{ ac_try='test -s conftest$ac_exeext'
14951
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952
(eval $ac_try) 2>&5
14954
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955
(exit $ac_status); }; }; then
14956
ac_cv_func_dlopen=yes
14958
echo "$as_me: failed program was:" >&5
14959
sed 's/^/| /' conftest.$ac_ext >&5
14961
ac_cv_func_dlopen=no
14963
rm -f conftest.err conftest.$ac_objext \
14964
conftest$ac_exeext conftest.$ac_ext
14966
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14967
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14968
if test $ac_cv_func_dlopen = yes; then
14969
lt_cv_dlopen="dlopen"
14971
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14972
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14973
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14974
echo $ECHO_N "(cached) $ECHO_C" >&6
14976
ac_check_lib_save_LIBS=$LIBS
14978
cat >conftest.$ac_ext <<_ACEOF
14981
cat confdefs.h >>conftest.$ac_ext
14982
cat >>conftest.$ac_ext <<_ACEOF
14983
/* end confdefs.h. */
14985
/* Override any gcc2 internal prototype to avoid an error. */
14989
/* We use char because int might match the return type of a gcc2
14990
builtin and then its argument prototype would still apply. */
15000
rm -f conftest.$ac_objext conftest$ac_exeext
15001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002
(eval $ac_link) 2>conftest.er1
15004
grep -v '^ *+' conftest.er1 >conftest.err
15006
cat conftest.err >&5
15007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008
(exit $ac_status); } &&
15009
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15010
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011
(eval $ac_try) 2>&5
15013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014
(exit $ac_status); }; } &&
15015
{ ac_try='test -s conftest$ac_exeext'
15016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017
(eval $ac_try) 2>&5
15019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020
(exit $ac_status); }; }; then
15021
ac_cv_lib_dl_dlopen=yes
15023
echo "$as_me: failed program was:" >&5
15024
sed 's/^/| /' conftest.$ac_ext >&5
15026
ac_cv_lib_dl_dlopen=no
15028
rm -f conftest.err conftest.$ac_objext \
15029
conftest$ac_exeext conftest.$ac_ext
15030
LIBS=$ac_check_lib_save_LIBS
15032
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15033
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15034
if test $ac_cv_lib_dl_dlopen = yes; then
15035
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15037
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15038
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15039
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15040
echo $ECHO_N "(cached) $ECHO_C" >&6
15042
ac_check_lib_save_LIBS=$LIBS
15043
LIBS="-lsvld $LIBS"
15044
cat >conftest.$ac_ext <<_ACEOF
15047
cat confdefs.h >>conftest.$ac_ext
15048
cat >>conftest.$ac_ext <<_ACEOF
15049
/* end confdefs.h. */
15051
/* Override any gcc2 internal prototype to avoid an error. */
15055
/* We use char because int might match the return type of a gcc2
15056
builtin and then its argument prototype would still apply. */
15066
rm -f conftest.$ac_objext conftest$ac_exeext
15067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15068
(eval $ac_link) 2>conftest.er1
15070
grep -v '^ *+' conftest.er1 >conftest.err
15072
cat conftest.err >&5
15073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074
(exit $ac_status); } &&
15075
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077
(eval $ac_try) 2>&5
15079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080
(exit $ac_status); }; } &&
15081
{ ac_try='test -s conftest$ac_exeext'
15082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083
(eval $ac_try) 2>&5
15085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086
(exit $ac_status); }; }; then
15087
ac_cv_lib_svld_dlopen=yes
15089
echo "$as_me: failed program was:" >&5
15090
sed 's/^/| /' conftest.$ac_ext >&5
15092
ac_cv_lib_svld_dlopen=no
15094
rm -f conftest.err conftest.$ac_objext \
15095
conftest$ac_exeext conftest.$ac_ext
15096
LIBS=$ac_check_lib_save_LIBS
15098
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15099
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15100
if test $ac_cv_lib_svld_dlopen = yes; then
15101
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15103
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15104
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15105
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15106
echo $ECHO_N "(cached) $ECHO_C" >&6
15108
ac_check_lib_save_LIBS=$LIBS
15110
cat >conftest.$ac_ext <<_ACEOF
15113
cat confdefs.h >>conftest.$ac_ext
15114
cat >>conftest.$ac_ext <<_ACEOF
15115
/* end confdefs.h. */
15117
/* Override any gcc2 internal prototype to avoid an error. */
15121
/* We use char because int might match the return type of a gcc2
15122
builtin and then its argument prototype would still apply. */
15132
rm -f conftest.$ac_objext conftest$ac_exeext
15133
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134
(eval $ac_link) 2>conftest.er1
15136
grep -v '^ *+' conftest.er1 >conftest.err
15138
cat conftest.err >&5
15139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140
(exit $ac_status); } &&
15141
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15142
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143
(eval $ac_try) 2>&5
15145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146
(exit $ac_status); }; } &&
15147
{ ac_try='test -s conftest$ac_exeext'
15148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149
(eval $ac_try) 2>&5
15151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152
(exit $ac_status); }; }; then
15153
ac_cv_lib_dld_dld_link=yes
15155
echo "$as_me: failed program was:" >&5
15156
sed 's/^/| /' conftest.$ac_ext >&5
15158
ac_cv_lib_dld_dld_link=no
15160
rm -f conftest.err conftest.$ac_objext \
15161
conftest$ac_exeext conftest.$ac_ext
15162
LIBS=$ac_check_lib_save_LIBS
15164
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15165
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15166
if test $ac_cv_lib_dld_dld_link = yes; then
15167
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15188
if test "x$lt_cv_dlopen" != xno; then
15194
case $lt_cv_dlopen in
15196
save_CPPFLAGS="$CPPFLAGS"
15197
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15199
save_LDFLAGS="$LDFLAGS"
15200
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15203
LIBS="$lt_cv_dlopen_libs $LIBS"
15205
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15206
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15207
if test "${lt_cv_dlopen_self+set}" = set; then
15208
echo $ECHO_N "(cached) $ECHO_C" >&6
15210
if test "$cross_compiling" = yes; then :
15211
lt_cv_dlopen_self=cross
15213
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15214
lt_status=$lt_dlunknown
15215
cat > conftest.$ac_ext <<EOF
15216
#line __oline__ "configure"
15217
#include "confdefs.h"
15226
# define LT_DLGLOBAL RTLD_GLOBAL
15229
# define LT_DLGLOBAL DL_GLOBAL
15231
# define LT_DLGLOBAL 0
15235
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15236
find out it does not work in some platform. */
15237
#ifndef LT_DLLAZY_OR_NOW
15239
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15242
# define LT_DLLAZY_OR_NOW DL_LAZY
15245
# define LT_DLLAZY_OR_NOW RTLD_NOW
15248
# define LT_DLLAZY_OR_NOW DL_NOW
15250
# define LT_DLLAZY_OR_NOW 0
15258
extern "C" void exit (int);
15261
void fnord() { int i=42;}
15264
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15265
int status = $lt_dlunknown;
15269
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15270
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15271
/* dlclose (self); */
15277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278
(eval $ac_link) 2>&5
15280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15282
(./conftest; exit; ) 2>/dev/null
15284
case x$lt_status in
15285
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15286
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15287
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15290
# compilation failed
15291
lt_cv_dlopen_self=no
15298
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15299
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15301
if test "x$lt_cv_dlopen_self" = xyes; then
15302
LDFLAGS="$LDFLAGS $link_static_flag"
15303
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15304
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15305
if test "${lt_cv_dlopen_self_static+set}" = set; then
15306
echo $ECHO_N "(cached) $ECHO_C" >&6
15308
if test "$cross_compiling" = yes; then :
15309
lt_cv_dlopen_self_static=cross
15311
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15312
lt_status=$lt_dlunknown
15313
cat > conftest.$ac_ext <<EOF
15314
#line __oline__ "configure"
15315
#include "confdefs.h"
15324
# define LT_DLGLOBAL RTLD_GLOBAL
15327
# define LT_DLGLOBAL DL_GLOBAL
15329
# define LT_DLGLOBAL 0
15333
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15334
find out it does not work in some platform. */
15335
#ifndef LT_DLLAZY_OR_NOW
15337
# define LT_DLLAZY_OR_NOW RTLD_LAZY
15340
# define LT_DLLAZY_OR_NOW DL_LAZY
15343
# define LT_DLLAZY_OR_NOW RTLD_NOW
15346
# define LT_DLLAZY_OR_NOW DL_NOW
15348
# define LT_DLLAZY_OR_NOW 0
15356
extern "C" void exit (int);
15359
void fnord() { int i=42;}
15362
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15363
int status = $lt_dlunknown;
15367
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15368
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15369
/* dlclose (self); */
15375
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376
(eval $ac_link) 2>&5
15378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15380
(./conftest; exit; ) 2>/dev/null
15382
case x$lt_status in
15383
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15384
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15385
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15388
# compilation failed
15389
lt_cv_dlopen_self_static=no
15396
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15397
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15400
CPPFLAGS="$save_CPPFLAGS"
15401
LDFLAGS="$save_LDFLAGS"
15406
case $lt_cv_dlopen_self in
15407
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15408
*) enable_dlopen_self=unknown ;;
15411
case $lt_cv_dlopen_self_static in
15412
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15413
*) enable_dlopen_self_static=unknown ;;
15418
# The else clause should only fire when bootstrapping the
15419
# libtool distribution, otherwise you forgot to ship ltmain.sh
15420
# with your package, and you will get complaints that there are
15421
# no rules to generate ltmain.sh.
15422
if test -f "$ltmain"; then
15423
# See if we are running on zsh, and set the options which allow our commands through
15424
# without removal of \ escapes.
15425
if test -n "${ZSH_VERSION+set}" ; then
15426
setopt NO_GLOB_SUBST
15428
# Now quote all the things that may contain metacharacters while being
15429
# careful not to overquote the AC_SUBSTed values. We take copies of the
15430
# variables and quote the copies for generation of the libtool script.
15431
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15433
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15434
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15435
deplibs_check_method reload_flag reload_cmds need_locks \
15436
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15437
lt_cv_sys_global_symbol_to_c_name_address \
15438
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15439
old_postinstall_cmds old_postuninstall_cmds \
15443
lt_prog_compiler_wl_CXX \
15444
lt_prog_compiler_pic_CXX \
15445
lt_prog_compiler_static_CXX \
15446
lt_prog_compiler_no_builtin_flag_CXX \
15447
export_dynamic_flag_spec_CXX \
15448
thread_safe_flag_spec_CXX \
15449
whole_archive_flag_spec_CXX \
15450
enable_shared_with_static_runtimes_CXX \
15451
old_archive_cmds_CXX \
15452
old_archive_from_new_cmds_CXX \
15453
predep_objects_CXX \
15454
postdep_objects_CXX \
15457
compiler_lib_search_path_CXX \
15459
archive_expsym_cmds_CXX \
15460
postinstall_cmds_CXX \
15461
postuninstall_cmds_CXX \
15462
old_archive_from_expsyms_cmds_CXX \
15463
allow_undefined_flag_CXX \
15464
no_undefined_flag_CXX \
15465
export_symbols_cmds_CXX \
15466
hardcode_libdir_flag_spec_CXX \
15467
hardcode_libdir_flag_spec_ld_CXX \
15468
hardcode_libdir_separator_CXX \
15469
hardcode_automatic_CXX \
15471
module_expsym_cmds_CXX \
15472
lt_cv_prog_compiler_c_o_CXX \
15473
exclude_expsyms_CXX \
15474
include_expsyms_CXX; do
15477
old_archive_cmds_CXX | \
15478
old_archive_from_new_cmds_CXX | \
15479
archive_cmds_CXX | \
15480
archive_expsym_cmds_CXX | \
15481
module_cmds_CXX | \
15482
module_expsym_cmds_CXX | \
15483
old_archive_from_expsyms_cmds_CXX | \
15484
export_symbols_cmds_CXX | \
15485
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15486
postinstall_cmds | postuninstall_cmds | \
15487
old_postinstall_cmds | old_postuninstall_cmds | \
15488
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15489
# Double-quote double-evaled strings.
15490
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15493
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15499
*'\$0 --fallback-echo"')
15500
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15506
cat <<__EOF__ >> "$cfgfile"
15507
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15509
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15511
# Shell to use when invoking shell scripts.
15514
# Whether or not to build shared libraries.
15515
build_libtool_libs=$enable_shared
15517
# Whether or not to build static libraries.
15518
build_old_libs=$enable_static
15520
# Whether or not to add -lc for building shared libraries.
15521
build_libtool_need_lc=$archive_cmds_need_lc_CXX
15523
# Whether or not to disallow shared libs when runtime libs are static
15524
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15526
# Whether or not to optimize for fast installation.
15527
fast_install=$enable_fast_install
15530
host_alias=$host_alias
15533
# An echo program that does not interpret backslashes.
15538
AR_FLAGS=$lt_AR_FLAGS
15543
# A language-specific compiler.
15544
CC=$lt_compiler_CXX
15546
# Is the compiler the GNU C compiler?
15552
# The linker used to build libraries.
15555
# Whether we need hard or soft links.
15558
# A BSD-compatible nm program.
15561
# A symbol stripping program
15564
# Used to examine libraries when file_magic_cmd begins "file"
15565
MAGIC_CMD=$MAGIC_CMD
15567
# Used on cygwin: DLL creation program.
15570
# Used on cygwin: object dumper.
15573
# Used on cygwin: assembler.
15576
# The name of the directory that contains temporary libtool files.
15579
# How to create reloadable object files.
15580
reload_flag=$lt_reload_flag
15581
reload_cmds=$lt_reload_cmds
15583
# How to pass a linker flag through the compiler.
15584
wl=$lt_lt_prog_compiler_wl_CXX
15586
# Object file suffix (normally "o").
15587
objext="$ac_objext"
15589
# Old archive suffix (normally "a").
15592
# Shared library suffix (normally ".so").
15593
shrext_cmds='$shrext_cmds'
15595
# Executable file suffix (normally "").
15598
# Additional compiler flags for building library objects.
15599
pic_flag=$lt_lt_prog_compiler_pic_CXX
15602
# What is the maximum length of a command?
15603
max_cmd_len=$lt_cv_sys_max_cmd_len
15605
# Does compiler simultaneously support -c and -o options?
15606
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15608
# Must we lock files when doing compilation ?
15609
need_locks=$lt_need_locks
15611
# Do we need the lib prefix for modules?
15612
need_lib_prefix=$need_lib_prefix
15614
# Do we need a version for libraries?
15615
need_version=$need_version
15617
# Whether dlopen is supported.
15618
dlopen_support=$enable_dlopen
15620
# Whether dlopen of programs is supported.
15621
dlopen_self=$enable_dlopen_self
15623
# Whether dlopen of statically linked programs is supported.
15624
dlopen_self_static=$enable_dlopen_self_static
15626
# Compiler flag to prevent dynamic linking.
15627
link_static_flag=$lt_lt_prog_compiler_static_CXX
15629
# Compiler flag to turn off builtin functions.
15630
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15632
# Compiler flag to allow reflexive dlopens.
15633
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15635
# Compiler flag to generate shared objects directly from archives.
15636
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15638
# Compiler flag to generate thread-safe objects.
15639
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15641
# Library versioning type.
15642
version_type=$version_type
15644
# Format of library name prefix.
15645
libname_spec=$lt_libname_spec
15647
# List of archive names. First name is the real one, the rest are links.
15648
# The last name is the one that the linker finds with -lNAME.
15649
library_names_spec=$lt_library_names_spec
15651
# The coded name of the library, if different from the real name.
15652
soname_spec=$lt_soname_spec
15654
# Commands used to build and install an old-style archive.
15656
old_archive_cmds=$lt_old_archive_cmds_CXX
15657
old_postinstall_cmds=$lt_old_postinstall_cmds
15658
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15660
# Create an old-style archive from a shared archive.
15661
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15663
# Create a temporary old-style archive to link instead of a shared archive.
15664
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15666
# Commands used to build and install a shared archive.
15667
archive_cmds=$lt_archive_cmds_CXX
15668
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15669
postinstall_cmds=$lt_postinstall_cmds
15670
postuninstall_cmds=$lt_postuninstall_cmds
15672
# Commands used to build a loadable module (assumed same as above if empty)
15673
module_cmds=$lt_module_cmds_CXX
15674
module_expsym_cmds=$lt_module_expsym_cmds_CXX
15676
# Commands to strip libraries.
15677
old_striplib=$lt_old_striplib
15678
striplib=$lt_striplib
15680
# Dependencies to place before the objects being linked to create a
15682
predep_objects=$lt_predep_objects_CXX
15684
# Dependencies to place after the objects being linked to create a
15686
postdep_objects=$lt_postdep_objects_CXX
15688
# Dependencies to place before the objects being linked to create a
15690
predeps=$lt_predeps_CXX
15692
# Dependencies to place after the objects being linked to create a
15694
postdeps=$lt_postdeps_CXX
15696
# The library search path used internally by the compiler when linking
15697
# a shared library.
15698
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15700
# Method to check whether dependent libraries are shared objects.
15701
deplibs_check_method=$lt_deplibs_check_method
15703
# Command to use when deplibs_check_method == file_magic.
15704
file_magic_cmd=$lt_file_magic_cmd
15706
# Flag that allows shared libraries with undefined symbols to be built.
15707
allow_undefined_flag=$lt_allow_undefined_flag_CXX
15709
# Flag that forces no undefined symbols.
15710
no_undefined_flag=$lt_no_undefined_flag_CXX
15712
# Commands used to finish a libtool library installation in a directory.
15713
finish_cmds=$lt_finish_cmds
15715
# Same as above, but a single script fragment to be evaled but not shown.
15716
finish_eval=$lt_finish_eval
15718
# Take the output of nm and produce a listing of raw symbols and C names.
15719
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15721
# Transform the output of nm in a proper C declaration
15722
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15724
# Transform the output of nm in a C name address pair
15725
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15727
# This is the shared library runtime path variable.
15728
runpath_var=$runpath_var
15730
# This is the shared library path variable.
15731
shlibpath_var=$shlibpath_var
15733
# Is shlibpath searched before the hard-coded library search path?
15734
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15736
# How to hardcode a shared library path into an executable.
15737
hardcode_action=$hardcode_action_CXX
15739
# Whether we should hardcode library paths into libraries.
15740
hardcode_into_libs=$hardcode_into_libs
15742
# Flag to hardcode \$libdir into a binary during linking.
15743
# This must work even if \$libdir does not exist.
15744
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15746
# If ld is used when linking, flag to hardcode \$libdir into
15747
# a binary during linking. This must work even if \$libdir does
15749
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15751
# Whether we need a single -rpath flag with a separated argument.
15752
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15754
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15755
# resulting binary.
15756
hardcode_direct=$hardcode_direct_CXX
15758
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15759
# resulting binary.
15760
hardcode_minus_L=$hardcode_minus_L_CXX
15762
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15763
# the resulting binary.
15764
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15766
# Set to yes if building a shared library automatically hardcodes DIR into the library
15767
# and all subsequent libraries and executables linked against it.
15768
hardcode_automatic=$hardcode_automatic_CXX
15770
# Variables whose values should be saved in libtool wrapper scripts and
15771
# restored at relink time.
15772
variables_saved_for_relink="$variables_saved_for_relink"
15774
# Whether libtool must link a program against all its dependency libraries.
15775
link_all_deplibs=$link_all_deplibs_CXX
15777
# Compile-time system search path for libraries
15778
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15780
# Run-time system search path for libraries
15781
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15783
# Fix the shell variable \$srcfile for the compiler.
15784
fix_srcfile_path="$fix_srcfile_path_CXX"
15786
# Set to yes if exported symbols are required.
15787
always_export_symbols=$always_export_symbols_CXX
15789
# The commands to list exported symbols.
15790
export_symbols_cmds=$lt_export_symbols_cmds_CXX
15792
# The commands to extract the exported symbol list from a shared archive.
15793
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15795
# Symbols that should not be listed in the preloaded symbols.
15796
exclude_expsyms=$lt_exclude_expsyms_CXX
15798
# Symbols that must always be exported.
15799
include_expsyms=$lt_include_expsyms_CXX
15801
# ### END LIBTOOL TAG CONFIG: $tagname
15807
# If there is no Makefile yet, we rely on a make rule to execute
15808
# `config.status --recheck' to rerun these tests and create the
15809
# libtool script then.
15810
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15811
if test -f "$ltmain_in"; then
15812
test -f Makefile && make "$ltmain"
15818
ac_cpp='$CPP $CPPFLAGS'
15819
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15820
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15821
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15827
with_gnu_ldcxx=$with_gnu_ld
15828
with_gnu_ld=$lt_save_with_gnu_ld
15829
lt_cv_path_LDCXX=$lt_cv_path_LD
15830
lt_cv_path_LD=$lt_save_path_LD
15831
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15832
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15840
if test -n "$F77" && test "X$F77" != "Xno"; then
15843
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15844
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15845
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15848
archive_cmds_need_lc_F77=no
15849
allow_undefined_flag_F77=
15850
always_export_symbols_F77=no
15851
archive_expsym_cmds_F77=
15852
export_dynamic_flag_spec_F77=
15853
hardcode_direct_F77=no
15854
hardcode_libdir_flag_spec_F77=
15855
hardcode_libdir_flag_spec_ld_F77=
15856
hardcode_libdir_separator_F77=
15857
hardcode_minus_L_F77=no
15858
hardcode_automatic_F77=no
15860
module_expsym_cmds_F77=
15861
link_all_deplibs_F77=unknown
15862
old_archive_cmds_F77=$old_archive_cmds
15863
no_undefined_flag_F77=
15864
whole_archive_flag_spec_F77=
15865
enable_shared_with_static_runtimes_F77=no
15867
# Source file extension for f77 test sources.
15870
# Object file extension for compiled f77 test sources.
15874
# Code to be used in simple compile tests
15875
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15877
# Code to be used in simple link tests
15878
lt_simple_link_test_code=" program t\n end\n"
15880
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15882
# If no C compiler was specified, use CC.
15885
# Allow CC to be a program name with arguments.
15889
# Allow CC to be a program name with arguments.
15894
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15896
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15897
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15898
echo "$as_me:$LINENO: result: $can_build_shared" >&5
15899
echo "${ECHO_T}$can_build_shared" >&6
15901
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15902
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15903
test "$can_build_shared" = "no" && enable_shared=no
15905
# On AIX, shared libraries and static libraries use the same namespace, and
15906
# are all built from PIC.
15909
test "$enable_shared" = yes && enable_static=no
15910
if test -n "$RANLIB"; then
15911
archive_cmds="$archive_cmds~\$RANLIB \$lib"
15912
postinstall_cmds='$RANLIB $lib'
15916
test "$enable_shared" = yes && enable_static=no
15919
echo "$as_me:$LINENO: result: $enable_shared" >&5
15920
echo "${ECHO_T}$enable_shared" >&6
15922
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15923
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15924
# Make sure either enable_shared or enable_static is yes.
15925
test "$enable_shared" = yes || enable_static=yes
15926
echo "$as_me:$LINENO: result: $enable_static" >&5
15927
echo "${ECHO_T}$enable_static" >&6
15929
test "$ld_shlibs_F77" = no && can_build_shared=no
15934
lt_prog_compiler_wl_F77=
15935
lt_prog_compiler_pic_F77=
15936
lt_prog_compiler_static_F77=
15938
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15939
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15941
if test "$GCC" = yes; then
15942
lt_prog_compiler_wl_F77='-Wl,'
15943
lt_prog_compiler_static_F77='-static'
15947
# All AIX code is PIC.
15948
if test "$host_cpu" = ia64; then
15949
# AIX 5 now supports IA64 processor
15950
lt_prog_compiler_static_F77='-Bstatic'
15955
# FIXME: we need at least 68020 code to build shared libraries, but
15956
# adding the `-m68020' flag to GCC prevents building anything better,
15958
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15961
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15962
# PIC is the default for these OSes.
15965
mingw* | pw32* | os2*)
15966
# This hack is so that the source file can tell whether it is being
15967
# built for inclusion in a dll (and should export symbols for example).
15968
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15971
darwin* | rhapsody*)
15972
# PIC is the default on this platform
15973
# Common symbols not allowed in MH_DYLIB files
15974
lt_prog_compiler_pic_F77='-fno-common'
15978
# Just because we use GCC doesn't mean we suddenly get shared libraries
15979
# on systems that don't support them.
15980
lt_prog_compiler_can_build_shared_F77=no
15985
if test -d /usr/nec; then
15986
lt_prog_compiler_pic_F77=-Kconform_pic
15991
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15992
# not for PA HP-UX.
15993
case "$host_cpu" in
15998
lt_prog_compiler_pic_F77='-fPIC'
16004
lt_prog_compiler_pic_F77='-fPIC'
16008
# PORTME Check for flag to pass linker flags through the system compiler.
16011
lt_prog_compiler_wl_F77='-Wl,'
16012
if test "$host_cpu" = ia64; then
16013
# AIX 5 now supports IA64 processor
16014
lt_prog_compiler_static_F77='-Bstatic'
16016
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16020
mingw* | pw32* | os2*)
16021
# This hack is so that the source file can tell whether it is being
16022
# built for inclusion in a dll (and should export symbols for example).
16023
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16026
hpux9* | hpux10* | hpux11*)
16027
lt_prog_compiler_wl_F77='-Wl,'
16028
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16029
# not for PA HP-UX.
16030
case "$host_cpu" in
16035
lt_prog_compiler_pic_F77='+Z'
16038
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16039
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16042
irix5* | irix6* | nonstopux*)
16043
lt_prog_compiler_wl_F77='-Wl,'
16044
# PIC (with -KPIC) is the default.
16045
lt_prog_compiler_static_F77='-non_shared'
16049
lt_prog_compiler_pic_F77='-KPIC'
16050
lt_prog_compiler_static_F77='-Bstatic'
16056
lt_prog_compiler_wl_F77='-Wl,'
16057
lt_prog_compiler_pic_F77='-KPIC'
16058
lt_prog_compiler_static_F77='-static'
16061
lt_prog_compiler_wl_F77='-Wl,'
16062
# All Alpha code is PIC.
16063
lt_prog_compiler_static_F77='-non_shared'
16068
osf3* | osf4* | osf5*)
16069
lt_prog_compiler_wl_F77='-Wl,'
16070
# All OSF/1 code is PIC.
16071
lt_prog_compiler_static_F77='-non_shared'
16075
lt_prog_compiler_pic_F77='-Kpic'
16076
lt_prog_compiler_static_F77='-dn'
16080
lt_prog_compiler_wl_F77='-Wl,'
16081
lt_prog_compiler_pic_F77='-KPIC'
16082
lt_prog_compiler_static_F77='-Bstatic'
16086
lt_prog_compiler_wl_F77='-Qoption ld '
16087
lt_prog_compiler_pic_F77='-PIC'
16088
lt_prog_compiler_static_F77='-Bstatic'
16091
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16092
lt_prog_compiler_wl_F77='-Wl,'
16093
lt_prog_compiler_pic_F77='-KPIC'
16094
lt_prog_compiler_static_F77='-Bstatic'
16098
if test -d /usr/nec ;then
16099
lt_prog_compiler_pic_F77='-Kconform_pic'
16100
lt_prog_compiler_static_F77='-Bstatic'
16105
lt_prog_compiler_pic_F77='-pic'
16106
lt_prog_compiler_static_F77='-Bstatic'
16110
lt_prog_compiler_can_build_shared_F77=no
16115
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16116
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16119
# Check to make sure the PIC flag actually works.
16121
if test -n "$lt_prog_compiler_pic_F77"; then
16123
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16124
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16125
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16126
echo $ECHO_N "(cached) $ECHO_C" >&6
16128
lt_prog_compiler_pic_works_F77=no
16129
ac_outfile=conftest.$ac_objext
16130
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16131
lt_compiler_flag="$lt_prog_compiler_pic_F77"
16132
# Insert the option either (1) after the last *FLAGS variable, or
16133
# (2) before a word containing "conftest.", or (3) at the end.
16134
# Note that $ac_compile itself does not contain backslashes and begins
16135
# with a dollar sign (not a hyphen), so the echo should work correctly.
16136
# The option is referenced via a variable to avoid confusing sed.
16137
lt_compile=`echo "$ac_compile" | $SED \
16138
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16139
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16140
-e 's:$: $lt_compiler_flag:'`
16141
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16142
(eval "$lt_compile" 2>conftest.err)
16144
cat conftest.err >&5
16145
echo "$as_me:__oline__: \$? = $ac_status" >&5
16146
if (exit $ac_status) && test -s "$ac_outfile"; then
16147
# The compiler can only warn and ignore the option if not recognized
16148
# So say no if there are warnings
16149
if test ! -s conftest.err; then
16150
lt_prog_compiler_pic_works_F77=yes
16156
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16157
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16159
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16160
case $lt_prog_compiler_pic_F77 in
16162
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16165
lt_prog_compiler_pic_F77=
16166
lt_prog_compiler_can_build_shared_F77=no
16171
# For platforms which do not support PIC, -DPIC is meaningless:
16173
lt_prog_compiler_pic_F77=
16176
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16180
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16181
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16182
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16183
echo $ECHO_N "(cached) $ECHO_C" >&6
16185
lt_cv_prog_compiler_c_o_F77=no
16186
$rm -r conftest 2>/dev/null
16190
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16192
lt_compiler_flag="-o out/conftest2.$ac_objext"
16193
# Insert the option either (1) after the last *FLAGS variable, or
16194
# (2) before a word containing "conftest.", or (3) at the end.
16195
# Note that $ac_compile itself does not contain backslashes and begins
16196
# with a dollar sign (not a hyphen), so the echo should work correctly.
16197
lt_compile=`echo "$ac_compile" | $SED \
16198
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16199
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16200
-e 's:$: $lt_compiler_flag:'`
16201
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16202
(eval "$lt_compile" 2>out/conftest.err)
16204
cat out/conftest.err >&5
16205
echo "$as_me:__oline__: \$? = $ac_status" >&5
16206
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16208
# The compiler can only warn and ignore the option if not recognized
16209
# So say no if there are warnings
16210
if test ! -s out/conftest.err; then
16211
lt_cv_prog_compiler_c_o_F77=yes
16216
# SGI C++ compiler will create directory out/ii_files/ for
16217
# template instantiation
16218
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16219
$rm out/* && rmdir out
16225
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16226
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16229
hard_links="nottested"
16230
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16231
# do not overwrite the value of need_locks provided by the user
16232
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16233
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16236
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16238
ln conftest.a conftest.b 2>&5 || hard_links=no
16239
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16240
echo "$as_me:$LINENO: result: $hard_links" >&5
16241
echo "${ECHO_T}$hard_links" >&6
16242
if test "$hard_links" = no; then
16243
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16244
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16251
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16252
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16255
allow_undefined_flag_F77=
16256
enable_shared_with_static_runtimes_F77=no
16258
archive_expsym_cmds_F77=
16259
old_archive_From_new_cmds_F77=
16260
old_archive_from_expsyms_cmds_F77=
16261
export_dynamic_flag_spec_F77=
16262
whole_archive_flag_spec_F77=
16263
thread_safe_flag_spec_F77=
16264
hardcode_libdir_flag_spec_F77=
16265
hardcode_libdir_flag_spec_ld_F77=
16266
hardcode_libdir_separator_F77=
16267
hardcode_direct_F77=no
16268
hardcode_minus_L_F77=no
16269
hardcode_shlibpath_var_F77=unsupported
16270
link_all_deplibs_F77=unknown
16271
hardcode_automatic_F77=no
16273
module_expsym_cmds_F77=
16274
always_export_symbols_F77=no
16275
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16276
# include_expsyms should be a list of space-separated symbols to be *always*
16277
# included in the symbol list
16278
include_expsyms_F77=
16279
# exclude_expsyms can be an extended regexp of symbols to exclude
16280
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16281
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16282
# as well as any symbol that contains `d'.
16283
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16284
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16285
# platforms (ab)use it in PIC code, but their linkers get confused if
16286
# the symbol is explicitly referenced. Since portable code cannot
16287
# rely on this symbol name, it's probably fine to never include it in
16288
# preloaded symbol tables.
16289
extract_expsyms_cmds=
16292
cygwin* | mingw* | pw32*)
16293
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16294
# When not using gcc, we currently assume that we are using
16295
# Microsoft Visual C++.
16296
if test "$GCC" != yes; then
16306
if test "$with_gnu_ld" = yes; then
16307
# If archive_cmds runs LD, not CC, wlarc should be empty
16310
# See if GNU ld supports shared libraries.
16312
aix3* | aix4* | aix5*)
16313
# On AIX/PPC, the GNU linker is very broken
16314
if test "$host_cpu" != ia64; then
16318
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16319
*** to be unable to reliably create shared libraries on AIX.
16320
*** Therefore, libtool is disabling shared libraries support. If you
16321
*** really care for shared libraries, you may want to modify your PATH
16322
*** so that a non-GNU linker is found, and then restart.
16329
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)'
16330
hardcode_libdir_flag_spec_F77='-L$libdir'
16331
hardcode_minus_L_F77=yes
16333
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16334
# that the semantics of dynamic libraries on AmigaOS, at least up
16335
# to version 4, is to share data among multiple programs linked
16336
# with the same dynamic library. Since this doesn't match the
16337
# behavior of shared libraries on other platforms, we can't use
16343
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16344
allow_undefined_flag_F77=unsupported
16345
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16346
# support --undefined. This deserves some investigation. FIXME
16347
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16353
cygwin* | mingw* | pw32*)
16354
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16355
# as there is no search path for DLLs.
16356
hardcode_libdir_flag_spec_F77='-L$libdir'
16357
allow_undefined_flag_F77=unsupported
16358
always_export_symbols_F77=no
16359
enable_shared_with_static_runtimes_F77=yes
16360
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16362
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16363
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16364
# If the export-symbols file already is a .def file (1st line
16365
# is EXPORTS), use it as is; otherwise, prepend...
16366
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16367
cp $export_symbols $output_objdir/$soname.def;
16369
echo EXPORTS > $output_objdir/$soname.def;
16370
cat $export_symbols >> $output_objdir/$soname.def;
16372
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16378
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16379
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16380
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16383
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16384
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16389
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16393
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16394
*** create shared libraries on Solaris systems. Therefore, libtool
16395
*** is disabling shared libraries support. We urge you to upgrade GNU
16396
*** binutils to release 2.9.1 or newer. Another option is to modify
16397
*** your PATH or compiler configuration so that the native linker is
16398
*** used, and then restart.
16401
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16402
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16403
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16410
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16412
hardcode_direct_F77=yes
16413
hardcode_shlibpath_var_F77=no
16417
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16418
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419
archive_cmds_F77="$tmp_archive_cmds"
16420
supports_anon_versioning=no
16421
case `$LD -v 2>/dev/null` in
16422
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16423
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16424
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16425
*\ 2.11.*) ;; # other 2.11 versions
16426
*) supports_anon_versioning=yes ;;
16428
if test $supports_anon_versioning = yes; then
16429
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16430
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16431
$echo "local: *; };" >> $output_objdir/$libname.ver~
16432
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16434
archive_expsym_cmds_F77="$tmp_archive_cmds"
16436
link_all_deplibs_F77=no
16443
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16444
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16445
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16452
if test "$ld_shlibs_F77" = yes; then
16453
runpath_var=LD_RUN_PATH
16454
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16455
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16456
# ancient GNU ld didn't support --whole-archive et. al.
16457
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16458
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16460
whole_archive_flag_spec_F77=
16464
# PORTME fill in a description of your system's linker (not GNU ld)
16467
allow_undefined_flag_F77=unsupported
16468
always_export_symbols_F77=yes
16469
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'
16470
# Note: this linker hardcodes the directories in LIBPATH if there
16471
# are no directories specified by -L.
16472
hardcode_minus_L_F77=yes
16473
if test "$GCC" = yes && test -z "$link_static_flag"; then
16474
# Neither direct hardcoding nor static linking is supported with a
16476
hardcode_direct_F77=unsupported
16481
if test "$host_cpu" = ia64; then
16482
# On IA64, the linker does run time linking by default, so we don't
16483
# have to do anything special.
16484
aix_use_runtimelinking=no
16485
exp_sym_flag='-Bexport'
16488
# If we're using GNU nm, then we don't want the "-C" option.
16489
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16490
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16491
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'
16493
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'
16495
aix_use_runtimelinking=no
16497
# Test if we are trying to use run time linking or normal
16498
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16499
# need to do runtime linking.
16500
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16501
for ld_flag in $LDFLAGS; do
16502
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16503
aix_use_runtimelinking=yes
16509
exp_sym_flag='-bexport'
16510
no_entry_flag='-bnoentry'
16513
# When large executables or shared objects are built, AIX ld can
16514
# have problems creating the table of contents. If linking a library
16515
# or program results in "error TOC overflow" add -mminimal-toc to
16516
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16517
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16519
archive_cmds_F77=''
16520
hardcode_direct_F77=yes
16521
hardcode_libdir_separator_F77=':'
16522
link_all_deplibs_F77=yes
16524
if test "$GCC" = yes; then
16525
case $host_os in aix4.012|aix4.012.*)
16526
# We only want to do this on AIX 4.2 and lower, the check
16527
# below for broken collect2 doesn't work under 4.3+
16528
collect2name=`${CC} -print-prog-name=collect2`
16529
if test -f "$collect2name" && \
16530
strings "$collect2name" | grep resolve_lib_name >/dev/null
16532
# We have reworked collect2
16533
hardcode_direct_F77=yes
16535
# We have old collect2
16536
hardcode_direct_F77=unsupported
16537
# It fails to find uninstalled libraries when the uninstalled
16538
# path is not listed in the libpath. Setting hardcode_minus_L
16539
# to unsupported forces relinking
16540
hardcode_minus_L_F77=yes
16541
hardcode_libdir_flag_spec_F77='-L$libdir'
16542
hardcode_libdir_separator_F77=
16545
shared_flag='-shared'
16548
if test "$host_cpu" = ia64; then
16549
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16550
# chokes on -Wl,-G. The following line is correct:
16553
if test "$aix_use_runtimelinking" = yes; then
16554
shared_flag='${wl}-G'
16556
shared_flag='${wl}-bM:SRE'
16561
# It seems that -bexpall does not export symbols beginning with
16562
# underscore (_), so it is better to generate a list of symbols to export.
16563
always_export_symbols_F77=yes
16564
if test "$aix_use_runtimelinking" = yes; then
16565
# Warning - without using the other runtime loading flags (-brtl),
16566
# -berok will link without error, but may produce a broken library.
16567
allow_undefined_flag_F77='-berok'
16568
# Determine the default libpath from the value encoded in an empty executable.
16569
cat >conftest.$ac_ext <<_ACEOF
16574
rm -f conftest.$ac_objext conftest$ac_exeext
16575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576
(eval $ac_link) 2>conftest.er1
16578
grep -v '^ *+' conftest.er1 >conftest.err
16580
cat conftest.err >&5
16581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582
(exit $ac_status); } &&
16583
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585
(eval $ac_try) 2>&5
16587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588
(exit $ac_status); }; } &&
16589
{ ac_try='test -s conftest$ac_exeext'
16590
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591
(eval $ac_try) 2>&5
16593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594
(exit $ac_status); }; }; then
16596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16598
# Check for a 64-bit object if we didn't find anything.
16599
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; }
16602
echo "$as_me: failed program was:" >&5
16603
sed 's/^/| /' conftest.$ac_ext >&5
16606
rm -f conftest.err conftest.$ac_objext \
16607
conftest$ac_exeext conftest.$ac_ext
16608
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16610
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16611
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"
16613
if test "$host_cpu" = ia64; then
16614
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16615
allow_undefined_flag_F77="-z nodefs"
16616
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"
16618
# Determine the default libpath from the value encoded in an empty executable.
16619
cat >conftest.$ac_ext <<_ACEOF
16624
rm -f conftest.$ac_objext conftest$ac_exeext
16625
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626
(eval $ac_link) 2>conftest.er1
16628
grep -v '^ *+' conftest.er1 >conftest.err
16630
cat conftest.err >&5
16631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632
(exit $ac_status); } &&
16633
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635
(eval $ac_try) 2>&5
16637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638
(exit $ac_status); }; } &&
16639
{ ac_try='test -s conftest$ac_exeext'
16640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641
(eval $ac_try) 2>&5
16643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644
(exit $ac_status); }; }; then
16646
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16648
# Check for a 64-bit object if we didn't find anything.
16649
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; }
16652
echo "$as_me: failed program was:" >&5
16653
sed 's/^/| /' conftest.$ac_ext >&5
16656
rm -f conftest.err conftest.$ac_objext \
16657
conftest$ac_exeext conftest.$ac_ext
16658
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16660
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16661
# Warning - without using the other run time loading flags,
16662
# -berok will link without error, but may produce a broken library.
16663
no_undefined_flag_F77=' ${wl}-bernotok'
16664
allow_undefined_flag_F77=' ${wl}-berok'
16665
# -bexpall does not export symbols beginning with underscore (_)
16666
always_export_symbols_F77=yes
16667
# Exported symbols can be pulled into shared objects from archives
16668
whole_archive_flag_spec_F77=' '
16669
archive_cmds_need_lc_F77=yes
16670
# This is similar to how AIX traditionally builds it's shared libraries.
16671
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'
16677
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)'
16678
hardcode_libdir_flag_spec_F77='-L$libdir'
16679
hardcode_minus_L_F77=yes
16680
# see comment about different semantics on the GNU ld section
16685
export_dynamic_flag_spec_F77=-rdynamic
16688
cygwin* | mingw* | pw32*)
16689
# When not using gcc, we currently assume that we are using
16690
# Microsoft Visual C++.
16691
# hardcode_libdir_flag_spec is actually meaningless, as there is
16692
# no search path for DLLs.
16693
hardcode_libdir_flag_spec_F77=' '
16694
allow_undefined_flag_F77=unsupported
16695
# Tell ltmain to make .lib files, not .a files.
16697
# Tell ltmain to make .dll files, not .so files.
16699
# FIXME: Setting linknames here is a bad hack.
16700
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16701
# The linker will automatically build a .lib file if we build a DLL.
16702
old_archive_From_new_cmds_F77='true'
16703
# FIXME: Should let the user specify the lib program.
16704
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16705
fix_srcfile_path='`cygpath -w "$srcfile"`'
16706
enable_shared_with_static_runtimes_F77=yes
16709
darwin* | rhapsody*)
16710
if test "$GXX" = yes ; then
16711
archive_cmds_need_lc_F77=no
16713
rhapsody* | darwin1.[012])
16714
allow_undefined_flag_F77='-undefined suppress'
16717
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16718
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16720
case ${MACOSX_DEPLOYMENT_TARGET} in
16722
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16725
allow_undefined_flag_F77='-undefined dynamic_lookup'
16731
lt_int_apple_cc_single_mod=no
16732
output_verbose_link_cmd='echo'
16733
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16734
lt_int_apple_cc_single_mod=yes
16736
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16737
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16739
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'
16741
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16742
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16743
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16744
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}'
16746
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}'
16748
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}'
16749
hardcode_direct_F77=no
16750
hardcode_automatic_F77=yes
16751
hardcode_shlibpath_var_F77=unsupported
16752
whole_archive_flag_spec_F77='-all_load $convenience'
16753
link_all_deplibs_F77=yes
16760
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16761
hardcode_libdir_flag_spec_F77='-L$libdir'
16762
hardcode_shlibpath_var_F77=no
16769
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16770
# support. Future versions do this automatically, but an explicit c++rt0.o
16771
# does not break anything, and helps significantly (at the cost of a little
16774
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16775
hardcode_libdir_flag_spec_F77='-R$libdir'
16776
hardcode_direct_F77=yes
16777
hardcode_shlibpath_var_F77=no
16780
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16782
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16783
hardcode_direct_F77=yes
16784
hardcode_minus_L_F77=yes
16785
hardcode_shlibpath_var_F77=no
16788
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16789
freebsd* | kfreebsd*-gnu)
16790
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16791
hardcode_libdir_flag_spec_F77='-R$libdir'
16792
hardcode_direct_F77=yes
16793
hardcode_shlibpath_var_F77=no
16797
if test "$GCC" = yes; then
16798
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'
16800
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'
16802
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16803
hardcode_libdir_separator_F77=:
16804
hardcode_direct_F77=yes
16806
# hardcode_minus_L: Not really in the search PATH,
16807
# but as the default location of the library.
16808
hardcode_minus_L_F77=yes
16809
export_dynamic_flag_spec_F77='${wl}-E'
16813
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16814
case "$host_cpu" in
16816
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16819
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16823
case "$host_cpu" in
16825
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16828
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16832
if test "$with_gnu_ld" = no; then
16833
case "$host_cpu" in
16835
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16836
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16837
hardcode_libdir_separator_F77=:
16838
hardcode_direct_F77=no
16839
hardcode_shlibpath_var_F77=no
16842
hardcode_libdir_flag_spec_F77='-L$libdir'
16843
hardcode_direct_F77=no
16844
hardcode_shlibpath_var_F77=no
16846
# hardcode_minus_L: Not really in the search PATH,
16847
# but as the default location of the library.
16848
hardcode_minus_L_F77=yes
16851
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16852
hardcode_libdir_separator_F77=:
16853
hardcode_direct_F77=yes
16854
export_dynamic_flag_spec_F77='${wl}-E'
16856
# hardcode_minus_L: Not really in the search PATH,
16857
# but as the default location of the library.
16858
hardcode_minus_L_F77=yes
16864
irix5* | irix6* | nonstopux*)
16865
if test "$GCC" = yes; then
16866
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'
16868
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'
16869
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16871
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16872
hardcode_libdir_separator_F77=:
16873
link_all_deplibs_F77=yes
16876
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16877
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16878
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16880
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16882
hardcode_libdir_flag_spec_F77='-R$libdir'
16883
hardcode_direct_F77=yes
16884
hardcode_shlibpath_var_F77=no
16888
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889
hardcode_direct_F77=yes
16890
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16891
hardcode_libdir_separator_F77=:
16892
hardcode_shlibpath_var_F77=no
16896
hardcode_direct_F77=yes
16897
hardcode_shlibpath_var_F77=no
16898
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16899
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16900
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16901
export_dynamic_flag_spec_F77='${wl}-E'
16904
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16905
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16906
hardcode_libdir_flag_spec_F77='-R$libdir'
16909
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16910
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16917
hardcode_libdir_flag_spec_F77='-L$libdir'
16918
hardcode_minus_L_F77=yes
16919
allow_undefined_flag_F77=unsupported
16920
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'
16921
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16925
if test "$GCC" = yes; then
16926
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16927
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'
16929
allow_undefined_flag_F77=' -expect_unresolved \*'
16930
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'
16932
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16933
hardcode_libdir_separator_F77=:
16936
osf4* | osf5*) # as osf3* with the addition of -msym flag
16937
if test "$GCC" = yes; then
16938
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16939
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'
16940
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16942
allow_undefined_flag_F77=' -expect_unresolved \*'
16943
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'
16944
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~
16945
$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'
16947
# Both c and cxx compiler support -rpath directly
16948
hardcode_libdir_flag_spec_F77='-rpath $libdir'
16950
hardcode_libdir_separator_F77=:
16954
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16955
hardcode_shlibpath_var_F77=no
16956
export_dynamic_flag_spec_F77='${wl}-Bexport'
16957
runpath_var=LD_RUN_PATH
16958
hardcode_runpath_var=yes
16962
no_undefined_flag_F77=' -z text'
16963
if test "$GCC" = yes; then
16964
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16965
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16966
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16968
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16969
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16970
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16972
hardcode_libdir_flag_spec_F77='-R$libdir'
16973
hardcode_shlibpath_var_F77=no
16975
solaris2.[0-5] | solaris2.[0-5].*) ;;
16976
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16977
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16979
link_all_deplibs_F77=yes
16983
if test "x$host_vendor" = xsequent; then
16984
# Use $CC to link under sequent, because it throws in some extra .o
16985
# files that make .init and .fini sections work.
16986
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16988
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16990
hardcode_libdir_flag_spec_F77='-L$libdir'
16991
hardcode_direct_F77=yes
16992
hardcode_minus_L_F77=yes
16993
hardcode_shlibpath_var_F77=no
16997
case $host_vendor in
16999
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17000
hardcode_direct_F77=yes # is this really true???
17003
## LD is ld it makes a PLAMLIB
17004
## CC just makes a GrossModule.
17005
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17006
reload_cmds_F77='$CC -r -o $output$reload_objs'
17007
hardcode_direct_F77=no
17010
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17011
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17014
runpath_var='LD_RUN_PATH'
17015
hardcode_shlibpath_var_F77=no
17019
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020
hardcode_shlibpath_var_F77=no
17021
export_dynamic_flag_spec_F77='-Bexport'
17025
if test -d /usr/nec; then
17026
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17027
hardcode_shlibpath_var_F77=no
17028
runpath_var=LD_RUN_PATH
17029
hardcode_runpath_var=yes
17035
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17036
hardcode_direct_F77=yes
17037
hardcode_minus_L_F77=no
17038
hardcode_shlibpath_var_F77=no
17039
hardcode_runpath_var=yes
17040
runpath_var=LD_RUN_PATH
17043
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17044
no_undefined_flag_F77='${wl}-z ${wl}text'
17045
if test "$GCC" = yes; then
17046
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17048
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17050
runpath_var='LD_RUN_PATH'
17051
hardcode_shlibpath_var_F77=no
17055
no_undefined_flag_F77=' -z text'
17056
# $CC -shared without GNU ld will not create a library from C++
17057
# object files and a static libstdc++, better avoid it by now
17058
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17060
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17061
hardcode_libdir_flag_spec_F77=
17062
hardcode_shlibpath_var_F77=no
17063
runpath_var='LD_RUN_PATH'
17067
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17068
hardcode_libdir_flag_spec_F77='-L$libdir'
17069
hardcode_shlibpath_var_F77=no
17078
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17079
echo "${ECHO_T}$ld_shlibs_F77" >&6
17080
test "$ld_shlibs_F77" = no && can_build_shared=no
17082
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17083
if test "$GCC" = yes; then
17084
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17088
# Do we need to explicitly link libc?
17090
case "x$archive_cmds_need_lc_F77" in
17092
# Assume -lc should be added
17093
archive_cmds_need_lc_F77=yes
17095
if test "$enable_shared" = yes && test "$GCC" = yes; then
17096
case $archive_cmds_F77 in
17098
# FIXME: we may have to deal with multi-command sequences.
17101
# Test whether the compiler implicitly links with -lc since on some
17102
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17103
# to ld, don't add -lc before -lgcc.
17104
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17105
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17107
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17110
(eval $ac_compile) 2>&5
17112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113
(exit $ac_status); } 2>conftest.err; then
17116
libobjs=conftest.$ac_objext
17118
wl=$lt_prog_compiler_wl_F77
17124
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17125
allow_undefined_flag_F77=
17126
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17127
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130
(exit $ac_status); }
17132
archive_cmds_need_lc_F77=no
17134
archive_cmds_need_lc_F77=yes
17136
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17138
cat conftest.err 1>&5
17141
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17142
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17149
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17150
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17151
library_names_spec=
17152
libname_spec='lib$name'
17156
postuninstall_cmds=
17160
shlibpath_overrides_runpath=unknown
17162
dynamic_linker="$host_os ld.so"
17163
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17164
if test "$GCC" = yes; then
17165
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17166
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17167
# if the path contains ";" then we assume it to be the separator
17168
# otherwise default to the standard path separator (i.e. ":") - it is
17169
# assumed that no part of a normal pathname contains ";" but that should
17170
# okay in the real world where ";" in dirpaths is itself problematic.
17171
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17173
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17176
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17178
need_lib_prefix=unknown
17179
hardcode_into_libs=no
17181
# when you set need_version to no, make sure it does not cause -set_version
17182
# flags to be left without arguments
17183
need_version=unknown
17188
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17189
shlibpath_var=LIBPATH
17191
# AIX 3 has no versioning support, so we append a major version to the name.
17192
soname_spec='${libname}${release}${shared_ext}$major'
17199
hardcode_into_libs=yes
17200
if test "$host_cpu" = ia64; then
17201
# AIX 5 supports IA64
17202
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17203
shlibpath_var=LD_LIBRARY_PATH
17205
# With GCC up to 2.95.x, collect2 would create an import file
17206
# for dependence libraries. The import file would start with
17207
# the line `#! .'. This would cause the generated library to
17208
# depend on `.', always an invalid library. This was fixed in
17209
# development snapshots of GCC prior to 3.0.
17211
aix4 | aix4.[01] | aix4.[01].*)
17212
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17214
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17217
can_build_shared=no
17221
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17222
# soname into executable. Probably we can add versioning support to
17223
# collect2, so additional links can be useful in future.
17224
if test "$aix_use_runtimelinking" = yes; then
17225
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17226
# instead of lib<name>.a to let people know that these are not
17227
# typical AIX shared libraries.
17228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230
# We preserve .a as extension for shared libraries through AIX4.2
17231
# and later when we are not doing run time linking.
17232
library_names_spec='${libname}${release}.a $libname.a'
17233
soname_spec='${libname}${release}${shared_ext}$major'
17235
shlibpath_var=LIBPATH
17240
library_names_spec='$libname.ixlibrary $libname.a'
17241
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17242
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'
17246
library_names_spec='${libname}${shared_ext}'
17247
dynamic_linker="$host_os ld.so"
17248
shlibpath_var=LIBRARY_PATH
17254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255
soname_spec='${libname}${release}${shared_ext}$major'
17256
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17257
shlibpath_var=LD_LIBRARY_PATH
17258
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17259
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17260
# the default ld.so.conf also contains /usr/contrib/lib and
17261
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17262
# libtool to hard-code these into programs
17265
cygwin* | mingw* | pw32*)
17266
version_type=windows
17271
case $GCC,$host_os in
17272
yes,cygwin* | yes,mingw* | yes,pw32*)
17273
library_names_spec='$libname.dll.a'
17274
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17275
postinstall_cmds='base_file=`basename \${file}`~
17276
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17277
dldir=$destdir/`dirname \$dlpath`~
17278
test -d \$dldir || mkdir -p \$dldir~
17279
$install_prog $dir/$dlname \$dldir/$dlname'
17280
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17281
dlpath=$dir/\$dldll~
17283
shlibpath_overrides_runpath=yes
17287
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17288
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17289
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17292
# MinGW DLLs use traditional 'lib' prefix
17293
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17294
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17295
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17296
# It is most probably a Windows format PATH printed by
17297
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17298
# path with ; separators, and with drive letters. We can handle the
17299
# drive letters (cygwin fileutils understands them), so leave them,
17300
# especially as we might pass files found there to a mingw objdump,
17301
# which wouldn't understand a cygwinified path. Ahh.
17302
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17304
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17308
# pw32 DLLs use 'pw' prefix rather than 'lib'
17309
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17315
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17318
dynamic_linker='Win32 ld.exe'
17319
# FIXME: first we should search . and the directory the executable is in
17323
darwin* | rhapsody*)
17324
dynamic_linker="$host_os dyld"
17325
version_type=darwin
17328
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17329
soname_spec='${libname}${release}${major}$shared_ext'
17330
shlibpath_overrides_runpath=yes
17331
shlibpath_var=DYLD_LIBRARY_PATH
17332
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17333
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17334
if test "$GCC" = yes; then
17335
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"`
17337
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17339
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17347
soname_spec='${libname}${release}${shared_ext}$major'
17348
shlibpath_var=LD_LIBRARY_PATH
17359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17360
soname_spec='${libname}${release}${shared_ext}$major'
17361
shlibpath_var=LD_LIBRARY_PATH
17362
shlibpath_overrides_runpath=no
17363
hardcode_into_libs=yes
17364
dynamic_linker='GNU ld.so'
17368
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17369
version_type=freebsd-$objformat
17370
case $version_type in
17372
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17377
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17381
shlibpath_var=LD_LIBRARY_PATH
17384
shlibpath_overrides_runpath=yes
17386
freebsd3.01* | freebsdelf3.01*)
17387
shlibpath_overrides_runpath=yes
17388
hardcode_into_libs=yes
17391
shlibpath_overrides_runpath=no
17392
hardcode_into_libs=yes
17401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17402
soname_spec='${libname}${release}${shared_ext}$major'
17403
shlibpath_var=LD_LIBRARY_PATH
17404
hardcode_into_libs=yes
17407
hpux9* | hpux10* | hpux11*)
17408
# Give a soname corresponding to the major version so that dld.sl refuses to
17409
# link against other versions.
17413
case "$host_cpu" in
17416
hardcode_into_libs=yes
17417
dynamic_linker="$host_os dld.so"
17418
shlibpath_var=LD_LIBRARY_PATH
17419
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421
soname_spec='${libname}${release}${shared_ext}$major'
17422
if test "X$HPUX_IA64_MODE" = X32; then
17423
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17425
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17427
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17431
hardcode_into_libs=yes
17432
dynamic_linker="$host_os dld.sl"
17433
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17434
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436
soname_spec='${libname}${release}${shared_ext}$major'
17437
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17438
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17442
dynamic_linker="$host_os dld.sl"
17443
shlibpath_var=SHLIB_PATH
17444
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446
soname_spec='${libname}${release}${shared_ext}$major'
17449
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17450
postinstall_cmds='chmod 555 $lib'
17453
irix5* | irix6* | nonstopux*)
17455
nonstopux*) version_type=nonstopux ;;
17457
if test "$lt_cv_prog_gnu_ld" = yes; then
17465
soname_spec='${libname}${release}${shared_ext}$major'
17466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17468
irix5* | nonstopux*)
17469
libsuff= shlibsuff=
17472
case $LD in # libtool.m4 will add one of these switches to LD
17473
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17474
libsuff= shlibsuff= libmagic=32-bit;;
17475
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17476
libsuff=32 shlibsuff=N32 libmagic=N32;;
17477
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17478
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17479
*) libsuff= shlibsuff= libmagic=never-match;;
17483
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17484
shlibpath_overrides_runpath=no
17485
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17486
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17487
hardcode_into_libs=yes
17490
# No shared lib support for Linux oldld, aout, or coff.
17491
linux*oldld* | linux*aout* | linux*coff*)
17495
# This must be Linux ELF.
17500
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501
soname_spec='${libname}${release}${shared_ext}$major'
17502
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17503
shlibpath_var=LD_LIBRARY_PATH
17504
shlibpath_overrides_runpath=no
17505
# This implies no fast_install, which is unacceptable.
17506
# Some rework will be needed to allow for fast_install
17507
# before this can be enabled.
17508
hardcode_into_libs=yes
17510
# Append ld.so.conf contents to the search path
17511
if test -f /etc/ld.so.conf; then
17512
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17513
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17516
# We used to test for /lib/ld.so.1 and disable shared libraries on
17517
# powerpc, because MkLinux only supported shared libraries with the
17518
# GNU dynamic linker. Since this was broken with cross compilers,
17519
# most powerpc-linux boxes support dynamic linking these days and
17520
# people can always --disable-shared, the test was removed, and we
17521
# assume the GNU/Linux dynamic linker is in use.
17522
dynamic_linker='GNU/Linux ld.so'
17529
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17530
soname_spec='${libname}${release}${shared_ext}$major'
17531
shlibpath_var=LD_LIBRARY_PATH
17532
shlibpath_overrides_runpath=no
17533
hardcode_into_libs=yes
17534
dynamic_linker='NetBSD ld.elf_so'
17541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17542
soname_spec='${libname}${release}${shared_ext}$major'
17543
shlibpath_var=LD_LIBRARY_PATH
17544
shlibpath_overrides_runpath=no
17545
hardcode_into_libs=yes
17546
dynamic_linker='GNU ld.so'
17553
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17555
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17556
dynamic_linker='NetBSD (a.out) ld.so'
17558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17559
soname_spec='${libname}${release}${shared_ext}$major'
17560
dynamic_linker='NetBSD ld.elf_so'
17562
shlibpath_var=LD_LIBRARY_PATH
17563
shlibpath_overrides_runpath=yes
17564
hardcode_into_libs=yes
17569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570
shlibpath_var=LD_LIBRARY_PATH
17571
shlibpath_overrides_runpath=yes
17578
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17579
soname_spec='${libname}${release}${shared_ext}$major'
17580
shlibpath_var=LD_LIBRARY_PATH
17581
shlibpath_overrides_runpath=yes
17588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17589
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17590
shlibpath_var=LD_LIBRARY_PATH
17591
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17593
openbsd2.[89] | openbsd2.[89].*)
17594
shlibpath_overrides_runpath=no
17597
shlibpath_overrides_runpath=yes
17601
shlibpath_overrides_runpath=yes
17606
libname_spec='$name'
17609
library_names_spec='$libname${shared_ext} $libname.a'
17610
dynamic_linker='OS/2 ld.exe'
17611
shlibpath_var=LIBPATH
17614
osf3* | osf4* | osf5*)
17618
soname_spec='${libname}${release}${shared_ext}$major'
17619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620
shlibpath_var=LD_LIBRARY_PATH
17621
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17622
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17627
soname_spec='${libname}${release}${shared_ext}$major'
17628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629
shlibpath_var=LD_LIBRARY_PATH
17636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637
soname_spec='${libname}${release}${shared_ext}$major'
17638
shlibpath_var=LD_LIBRARY_PATH
17639
shlibpath_overrides_runpath=yes
17640
hardcode_into_libs=yes
17641
# ldd complains unless libraries are executable
17642
postinstall_cmds='chmod +x $lib'
17647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17648
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17649
shlibpath_var=LD_LIBRARY_PATH
17650
shlibpath_overrides_runpath=yes
17651
if test "$with_gnu_ld" = yes; then
17657
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17659
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17660
soname_spec='${libname}${release}${shared_ext}$major'
17661
shlibpath_var=LD_LIBRARY_PATH
17662
case $host_vendor in
17664
shlibpath_overrides_runpath=no
17666
export_dynamic_flag_spec='${wl}-Blargedynsym'
17667
runpath_var=LD_RUN_PATH
17675
shlibpath_overrides_runpath=no
17676
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17682
if test -d /usr/nec ;then
17684
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17685
soname_spec='$libname${shared_ext}.$major'
17686
shlibpath_var=LD_LIBRARY_PATH
17692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693
soname_spec='${libname}${release}${shared_ext}$major'
17694
shlibpath_var=LD_LIBRARY_PATH
17701
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17702
echo "${ECHO_T}$dynamic_linker" >&6
17703
test "$dynamic_linker" = no && can_build_shared=no
17705
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17706
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17707
hardcode_action_F77=
17708
if test -n "$hardcode_libdir_flag_spec_F77" || \
17709
test -n "$runpath_var F77" || \
17710
test "X$hardcode_automatic_F77"="Xyes" ; then
17712
# We can hardcode non-existant directories.
17713
if test "$hardcode_direct_F77" != no &&
17714
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17715
# have to relink, otherwise we might link with an installed library
17716
# when we should be linking with a yet-to-be-installed one
17717
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17718
test "$hardcode_minus_L_F77" != no; then
17719
# Linking always hardcodes the temporary library directory.
17720
hardcode_action_F77=relink
17722
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17723
hardcode_action_F77=immediate
17726
# We cannot hardcode anything, or else we can only hardcode existing
17728
hardcode_action_F77=unsupported
17730
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17731
echo "${ECHO_T}$hardcode_action_F77" >&6
17733
if test "$hardcode_action_F77" = relink; then
17734
# Fast installation is not supported
17735
enable_fast_install=no
17736
elif test "$shlibpath_overrides_runpath" = yes ||
17737
test "$enable_shared" = no; then
17738
# Fast installation is not necessary
17739
enable_fast_install=needless
17744
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17745
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17746
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17747
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17748
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17749
echo "$as_me:$LINENO: result: yes" >&5
17750
echo "${ECHO_T}yes" >&6
17752
# FIXME - insert some real tests, host_os isn't really good enough
17755
if test -n "$STRIP" ; then
17756
striplib="$STRIP -x"
17757
echo "$as_me:$LINENO: result: yes" >&5
17758
echo "${ECHO_T}yes" >&6
17760
echo "$as_me:$LINENO: result: no" >&5
17761
echo "${ECHO_T}no" >&6
17765
echo "$as_me:$LINENO: result: no" >&5
17766
echo "${ECHO_T}no" >&6
17773
# The else clause should only fire when bootstrapping the
17774
# libtool distribution, otherwise you forgot to ship ltmain.sh
17775
# with your package, and you will get complaints that there are
17776
# no rules to generate ltmain.sh.
17777
if test -f "$ltmain"; then
17778
# See if we are running on zsh, and set the options which allow our commands through
17779
# without removal of \ escapes.
17780
if test -n "${ZSH_VERSION+set}" ; then
17781
setopt NO_GLOB_SUBST
17783
# Now quote all the things that may contain metacharacters while being
17784
# careful not to overquote the AC_SUBSTed values. We take copies of the
17785
# variables and quote the copies for generation of the libtool script.
17786
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17788
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17789
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17790
deplibs_check_method reload_flag reload_cmds need_locks \
17791
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17792
lt_cv_sys_global_symbol_to_c_name_address \
17793
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17794
old_postinstall_cmds old_postuninstall_cmds \
17798
lt_prog_compiler_wl_F77 \
17799
lt_prog_compiler_pic_F77 \
17800
lt_prog_compiler_static_F77 \
17801
lt_prog_compiler_no_builtin_flag_F77 \
17802
export_dynamic_flag_spec_F77 \
17803
thread_safe_flag_spec_F77 \
17804
whole_archive_flag_spec_F77 \
17805
enable_shared_with_static_runtimes_F77 \
17806
old_archive_cmds_F77 \
17807
old_archive_from_new_cmds_F77 \
17808
predep_objects_F77 \
17809
postdep_objects_F77 \
17812
compiler_lib_search_path_F77 \
17814
archive_expsym_cmds_F77 \
17815
postinstall_cmds_F77 \
17816
postuninstall_cmds_F77 \
17817
old_archive_from_expsyms_cmds_F77 \
17818
allow_undefined_flag_F77 \
17819
no_undefined_flag_F77 \
17820
export_symbols_cmds_F77 \
17821
hardcode_libdir_flag_spec_F77 \
17822
hardcode_libdir_flag_spec_ld_F77 \
17823
hardcode_libdir_separator_F77 \
17824
hardcode_automatic_F77 \
17826
module_expsym_cmds_F77 \
17827
lt_cv_prog_compiler_c_o_F77 \
17828
exclude_expsyms_F77 \
17829
include_expsyms_F77; do
17832
old_archive_cmds_F77 | \
17833
old_archive_from_new_cmds_F77 | \
17834
archive_cmds_F77 | \
17835
archive_expsym_cmds_F77 | \
17836
module_cmds_F77 | \
17837
module_expsym_cmds_F77 | \
17838
old_archive_from_expsyms_cmds_F77 | \
17839
export_symbols_cmds_F77 | \
17840
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17841
postinstall_cmds | postuninstall_cmds | \
17842
old_postinstall_cmds | old_postuninstall_cmds | \
17843
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17844
# Double-quote double-evaled strings.
17845
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17848
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17854
*'\$0 --fallback-echo"')
17855
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17861
cat <<__EOF__ >> "$cfgfile"
17862
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17864
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17866
# Shell to use when invoking shell scripts.
17869
# Whether or not to build shared libraries.
17870
build_libtool_libs=$enable_shared
17872
# Whether or not to build static libraries.
17873
build_old_libs=$enable_static
17875
# Whether or not to add -lc for building shared libraries.
17876
build_libtool_need_lc=$archive_cmds_need_lc_F77
17878
# Whether or not to disallow shared libs when runtime libs are static
17879
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17881
# Whether or not to optimize for fast installation.
17882
fast_install=$enable_fast_install
17885
host_alias=$host_alias
17888
# An echo program that does not interpret backslashes.
17893
AR_FLAGS=$lt_AR_FLAGS
17898
# A language-specific compiler.
17899
CC=$lt_compiler_F77
17901
# Is the compiler the GNU C compiler?
17907
# The linker used to build libraries.
17910
# Whether we need hard or soft links.
17913
# A BSD-compatible nm program.
17916
# A symbol stripping program
17919
# Used to examine libraries when file_magic_cmd begins "file"
17920
MAGIC_CMD=$MAGIC_CMD
17922
# Used on cygwin: DLL creation program.
17925
# Used on cygwin: object dumper.
17928
# Used on cygwin: assembler.
17931
# The name of the directory that contains temporary libtool files.
17934
# How to create reloadable object files.
17935
reload_flag=$lt_reload_flag
17936
reload_cmds=$lt_reload_cmds
17938
# How to pass a linker flag through the compiler.
17939
wl=$lt_lt_prog_compiler_wl_F77
17941
# Object file suffix (normally "o").
17942
objext="$ac_objext"
17944
# Old archive suffix (normally "a").
17947
# Shared library suffix (normally ".so").
17948
shrext_cmds='$shrext_cmds'
17950
# Executable file suffix (normally "").
17953
# Additional compiler flags for building library objects.
17954
pic_flag=$lt_lt_prog_compiler_pic_F77
17957
# What is the maximum length of a command?
17958
max_cmd_len=$lt_cv_sys_max_cmd_len
17960
# Does compiler simultaneously support -c and -o options?
17961
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17963
# Must we lock files when doing compilation ?
17964
need_locks=$lt_need_locks
17966
# Do we need the lib prefix for modules?
17967
need_lib_prefix=$need_lib_prefix
17969
# Do we need a version for libraries?
17970
need_version=$need_version
17972
# Whether dlopen is supported.
17973
dlopen_support=$enable_dlopen
17975
# Whether dlopen of programs is supported.
17976
dlopen_self=$enable_dlopen_self
17978
# Whether dlopen of statically linked programs is supported.
17979
dlopen_self_static=$enable_dlopen_self_static
17981
# Compiler flag to prevent dynamic linking.
17982
link_static_flag=$lt_lt_prog_compiler_static_F77
17984
# Compiler flag to turn off builtin functions.
17985
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17987
# Compiler flag to allow reflexive dlopens.
17988
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17990
# Compiler flag to generate shared objects directly from archives.
17991
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17993
# Compiler flag to generate thread-safe objects.
17994
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17996
# Library versioning type.
17997
version_type=$version_type
17999
# Format of library name prefix.
18000
libname_spec=$lt_libname_spec
18002
# List of archive names. First name is the real one, the rest are links.
18003
# The last name is the one that the linker finds with -lNAME.
18004
library_names_spec=$lt_library_names_spec
18006
# The coded name of the library, if different from the real name.
18007
soname_spec=$lt_soname_spec
18009
# Commands used to build and install an old-style archive.
18011
old_archive_cmds=$lt_old_archive_cmds_F77
18012
old_postinstall_cmds=$lt_old_postinstall_cmds
18013
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18015
# Create an old-style archive from a shared archive.
18016
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18018
# Create a temporary old-style archive to link instead of a shared archive.
18019
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18021
# Commands used to build and install a shared archive.
18022
archive_cmds=$lt_archive_cmds_F77
18023
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18024
postinstall_cmds=$lt_postinstall_cmds
18025
postuninstall_cmds=$lt_postuninstall_cmds
18027
# Commands used to build a loadable module (assumed same as above if empty)
18028
module_cmds=$lt_module_cmds_F77
18029
module_expsym_cmds=$lt_module_expsym_cmds_F77
18031
# Commands to strip libraries.
18032
old_striplib=$lt_old_striplib
18033
striplib=$lt_striplib
18035
# Dependencies to place before the objects being linked to create a
18037
predep_objects=$lt_predep_objects_F77
18039
# Dependencies to place after the objects being linked to create a
18041
postdep_objects=$lt_postdep_objects_F77
18043
# Dependencies to place before the objects being linked to create a
18045
predeps=$lt_predeps_F77
18047
# Dependencies to place after the objects being linked to create a
18049
postdeps=$lt_postdeps_F77
18051
# The library search path used internally by the compiler when linking
18052
# a shared library.
18053
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18055
# Method to check whether dependent libraries are shared objects.
18056
deplibs_check_method=$lt_deplibs_check_method
18058
# Command to use when deplibs_check_method == file_magic.
18059
file_magic_cmd=$lt_file_magic_cmd
18061
# Flag that allows shared libraries with undefined symbols to be built.
18062
allow_undefined_flag=$lt_allow_undefined_flag_F77
18064
# Flag that forces no undefined symbols.
18065
no_undefined_flag=$lt_no_undefined_flag_F77
18067
# Commands used to finish a libtool library installation in a directory.
18068
finish_cmds=$lt_finish_cmds
18070
# Same as above, but a single script fragment to be evaled but not shown.
18071
finish_eval=$lt_finish_eval
18073
# Take the output of nm and produce a listing of raw symbols and C names.
18074
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18076
# Transform the output of nm in a proper C declaration
18077
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18079
# Transform the output of nm in a C name address pair
18080
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18082
# This is the shared library runtime path variable.
18083
runpath_var=$runpath_var
18085
# This is the shared library path variable.
18086
shlibpath_var=$shlibpath_var
18088
# Is shlibpath searched before the hard-coded library search path?
18089
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18091
# How to hardcode a shared library path into an executable.
18092
hardcode_action=$hardcode_action_F77
18094
# Whether we should hardcode library paths into libraries.
18095
hardcode_into_libs=$hardcode_into_libs
18097
# Flag to hardcode \$libdir into a binary during linking.
18098
# This must work even if \$libdir does not exist.
18099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18101
# If ld is used when linking, flag to hardcode \$libdir into
18102
# a binary during linking. This must work even if \$libdir does
18104
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18106
# Whether we need a single -rpath flag with a separated argument.
18107
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18109
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18110
# resulting binary.
18111
hardcode_direct=$hardcode_direct_F77
18113
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18114
# resulting binary.
18115
hardcode_minus_L=$hardcode_minus_L_F77
18117
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18118
# the resulting binary.
18119
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18121
# Set to yes if building a shared library automatically hardcodes DIR into the library
18122
# and all subsequent libraries and executables linked against it.
18123
hardcode_automatic=$hardcode_automatic_F77
18125
# Variables whose values should be saved in libtool wrapper scripts and
18126
# restored at relink time.
18127
variables_saved_for_relink="$variables_saved_for_relink"
18129
# Whether libtool must link a program against all its dependency libraries.
18130
link_all_deplibs=$link_all_deplibs_F77
18132
# Compile-time system search path for libraries
18133
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18135
# Run-time system search path for libraries
18136
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18138
# Fix the shell variable \$srcfile for the compiler.
18139
fix_srcfile_path="$fix_srcfile_path_F77"
18141
# Set to yes if exported symbols are required.
18142
always_export_symbols=$always_export_symbols_F77
18144
# The commands to list exported symbols.
18145
export_symbols_cmds=$lt_export_symbols_cmds_F77
18147
# The commands to extract the exported symbol list from a shared archive.
18148
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18150
# Symbols that should not be listed in the preloaded symbols.
18151
exclude_expsyms=$lt_exclude_expsyms_F77
18153
# Symbols that must always be exported.
18154
include_expsyms=$lt_include_expsyms_F77
18156
# ### END LIBTOOL TAG CONFIG: $tagname
18162
# If there is no Makefile yet, we rely on a make rule to execute
18163
# `config.status --recheck' to rerun these tests and create the
18164
# libtool script then.
18165
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18166
if test -f "$ltmain_in"; then
18167
test -f Makefile && make "$ltmain"
18173
ac_cpp='$CPP $CPPFLAGS'
18174
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18186
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18190
# Source file extension for Java test sources.
18193
# Object file extension for compiled Java test sources.
18197
# Code to be used in simple compile tests
18198
lt_simple_compile_test_code="class foo {}\n"
18200
# Code to be used in simple link tests
18201
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18203
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18205
# If no C compiler was specified, use CC.
18208
# Allow CC to be a program name with arguments.
18212
# Allow CC to be a program name with arguments.
18218
# GCJ did not exist at the time GCC didn't implicitly link libc in.
18219
archive_cmds_need_lc_GCJ=no
18222
lt_prog_compiler_no_builtin_flag_GCJ=
18224
if test "$GCC" = yes; then
18225
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18228
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18229
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18230
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18231
echo $ECHO_N "(cached) $ECHO_C" >&6
18233
lt_cv_prog_compiler_rtti_exceptions=no
18234
ac_outfile=conftest.$ac_objext
18235
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18236
lt_compiler_flag="-fno-rtti -fno-exceptions"
18237
# Insert the option either (1) after the last *FLAGS variable, or
18238
# (2) before a word containing "conftest.", or (3) at the end.
18239
# Note that $ac_compile itself does not contain backslashes and begins
18240
# with a dollar sign (not a hyphen), so the echo should work correctly.
18241
# The option is referenced via a variable to avoid confusing sed.
18242
lt_compile=`echo "$ac_compile" | $SED \
18243
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18244
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18245
-e 's:$: $lt_compiler_flag:'`
18246
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18247
(eval "$lt_compile" 2>conftest.err)
18249
cat conftest.err >&5
18250
echo "$as_me:__oline__: \$? = $ac_status" >&5
18251
if (exit $ac_status) && test -s "$ac_outfile"; then
18252
# The compiler can only warn and ignore the option if not recognized
18253
# So say no if there are warnings
18254
if test ! -s conftest.err; then
18255
lt_cv_prog_compiler_rtti_exceptions=yes
18261
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18262
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18264
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18265
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18272
lt_prog_compiler_wl_GCJ=
18273
lt_prog_compiler_pic_GCJ=
18274
lt_prog_compiler_static_GCJ=
18276
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18277
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18279
if test "$GCC" = yes; then
18280
lt_prog_compiler_wl_GCJ='-Wl,'
18281
lt_prog_compiler_static_GCJ='-static'
18285
# All AIX code is PIC.
18286
if test "$host_cpu" = ia64; then
18287
# AIX 5 now supports IA64 processor
18288
lt_prog_compiler_static_GCJ='-Bstatic'
18293
# FIXME: we need at least 68020 code to build shared libraries, but
18294
# adding the `-m68020' flag to GCC prevents building anything better,
18296
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18299
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18300
# PIC is the default for these OSes.
18303
mingw* | pw32* | os2*)
18304
# This hack is so that the source file can tell whether it is being
18305
# built for inclusion in a dll (and should export symbols for example).
18306
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18309
darwin* | rhapsody*)
18310
# PIC is the default on this platform
18311
# Common symbols not allowed in MH_DYLIB files
18312
lt_prog_compiler_pic_GCJ='-fno-common'
18316
# Just because we use GCC doesn't mean we suddenly get shared libraries
18317
# on systems that don't support them.
18318
lt_prog_compiler_can_build_shared_GCJ=no
18323
if test -d /usr/nec; then
18324
lt_prog_compiler_pic_GCJ=-Kconform_pic
18329
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18330
# not for PA HP-UX.
18331
case "$host_cpu" in
18336
lt_prog_compiler_pic_GCJ='-fPIC'
18342
lt_prog_compiler_pic_GCJ='-fPIC'
18346
# PORTME Check for flag to pass linker flags through the system compiler.
18349
lt_prog_compiler_wl_GCJ='-Wl,'
18350
if test "$host_cpu" = ia64; then
18351
# AIX 5 now supports IA64 processor
18352
lt_prog_compiler_static_GCJ='-Bstatic'
18354
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18358
mingw* | pw32* | os2*)
18359
# This hack is so that the source file can tell whether it is being
18360
# built for inclusion in a dll (and should export symbols for example).
18361
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18364
hpux9* | hpux10* | hpux11*)
18365
lt_prog_compiler_wl_GCJ='-Wl,'
18366
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18367
# not for PA HP-UX.
18368
case "$host_cpu" in
18373
lt_prog_compiler_pic_GCJ='+Z'
18376
# Is there a better lt_prog_compiler_static that works with the bundled CC?
18377
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18380
irix5* | irix6* | nonstopux*)
18381
lt_prog_compiler_wl_GCJ='-Wl,'
18382
# PIC (with -KPIC) is the default.
18383
lt_prog_compiler_static_GCJ='-non_shared'
18387
lt_prog_compiler_pic_GCJ='-KPIC'
18388
lt_prog_compiler_static_GCJ='-Bstatic'
18394
lt_prog_compiler_wl_GCJ='-Wl,'
18395
lt_prog_compiler_pic_GCJ='-KPIC'
18396
lt_prog_compiler_static_GCJ='-static'
18399
lt_prog_compiler_wl_GCJ='-Wl,'
18400
# All Alpha code is PIC.
18401
lt_prog_compiler_static_GCJ='-non_shared'
18406
osf3* | osf4* | osf5*)
18407
lt_prog_compiler_wl_GCJ='-Wl,'
18408
# All OSF/1 code is PIC.
18409
lt_prog_compiler_static_GCJ='-non_shared'
18413
lt_prog_compiler_pic_GCJ='-Kpic'
18414
lt_prog_compiler_static_GCJ='-dn'
18418
lt_prog_compiler_wl_GCJ='-Wl,'
18419
lt_prog_compiler_pic_GCJ='-KPIC'
18420
lt_prog_compiler_static_GCJ='-Bstatic'
18424
lt_prog_compiler_wl_GCJ='-Qoption ld '
18425
lt_prog_compiler_pic_GCJ='-PIC'
18426
lt_prog_compiler_static_GCJ='-Bstatic'
18429
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18430
lt_prog_compiler_wl_GCJ='-Wl,'
18431
lt_prog_compiler_pic_GCJ='-KPIC'
18432
lt_prog_compiler_static_GCJ='-Bstatic'
18436
if test -d /usr/nec ;then
18437
lt_prog_compiler_pic_GCJ='-Kconform_pic'
18438
lt_prog_compiler_static_GCJ='-Bstatic'
18443
lt_prog_compiler_pic_GCJ='-pic'
18444
lt_prog_compiler_static_GCJ='-Bstatic'
18448
lt_prog_compiler_can_build_shared_GCJ=no
18453
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18454
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18457
# Check to make sure the PIC flag actually works.
18459
if test -n "$lt_prog_compiler_pic_GCJ"; then
18461
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18462
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18463
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18464
echo $ECHO_N "(cached) $ECHO_C" >&6
18466
lt_prog_compiler_pic_works_GCJ=no
18467
ac_outfile=conftest.$ac_objext
18468
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18469
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18470
# Insert the option either (1) after the last *FLAGS variable, or
18471
# (2) before a word containing "conftest.", or (3) at the end.
18472
# Note that $ac_compile itself does not contain backslashes and begins
18473
# with a dollar sign (not a hyphen), so the echo should work correctly.
18474
# The option is referenced via a variable to avoid confusing sed.
18475
lt_compile=`echo "$ac_compile" | $SED \
18476
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18477
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18478
-e 's:$: $lt_compiler_flag:'`
18479
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18480
(eval "$lt_compile" 2>conftest.err)
18482
cat conftest.err >&5
18483
echo "$as_me:__oline__: \$? = $ac_status" >&5
18484
if (exit $ac_status) && test -s "$ac_outfile"; then
18485
# The compiler can only warn and ignore the option if not recognized
18486
# So say no if there are warnings
18487
if test ! -s conftest.err; then
18488
lt_prog_compiler_pic_works_GCJ=yes
18494
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18495
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18497
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18498
case $lt_prog_compiler_pic_GCJ in
18500
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18503
lt_prog_compiler_pic_GCJ=
18504
lt_prog_compiler_can_build_shared_GCJ=no
18509
# For platforms which do not support PIC, -DPIC is meaningless:
18511
lt_prog_compiler_pic_GCJ=
18514
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18518
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18519
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18520
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18521
echo $ECHO_N "(cached) $ECHO_C" >&6
18523
lt_cv_prog_compiler_c_o_GCJ=no
18524
$rm -r conftest 2>/dev/null
18528
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18530
lt_compiler_flag="-o out/conftest2.$ac_objext"
18531
# Insert the option either (1) after the last *FLAGS variable, or
18532
# (2) before a word containing "conftest.", or (3) at the end.
18533
# Note that $ac_compile itself does not contain backslashes and begins
18534
# with a dollar sign (not a hyphen), so the echo should work correctly.
18535
lt_compile=`echo "$ac_compile" | $SED \
18536
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18537
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18538
-e 's:$: $lt_compiler_flag:'`
18539
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18540
(eval "$lt_compile" 2>out/conftest.err)
18542
cat out/conftest.err >&5
18543
echo "$as_me:__oline__: \$? = $ac_status" >&5
18544
if (exit $ac_status) && test -s out/conftest2.$ac_objext
18546
# The compiler can only warn and ignore the option if not recognized
18547
# So say no if there are warnings
18548
if test ! -s out/conftest.err; then
18549
lt_cv_prog_compiler_c_o_GCJ=yes
18554
# SGI C++ compiler will create directory out/ii_files/ for
18555
# template instantiation
18556
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18557
$rm out/* && rmdir out
18563
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18564
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18567
hard_links="nottested"
18568
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18569
# do not overwrite the value of need_locks provided by the user
18570
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18571
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18574
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18576
ln conftest.a conftest.b 2>&5 || hard_links=no
18577
ln conftest.a conftest.b 2>/dev/null && hard_links=no
18578
echo "$as_me:$LINENO: result: $hard_links" >&5
18579
echo "${ECHO_T}$hard_links" >&6
18580
if test "$hard_links" = no; then
18581
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18582
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18589
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18590
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18593
allow_undefined_flag_GCJ=
18594
enable_shared_with_static_runtimes_GCJ=no
18596
archive_expsym_cmds_GCJ=
18597
old_archive_From_new_cmds_GCJ=
18598
old_archive_from_expsyms_cmds_GCJ=
18599
export_dynamic_flag_spec_GCJ=
18600
whole_archive_flag_spec_GCJ=
18601
thread_safe_flag_spec_GCJ=
18602
hardcode_libdir_flag_spec_GCJ=
18603
hardcode_libdir_flag_spec_ld_GCJ=
18604
hardcode_libdir_separator_GCJ=
18605
hardcode_direct_GCJ=no
18606
hardcode_minus_L_GCJ=no
18607
hardcode_shlibpath_var_GCJ=unsupported
18608
link_all_deplibs_GCJ=unknown
18609
hardcode_automatic_GCJ=no
18611
module_expsym_cmds_GCJ=
18612
always_export_symbols_GCJ=no
18613
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18614
# include_expsyms should be a list of space-separated symbols to be *always*
18615
# included in the symbol list
18616
include_expsyms_GCJ=
18617
# exclude_expsyms can be an extended regexp of symbols to exclude
18618
# it will be wrapped by ` (' and `)$', so one must not match beginning or
18619
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18620
# as well as any symbol that contains `d'.
18621
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18622
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18623
# platforms (ab)use it in PIC code, but their linkers get confused if
18624
# the symbol is explicitly referenced. Since portable code cannot
18625
# rely on this symbol name, it's probably fine to never include it in
18626
# preloaded symbol tables.
18627
extract_expsyms_cmds=
18630
cygwin* | mingw* | pw32*)
18631
# FIXME: the MSVC++ port hasn't been tested in a loooong time
18632
# When not using gcc, we currently assume that we are using
18633
# Microsoft Visual C++.
18634
if test "$GCC" != yes; then
18644
if test "$with_gnu_ld" = yes; then
18645
# If archive_cmds runs LD, not CC, wlarc should be empty
18648
# See if GNU ld supports shared libraries.
18650
aix3* | aix4* | aix5*)
18651
# On AIX/PPC, the GNU linker is very broken
18652
if test "$host_cpu" != ia64; then
18656
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18657
*** to be unable to reliably create shared libraries on AIX.
18658
*** Therefore, libtool is disabling shared libraries support. If you
18659
*** really care for shared libraries, you may want to modify your PATH
18660
*** so that a non-GNU linker is found, and then restart.
18667
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)'
18668
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18669
hardcode_minus_L_GCJ=yes
18671
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18672
# that the semantics of dynamic libraries on AmigaOS, at least up
18673
# to version 4, is to share data among multiple programs linked
18674
# with the same dynamic library. Since this doesn't match the
18675
# behavior of shared libraries on other platforms, we can't use
18681
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18682
allow_undefined_flag_GCJ=unsupported
18683
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18684
# support --undefined. This deserves some investigation. FIXME
18685
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18691
cygwin* | mingw* | pw32*)
18692
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18693
# as there is no search path for DLLs.
18694
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18695
allow_undefined_flag_GCJ=unsupported
18696
always_export_symbols_GCJ=no
18697
enable_shared_with_static_runtimes_GCJ=yes
18698
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18700
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18701
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18702
# If the export-symbols file already is a .def file (1st line
18703
# is EXPORTS), use it as is; otherwise, prepend...
18704
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18705
cp $export_symbols $output_objdir/$soname.def;
18707
echo EXPORTS > $output_objdir/$soname.def;
18708
cat $export_symbols >> $output_objdir/$soname.def;
18710
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18716
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18717
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18718
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18721
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18722
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18727
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18731
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18732
*** create shared libraries on Solaris systems. Therefore, libtool
18733
*** is disabling shared libraries support. We urge you to upgrade GNU
18734
*** binutils to release 2.9.1 or newer. Another option is to modify
18735
*** your PATH or compiler configuration so that the native linker is
18736
*** used, and then restart.
18739
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18740
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18741
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18748
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18750
hardcode_direct_GCJ=yes
18751
hardcode_shlibpath_var_GCJ=no
18755
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18756
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18757
archive_cmds_GCJ="$tmp_archive_cmds"
18758
supports_anon_versioning=no
18759
case `$LD -v 2>/dev/null` in
18760
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18761
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18762
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18763
*\ 2.11.*) ;; # other 2.11 versions
18764
*) supports_anon_versioning=yes ;;
18766
if test $supports_anon_versioning = yes; then
18767
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18768
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18769
$echo "local: *; };" >> $output_objdir/$libname.ver~
18770
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18772
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18774
link_all_deplibs_GCJ=no
18781
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18782
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18783
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18790
if test "$ld_shlibs_GCJ" = yes; then
18791
runpath_var=LD_RUN_PATH
18792
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18793
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18794
# ancient GNU ld didn't support --whole-archive et. al.
18795
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18796
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18798
whole_archive_flag_spec_GCJ=
18802
# PORTME fill in a description of your system's linker (not GNU ld)
18805
allow_undefined_flag_GCJ=unsupported
18806
always_export_symbols_GCJ=yes
18807
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'
18808
# Note: this linker hardcodes the directories in LIBPATH if there
18809
# are no directories specified by -L.
18810
hardcode_minus_L_GCJ=yes
18811
if test "$GCC" = yes && test -z "$link_static_flag"; then
18812
# Neither direct hardcoding nor static linking is supported with a
18814
hardcode_direct_GCJ=unsupported
18819
if test "$host_cpu" = ia64; then
18820
# On IA64, the linker does run time linking by default, so we don't
18821
# have to do anything special.
18822
aix_use_runtimelinking=no
18823
exp_sym_flag='-Bexport'
18826
# If we're using GNU nm, then we don't want the "-C" option.
18827
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18828
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18829
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'
18831
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'
18833
aix_use_runtimelinking=no
18835
# Test if we are trying to use run time linking or normal
18836
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18837
# need to do runtime linking.
18838
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18839
for ld_flag in $LDFLAGS; do
18840
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18841
aix_use_runtimelinking=yes
18847
exp_sym_flag='-bexport'
18848
no_entry_flag='-bnoentry'
18851
# When large executables or shared objects are built, AIX ld can
18852
# have problems creating the table of contents. If linking a library
18853
# or program results in "error TOC overflow" add -mminimal-toc to
18854
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18855
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18857
archive_cmds_GCJ=''
18858
hardcode_direct_GCJ=yes
18859
hardcode_libdir_separator_GCJ=':'
18860
link_all_deplibs_GCJ=yes
18862
if test "$GCC" = yes; then
18863
case $host_os in aix4.012|aix4.012.*)
18864
# We only want to do this on AIX 4.2 and lower, the check
18865
# below for broken collect2 doesn't work under 4.3+
18866
collect2name=`${CC} -print-prog-name=collect2`
18867
if test -f "$collect2name" && \
18868
strings "$collect2name" | grep resolve_lib_name >/dev/null
18870
# We have reworked collect2
18871
hardcode_direct_GCJ=yes
18873
# We have old collect2
18874
hardcode_direct_GCJ=unsupported
18875
# It fails to find uninstalled libraries when the uninstalled
18876
# path is not listed in the libpath. Setting hardcode_minus_L
18877
# to unsupported forces relinking
18878
hardcode_minus_L_GCJ=yes
18879
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18880
hardcode_libdir_separator_GCJ=
18883
shared_flag='-shared'
18886
if test "$host_cpu" = ia64; then
18887
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18888
# chokes on -Wl,-G. The following line is correct:
18891
if test "$aix_use_runtimelinking" = yes; then
18892
shared_flag='${wl}-G'
18894
shared_flag='${wl}-bM:SRE'
18899
# It seems that -bexpall does not export symbols beginning with
18900
# underscore (_), so it is better to generate a list of symbols to export.
18901
always_export_symbols_GCJ=yes
18902
if test "$aix_use_runtimelinking" = yes; then
18903
# Warning - without using the other runtime loading flags (-brtl),
18904
# -berok will link without error, but may produce a broken library.
18905
allow_undefined_flag_GCJ='-berok'
18906
# Determine the default libpath from the value encoded in an empty executable.
18907
cat >conftest.$ac_ext <<_ACEOF
18910
cat confdefs.h >>conftest.$ac_ext
18911
cat >>conftest.$ac_ext <<_ACEOF
18912
/* end confdefs.h. */
18922
rm -f conftest.$ac_objext conftest$ac_exeext
18923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18924
(eval $ac_link) 2>conftest.er1
18926
grep -v '^ *+' conftest.er1 >conftest.err
18928
cat conftest.err >&5
18929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930
(exit $ac_status); } &&
18931
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933
(eval $ac_try) 2>&5
18935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936
(exit $ac_status); }; } &&
18937
{ ac_try='test -s conftest$ac_exeext'
18938
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939
(eval $ac_try) 2>&5
18941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942
(exit $ac_status); }; }; then
18944
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18946
# Check for a 64-bit object if we didn't find anything.
18947
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; }
18950
echo "$as_me: failed program was:" >&5
18951
sed 's/^/| /' conftest.$ac_ext >&5
18954
rm -f conftest.err conftest.$ac_objext \
18955
conftest$ac_exeext conftest.$ac_ext
18956
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18958
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18959
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"
18961
if test "$host_cpu" = ia64; then
18962
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18963
allow_undefined_flag_GCJ="-z nodefs"
18964
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"
18966
# Determine the default libpath from the value encoded in an empty executable.
18967
cat >conftest.$ac_ext <<_ACEOF
18970
cat confdefs.h >>conftest.$ac_ext
18971
cat >>conftest.$ac_ext <<_ACEOF
18972
/* end confdefs.h. */
18982
rm -f conftest.$ac_objext conftest$ac_exeext
18983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18984
(eval $ac_link) 2>conftest.er1
18986
grep -v '^ *+' conftest.er1 >conftest.err
18988
cat conftest.err >&5
18989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990
(exit $ac_status); } &&
18991
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993
(eval $ac_try) 2>&5
18995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996
(exit $ac_status); }; } &&
18997
{ ac_try='test -s conftest$ac_exeext'
18998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999
(eval $ac_try) 2>&5
19001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002
(exit $ac_status); }; }; then
19004
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19006
# Check for a 64-bit object if we didn't find anything.
19007
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; }
19010
echo "$as_me: failed program was:" >&5
19011
sed 's/^/| /' conftest.$ac_ext >&5
19014
rm -f conftest.err conftest.$ac_objext \
19015
conftest$ac_exeext conftest.$ac_ext
19016
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19018
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19019
# Warning - without using the other run time loading flags,
19020
# -berok will link without error, but may produce a broken library.
19021
no_undefined_flag_GCJ=' ${wl}-bernotok'
19022
allow_undefined_flag_GCJ=' ${wl}-berok'
19023
# -bexpall does not export symbols beginning with underscore (_)
19024
always_export_symbols_GCJ=yes
19025
# Exported symbols can be pulled into shared objects from archives
19026
whole_archive_flag_spec_GCJ=' '
19027
archive_cmds_need_lc_GCJ=yes
19028
# This is similar to how AIX traditionally builds it's shared libraries.
19029
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'
19035
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)'
19036
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19037
hardcode_minus_L_GCJ=yes
19038
# see comment about different semantics on the GNU ld section
19043
export_dynamic_flag_spec_GCJ=-rdynamic
19046
cygwin* | mingw* | pw32*)
19047
# When not using gcc, we currently assume that we are using
19048
# Microsoft Visual C++.
19049
# hardcode_libdir_flag_spec is actually meaningless, as there is
19050
# no search path for DLLs.
19051
hardcode_libdir_flag_spec_GCJ=' '
19052
allow_undefined_flag_GCJ=unsupported
19053
# Tell ltmain to make .lib files, not .a files.
19055
# Tell ltmain to make .dll files, not .so files.
19057
# FIXME: Setting linknames here is a bad hack.
19058
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19059
# The linker will automatically build a .lib file if we build a DLL.
19060
old_archive_From_new_cmds_GCJ='true'
19061
# FIXME: Should let the user specify the lib program.
19062
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19063
fix_srcfile_path='`cygpath -w "$srcfile"`'
19064
enable_shared_with_static_runtimes_GCJ=yes
19067
darwin* | rhapsody*)
19068
if test "$GXX" = yes ; then
19069
archive_cmds_need_lc_GCJ=no
19071
rhapsody* | darwin1.[012])
19072
allow_undefined_flag_GCJ='-undefined suppress'
19075
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19076
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19078
case ${MACOSX_DEPLOYMENT_TARGET} in
19080
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
19083
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
19089
lt_int_apple_cc_single_mod=no
19090
output_verbose_link_cmd='echo'
19091
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19092
lt_int_apple_cc_single_mod=yes
19094
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19095
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19097
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'
19099
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19100
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19101
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19102
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}'
19104
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}'
19106
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}'
19107
hardcode_direct_GCJ=no
19108
hardcode_automatic_GCJ=yes
19109
hardcode_shlibpath_var_GCJ=unsupported
19110
whole_archive_flag_spec_GCJ='-all_load $convenience'
19111
link_all_deplibs_GCJ=yes
19118
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19119
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19120
hardcode_shlibpath_var_GCJ=no
19127
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19128
# support. Future versions do this automatically, but an explicit c++rt0.o
19129
# does not break anything, and helps significantly (at the cost of a little
19132
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19133
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19134
hardcode_direct_GCJ=yes
19135
hardcode_shlibpath_var_GCJ=no
19138
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19140
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19141
hardcode_direct_GCJ=yes
19142
hardcode_minus_L_GCJ=yes
19143
hardcode_shlibpath_var_GCJ=no
19146
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19147
freebsd* | kfreebsd*-gnu)
19148
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19149
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19150
hardcode_direct_GCJ=yes
19151
hardcode_shlibpath_var_GCJ=no
19155
if test "$GCC" = yes; then
19156
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'
19158
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'
19160
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19161
hardcode_libdir_separator_GCJ=:
19162
hardcode_direct_GCJ=yes
19164
# hardcode_minus_L: Not really in the search PATH,
19165
# but as the default location of the library.
19166
hardcode_minus_L_GCJ=yes
19167
export_dynamic_flag_spec_GCJ='${wl}-E'
19171
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19172
case "$host_cpu" in
19174
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19177
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19181
case "$host_cpu" in
19183
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19186
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19190
if test "$with_gnu_ld" = no; then
19191
case "$host_cpu" in
19193
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19194
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19195
hardcode_libdir_separator_GCJ=:
19196
hardcode_direct_GCJ=no
19197
hardcode_shlibpath_var_GCJ=no
19200
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19201
hardcode_direct_GCJ=no
19202
hardcode_shlibpath_var_GCJ=no
19204
# hardcode_minus_L: Not really in the search PATH,
19205
# but as the default location of the library.
19206
hardcode_minus_L_GCJ=yes
19209
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19210
hardcode_libdir_separator_GCJ=:
19211
hardcode_direct_GCJ=yes
19212
export_dynamic_flag_spec_GCJ='${wl}-E'
19214
# hardcode_minus_L: Not really in the search PATH,
19215
# but as the default location of the library.
19216
hardcode_minus_L_GCJ=yes
19222
irix5* | irix6* | nonstopux*)
19223
if test "$GCC" = yes; then
19224
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'
19226
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'
19227
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19229
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19230
hardcode_libdir_separator_GCJ=:
19231
link_all_deplibs_GCJ=yes
19234
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
19235
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19236
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19238
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19240
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19241
hardcode_direct_GCJ=yes
19242
hardcode_shlibpath_var_GCJ=no
19246
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19247
hardcode_direct_GCJ=yes
19248
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19249
hardcode_libdir_separator_GCJ=:
19250
hardcode_shlibpath_var_GCJ=no
19254
hardcode_direct_GCJ=yes
19255
hardcode_shlibpath_var_GCJ=no
19256
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19257
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19258
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19259
export_dynamic_flag_spec_GCJ='${wl}-E'
19262
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19263
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19264
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19267
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19268
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19275
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19276
hardcode_minus_L_GCJ=yes
19277
allow_undefined_flag_GCJ=unsupported
19278
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'
19279
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19283
if test "$GCC" = yes; then
19284
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19285
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'
19287
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19288
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'
19290
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19291
hardcode_libdir_separator_GCJ=:
19294
osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19298
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19300
allow_undefined_flag_GCJ=' -expect_unresolved \*'
19301
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'
19302
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~
19303
$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'
19305
# Both c and cxx compiler support -rpath directly
19306
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19308
hardcode_libdir_separator_GCJ=:
19312
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19313
hardcode_shlibpath_var_GCJ=no
19314
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19315
runpath_var=LD_RUN_PATH
19316
hardcode_runpath_var=yes
19320
no_undefined_flag_GCJ=' -z text'
19321
if test "$GCC" = yes; then
19322
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19324
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19326
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19327
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19328
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19330
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19331
hardcode_shlibpath_var_GCJ=no
19333
solaris2.[0-5] | solaris2.[0-5].*) ;;
19334
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
19335
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19337
link_all_deplibs_GCJ=yes
19341
if test "x$host_vendor" = xsequent; then
19342
# Use $CC to link under sequent, because it throws in some extra .o
19343
# files that make .init and .fini sections work.
19344
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19346
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19348
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19349
hardcode_direct_GCJ=yes
19350
hardcode_minus_L_GCJ=yes
19351
hardcode_shlibpath_var_GCJ=no
19355
case $host_vendor in
19357
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19358
hardcode_direct_GCJ=yes # is this really true???
19361
## LD is ld it makes a PLAMLIB
19362
## CC just makes a GrossModule.
19363
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19364
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19365
hardcode_direct_GCJ=no
19368
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19369
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19372
runpath_var='LD_RUN_PATH'
19373
hardcode_shlibpath_var_GCJ=no
19377
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19378
hardcode_shlibpath_var_GCJ=no
19379
export_dynamic_flag_spec_GCJ='-Bexport'
19383
if test -d /usr/nec; then
19384
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19385
hardcode_shlibpath_var_GCJ=no
19386
runpath_var=LD_RUN_PATH
19387
hardcode_runpath_var=yes
19393
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19394
hardcode_direct_GCJ=yes
19395
hardcode_minus_L_GCJ=no
19396
hardcode_shlibpath_var_GCJ=no
19397
hardcode_runpath_var=yes
19398
runpath_var=LD_RUN_PATH
19401
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19402
no_undefined_flag_GCJ='${wl}-z ${wl}text'
19403
if test "$GCC" = yes; then
19404
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19406
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19408
runpath_var='LD_RUN_PATH'
19409
hardcode_shlibpath_var_GCJ=no
19413
no_undefined_flag_GCJ=' -z text'
19414
# $CC -shared without GNU ld will not create a library from C++
19415
# object files and a static libstdc++, better avoid it by now
19416
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19417
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19418
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19419
hardcode_libdir_flag_spec_GCJ=
19420
hardcode_shlibpath_var_GCJ=no
19421
runpath_var='LD_RUN_PATH'
19425
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19426
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19427
hardcode_shlibpath_var_GCJ=no
19436
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19437
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19438
test "$ld_shlibs_GCJ" = no && can_build_shared=no
19440
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19441
if test "$GCC" = yes; then
19442
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19446
# Do we need to explicitly link libc?
19448
case "x$archive_cmds_need_lc_GCJ" in
19450
# Assume -lc should be added
19451
archive_cmds_need_lc_GCJ=yes
19453
if test "$enable_shared" = yes && test "$GCC" = yes; then
19454
case $archive_cmds_GCJ in
19456
# FIXME: we may have to deal with multi-command sequences.
19459
# Test whether the compiler implicitly links with -lc since on some
19460
# systems, -lgcc has to come before -lc. If gcc already passes -lc
19461
# to ld, don't add -lc before -lgcc.
19462
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19463
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19465
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19468
(eval $ac_compile) 2>&5
19470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471
(exit $ac_status); } 2>conftest.err; then
19474
libobjs=conftest.$ac_objext
19476
wl=$lt_prog_compiler_wl_GCJ
19482
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19483
allow_undefined_flag_GCJ=
19484
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19485
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488
(exit $ac_status); }
19490
archive_cmds_need_lc_GCJ=no
19492
archive_cmds_need_lc_GCJ=yes
19494
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19496
cat conftest.err 1>&5
19499
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19500
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19507
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19508
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19509
library_names_spec=
19510
libname_spec='lib$name'
19514
postuninstall_cmds=
19518
shlibpath_overrides_runpath=unknown
19520
dynamic_linker="$host_os ld.so"
19521
sys_lib_dlsearch_path_spec="/lib /usr/lib"
19522
if test "$GCC" = yes; then
19523
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19524
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19525
# if the path contains ";" then we assume it to be the separator
19526
# otherwise default to the standard path separator (i.e. ":") - it is
19527
# assumed that no part of a normal pathname contains ";" but that should
19528
# okay in the real world where ";" in dirpaths is itself problematic.
19529
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19531
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19534
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19536
need_lib_prefix=unknown
19537
hardcode_into_libs=no
19539
# when you set need_version to no, make sure it does not cause -set_version
19540
# flags to be left without arguments
19541
need_version=unknown
19546
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19547
shlibpath_var=LIBPATH
19549
# AIX 3 has no versioning support, so we append a major version to the name.
19550
soname_spec='${libname}${release}${shared_ext}$major'
19557
hardcode_into_libs=yes
19558
if test "$host_cpu" = ia64; then
19559
# AIX 5 supports IA64
19560
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19561
shlibpath_var=LD_LIBRARY_PATH
19563
# With GCC up to 2.95.x, collect2 would create an import file
19564
# for dependence libraries. The import file would start with
19565
# the line `#! .'. This would cause the generated library to
19566
# depend on `.', always an invalid library. This was fixed in
19567
# development snapshots of GCC prior to 3.0.
19569
aix4 | aix4.[01] | aix4.[01].*)
19570
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19572
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19575
can_build_shared=no
19579
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19580
# soname into executable. Probably we can add versioning support to
19581
# collect2, so additional links can be useful in future.
19582
if test "$aix_use_runtimelinking" = yes; then
19583
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
19584
# instead of lib<name>.a to let people know that these are not
19585
# typical AIX shared libraries.
19586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19588
# We preserve .a as extension for shared libraries through AIX4.2
19589
# and later when we are not doing run time linking.
19590
library_names_spec='${libname}${release}.a $libname.a'
19591
soname_spec='${libname}${release}${shared_ext}$major'
19593
shlibpath_var=LIBPATH
19598
library_names_spec='$libname.ixlibrary $libname.a'
19599
# Create ${libname}_ixlibrary.a entries in /sys/libs.
19600
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'
19604
library_names_spec='${libname}${shared_ext}'
19605
dynamic_linker="$host_os ld.so"
19606
shlibpath_var=LIBRARY_PATH
19612
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19613
soname_spec='${libname}${release}${shared_ext}$major'
19614
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19615
shlibpath_var=LD_LIBRARY_PATH
19616
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19617
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19618
# the default ld.so.conf also contains /usr/contrib/lib and
19619
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19620
# libtool to hard-code these into programs
19623
cygwin* | mingw* | pw32*)
19624
version_type=windows
19629
case $GCC,$host_os in
19630
yes,cygwin* | yes,mingw* | yes,pw32*)
19631
library_names_spec='$libname.dll.a'
19632
# DLL is installed to $(libdir)/../bin by postinstall_cmds
19633
postinstall_cmds='base_file=`basename \${file}`~
19634
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19635
dldir=$destdir/`dirname \$dlpath`~
19636
test -d \$dldir || mkdir -p \$dldir~
19637
$install_prog $dir/$dlname \$dldir/$dlname'
19638
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19639
dlpath=$dir/\$dldll~
19641
shlibpath_overrides_runpath=yes
19645
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
19646
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19647
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19650
# MinGW DLLs use traditional 'lib' prefix
19651
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19652
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19653
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19654
# It is most probably a Windows format PATH printed by
19655
# mingw gcc, but we are running on Cygwin. Gcc prints its search
19656
# path with ; separators, and with drive letters. We can handle the
19657
# drive letters (cygwin fileutils understands them), so leave them,
19658
# especially as we might pass files found there to a mingw objdump,
19659
# which wouldn't understand a cygwinified path. Ahh.
19660
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19662
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19666
# pw32 DLLs use 'pw' prefix rather than 'lib'
19667
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19673
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19676
dynamic_linker='Win32 ld.exe'
19677
# FIXME: first we should search . and the directory the executable is in
19681
darwin* | rhapsody*)
19682
dynamic_linker="$host_os dyld"
19683
version_type=darwin
19686
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19687
soname_spec='${libname}${release}${major}$shared_ext'
19688
shlibpath_overrides_runpath=yes
19689
shlibpath_var=DYLD_LIBRARY_PATH
19690
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19691
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19692
if test "$GCC" = yes; then
19693
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"`
19695
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19697
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19705
soname_spec='${libname}${release}${shared_ext}$major'
19706
shlibpath_var=LD_LIBRARY_PATH
19717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19718
soname_spec='${libname}${release}${shared_ext}$major'
19719
shlibpath_var=LD_LIBRARY_PATH
19720
shlibpath_overrides_runpath=no
19721
hardcode_into_libs=yes
19722
dynamic_linker='GNU ld.so'
19726
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19727
version_type=freebsd-$objformat
19728
case $version_type in
19730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19735
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19739
shlibpath_var=LD_LIBRARY_PATH
19742
shlibpath_overrides_runpath=yes
19744
freebsd3.01* | freebsdelf3.01*)
19745
shlibpath_overrides_runpath=yes
19746
hardcode_into_libs=yes
19749
shlibpath_overrides_runpath=no
19750
hardcode_into_libs=yes
19759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19760
soname_spec='${libname}${release}${shared_ext}$major'
19761
shlibpath_var=LD_LIBRARY_PATH
19762
hardcode_into_libs=yes
19765
hpux9* | hpux10* | hpux11*)
19766
# Give a soname corresponding to the major version so that dld.sl refuses to
19767
# link against other versions.
19771
case "$host_cpu" in
19774
hardcode_into_libs=yes
19775
dynamic_linker="$host_os dld.so"
19776
shlibpath_var=LD_LIBRARY_PATH
19777
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19779
soname_spec='${libname}${release}${shared_ext}$major'
19780
if test "X$HPUX_IA64_MODE" = X32; then
19781
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19783
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19785
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19789
hardcode_into_libs=yes
19790
dynamic_linker="$host_os dld.sl"
19791
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19792
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19794
soname_spec='${libname}${release}${shared_ext}$major'
19795
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19796
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19800
dynamic_linker="$host_os dld.sl"
19801
shlibpath_var=SHLIB_PATH
19802
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19804
soname_spec='${libname}${release}${shared_ext}$major'
19807
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19808
postinstall_cmds='chmod 555 $lib'
19811
irix5* | irix6* | nonstopux*)
19813
nonstopux*) version_type=nonstopux ;;
19815
if test "$lt_cv_prog_gnu_ld" = yes; then
19823
soname_spec='${libname}${release}${shared_ext}$major'
19824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19826
irix5* | nonstopux*)
19827
libsuff= shlibsuff=
19830
case $LD in # libtool.m4 will add one of these switches to LD
19831
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19832
libsuff= shlibsuff= libmagic=32-bit;;
19833
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19834
libsuff=32 shlibsuff=N32 libmagic=N32;;
19835
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19836
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19837
*) libsuff= shlibsuff= libmagic=never-match;;
19841
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19842
shlibpath_overrides_runpath=no
19843
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19844
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19845
hardcode_into_libs=yes
19848
# No shared lib support for Linux oldld, aout, or coff.
19849
linux*oldld* | linux*aout* | linux*coff*)
19853
# This must be Linux ELF.
19858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19859
soname_spec='${libname}${release}${shared_ext}$major'
19860
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19861
shlibpath_var=LD_LIBRARY_PATH
19862
shlibpath_overrides_runpath=no
19863
# This implies no fast_install, which is unacceptable.
19864
# Some rework will be needed to allow for fast_install
19865
# before this can be enabled.
19866
hardcode_into_libs=yes
19868
# Append ld.so.conf contents to the search path
19869
if test -f /etc/ld.so.conf; then
19870
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19871
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19874
# We used to test for /lib/ld.so.1 and disable shared libraries on
19875
# powerpc, because MkLinux only supported shared libraries with the
19876
# GNU dynamic linker. Since this was broken with cross compilers,
19877
# most powerpc-linux boxes support dynamic linking these days and
19878
# people can always --disable-shared, the test was removed, and we
19879
# assume the GNU/Linux dynamic linker is in use.
19880
dynamic_linker='GNU/Linux ld.so'
19887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19888
soname_spec='${libname}${release}${shared_ext}$major'
19889
shlibpath_var=LD_LIBRARY_PATH
19890
shlibpath_overrides_runpath=no
19891
hardcode_into_libs=yes
19892
dynamic_linker='NetBSD ld.elf_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='GNU ld.so'
19911
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19912
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19913
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19914
dynamic_linker='NetBSD (a.out) ld.so'
19916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19917
soname_spec='${libname}${release}${shared_ext}$major'
19918
dynamic_linker='NetBSD ld.elf_so'
19920
shlibpath_var=LD_LIBRARY_PATH
19921
shlibpath_overrides_runpath=yes
19922
hardcode_into_libs=yes
19927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19928
shlibpath_var=LD_LIBRARY_PATH
19929
shlibpath_overrides_runpath=yes
19936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19937
soname_spec='${libname}${release}${shared_ext}$major'
19938
shlibpath_var=LD_LIBRARY_PATH
19939
shlibpath_overrides_runpath=yes
19946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19947
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19948
shlibpath_var=LD_LIBRARY_PATH
19949
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19951
openbsd2.[89] | openbsd2.[89].*)
19952
shlibpath_overrides_runpath=no
19955
shlibpath_overrides_runpath=yes
19959
shlibpath_overrides_runpath=yes
19964
libname_spec='$name'
19967
library_names_spec='$libname${shared_ext} $libname.a'
19968
dynamic_linker='OS/2 ld.exe'
19969
shlibpath_var=LIBPATH
19972
osf3* | osf4* | osf5*)
19976
soname_spec='${libname}${release}${shared_ext}$major'
19977
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19978
shlibpath_var=LD_LIBRARY_PATH
19979
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19980
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19985
soname_spec='${libname}${release}${shared_ext}$major'
19986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19987
shlibpath_var=LD_LIBRARY_PATH
19994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19995
soname_spec='${libname}${release}${shared_ext}$major'
19996
shlibpath_var=LD_LIBRARY_PATH
19997
shlibpath_overrides_runpath=yes
19998
hardcode_into_libs=yes
19999
# ldd complains unless libraries are executable
20000
postinstall_cmds='chmod +x $lib'
20005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20006
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20007
shlibpath_var=LD_LIBRARY_PATH
20008
shlibpath_overrides_runpath=yes
20009
if test "$with_gnu_ld" = yes; then
20015
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20018
soname_spec='${libname}${release}${shared_ext}$major'
20019
shlibpath_var=LD_LIBRARY_PATH
20020
case $host_vendor in
20022
shlibpath_overrides_runpath=no
20024
export_dynamic_flag_spec='${wl}-Blargedynsym'
20025
runpath_var=LD_RUN_PATH
20033
shlibpath_overrides_runpath=no
20034
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20040
if test -d /usr/nec ;then
20042
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20043
soname_spec='$libname${shared_ext}.$major'
20044
shlibpath_var=LD_LIBRARY_PATH
20050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20051
soname_spec='${libname}${release}${shared_ext}$major'
20052
shlibpath_var=LD_LIBRARY_PATH
20059
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20060
echo "${ECHO_T}$dynamic_linker" >&6
20061
test "$dynamic_linker" = no && can_build_shared=no
20063
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20064
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20065
hardcode_action_GCJ=
20066
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20067
test -n "$runpath_var GCJ" || \
20068
test "X$hardcode_automatic_GCJ"="Xyes" ; then
20070
# We can hardcode non-existant directories.
20071
if test "$hardcode_direct_GCJ" != no &&
20072
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20073
# have to relink, otherwise we might link with an installed library
20074
# when we should be linking with a yet-to-be-installed one
20075
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20076
test "$hardcode_minus_L_GCJ" != no; then
20077
# Linking always hardcodes the temporary library directory.
20078
hardcode_action_GCJ=relink
20080
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20081
hardcode_action_GCJ=immediate
20084
# We cannot hardcode anything, or else we can only hardcode existing
20086
hardcode_action_GCJ=unsupported
20088
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20089
echo "${ECHO_T}$hardcode_action_GCJ" >&6
20091
if test "$hardcode_action_GCJ" = relink; then
20092
# Fast installation is not supported
20093
enable_fast_install=no
20094
elif test "$shlibpath_overrides_runpath" = yes ||
20095
test "$enable_shared" = no; then
20096
# Fast installation is not necessary
20097
enable_fast_install=needless
20102
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20103
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20104
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20105
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20106
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20107
echo "$as_me:$LINENO: result: yes" >&5
20108
echo "${ECHO_T}yes" >&6
20110
# FIXME - insert some real tests, host_os isn't really good enough
20113
if test -n "$STRIP" ; then
20114
striplib="$STRIP -x"
20115
echo "$as_me:$LINENO: result: yes" >&5
20116
echo "${ECHO_T}yes" >&6
20118
echo "$as_me:$LINENO: result: no" >&5
20119
echo "${ECHO_T}no" >&6
20123
echo "$as_me:$LINENO: result: no" >&5
20124
echo "${ECHO_T}no" >&6
20129
if test "x$enable_dlopen" != xyes; then
20130
enable_dlopen=unknown
20131
enable_dlopen_self=unknown
20132
enable_dlopen_self_static=unknown
20139
lt_cv_dlopen="load_add_on"
20141
lt_cv_dlopen_self=yes
20145
lt_cv_dlopen="LoadLibrary"
20150
lt_cv_dlopen="dlopen"
20155
# if libdl is installed we need to link against it
20156
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20157
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20158
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20159
echo $ECHO_N "(cached) $ECHO_C" >&6
20161
ac_check_lib_save_LIBS=$LIBS
20163
cat >conftest.$ac_ext <<_ACEOF
20166
cat confdefs.h >>conftest.$ac_ext
20167
cat >>conftest.$ac_ext <<_ACEOF
20168
/* end confdefs.h. */
20170
/* Override any gcc2 internal prototype to avoid an error. */
20174
/* We use char because int might match the return type of a gcc2
20175
builtin and then its argument prototype would still apply. */
20185
rm -f conftest.$ac_objext conftest$ac_exeext
20186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20187
(eval $ac_link) 2>conftest.er1
20189
grep -v '^ *+' conftest.er1 >conftest.err
20191
cat conftest.err >&5
20192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193
(exit $ac_status); } &&
20194
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196
(eval $ac_try) 2>&5
20198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199
(exit $ac_status); }; } &&
20200
{ ac_try='test -s conftest$ac_exeext'
20201
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202
(eval $ac_try) 2>&5
20204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205
(exit $ac_status); }; }; then
20206
ac_cv_lib_dl_dlopen=yes
20208
echo "$as_me: failed program was:" >&5
20209
sed 's/^/| /' conftest.$ac_ext >&5
20211
ac_cv_lib_dl_dlopen=no
20213
rm -f conftest.err conftest.$ac_objext \
20214
conftest$ac_exeext conftest.$ac_ext
20215
LIBS=$ac_check_lib_save_LIBS
20217
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20218
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20219
if test $ac_cv_lib_dl_dlopen = yes; then
20220
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20223
lt_cv_dlopen="dyld"
20225
lt_cv_dlopen_self=yes
20232
echo "$as_me:$LINENO: checking for shl_load" >&5
20233
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20234
if test "${ac_cv_func_shl_load+set}" = set; then
20235
echo $ECHO_N "(cached) $ECHO_C" >&6
20237
cat >conftest.$ac_ext <<_ACEOF
20240
cat confdefs.h >>conftest.$ac_ext
20241
cat >>conftest.$ac_ext <<_ACEOF
20242
/* end confdefs.h. */
20243
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20244
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20245
#define shl_load innocuous_shl_load
20247
/* System header to define __stub macros and hopefully few prototypes,
20248
which can conflict with char shl_load (); below.
20249
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20250
<limits.h> exists even on freestanding compilers. */
20253
# include <limits.h>
20255
# include <assert.h>
20260
/* Override any gcc2 internal prototype to avoid an error. */
20265
/* We use char because int might match the return type of a gcc2
20266
builtin and then its argument prototype would still apply. */
20268
/* The GNU C library defines this for functions which it implements
20269
to always fail with ENOSYS. Some functions are actually named
20270
something starting with __ and the normal name is an alias. */
20271
#if defined (__stub_shl_load) || defined (__stub___shl_load)
20274
char (*f) () = shl_load;
20283
return f != shl_load;
20288
rm -f conftest.$ac_objext conftest$ac_exeext
20289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290
(eval $ac_link) 2>conftest.er1
20292
grep -v '^ *+' conftest.er1 >conftest.err
20294
cat conftest.err >&5
20295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296
(exit $ac_status); } &&
20297
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20298
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299
(eval $ac_try) 2>&5
20301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
(exit $ac_status); }; } &&
20303
{ ac_try='test -s conftest$ac_exeext'
20304
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305
(eval $ac_try) 2>&5
20307
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308
(exit $ac_status); }; }; then
20309
ac_cv_func_shl_load=yes
20311
echo "$as_me: failed program was:" >&5
20312
sed 's/^/| /' conftest.$ac_ext >&5
20314
ac_cv_func_shl_load=no
20316
rm -f conftest.err conftest.$ac_objext \
20317
conftest$ac_exeext conftest.$ac_ext
20319
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20320
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20321
if test $ac_cv_func_shl_load = yes; then
20322
lt_cv_dlopen="shl_load"
20324
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20325
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20326
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20327
echo $ECHO_N "(cached) $ECHO_C" >&6
20329
ac_check_lib_save_LIBS=$LIBS
20331
cat >conftest.$ac_ext <<_ACEOF
20334
cat confdefs.h >>conftest.$ac_ext
20335
cat >>conftest.$ac_ext <<_ACEOF
20336
/* end confdefs.h. */
20338
/* Override any gcc2 internal prototype to avoid an error. */
20342
/* We use char because int might match the return type of a gcc2
20343
builtin and then its argument prototype would still apply. */
20353
rm -f conftest.$ac_objext conftest$ac_exeext
20354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20355
(eval $ac_link) 2>conftest.er1
20357
grep -v '^ *+' conftest.er1 >conftest.err
20359
cat conftest.err >&5
20360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361
(exit $ac_status); } &&
20362
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364
(eval $ac_try) 2>&5
20366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367
(exit $ac_status); }; } &&
20368
{ ac_try='test -s conftest$ac_exeext'
20369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370
(eval $ac_try) 2>&5
20372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373
(exit $ac_status); }; }; then
20374
ac_cv_lib_dld_shl_load=yes
20376
echo "$as_me: failed program was:" >&5
20377
sed 's/^/| /' conftest.$ac_ext >&5
20379
ac_cv_lib_dld_shl_load=no
20381
rm -f conftest.err conftest.$ac_objext \
20382
conftest$ac_exeext conftest.$ac_ext
20383
LIBS=$ac_check_lib_save_LIBS
20385
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20386
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20387
if test $ac_cv_lib_dld_shl_load = yes; then
20388
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20390
echo "$as_me:$LINENO: checking for dlopen" >&5
20391
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20392
if test "${ac_cv_func_dlopen+set}" = set; then
20393
echo $ECHO_N "(cached) $ECHO_C" >&6
20395
cat >conftest.$ac_ext <<_ACEOF
20398
cat confdefs.h >>conftest.$ac_ext
20399
cat >>conftest.$ac_ext <<_ACEOF
20400
/* end confdefs.h. */
20401
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20402
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20403
#define dlopen innocuous_dlopen
20405
/* System header to define __stub macros and hopefully few prototypes,
20406
which can conflict with char dlopen (); below.
20407
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20408
<limits.h> exists even on freestanding compilers. */
20411
# include <limits.h>
20413
# include <assert.h>
20418
/* Override any gcc2 internal prototype to avoid an error. */
20423
/* We use char because int might match the return type of a gcc2
20424
builtin and then its argument prototype would still apply. */
20426
/* The GNU C library defines this for functions which it implements
20427
to always fail with ENOSYS. Some functions are actually named
20428
something starting with __ and the normal name is an alias. */
20429
#if defined (__stub_dlopen) || defined (__stub___dlopen)
20432
char (*f) () = dlopen;
20441
return f != dlopen;
20446
rm -f conftest.$ac_objext conftest$ac_exeext
20447
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20448
(eval $ac_link) 2>conftest.er1
20450
grep -v '^ *+' conftest.er1 >conftest.err
20452
cat conftest.err >&5
20453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454
(exit $ac_status); } &&
20455
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457
(eval $ac_try) 2>&5
20459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460
(exit $ac_status); }; } &&
20461
{ ac_try='test -s conftest$ac_exeext'
20462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463
(eval $ac_try) 2>&5
20465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466
(exit $ac_status); }; }; then
20467
ac_cv_func_dlopen=yes
20469
echo "$as_me: failed program was:" >&5
20470
sed 's/^/| /' conftest.$ac_ext >&5
20472
ac_cv_func_dlopen=no
20474
rm -f conftest.err conftest.$ac_objext \
20475
conftest$ac_exeext conftest.$ac_ext
20477
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20478
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20479
if test $ac_cv_func_dlopen = yes; then
20480
lt_cv_dlopen="dlopen"
20482
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20483
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20484
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20485
echo $ECHO_N "(cached) $ECHO_C" >&6
20487
ac_check_lib_save_LIBS=$LIBS
20489
cat >conftest.$ac_ext <<_ACEOF
20492
cat confdefs.h >>conftest.$ac_ext
20493
cat >>conftest.$ac_ext <<_ACEOF
20494
/* end confdefs.h. */
20496
/* Override any gcc2 internal prototype to avoid an error. */
20500
/* We use char because int might match the return type of a gcc2
20501
builtin and then its argument prototype would still apply. */
20511
rm -f conftest.$ac_objext conftest$ac_exeext
20512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20513
(eval $ac_link) 2>conftest.er1
20515
grep -v '^ *+' conftest.er1 >conftest.err
20517
cat conftest.err >&5
20518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519
(exit $ac_status); } &&
20520
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20521
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522
(eval $ac_try) 2>&5
20524
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525
(exit $ac_status); }; } &&
20526
{ ac_try='test -s conftest$ac_exeext'
20527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528
(eval $ac_try) 2>&5
20530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531
(exit $ac_status); }; }; then
20532
ac_cv_lib_dl_dlopen=yes
20534
echo "$as_me: failed program was:" >&5
20535
sed 's/^/| /' conftest.$ac_ext >&5
20537
ac_cv_lib_dl_dlopen=no
20539
rm -f conftest.err conftest.$ac_objext \
20540
conftest$ac_exeext conftest.$ac_ext
20541
LIBS=$ac_check_lib_save_LIBS
20543
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20544
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20545
if test $ac_cv_lib_dl_dlopen = yes; then
20546
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20548
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20549
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20550
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20551
echo $ECHO_N "(cached) $ECHO_C" >&6
20553
ac_check_lib_save_LIBS=$LIBS
20554
LIBS="-lsvld $LIBS"
20555
cat >conftest.$ac_ext <<_ACEOF
20558
cat confdefs.h >>conftest.$ac_ext
20559
cat >>conftest.$ac_ext <<_ACEOF
20560
/* end confdefs.h. */
20562
/* Override any gcc2 internal prototype to avoid an error. */
20566
/* We use char because int might match the return type of a gcc2
20567
builtin and then its argument prototype would still apply. */
20577
rm -f conftest.$ac_objext conftest$ac_exeext
20578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579
(eval $ac_link) 2>conftest.er1
20581
grep -v '^ *+' conftest.er1 >conftest.err
20583
cat conftest.err >&5
20584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585
(exit $ac_status); } &&
20586
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588
(eval $ac_try) 2>&5
20590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591
(exit $ac_status); }; } &&
20592
{ ac_try='test -s conftest$ac_exeext'
20593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594
(eval $ac_try) 2>&5
20596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597
(exit $ac_status); }; }; then
20598
ac_cv_lib_svld_dlopen=yes
20600
echo "$as_me: failed program was:" >&5
20601
sed 's/^/| /' conftest.$ac_ext >&5
20603
ac_cv_lib_svld_dlopen=no
20605
rm -f conftest.err conftest.$ac_objext \
20606
conftest$ac_exeext conftest.$ac_ext
20607
LIBS=$ac_check_lib_save_LIBS
20609
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20610
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20611
if test $ac_cv_lib_svld_dlopen = yes; then
20612
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20614
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20615
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20616
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20617
echo $ECHO_N "(cached) $ECHO_C" >&6
20619
ac_check_lib_save_LIBS=$LIBS
20621
cat >conftest.$ac_ext <<_ACEOF
20624
cat confdefs.h >>conftest.$ac_ext
20625
cat >>conftest.$ac_ext <<_ACEOF
20626
/* end confdefs.h. */
20628
/* Override any gcc2 internal prototype to avoid an error. */
20632
/* We use char because int might match the return type of a gcc2
20633
builtin and then its argument prototype would still apply. */
20643
rm -f conftest.$ac_objext conftest$ac_exeext
20644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20645
(eval $ac_link) 2>conftest.er1
20647
grep -v '^ *+' conftest.er1 >conftest.err
20649
cat conftest.err >&5
20650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651
(exit $ac_status); } &&
20652
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654
(eval $ac_try) 2>&5
20656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657
(exit $ac_status); }; } &&
20658
{ ac_try='test -s conftest$ac_exeext'
20659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660
(eval $ac_try) 2>&5
20662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663
(exit $ac_status); }; }; then
20664
ac_cv_lib_dld_dld_link=yes
20666
echo "$as_me: failed program was:" >&5
20667
sed 's/^/| /' conftest.$ac_ext >&5
20669
ac_cv_lib_dld_dld_link=no
20671
rm -f conftest.err conftest.$ac_objext \
20672
conftest$ac_exeext conftest.$ac_ext
20673
LIBS=$ac_check_lib_save_LIBS
20675
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20676
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20677
if test $ac_cv_lib_dld_dld_link = yes; then
20678
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20699
if test "x$lt_cv_dlopen" != xno; then
20705
case $lt_cv_dlopen in
20707
save_CPPFLAGS="$CPPFLAGS"
20708
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20710
save_LDFLAGS="$LDFLAGS"
20711
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20714
LIBS="$lt_cv_dlopen_libs $LIBS"
20716
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20717
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20718
if test "${lt_cv_dlopen_self+set}" = set; then
20719
echo $ECHO_N "(cached) $ECHO_C" >&6
20721
if test "$cross_compiling" = yes; then :
20722
lt_cv_dlopen_self=cross
20724
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20725
lt_status=$lt_dlunknown
20726
cat > conftest.$ac_ext <<EOF
20727
#line __oline__ "configure"
20728
#include "confdefs.h"
20737
# define LT_DLGLOBAL RTLD_GLOBAL
20740
# define LT_DLGLOBAL DL_GLOBAL
20742
# define LT_DLGLOBAL 0
20746
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20747
find out it does not work in some platform. */
20748
#ifndef LT_DLLAZY_OR_NOW
20750
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20753
# define LT_DLLAZY_OR_NOW DL_LAZY
20756
# define LT_DLLAZY_OR_NOW RTLD_NOW
20759
# define LT_DLLAZY_OR_NOW DL_NOW
20761
# define LT_DLLAZY_OR_NOW 0
20769
extern "C" void exit (int);
20772
void fnord() { int i=42;}
20775
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20776
int status = $lt_dlunknown;
20780
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20781
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20782
/* dlclose (self); */
20788
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20789
(eval $ac_link) 2>&5
20791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20793
(./conftest; exit; ) 2>/dev/null
20795
case x$lt_status in
20796
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20797
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20798
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20801
# compilation failed
20802
lt_cv_dlopen_self=no
20809
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20810
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20812
if test "x$lt_cv_dlopen_self" = xyes; then
20813
LDFLAGS="$LDFLAGS $link_static_flag"
20814
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20815
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20816
if test "${lt_cv_dlopen_self_static+set}" = set; then
20817
echo $ECHO_N "(cached) $ECHO_C" >&6
20819
if test "$cross_compiling" = yes; then :
20820
lt_cv_dlopen_self_static=cross
20822
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20823
lt_status=$lt_dlunknown
20824
cat > conftest.$ac_ext <<EOF
20825
#line __oline__ "configure"
20826
#include "confdefs.h"
20835
# define LT_DLGLOBAL RTLD_GLOBAL
20838
# define LT_DLGLOBAL DL_GLOBAL
20840
# define LT_DLGLOBAL 0
20844
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20845
find out it does not work in some platform. */
20846
#ifndef LT_DLLAZY_OR_NOW
20848
# define LT_DLLAZY_OR_NOW RTLD_LAZY
20851
# define LT_DLLAZY_OR_NOW DL_LAZY
20854
# define LT_DLLAZY_OR_NOW RTLD_NOW
20857
# define LT_DLLAZY_OR_NOW DL_NOW
20859
# define LT_DLLAZY_OR_NOW 0
20867
extern "C" void exit (int);
20870
void fnord() { int i=42;}
20873
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20874
int status = $lt_dlunknown;
20878
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20879
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20880
/* dlclose (self); */
20886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887
(eval $ac_link) 2>&5
20889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20891
(./conftest; exit; ) 2>/dev/null
20893
case x$lt_status in
20894
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20895
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20896
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20899
# compilation failed
20900
lt_cv_dlopen_self_static=no
20907
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20908
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20911
CPPFLAGS="$save_CPPFLAGS"
20912
LDFLAGS="$save_LDFLAGS"
20917
case $lt_cv_dlopen_self in
20918
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20919
*) enable_dlopen_self=unknown ;;
20922
case $lt_cv_dlopen_self_static in
20923
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20924
*) enable_dlopen_self_static=unknown ;;
20929
# The else clause should only fire when bootstrapping the
20930
# libtool distribution, otherwise you forgot to ship ltmain.sh
20931
# with your package, and you will get complaints that there are
20932
# no rules to generate ltmain.sh.
20933
if test -f "$ltmain"; then
20934
# See if we are running on zsh, and set the options which allow our commands through
20935
# without removal of \ escapes.
20936
if test -n "${ZSH_VERSION+set}" ; then
20937
setopt NO_GLOB_SUBST
20939
# Now quote all the things that may contain metacharacters while being
20940
# careful not to overquote the AC_SUBSTed values. We take copies of the
20941
# variables and quote the copies for generation of the libtool script.
20942
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20944
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20945
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20946
deplibs_check_method reload_flag reload_cmds need_locks \
20947
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20948
lt_cv_sys_global_symbol_to_c_name_address \
20949
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20950
old_postinstall_cmds old_postuninstall_cmds \
20954
lt_prog_compiler_wl_GCJ \
20955
lt_prog_compiler_pic_GCJ \
20956
lt_prog_compiler_static_GCJ \
20957
lt_prog_compiler_no_builtin_flag_GCJ \
20958
export_dynamic_flag_spec_GCJ \
20959
thread_safe_flag_spec_GCJ \
20960
whole_archive_flag_spec_GCJ \
20961
enable_shared_with_static_runtimes_GCJ \
20962
old_archive_cmds_GCJ \
20963
old_archive_from_new_cmds_GCJ \
20964
predep_objects_GCJ \
20965
postdep_objects_GCJ \
20968
compiler_lib_search_path_GCJ \
20970
archive_expsym_cmds_GCJ \
20971
postinstall_cmds_GCJ \
20972
postuninstall_cmds_GCJ \
20973
old_archive_from_expsyms_cmds_GCJ \
20974
allow_undefined_flag_GCJ \
20975
no_undefined_flag_GCJ \
20976
export_symbols_cmds_GCJ \
20977
hardcode_libdir_flag_spec_GCJ \
20978
hardcode_libdir_flag_spec_ld_GCJ \
20979
hardcode_libdir_separator_GCJ \
20980
hardcode_automatic_GCJ \
20982
module_expsym_cmds_GCJ \
20983
lt_cv_prog_compiler_c_o_GCJ \
20984
exclude_expsyms_GCJ \
20985
include_expsyms_GCJ; do
20988
old_archive_cmds_GCJ | \
20989
old_archive_from_new_cmds_GCJ | \
20990
archive_cmds_GCJ | \
20991
archive_expsym_cmds_GCJ | \
20992
module_cmds_GCJ | \
20993
module_expsym_cmds_GCJ | \
20994
old_archive_from_expsyms_cmds_GCJ | \
20995
export_symbols_cmds_GCJ | \
20996
extract_expsyms_cmds | reload_cmds | finish_cmds | \
20997
postinstall_cmds | postuninstall_cmds | \
20998
old_postinstall_cmds | old_postuninstall_cmds | \
20999
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21000
# Double-quote double-evaled strings.
21001
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21004
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21010
*'\$0 --fallback-echo"')
21011
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21017
cat <<__EOF__ >> "$cfgfile"
21018
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21020
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21022
# Shell to use when invoking shell scripts.
21025
# Whether or not to build shared libraries.
21026
build_libtool_libs=$enable_shared
21028
# Whether or not to build static libraries.
21029
build_old_libs=$enable_static
21031
# Whether or not to add -lc for building shared libraries.
21032
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21034
# Whether or not to disallow shared libs when runtime libs are static
21035
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21037
# Whether or not to optimize for fast installation.
21038
fast_install=$enable_fast_install
21041
host_alias=$host_alias
21044
# An echo program that does not interpret backslashes.
21049
AR_FLAGS=$lt_AR_FLAGS
21054
# A language-specific compiler.
21055
CC=$lt_compiler_GCJ
21057
# Is the compiler the GNU C compiler?
21063
# The linker used to build libraries.
21066
# Whether we need hard or soft links.
21069
# A BSD-compatible nm program.
21072
# A symbol stripping program
21075
# Used to examine libraries when file_magic_cmd begins "file"
21076
MAGIC_CMD=$MAGIC_CMD
21078
# Used on cygwin: DLL creation program.
21081
# Used on cygwin: object dumper.
21084
# Used on cygwin: assembler.
21087
# The name of the directory that contains temporary libtool files.
21090
# How to create reloadable object files.
21091
reload_flag=$lt_reload_flag
21092
reload_cmds=$lt_reload_cmds
21094
# How to pass a linker flag through the compiler.
21095
wl=$lt_lt_prog_compiler_wl_GCJ
21097
# Object file suffix (normally "o").
21098
objext="$ac_objext"
21100
# Old archive suffix (normally "a").
21103
# Shared library suffix (normally ".so").
21104
shrext_cmds='$shrext_cmds'
21106
# Executable file suffix (normally "").
21109
# Additional compiler flags for building library objects.
21110
pic_flag=$lt_lt_prog_compiler_pic_GCJ
21113
# What is the maximum length of a command?
21114
max_cmd_len=$lt_cv_sys_max_cmd_len
21116
# Does compiler simultaneously support -c and -o options?
21117
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21119
# Must we lock files when doing compilation ?
21120
need_locks=$lt_need_locks
21122
# Do we need the lib prefix for modules?
21123
need_lib_prefix=$need_lib_prefix
21125
# Do we need a version for libraries?
21126
need_version=$need_version
21128
# Whether dlopen is supported.
21129
dlopen_support=$enable_dlopen
21131
# Whether dlopen of programs is supported.
21132
dlopen_self=$enable_dlopen_self
21134
# Whether dlopen of statically linked programs is supported.
21135
dlopen_self_static=$enable_dlopen_self_static
21137
# Compiler flag to prevent dynamic linking.
21138
link_static_flag=$lt_lt_prog_compiler_static_GCJ
21140
# Compiler flag to turn off builtin functions.
21141
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21143
# Compiler flag to allow reflexive dlopens.
21144
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21146
# Compiler flag to generate shared objects directly from archives.
21147
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21149
# Compiler flag to generate thread-safe objects.
21150
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21152
# Library versioning type.
21153
version_type=$version_type
21155
# Format of library name prefix.
21156
libname_spec=$lt_libname_spec
21158
# List of archive names. First name is the real one, the rest are links.
21159
# The last name is the one that the linker finds with -lNAME.
21160
library_names_spec=$lt_library_names_spec
21162
# The coded name of the library, if different from the real name.
21163
soname_spec=$lt_soname_spec
21165
# Commands used to build and install an old-style archive.
21167
old_archive_cmds=$lt_old_archive_cmds_GCJ
21168
old_postinstall_cmds=$lt_old_postinstall_cmds
21169
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21171
# Create an old-style archive from a shared archive.
21172
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21174
# Create a temporary old-style archive to link instead of a shared archive.
21175
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21177
# Commands used to build and install a shared archive.
21178
archive_cmds=$lt_archive_cmds_GCJ
21179
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21180
postinstall_cmds=$lt_postinstall_cmds
21181
postuninstall_cmds=$lt_postuninstall_cmds
21183
# Commands used to build a loadable module (assumed same as above if empty)
21184
module_cmds=$lt_module_cmds_GCJ
21185
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21187
# Commands to strip libraries.
21188
old_striplib=$lt_old_striplib
21189
striplib=$lt_striplib
21191
# Dependencies to place before the objects being linked to create a
21193
predep_objects=$lt_predep_objects_GCJ
21195
# Dependencies to place after the objects being linked to create a
21197
postdep_objects=$lt_postdep_objects_GCJ
21199
# Dependencies to place before the objects being linked to create a
21201
predeps=$lt_predeps_GCJ
21203
# Dependencies to place after the objects being linked to create a
21205
postdeps=$lt_postdeps_GCJ
21207
# The library search path used internally by the compiler when linking
21208
# a shared library.
21209
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21211
# Method to check whether dependent libraries are shared objects.
21212
deplibs_check_method=$lt_deplibs_check_method
21214
# Command to use when deplibs_check_method == file_magic.
21215
file_magic_cmd=$lt_file_magic_cmd
21217
# Flag that allows shared libraries with undefined symbols to be built.
21218
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21220
# Flag that forces no undefined symbols.
21221
no_undefined_flag=$lt_no_undefined_flag_GCJ
21223
# Commands used to finish a libtool library installation in a directory.
21224
finish_cmds=$lt_finish_cmds
21226
# Same as above, but a single script fragment to be evaled but not shown.
21227
finish_eval=$lt_finish_eval
21229
# Take the output of nm and produce a listing of raw symbols and C names.
21230
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21232
# Transform the output of nm in a proper C declaration
21233
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21235
# Transform the output of nm in a C name address pair
21236
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21238
# This is the shared library runtime path variable.
21239
runpath_var=$runpath_var
21241
# This is the shared library path variable.
21242
shlibpath_var=$shlibpath_var
21244
# Is shlibpath searched before the hard-coded library search path?
21245
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21247
# How to hardcode a shared library path into an executable.
21248
hardcode_action=$hardcode_action_GCJ
21250
# Whether we should hardcode library paths into libraries.
21251
hardcode_into_libs=$hardcode_into_libs
21253
# Flag to hardcode \$libdir into a binary during linking.
21254
# This must work even if \$libdir does not exist.
21255
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21257
# If ld is used when linking, flag to hardcode \$libdir into
21258
# a binary during linking. This must work even if \$libdir does
21260
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21262
# Whether we need a single -rpath flag with a separated argument.
21263
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21265
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21266
# resulting binary.
21267
hardcode_direct=$hardcode_direct_GCJ
21269
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21270
# resulting binary.
21271
hardcode_minus_L=$hardcode_minus_L_GCJ
21273
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21274
# the resulting binary.
21275
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21277
# Set to yes if building a shared library automatically hardcodes DIR into the library
21278
# and all subsequent libraries and executables linked against it.
21279
hardcode_automatic=$hardcode_automatic_GCJ
21281
# Variables whose values should be saved in libtool wrapper scripts and
21282
# restored at relink time.
21283
variables_saved_for_relink="$variables_saved_for_relink"
21285
# Whether libtool must link a program against all its dependency libraries.
21286
link_all_deplibs=$link_all_deplibs_GCJ
21288
# Compile-time system search path for libraries
21289
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21291
# Run-time system search path for libraries
21292
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21294
# Fix the shell variable \$srcfile for the compiler.
21295
fix_srcfile_path="$fix_srcfile_path_GCJ"
21297
# Set to yes if exported symbols are required.
21298
always_export_symbols=$always_export_symbols_GCJ
21300
# The commands to list exported symbols.
21301
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21303
# The commands to extract the exported symbol list from a shared archive.
21304
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21306
# Symbols that should not be listed in the preloaded symbols.
21307
exclude_expsyms=$lt_exclude_expsyms_GCJ
21309
# Symbols that must always be exported.
21310
include_expsyms=$lt_include_expsyms_GCJ
21312
# ### END LIBTOOL TAG CONFIG: $tagname
21318
# If there is no Makefile yet, we rely on a make rule to execute
21319
# `config.status --recheck' to rerun these tests and create the
21320
# libtool script then.
21321
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21322
if test -f "$ltmain_in"; then
21323
test -f Makefile && make "$ltmain"
21329
ac_cpp='$CPP $CPPFLAGS'
21330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21345
# Source file extension for RC test sources.
21348
# Object file extension for compiled RC test sources.
21352
# Code to be used in simple compile tests
21353
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21355
# Code to be used in simple link tests
21356
lt_simple_link_test_code="$lt_simple_compile_test_code"
21358
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21360
# If no C compiler was specified, use CC.
21363
# Allow CC to be a program name with arguments.
21367
# Allow CC to be a program name with arguments.
21372
lt_cv_prog_compiler_c_o_RC=yes
21374
# The else clause should only fire when bootstrapping the
21375
# libtool distribution, otherwise you forgot to ship ltmain.sh
21376
# with your package, and you will get complaints that there are
21377
# no rules to generate ltmain.sh.
21378
if test -f "$ltmain"; then
21379
# See if we are running on zsh, and set the options which allow our commands through
21380
# without removal of \ escapes.
21381
if test -n "${ZSH_VERSION+set}" ; then
21382
setopt NO_GLOB_SUBST
21384
# Now quote all the things that may contain metacharacters while being
21385
# careful not to overquote the AC_SUBSTed values. We take copies of the
21386
# variables and quote the copies for generation of the libtool script.
21387
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21389
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21390
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21391
deplibs_check_method reload_flag reload_cmds need_locks \
21392
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21393
lt_cv_sys_global_symbol_to_c_name_address \
21394
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21395
old_postinstall_cmds old_postuninstall_cmds \
21399
lt_prog_compiler_wl_RC \
21400
lt_prog_compiler_pic_RC \
21401
lt_prog_compiler_static_RC \
21402
lt_prog_compiler_no_builtin_flag_RC \
21403
export_dynamic_flag_spec_RC \
21404
thread_safe_flag_spec_RC \
21405
whole_archive_flag_spec_RC \
21406
enable_shared_with_static_runtimes_RC \
21407
old_archive_cmds_RC \
21408
old_archive_from_new_cmds_RC \
21409
predep_objects_RC \
21410
postdep_objects_RC \
21413
compiler_lib_search_path_RC \
21415
archive_expsym_cmds_RC \
21416
postinstall_cmds_RC \
21417
postuninstall_cmds_RC \
21418
old_archive_from_expsyms_cmds_RC \
21419
allow_undefined_flag_RC \
21420
no_undefined_flag_RC \
21421
export_symbols_cmds_RC \
21422
hardcode_libdir_flag_spec_RC \
21423
hardcode_libdir_flag_spec_ld_RC \
21424
hardcode_libdir_separator_RC \
21425
hardcode_automatic_RC \
21427
module_expsym_cmds_RC \
21428
lt_cv_prog_compiler_c_o_RC \
21429
exclude_expsyms_RC \
21430
include_expsyms_RC; do
21433
old_archive_cmds_RC | \
21434
old_archive_from_new_cmds_RC | \
21435
archive_cmds_RC | \
21436
archive_expsym_cmds_RC | \
21438
module_expsym_cmds_RC | \
21439
old_archive_from_expsyms_cmds_RC | \
21440
export_symbols_cmds_RC | \
21441
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21442
postinstall_cmds | postuninstall_cmds | \
21443
old_postinstall_cmds | old_postuninstall_cmds | \
21444
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21445
# Double-quote double-evaled strings.
21446
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21449
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21455
*'\$0 --fallback-echo"')
21456
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21462
cat <<__EOF__ >> "$cfgfile"
21463
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21465
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21467
# Shell to use when invoking shell scripts.
21470
# Whether or not to build shared libraries.
21471
build_libtool_libs=$enable_shared
21473
# Whether or not to build static libraries.
21474
build_old_libs=$enable_static
21476
# Whether or not to add -lc for building shared libraries.
21477
build_libtool_need_lc=$archive_cmds_need_lc_RC
21479
# Whether or not to disallow shared libs when runtime libs are static
21480
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21482
# Whether or not to optimize for fast installation.
21483
fast_install=$enable_fast_install
21486
host_alias=$host_alias
21489
# An echo program that does not interpret backslashes.
21494
AR_FLAGS=$lt_AR_FLAGS
21499
# A language-specific compiler.
21502
# Is the compiler the GNU C compiler?
21508
# The linker used to build libraries.
21511
# Whether we need hard or soft links.
21514
# A BSD-compatible nm program.
21517
# A symbol stripping program
21520
# Used to examine libraries when file_magic_cmd begins "file"
21521
MAGIC_CMD=$MAGIC_CMD
21523
# Used on cygwin: DLL creation program.
21526
# Used on cygwin: object dumper.
21529
# Used on cygwin: assembler.
21532
# The name of the directory that contains temporary libtool files.
21535
# How to create reloadable object files.
21536
reload_flag=$lt_reload_flag
21537
reload_cmds=$lt_reload_cmds
21539
# How to pass a linker flag through the compiler.
21540
wl=$lt_lt_prog_compiler_wl_RC
21542
# Object file suffix (normally "o").
21543
objext="$ac_objext"
21545
# Old archive suffix (normally "a").
21548
# Shared library suffix (normally ".so").
21549
shrext_cmds='$shrext_cmds'
21551
# Executable file suffix (normally "").
21554
# Additional compiler flags for building library objects.
21555
pic_flag=$lt_lt_prog_compiler_pic_RC
21558
# What is the maximum length of a command?
21559
max_cmd_len=$lt_cv_sys_max_cmd_len
21561
# Does compiler simultaneously support -c and -o options?
21562
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21564
# Must we lock files when doing compilation ?
21565
need_locks=$lt_need_locks
21567
# Do we need the lib prefix for modules?
21568
need_lib_prefix=$need_lib_prefix
21570
# Do we need a version for libraries?
21571
need_version=$need_version
21573
# Whether dlopen is supported.
21574
dlopen_support=$enable_dlopen
21576
# Whether dlopen of programs is supported.
21577
dlopen_self=$enable_dlopen_self
21579
# Whether dlopen of statically linked programs is supported.
21580
dlopen_self_static=$enable_dlopen_self_static
21582
# Compiler flag to prevent dynamic linking.
21583
link_static_flag=$lt_lt_prog_compiler_static_RC
21585
# Compiler flag to turn off builtin functions.
21586
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21588
# Compiler flag to allow reflexive dlopens.
21589
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21591
# Compiler flag to generate shared objects directly from archives.
21592
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21594
# Compiler flag to generate thread-safe objects.
21595
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21597
# Library versioning type.
21598
version_type=$version_type
21600
# Format of library name prefix.
21601
libname_spec=$lt_libname_spec
21603
# List of archive names. First name is the real one, the rest are links.
21604
# The last name is the one that the linker finds with -lNAME.
21605
library_names_spec=$lt_library_names_spec
21607
# The coded name of the library, if different from the real name.
21608
soname_spec=$lt_soname_spec
21610
# Commands used to build and install an old-style archive.
21612
old_archive_cmds=$lt_old_archive_cmds_RC
21613
old_postinstall_cmds=$lt_old_postinstall_cmds
21614
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21616
# Create an old-style archive from a shared archive.
21617
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21619
# Create a temporary old-style archive to link instead of a shared archive.
21620
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21622
# Commands used to build and install a shared archive.
21623
archive_cmds=$lt_archive_cmds_RC
21624
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21625
postinstall_cmds=$lt_postinstall_cmds
21626
postuninstall_cmds=$lt_postuninstall_cmds
21628
# Commands used to build a loadable module (assumed same as above if empty)
21629
module_cmds=$lt_module_cmds_RC
21630
module_expsym_cmds=$lt_module_expsym_cmds_RC
21632
# Commands to strip libraries.
21633
old_striplib=$lt_old_striplib
21634
striplib=$lt_striplib
21636
# Dependencies to place before the objects being linked to create a
21638
predep_objects=$lt_predep_objects_RC
21640
# Dependencies to place after the objects being linked to create a
21642
postdep_objects=$lt_postdep_objects_RC
21644
# Dependencies to place before the objects being linked to create a
21646
predeps=$lt_predeps_RC
21648
# Dependencies to place after the objects being linked to create a
21650
postdeps=$lt_postdeps_RC
21652
# The library search path used internally by the compiler when linking
21653
# a shared library.
21654
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21656
# Method to check whether dependent libraries are shared objects.
21657
deplibs_check_method=$lt_deplibs_check_method
21659
# Command to use when deplibs_check_method == file_magic.
21660
file_magic_cmd=$lt_file_magic_cmd
21662
# Flag that allows shared libraries with undefined symbols to be built.
21663
allow_undefined_flag=$lt_allow_undefined_flag_RC
21665
# Flag that forces no undefined symbols.
21666
no_undefined_flag=$lt_no_undefined_flag_RC
21668
# Commands used to finish a libtool library installation in a directory.
21669
finish_cmds=$lt_finish_cmds
21671
# Same as above, but a single script fragment to be evaled but not shown.
21672
finish_eval=$lt_finish_eval
21674
# Take the output of nm and produce a listing of raw symbols and C names.
21675
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21677
# Transform the output of nm in a proper C declaration
21678
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21680
# Transform the output of nm in a C name address pair
21681
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21683
# This is the shared library runtime path variable.
21684
runpath_var=$runpath_var
21686
# This is the shared library path variable.
21687
shlibpath_var=$shlibpath_var
21689
# Is shlibpath searched before the hard-coded library search path?
21690
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21692
# How to hardcode a shared library path into an executable.
21693
hardcode_action=$hardcode_action_RC
21695
# Whether we should hardcode library paths into libraries.
21696
hardcode_into_libs=$hardcode_into_libs
21698
# Flag to hardcode \$libdir into a binary during linking.
21699
# This must work even if \$libdir does not exist.
21700
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21702
# If ld is used when linking, flag to hardcode \$libdir into
21703
# a binary during linking. This must work even if \$libdir does
21705
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21707
# Whether we need a single -rpath flag with a separated argument.
21708
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21710
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21711
# resulting binary.
21712
hardcode_direct=$hardcode_direct_RC
21714
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21715
# resulting binary.
21716
hardcode_minus_L=$hardcode_minus_L_RC
21718
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21719
# the resulting binary.
21720
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21722
# Set to yes if building a shared library automatically hardcodes DIR into the library
21723
# and all subsequent libraries and executables linked against it.
21724
hardcode_automatic=$hardcode_automatic_RC
21726
# Variables whose values should be saved in libtool wrapper scripts and
21727
# restored at relink time.
21728
variables_saved_for_relink="$variables_saved_for_relink"
21730
# Whether libtool must link a program against all its dependency libraries.
21731
link_all_deplibs=$link_all_deplibs_RC
21733
# Compile-time system search path for libraries
21734
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21736
# Run-time system search path for libraries
21737
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21739
# Fix the shell variable \$srcfile for the compiler.
21740
fix_srcfile_path="$fix_srcfile_path_RC"
21742
# Set to yes if exported symbols are required.
21743
always_export_symbols=$always_export_symbols_RC
21745
# The commands to list exported symbols.
21746
export_symbols_cmds=$lt_export_symbols_cmds_RC
21748
# The commands to extract the exported symbol list from a shared archive.
21749
extract_expsyms_cmds=$lt_extract_expsyms_cmds
21751
# Symbols that should not be listed in the preloaded symbols.
21752
exclude_expsyms=$lt_exclude_expsyms_RC
21754
# Symbols that must always be exported.
21755
include_expsyms=$lt_include_expsyms_RC
21757
# ### END LIBTOOL TAG CONFIG: $tagname
21763
# If there is no Makefile yet, we rely on a make rule to execute
21764
# `config.status --recheck' to rerun these tests and create the
21765
# libtool script then.
21766
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21767
if test -f "$ltmain_in"; then
21768
test -f Makefile && make "$ltmain"
21774
ac_cpp='$CPP $CPPFLAGS'
21775
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21776
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21777
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21784
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21785
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21786
{ (exit 1); exit 1; }; }
21790
# Append the new tag name to the list of available tags.
21791
if test -n "$tagname" ; then
21792
available_tags="$available_tags $tagname"
21798
# Now substitute the updated list of available tags.
21799
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21800
mv "${ofile}T" "$ofile"
21804
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21805
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21806
{ (exit 1); exit 1; }; }
21812
# This can be used to rebuild libtool when needed
21813
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21815
# Always use our own libtool.
21816
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21818
# Prevent multiple expansion
21841
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
21842
# Check whether --enable-build-warnings or --disable-build-warnings was given.
21843
if test "${enable_build_warnings+set}" = set; then
21844
enableval="$enable_build_warnings"
21847
if test x"$build_warnings" = xyes; then
21848
if test x"$GCC" = xyes; then
21849
WARN_CFLAGS="${build_warnings}"
21855
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"
21859
cat >confcache <<\_ACEOF
21860
# This file is a shell script that caches the results of configure
21861
# tests run on this system so they can be shared between configure
21862
# scripts and configure runs, see configure's option --config-cache.
21863
# It is not useful on other systems. If it contains results you don't
21864
# want to keep, you may remove or edit it.
21866
# config.status only pays attention to the cache file if you give it
21867
# the --recheck option to rerun configure.
21869
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21870
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21871
# following values.
21875
# The following way of writing the cache mishandles newlines in values,
21876
# but we know of no workaround that is simple, portable, and efficient.
21877
# So, don't put newlines in cache variables' values.
21878
# Ultrix sh set writes to stderr and can't be redirected directly,
21879
# and sets the high bit in the cache file unless we assign to the vars.
21882
case `(ac_space=' '; set | grep ac_space) 2>&1` in
21884
# `set' does not quote correctly, so add quotes (double-quote
21885
# substitution turns \\\\ into \\, and sed turns \\ into \).
21888
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21891
# `set' quotes correctly as required by POSIX, so do not add quotes.
21893
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21900
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21902
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21904
if diff $cache_file confcache >/dev/null 2>&1; then :; else
21905
if test -w $cache_file; then
21906
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21907
cat confcache >$cache_file
21909
echo "not updating unwritable cache $cache_file"
21914
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21915
# Let make expand exec_prefix.
21916
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21918
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21919
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21920
# trailing colons and then remove the whole line if VPATH becomes empty
21921
# (actually we leave an empty line to preserve line numbers).
21922
if test "x$srcdir" = x.; then
21923
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21924
s/:*\$(srcdir):*/:/;
21925
s/:*\${srcdir}:*/:/;
21927
s/^\([^=]*=[ ]*\):*/\1/;
21933
DEFS=-DHAVE_CONFIG_H
21937
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21938
# 1. Remove the extension, and $U if already installed.
21939
ac_i=`echo "$ac_i" |
21940
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21942
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21943
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21945
LIB@&t@OBJS=$ac_libobjs
21947
LTLIBOBJS=$ac_ltlibobjs
21950
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21951
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21952
Usually this means the macro was only invoked conditionally." >&5
21953
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21954
Usually this means the macro was only invoked conditionally." >&2;}
21955
{ (exit 1); exit 1; }; }
21957
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21958
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21959
Usually this means the macro was only invoked conditionally." >&5
21960
echo "$as_me: error: conditional \"AMDEP\" was never defined.
21961
Usually this means the macro was only invoked conditionally." >&2;}
21962
{ (exit 1); exit 1; }; }
21964
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21965
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21966
Usually this means the macro was only invoked conditionally." >&5
21967
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21968
Usually this means the macro was only invoked conditionally." >&2;}
21969
{ (exit 1); exit 1; }; }
21971
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21972
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21973
Usually this means the macro was only invoked conditionally." >&5
21974
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21975
Usually this means the macro was only invoked conditionally." >&2;}
21976
{ (exit 1); exit 1; }; }
21979
: ${CONFIG_STATUS=./config.status}
21980
ac_clean_files_save=$ac_clean_files
21981
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21982
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21983
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21984
cat >$CONFIG_STATUS <<_ACEOF
21986
# Generated by $as_me.
21987
# Run this file to recreate the current configuration.
21988
# Compiler output produced by configure, useful for debugging
21989
# configure, is in config.log if it exists.
21992
ac_cs_recheck=false
21994
SHELL=\${CONFIG_SHELL-$SHELL}
21997
cat >>$CONFIG_STATUS <<\_ACEOF
21998
## --------------------- ##
21999
## M4sh Initialization. ##
22000
## --------------------- ##
22002
# Be Bourne compatible
22003
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22006
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22007
# is contrary to our usage. Disable this feature.
22008
alias -g '${1+"$@"}'='"$@"'
22009
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22012
DUALCASE=1; export DUALCASE # for MKS sh
22014
# Support unset when possible.
22015
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22022
# Work around bugs in pre-3.0 UWIN ksh.
22023
$as_unset ENV MAIL MAILPATH
22030
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22031
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22032
LC_TELEPHONE LC_TIME
22034
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22035
eval $as_var=C; export $as_var
22041
# Required to use basename.
22042
if expr a : '\(a\)' >/dev/null 2>&1; then
22048
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22049
as_basename=basename
22055
# Name of the executable.
22056
as_me=`$as_basename "$0" ||
22057
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22058
X"$0" : 'X\(//\)$' \| \
22059
X"$0" : 'X\(/\)$' \| \
22060
. : '\(.\)' 2>/dev/null ||
22062
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22063
/^X\/\(\/\/\)$/{ s//\1/; q; }
22064
/^X\/\(\/\).*/{ s//\1/; q; }
22068
# PATH needs CR, and LINENO needs CR and PATH.
22069
# Avoid depending upon Character Ranges.
22070
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22071
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22072
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22073
as_cr_digits='0123456789'
22074
as_cr_alnum=$as_cr_Letters$as_cr_digits
22076
# The user is always right.
22077
if test "${PATH_SEPARATOR+set}" != set; then
22078
echo "#! /bin/sh" >conf$$.sh
22079
echo "exit 0" >>conf$$.sh
22081
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22090
as_lineno_1=$LINENO
22091
as_lineno_2=$LINENO
22092
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22093
test "x$as_lineno_1" != "x$as_lineno_2" &&
22094
test "x$as_lineno_3" = "x$as_lineno_2" || {
22095
# Find who we are. Look in the path if we contain no path at all
22098
*[\\/]* ) as_myself=$0 ;;
22099
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22100
for as_dir in $PATH
22103
test -z "$as_dir" && as_dir=.
22104
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22109
# We did not find ourselves, most probably we were run as `sh COMMAND'
22110
# in which case we are not to be found in the path.
22111
if test "x$as_myself" = x; then
22114
if test ! -f "$as_myself"; then
22115
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22116
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22117
{ (exit 1); exit 1; }; }
22119
case $CONFIG_SHELL in
22121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22122
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22125
test -z "$as_dir" && as_dir=.
22126
for as_base in sh bash ksh sh5; do
22129
if ("$as_dir/$as_base" -c '
22130
as_lineno_1=$LINENO
22131
as_lineno_2=$LINENO
22132
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22133
test "x$as_lineno_1" != "x$as_lineno_2" &&
22134
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22135
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22136
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22137
CONFIG_SHELL=$as_dir/$as_base
22138
export CONFIG_SHELL
22139
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22147
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22148
# uniformly replaced by the line number. The first 'sed' inserts a
22149
# line-number line before each line; the second 'sed' does the real
22150
# work. The second script uses 'N' to pair each line-number line
22151
# with the numbered line, and appends trailing '-' during
22152
# substitution so that $LINENO is not a special case at line end.
22153
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22154
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22155
sed '=' <$as_myself |
22160
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22163
s,^['$as_cr_digits']*\n,,
22164
' >$as_me.lineno &&
22165
chmod +x $as_me.lineno ||
22166
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22167
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22168
{ (exit 1); exit 1; }; }
22170
# Don't try to exec as it changes $[0], causing all sort of problems
22171
# (the dirname of $[0] is not the place where we might find the
22172
# original and so on. Autoconf is especially sensible to this).
22174
# Exit status is that of the last command.
22179
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22180
*c*,-n*) ECHO_N= ECHO_C='
22182
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22183
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22186
if expr a : '\(a\)' >/dev/null 2>&1; then
22192
rm -f conf$$ conf$$.exe conf$$.file
22194
if ln -s conf$$.file conf$$ 2>/dev/null; then
22195
# We could just check for DJGPP; but this test a) works b) is more generic
22196
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22197
if test -f conf$$.exe; then
22198
# Don't use ln at all; we don't have any links
22203
elif ln conf$$.file conf$$ 2>/dev/null; then
22208
rm -f conf$$ conf$$.exe conf$$.file
22210
if mkdir -p . 2>/dev/null; then
22213
test -d ./-p && rmdir ./-p
22217
as_executable_p="test -f"
22219
# Sed expression to map a string onto a valid CPP name.
22220
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22222
# Sed expression to map a string onto a valid variable name.
22223
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22227
# We need space, tab and new line, in precisely that order.
22237
# Open the log real soon, to keep \$[0] and so on meaningful, and to
22238
# report actual input values of CONFIG_FILES etc. instead of their
22239
# values after options handling. Logging --version etc. is OK.
22243
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22244
@%:@@%:@ Running $as_me. @%:@@%:@
22249
This file was extended by Judy $as_me 1.0.0, which was
22250
generated by GNU Autoconf 2.59. Invocation command line was
22252
CONFIG_FILES = $CONFIG_FILES
22253
CONFIG_HEADERS = $CONFIG_HEADERS
22254
CONFIG_LINKS = $CONFIG_LINKS
22255
CONFIG_COMMANDS = $CONFIG_COMMANDS
22259
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22263
# Files that config.status was made for.
22264
if test -n "$ac_config_files"; then
22265
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22268
if test -n "$ac_config_headers"; then
22269
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22272
if test -n "$ac_config_links"; then
22273
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22276
if test -n "$ac_config_commands"; then
22277
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22280
cat >>$CONFIG_STATUS <<\_ACEOF
22283
\`$as_me' instantiates files from templates according to the
22284
current configuration.
22286
Usage: $0 [OPTIONS] [FILE]...
22288
-h, --help print this help, then exit
22289
-V, --version print version number, then exit
22290
-q, --quiet do not print progress messages
22291
-d, --debug don't remove temporary files
22292
--recheck update $as_me by reconfiguring in the same conditions
22293
--file=FILE[:TEMPLATE]
22294
instantiate the configuration file FILE
22295
--header=FILE[:TEMPLATE]
22296
instantiate the configuration header FILE
22298
Configuration files:
22301
Configuration headers:
22304
Configuration commands:
22307
Report bugs to <bug-autoconf@gnu.org>."
22310
cat >>$CONFIG_STATUS <<_ACEOF
22312
Judy config.status 1.0.0
22313
configured by $0, generated by GNU Autoconf 2.59,
22314
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22316
Copyright (C) 2003 Free Software Foundation, Inc.
22317
This config.status script is free software; the Free Software Foundation
22318
gives unlimited permission to copy, distribute and modify it."
22323
cat >>$CONFIG_STATUS <<\_ACEOF
22324
# If no file are specified by the user, then we need to provide default
22325
# value. By we need to know if files were specified by the user.
22331
ac_option=`expr "x$1" : 'x\([^=]*\)='`
22332
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22340
*) # This is not an option, so the user has probably given explicit
22343
ac_need_defaults=false;;
22347
# Handling of the options.
22349
cat >>$CONFIG_STATUS <<\_ACEOF
22350
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22352
--version | --vers* | -V )
22353
echo "$ac_cs_version"; exit 0 ;;
22355
# Conflict between --help and --header
22356
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
22357
Try \`$0 --help' for more information." >&5
22358
echo "$as_me: error: ambiguous option: $1
22359
Try \`$0 --help' for more information." >&2;}
22360
{ (exit 1); exit 1; }; };;
22361
--help | --hel | -h )
22362
echo "$ac_cs_usage"; exit 0 ;;
22363
--debug | --d* | -d )
22365
--file | --fil | --fi | --f )
22367
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22368
ac_need_defaults=false;;
22369
--header | --heade | --head | --hea )
22371
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22372
ac_need_defaults=false;;
22373
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22374
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22377
# This is an error.
22378
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22379
Try \`$0 --help' for more information." >&5
22380
echo "$as_me: error: unrecognized option: $1
22381
Try \`$0 --help' for more information." >&2;}
22382
{ (exit 1); exit 1; }; } ;;
22384
*) ac_config_targets="$ac_config_targets $1" ;;
22390
ac_configure_extra_args=
22392
if $ac_cs_silent; then
22394
ac_configure_extra_args="$ac_configure_extra_args --silent"
22398
cat >>$CONFIG_STATUS <<_ACEOF
22399
if \$ac_cs_recheck; then
22400
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22401
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22406
cat >>$CONFIG_STATUS <<_ACEOF
22408
# INIT-COMMANDS section.
22411
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22417
cat >>$CONFIG_STATUS <<\_ACEOF
22418
for ac_config_target in $ac_config_targets
22420
case "$ac_config_target" in
22421
# Handling of arguments.
22422
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22423
"src/Judy1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Judy1/Makefile" ;;
22424
"src/JudyCommon/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyCommon/Makefile" ;;
22425
"src/JudyHS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyHS/Makefile" ;;
22426
"src/JudyL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyL/Makefile" ;;
22427
"src/JudySL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudySL/Makefile" ;;
22428
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22429
"src/obj/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/obj/Makefile" ;;
22430
"tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES tool/Makefile" ;;
22431
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22432
"test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22433
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22434
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22435
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22436
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22437
{ (exit 1); exit 1; }; };;
22441
# If the user did not use the arguments to specify the items to instantiate,
22442
# then the envvar interface is used. Set only those that are not.
22443
# We use the long form for the default assignment because of an extremely
22444
# bizarre bug on SunOS 4.1.3.
22445
if $ac_need_defaults; then
22446
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22447
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22448
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22451
# Have a temporary directory for convenience. Make it in the build tree
22452
# simply because there is no reason to put it here, and in addition,
22453
# creating and moving files from /tmp can sometimes cause problems.
22454
# Create a temporary directory, and hook for its removal unless debugging.
22457
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22458
trap '{ (exit 1); exit 1; }' 1 2 13 15
22461
# Create a (secure) tmp directory for tmp files.
22464
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22465
test -n "$tmp" && test -d "$tmp"
22468
tmp=./confstat$$-$RANDOM
22469
(umask 077 && mkdir $tmp)
22472
echo "$me: cannot create a temporary directory in ." >&2
22473
{ (exit 1); exit 1; }
22478
cat >>$CONFIG_STATUS <<_ACEOF
22481
# CONFIG_FILES section.
22484
# No need to generate the scripts if there are no CONFIG_FILES.
22485
# This happens for instance when ./config.status config.h
22486
if test -n "\$CONFIG_FILES"; then
22487
# Protect against being on the right side of a sed subst in config.status.
22488
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22489
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22490
s,@SHELL@,$SHELL,;t t
22491
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22492
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22493
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22494
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22495
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22496
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22497
s,@exec_prefix@,$exec_prefix,;t t
22498
s,@prefix@,$prefix,;t t
22499
s,@program_transform_name@,$program_transform_name,;t t
22500
s,@bindir@,$bindir,;t t
22501
s,@sbindir@,$sbindir,;t t
22502
s,@libexecdir@,$libexecdir,;t t
22503
s,@datadir@,$datadir,;t t
22504
s,@sysconfdir@,$sysconfdir,;t t
22505
s,@sharedstatedir@,$sharedstatedir,;t t
22506
s,@localstatedir@,$localstatedir,;t t
22507
s,@libdir@,$libdir,;t t
22508
s,@includedir@,$includedir,;t t
22509
s,@oldincludedir@,$oldincludedir,;t t
22510
s,@infodir@,$infodir,;t t
22511
s,@mandir@,$mandir,;t t
22512
s,@build_alias@,$build_alias,;t t
22513
s,@host_alias@,$host_alias,;t t
22514
s,@target_alias@,$target_alias,;t t
22515
s,@DEFS@,$DEFS,;t t
22516
s,@ECHO_C@,$ECHO_C,;t t
22517
s,@ECHO_N@,$ECHO_N,;t t
22518
s,@ECHO_T@,$ECHO_T,;t t
22519
s,@LIBS@,$LIBS,;t t
22520
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22521
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22522
s,@MAINT@,$MAINT,;t t
22523
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22524
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22525
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22526
s,@CYGPATH_W@,$CYGPATH_W,;t t
22527
s,@PACKAGE@,$PACKAGE,;t t
22528
s,@VERSION@,$VERSION,;t t
22529
s,@ACLOCAL@,$ACLOCAL,;t t
22530
s,@AUTOCONF@,$AUTOCONF,;t t
22531
s,@AUTOMAKE@,$AUTOMAKE,;t t
22532
s,@AUTOHEADER@,$AUTOHEADER,;t t
22533
s,@MAKEINFO@,$MAKEINFO,;t t
22534
s,@install_sh@,$install_sh,;t t
22535
s,@STRIP@,$STRIP,;t t
22536
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22537
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22538
s,@mkdir_p@,$mkdir_p,;t t
22540
s,@SET_MAKE@,$SET_MAKE,;t t
22541
s,@am__leading_dot@,$am__leading_dot,;t t
22542
s,@AMTAR@,$AMTAR,;t t
22543
s,@am__tar@,$am__tar,;t t
22544
s,@am__untar@,$am__untar,;t t
22545
s,@VERSION_INFO@,$VERSION_INFO,;t t
22546
s,@FLAVOR@,$FLAVOR,;t t
22548
s,@CFLAGS@,$CFLAGS,;t t
22549
s,@LDFLAGS@,$LDFLAGS,;t t
22550
s,@CPPFLAGS@,$CPPFLAGS,;t t
22551
s,@ac_ct_CC@,$ac_ct_CC,;t t
22552
s,@EXEEXT@,$EXEEXT,;t t
22553
s,@OBJEXT@,$OBJEXT,;t t
22554
s,@DEPDIR@,$DEPDIR,;t t
22555
s,@am__include@,$am__include,;t t
22556
s,@am__quote@,$am__quote,;t t
22557
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22558
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22559
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22560
s,@CCDEPMODE@,$CCDEPMODE,;t t
22561
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22562
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22564
s,@LN_S@,$LN_S,;t t
22565
s,@EGREP@,$EGREP,;t t
22566
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
22568
s,@ac_ct_AR@,$ac_ct_AR,;t t
22570
s,@ac_ct_LD@,$ac_ct_LD,;t t
22571
s,@RANLIB@,$RANLIB,;t t
22572
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22573
s,@build@,$build,;t t
22574
s,@build_cpu@,$build_cpu,;t t
22575
s,@build_vendor@,$build_vendor,;t t
22576
s,@build_os@,$build_os,;t t
22577
s,@host@,$host,;t t
22578
s,@host_cpu@,$host_cpu,;t t
22579
s,@host_vendor@,$host_vendor,;t t
22580
s,@host_os@,$host_os,;t t
22581
s,@ECHO@,$ECHO,;t t
22583
s,@CXXFLAGS@,$CXXFLAGS,;t t
22584
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22585
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22586
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22587
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22588
s,@CXXCPP@,$CXXCPP,;t t
22590
s,@FFLAGS@,$FFLAGS,;t t
22591
s,@ac_ct_F77@,$ac_ct_F77,;t t
22592
s,@LIBTOOL@,$LIBTOOL,;t t
22593
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22594
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22599
cat >>$CONFIG_STATUS <<\_ACEOF
22600
# Split the substitutions into bite-sized pieces for seds with
22601
# small command number limits, like on Digital OSF/1 and HP-UX.
22602
ac_max_sed_lines=48
22603
ac_sed_frag=1 # Number of current file.
22604
ac_beg=1 # First line for current file.
22605
ac_end=$ac_max_sed_lines # Line after last line for current file.
22608
while $ac_more_lines; do
22609
if test $ac_beg -gt 1; then
22610
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22612
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22614
if test ! -s $tmp/subs.frag; then
22615
ac_more_lines=false
22617
# The purpose of the label and of the branching condition is to
22618
# speed up the sed processing (if there are no `@' at all, there
22619
# is no need to browse any of the substitutions).
22620
# These are the two extra sed commands mentioned above.
22622
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22623
if test -z "$ac_sed_cmds"; then
22624
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22626
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22628
ac_sed_frag=`expr $ac_sed_frag + 1`
22630
ac_end=`expr $ac_end + $ac_max_sed_lines`
22633
if test -z "$ac_sed_cmds"; then
22636
fi # test -n "$CONFIG_FILES"
22639
cat >>$CONFIG_STATUS <<\_ACEOF
22640
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22641
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22643
- | *:- | *:-:* ) # input from stdin
22645
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22646
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22647
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22648
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22649
* ) ac_file_in=$ac_file.in ;;
22652
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22653
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22654
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22655
X"$ac_file" : 'X\(//\)[^/]' \| \
22656
X"$ac_file" : 'X\(//\)$' \| \
22657
X"$ac_file" : 'X\(/\)' \| \
22658
. : '\(.\)' 2>/dev/null ||
22660
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22661
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22662
/^X\(\/\/\)$/{ s//\1/; q; }
22663
/^X\(\/\).*/{ s//\1/; q; }
22665
{ if $as_mkdir_p; then
22670
while test ! -d "$as_dir"; do
22671
as_dirs="$as_dir $as_dirs"
22672
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22673
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22674
X"$as_dir" : 'X\(//\)[^/]' \| \
22675
X"$as_dir" : 'X\(//\)$' \| \
22676
X"$as_dir" : 'X\(/\)' \| \
22677
. : '\(.\)' 2>/dev/null ||
22679
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22680
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22681
/^X\(\/\/\)$/{ s//\1/; q; }
22682
/^X\(\/\).*/{ s//\1/; q; }
22685
test ! -n "$as_dirs" || mkdir $as_dirs
22686
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22687
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22688
{ (exit 1); exit 1; }; }; }
22692
if test "$ac_dir" != .; then
22693
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22694
# A "../" for each directory in $ac_dir_suffix.
22695
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22697
ac_dir_suffix= ac_top_builddir=
22701
.) # No --srcdir option. We are building in place.
22703
if test -z "$ac_top_builddir"; then
22706
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22708
[\\/]* | ?:[\\/]* ) # Absolute path.
22709
ac_srcdir=$srcdir$ac_dir_suffix;
22710
ac_top_srcdir=$srcdir ;;
22711
*) # Relative path.
22712
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22713
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22716
# Do not use `cd foo && pwd` to compute absolute paths, because
22717
# the directories may not exist.
22719
.) ac_abs_builddir="$ac_dir";;
22722
.) ac_abs_builddir=`pwd`;;
22723
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22724
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22727
case $ac_abs_builddir in
22728
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22730
case ${ac_top_builddir}. in
22731
.) ac_abs_top_builddir=$ac_abs_builddir;;
22732
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22733
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22736
case $ac_abs_builddir in
22737
.) ac_abs_srcdir=$ac_srcdir;;
22740
.) ac_abs_srcdir=$ac_abs_builddir;;
22741
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22742
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22745
case $ac_abs_builddir in
22746
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22748
case $ac_top_srcdir in
22749
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22750
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22751
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22757
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22758
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22761
# Let's still pretend it is `configure' which instantiates (i.e., don't
22762
# use $as_me), people would be surprised to read:
22763
# /* config.h. Generated by config.status. */
22764
if test x"$ac_file" = x-; then
22767
configure_input="$ac_file. "
22769
configure_input=$configure_input"Generated from `echo $ac_file_in |
22770
sed 's,.*/,,'` by configure."
22772
# First look for the input files in the build tree, otherwise in the
22774
ac_file_inputs=`IFS=:
22775
for f in $ac_file_in; do
22777
-) echo $tmp/stdin ;;
22779
# Absolute (can't be DOS-style, as IFS=:)
22780
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22781
echo "$as_me: error: cannot find input file: $f" >&2;}
22782
{ (exit 1); exit 1; }; }
22785
if test -f "$f"; then
22788
elif test -f "$srcdir/$f"; then
22793
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22794
echo "$as_me: error: cannot find input file: $f" >&2;}
22795
{ (exit 1); exit 1; }; }
22798
done` || { (exit 1); exit 1; }
22800
if test x"$ac_file" != x-; then
22801
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22802
echo "$as_me: creating $ac_file" >&6;}
22806
cat >>$CONFIG_STATUS <<_ACEOF
22810
cat >>$CONFIG_STATUS <<\_ACEOF
22812
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22813
s,@configure_input@,$configure_input,;t t
22814
s,@srcdir@,$ac_srcdir,;t t
22815
s,@abs_srcdir@,$ac_abs_srcdir,;t t
22816
s,@top_srcdir@,$ac_top_srcdir,;t t
22817
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22818
s,@builddir@,$ac_builddir,;t t
22819
s,@abs_builddir@,$ac_abs_builddir,;t t
22820
s,@top_builddir@,$ac_top_builddir,;t t
22821
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22822
s,@INSTALL@,$ac_INSTALL,;t t
22823
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22825
if test x"$ac_file" != x-; then
22826
mv $tmp/out $ac_file
22834
cat >>$CONFIG_STATUS <<\_ACEOF
22837
# CONFIG_HEADER section.
22840
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22841
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22843
# ac_d sets the value in "#define NAME VALUE" lines.
22844
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22845
ac_dB='[ ].*$,\1#\2'
22848
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22849
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22850
ac_uB='$,\1#\2define\3'
22854
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22855
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22857
- | *:- | *:-:* ) # input from stdin
22859
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22860
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22861
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22862
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22863
* ) ac_file_in=$ac_file.in ;;
22866
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22867
echo "$as_me: creating $ac_file" >&6;}
22869
# First look for the input files in the build tree, otherwise in the
22871
ac_file_inputs=`IFS=:
22872
for f in $ac_file_in; do
22874
-) echo $tmp/stdin ;;
22876
# Absolute (can't be DOS-style, as IFS=:)
22877
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22878
echo "$as_me: error: cannot find input file: $f" >&2;}
22879
{ (exit 1); exit 1; }; }
22880
# Do quote $f, to prevent DOS paths from being IFS'd.
22883
if test -f "$f"; then
22886
elif test -f "$srcdir/$f"; then
22891
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22892
echo "$as_me: error: cannot find input file: $f" >&2;}
22893
{ (exit 1); exit 1; }; }
22896
done` || { (exit 1); exit 1; }
22897
# Remove the trailing spaces.
22898
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22902
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22903
# `conftest.undefs', that substitutes the proper values into
22904
# config.h.in to produce config.h. The first handles `#define'
22905
# templates, and the second `#undef' templates.
22906
# And first: Protect against being on the right side of a sed subst in
22907
# config.status. Protect against being in an unquoted here document
22908
# in config.status.
22909
rm -f conftest.defines conftest.undefs
22910
# Using a here document instead of a string reduces the quoting nightmare.
22911
# Putting comments in sed scripts is not portable.
22913
# `end' is used to avoid that the second main sed command (meant for
22914
# 0-ary CPP macros) applies to n-ary macro definitions.
22915
# See the Autoconf documentation for `clear'.
22916
cat >confdef2sed.sed <<\_ACEOF
22921
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22923
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22926
# If some macros were called several times there might be several times
22927
# the same #defines, which is useless. Nevertheless, we may not want to
22928
# sort them, since we want the *last* AC-DEFINE to be honored.
22929
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22930
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22931
rm -f confdef2sed.sed
22933
# This sed command replaces #undef with comments. This is necessary, for
22934
# example, in the case of _POSIX_SOURCE, which is predefined and required
22935
# on some systems where configure will not decide to define it.
22936
cat >>conftest.undefs <<\_ACEOF
22937
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22940
# Break up conftest.defines because some shells have a limit on the size
22941
# of here documents, and old seds have small limits too (100 cmds).
22942
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22943
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22944
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22945
echo ' :' >>$CONFIG_STATUS
22946
rm -f conftest.tail
22947
while grep . conftest.defines >/dev/null
22949
# Write a limited-size here document to $tmp/defines.sed.
22950
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22951
# Speed up: don't consider the non `#define' lines.
22952
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22953
# Work around the forget-to-reset-the-flag bug.
22954
echo 't clr' >>$CONFIG_STATUS
22955
echo ': clr' >>$CONFIG_STATUS
22956
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22958
sed -f $tmp/defines.sed $tmp/in >$tmp/out
22960
mv $tmp/out $tmp/in
22962
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22963
rm -f conftest.defines
22964
mv conftest.tail conftest.defines
22966
rm -f conftest.defines
22967
echo ' fi # grep' >>$CONFIG_STATUS
22968
echo >>$CONFIG_STATUS
22970
# Break up conftest.undefs because some shells have a limit on the size
22971
# of here documents, and old seds have small limits too (100 cmds).
22972
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22973
rm -f conftest.tail
22974
while grep . conftest.undefs >/dev/null
22976
# Write a limited-size here document to $tmp/undefs.sed.
22977
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22978
# Speed up: don't consider the non `#undef'
22979
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22980
# Work around the forget-to-reset-the-flag bug.
22981
echo 't clr' >>$CONFIG_STATUS
22982
echo ': clr' >>$CONFIG_STATUS
22983
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22985
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22987
mv $tmp/out $tmp/in
22989
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22990
rm -f conftest.undefs
22991
mv conftest.tail conftest.undefs
22993
rm -f conftest.undefs
22995
cat >>$CONFIG_STATUS <<\_ACEOF
22996
# Let's still pretend it is `configure' which instantiates (i.e., don't
22997
# use $as_me), people would be surprised to read:
22998
# /* config.h. Generated by config.status. */
22999
if test x"$ac_file" = x-; then
23000
echo "/* Generated by configure. */" >$tmp/config.h
23002
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23004
cat $tmp/in >>$tmp/config.h
23006
if test x"$ac_file" != x-; then
23007
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23008
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23009
echo "$as_me: $ac_file is unchanged" >&6;}
23011
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23012
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23013
X"$ac_file" : 'X\(//\)[^/]' \| \
23014
X"$ac_file" : 'X\(//\)$' \| \
23015
X"$ac_file" : 'X\(/\)' \| \
23016
. : '\(.\)' 2>/dev/null ||
23018
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23019
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23020
/^X\(\/\/\)$/{ s//\1/; q; }
23021
/^X\(\/\).*/{ s//\1/; q; }
23023
{ if $as_mkdir_p; then
23028
while test ! -d "$as_dir"; do
23029
as_dirs="$as_dir $as_dirs"
23030
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23031
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23032
X"$as_dir" : 'X\(//\)[^/]' \| \
23033
X"$as_dir" : 'X\(//\)$' \| \
23034
X"$as_dir" : 'X\(/\)' \| \
23035
. : '\(.\)' 2>/dev/null ||
23037
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23038
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23039
/^X\(\/\/\)$/{ s//\1/; q; }
23040
/^X\(\/\).*/{ s//\1/; q; }
23043
test ! -n "$as_dirs" || mkdir $as_dirs
23044
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23045
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23046
{ (exit 1); exit 1; }; }; }
23049
mv $tmp/config.h $ac_file
23053
rm -f $tmp/config.h
23055
# Compute $ac_file's index in $config_headers.
23057
for _am_header in $config_headers :; do
23058
case $_am_header in
23059
$ac_file | $ac_file:* )
23062
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
23065
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23066
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23067
X$ac_file : 'X\(//\)[^/]' \| \
23068
X$ac_file : 'X\(//\)$' \| \
23069
X$ac_file : 'X\(/\)' \| \
23070
. : '\(.\)' 2>/dev/null ||
23072
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23073
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23074
/^X\(\/\/\)$/{ s//\1/; q; }
23075
/^X\(\/\).*/{ s//\1/; q; }
23076
s/.*/./; q'`/stamp-h$_am_stamp_count
23079
cat >>$CONFIG_STATUS <<\_ACEOF
23082
# CONFIG_COMMANDS section.
23084
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23085
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23086
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23087
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23088
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23089
X"$ac_dest" : 'X\(//\)[^/]' \| \
23090
X"$ac_dest" : 'X\(//\)$' \| \
23091
X"$ac_dest" : 'X\(/\)' \| \
23092
. : '\(.\)' 2>/dev/null ||
23094
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23095
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23096
/^X\(\/\/\)$/{ s//\1/; q; }
23097
/^X\(\/\).*/{ s//\1/; q; }
23099
{ if $as_mkdir_p; then
23104
while test ! -d "$as_dir"; do
23105
as_dirs="$as_dir $as_dirs"
23106
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23107
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23108
X"$as_dir" : 'X\(//\)[^/]' \| \
23109
X"$as_dir" : 'X\(//\)$' \| \
23110
X"$as_dir" : 'X\(/\)' \| \
23111
. : '\(.\)' 2>/dev/null ||
23113
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23114
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23115
/^X\(\/\/\)$/{ s//\1/; q; }
23116
/^X\(\/\).*/{ s//\1/; q; }
23119
test ! -n "$as_dirs" || mkdir $as_dirs
23120
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23121
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23122
{ (exit 1); exit 1; }; }; }
23126
if test "$ac_dir" != .; then
23127
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23128
# A "../" for each directory in $ac_dir_suffix.
23129
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23131
ac_dir_suffix= ac_top_builddir=
23135
.) # No --srcdir option. We are building in place.
23137
if test -z "$ac_top_builddir"; then
23140
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23142
[\\/]* | ?:[\\/]* ) # Absolute path.
23143
ac_srcdir=$srcdir$ac_dir_suffix;
23144
ac_top_srcdir=$srcdir ;;
23145
*) # Relative path.
23146
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23147
ac_top_srcdir=$ac_top_builddir$srcdir ;;
23150
# Do not use `cd foo && pwd` to compute absolute paths, because
23151
# the directories may not exist.
23153
.) ac_abs_builddir="$ac_dir";;
23156
.) ac_abs_builddir=`pwd`;;
23157
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23158
*) ac_abs_builddir=`pwd`/"$ac_dir";;
23161
case $ac_abs_builddir in
23162
.) ac_abs_top_builddir=${ac_top_builddir}.;;
23164
case ${ac_top_builddir}. in
23165
.) ac_abs_top_builddir=$ac_abs_builddir;;
23166
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23167
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23170
case $ac_abs_builddir in
23171
.) ac_abs_srcdir=$ac_srcdir;;
23174
.) ac_abs_srcdir=$ac_abs_builddir;;
23175
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23176
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23179
case $ac_abs_builddir in
23180
.) ac_abs_top_srcdir=$ac_top_srcdir;;
23182
case $ac_top_srcdir in
23183
.) ac_abs_top_srcdir=$ac_abs_builddir;;
23184
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23185
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23190
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23191
echo "$as_me: executing $ac_dest commands" >&6;}
23193
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23194
# Strip MF so we end up with the name of the file.
23195
mf=`echo "$mf" | sed -e 's/:.*$//'`
23196
# Check whether this is an Automake generated Makefile or not.
23197
# We used to match only the files named `Makefile.in', but
23198
# some people rename them; so instead we look at the file content.
23199
# Grep'ing the first line is not enough: some people post-process
23200
# each Makefile.in and add a new line on top of each file to say so.
23201
# So let's grep whole file.
23202
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23203
dirpart=`(dirname "$mf") 2>/dev/null ||
23204
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23205
X"$mf" : 'X\(//\)[^/]' \| \
23206
X"$mf" : 'X\(//\)$' \| \
23207
X"$mf" : 'X\(/\)' \| \
23208
. : '\(.\)' 2>/dev/null ||
23210
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23211
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23212
/^X\(\/\/\)$/{ s//\1/; q; }
23213
/^X\(\/\).*/{ s//\1/; q; }
23218
# Extract the definition of DEPDIR, am__include, and am__quote
23219
# from the Makefile without running `make'.
23220
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23221
test -z "$DEPDIR" && continue
23222
am__include=`sed -n 's/^am__include = //p' < "$mf"`
23223
test -z "am__include" && continue
23224
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23225
# When using ansi2knr, U may be empty or an underscore; expand it
23226
U=`sed -n 's/^U = //p' < "$mf"`
23227
# Find all dependency output files, they are included files with
23228
# $(DEPDIR) in their names. We invoke sed twice because it is the
23229
# simplest approach to changing $(DEPDIR) to its actual value in the
23231
for file in `sed -n "
23232
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23233
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23234
# Make sure the directory exists.
23235
test -f "$dirpart/$file" && continue
23236
fdir=`(dirname "$file") 2>/dev/null ||
23237
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23238
X"$file" : 'X\(//\)[^/]' \| \
23239
X"$file" : 'X\(//\)$' \| \
23240
X"$file" : 'X\(/\)' \| \
23241
. : '\(.\)' 2>/dev/null ||
23243
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23244
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23245
/^X\(\/\/\)$/{ s//\1/; q; }
23246
/^X\(\/\).*/{ s//\1/; q; }
23248
{ if $as_mkdir_p; then
23249
mkdir -p $dirpart/$fdir
23251
as_dir=$dirpart/$fdir
23253
while test ! -d "$as_dir"; do
23254
as_dirs="$as_dir $as_dirs"
23255
as_dir=`(dirname "$as_dir") 2>/dev/null ||
23256
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23257
X"$as_dir" : 'X\(//\)[^/]' \| \
23258
X"$as_dir" : 'X\(//\)$' \| \
23259
X"$as_dir" : 'X\(/\)' \| \
23260
. : '\(.\)' 2>/dev/null ||
23262
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23263
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
23264
/^X\(\/\/\)$/{ s//\1/; q; }
23265
/^X\(\/\).*/{ s//\1/; q; }
23268
test ! -n "$as_dirs" || mkdir $as_dirs
23269
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23270
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23271
{ (exit 1); exit 1; }; }; }
23273
# echo "creating $dirpart/$file"
23274
echo '# dummy' > "$dirpart/$file"
23282
cat >>$CONFIG_STATUS <<\_ACEOF
23284
{ (exit 0); exit 0; }
23286
chmod +x $CONFIG_STATUS
23287
ac_clean_files=$ac_clean_files_save
23290
# configure is writing to config.log, and then calls config.status.
23291
# config.status does its own redirection, appending to config.log.
23292
# Unfortunately, on DOS this fails, as config.log is still kept open
23293
# by configure, so config.status won't be able to write to it; its
23294
# output is simply discarded. So we exec the FD to /dev/null,
23295
# effectively closing config.log, so it can be properly (re)opened and
23296
# appended to by config.status. When coming back to configure, we
23297
# need to make the FD available again.
23298
if test "$no_create" != yes; then
23300
ac_config_status_args=
23301
test "$silent" = yes &&
23302
ac_config_status_args="$ac_config_status_args --quiet"
23304
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23306
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23307
# would make configure fail if this is the last instruction.
23308
$ac_cs_success || { (exit 1); exit 1; }