2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
250
# Remove one level of quotation (which was required for Make).
251
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256
if test "X$1" = X--no-reexec; then
257
# Discard the --no-reexec flag, and continue.
259
elif test "X$1" = X--fallback-echo; then
260
# Avoid inline document here, it may be left over
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263
# Yippee, $echo works!
266
# Restart under the correct shell.
267
exec $SHELL "$0" --no-reexec ${1+"$@"}
270
if test "X$1" = X--fallback-echo; then
271
# used as fallback echo
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
if test -z "$ECHO"; then
284
if test "X${echo_test_string+set}" != Xset; then
285
# find a string as large as possible, as long as the shell can cope with it
286
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289
echo_test_string="`eval $cmd`" &&
290
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299
test "X$echo_testing_string" = "X$echo_test_string"; then
302
# The Solaris, AIX, and Digital Unix default echo programs unquote
303
# backslashes. This makes it impossible to quote backslashes using
304
# echo "$something" | sed 's/\\/\\\\/g'
306
# So, first we look for a working echo in the user's PATH.
308
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309
for dir in $PATH /usr/ucb; do
311
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314
test "X$echo_testing_string" = "X$echo_test_string"; then
321
if test "X$echo" = Xecho; then
322
# We didn't find a better echo, so look for alternatives.
323
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
326
# This shell has a builtin print -r that does the trick.
328
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329
test "X$CONFIG_SHELL" != X/bin/ksh; then
330
# If we have ksh, try running configure again with it.
331
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332
export ORIGINAL_CONFIG_SHELL
333
CONFIG_SHELL=/bin/ksh
335
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341
test "X$echo_testing_string" = "X$echo_test_string"; then
344
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345
test "X$echo_testing_string" = 'X\t' &&
346
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347
test "X$echo_testing_string" = "X$echo_test_string"; then
348
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350
SHELL="$CONFIG_SHELL"
352
echo="$CONFIG_SHELL $0 --fallback-echo"
353
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354
test "X$echo_testing_string" = 'X\t' &&
355
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356
test "X$echo_testing_string" = "X$echo_test_string"; then
357
echo="$CONFIG_SHELL $0 --fallback-echo"
359
# maybe with a smaller string...
362
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370
if test "$prev" != 'sed 50q "$0"'; then
371
echo_test_string=`eval $prev`
372
export echo_test_string
373
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375
# Oops. We lost completely, so just stick with echo.
384
# Copy echo and quote the copy suitably for passing to libtool from
385
# the Makefile, instead of quoting the original, which is used later.
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394
tagnames=${tagnames+${tagnames},}CXX
396
tagnames=${tagnames+${tagnames},}F77
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400
# so uname gets run too.
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408
ac_default_prefix=/usr/local
409
ac_config_libobj_dir=.
414
SHELL=${CONFIG_SHELL-/bin/sh}
416
# Maximum number of lines to put in a shell here document.
417
# This variable seems obsolete. It should probably be removed, and
418
# only ac_max_sed_lines should be used.
419
: ${ac_max_here_lines=38}
421
# Identity of this package.
428
ac_unique_file="src/WindowMaker.h"
429
# Factoring default headers for most tests.
430
ac_includes_default="\
433
# include <sys/types.h>
436
# include <sys/stat.h>
447
# if !STDC_HEADERS && HAVE_MEMORY_H
453
# include <strings.h>
456
# include <inttypes.h>
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA CPP_PATH NOSTRICTALIASING PKGCONFIG XGETTEXT DLLIBS INTLIBS NLSDIR MOFILES WPMOFILES WINGSMOFILES supported_locales LITE NETLIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIBRARY_PATH XFTCONFIG XFTFLAGS XFTLIBS XCFLAGS XLFLAGS XLIBS LIBRARY_SEARCH_PATH HEADER_SEARCH_PATH GFXLIBS ICONEXT wprefsdir LIBOBJS LTLIBOBJS'
469
# Initialize some variables set by options.
471
ac_init_version=false
472
# The variables have the same names as the options, with
473
# dashes changed to underlines.
481
program_transform_name=s,x,x,
489
# Installation directory options.
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
491
# and all the variables that are supposed to be based on exec_prefix
492
# by default will actually change.
493
# Use braces instead of parens because sh, perl, etc. also accept them.
494
bindir='${exec_prefix}/bin'
495
sbindir='${exec_prefix}/sbin'
496
libexecdir='${exec_prefix}/libexec'
497
datadir='${prefix}/share'
498
sysconfdir='${prefix}/etc'
499
sharedstatedir='${prefix}/com'
500
localstatedir='${prefix}/var'
501
libdir='${exec_prefix}/lib'
502
includedir='${prefix}/include'
503
oldincludedir='/usr/include'
504
infodir='${prefix}/info'
505
mandir='${prefix}/man'
510
# If the previous option needs an argument, assign it.
511
if test -n "$ac_prev"; then
512
eval "$ac_prev=\$ac_option"
517
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
# Accept the important Cygnus configure options, so we can diagnose typos.
523
-bindir | --bindir | --bindi | --bind | --bin | --bi)
525
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528
-build | --build | --buil | --bui | --bu)
529
ac_prev=build_alias ;;
530
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
531
build_alias=$ac_optarg ;;
533
-cache-file | --cache-file | --cache-fil | --cache-fi \
534
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535
ac_prev=cache_file ;;
536
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538
cache_file=$ac_optarg ;;
541
cache_file=config.cache ;;
543
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
datadir=$ac_optarg ;;
549
-disable-* | --disable-*)
550
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551
# Reject names that are not valid shell variable names.
552
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
554
{ (exit 1); exit 1; }; }
555
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556
eval "enable_$ac_feature=no" ;;
558
-enable-* | --enable-*)
559
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560
# Reject names that are not valid shell variable names.
561
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
563
{ (exit 1); exit 1; }; }
564
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569
eval "enable_$ac_feature='$ac_optarg'" ;;
571
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573
| --exec | --exe | --ex)
574
ac_prev=exec_prefix ;;
575
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577
| --exec=* | --exe=* | --ex=*)
578
exec_prefix=$ac_optarg ;;
580
-gas | --gas | --ga | --g)
581
# Obsolete; use --with-gas.
584
-help | --help | --hel | --he | -h)
586
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587
ac_init_help=recursive ;;
588
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589
ac_init_help=short ;;
591
-host | --host | --hos | --ho)
592
ac_prev=host_alias ;;
593
-host=* | --host=* | --hos=* | --ho=*)
594
host_alias=$ac_optarg ;;
596
-includedir | --includedir | --includedi | --included | --include \
597
| --includ | --inclu | --incl | --inc)
598
ac_prev=includedir ;;
599
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600
| --includ=* | --inclu=* | --incl=* | --inc=*)
601
includedir=$ac_optarg ;;
603
-infodir | --infodir | --infodi | --infod | --info | --inf)
605
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606
infodir=$ac_optarg ;;
608
-libdir | --libdir | --libdi | --libd)
610
-libdir=* | --libdir=* | --libdi=* | --libd=*)
613
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614
| --libexe | --libex | --libe)
615
ac_prev=libexecdir ;;
616
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617
| --libexe=* | --libex=* | --libe=*)
618
libexecdir=$ac_optarg ;;
620
-localstatedir | --localstatedir | --localstatedi | --localstated \
621
| --localstate | --localstat | --localsta | --localst \
622
| --locals | --local | --loca | --loc | --lo)
623
ac_prev=localstatedir ;;
624
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
626
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627
localstatedir=$ac_optarg ;;
629
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635
# Obsolete; use --without-fp.
638
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
639
| --no-cr | --no-c | -n)
642
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
643
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648
| --oldin | --oldi | --old | --ol | --o)
649
ac_prev=oldincludedir ;;
650
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653
oldincludedir=$ac_optarg ;;
655
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660
-program-prefix | --program-prefix | --program-prefi | --program-pref \
661
| --program-pre | --program-pr | --program-p)
662
ac_prev=program_prefix ;;
663
-program-prefix=* | --program-prefix=* | --program-prefi=* \
664
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665
program_prefix=$ac_optarg ;;
667
-program-suffix | --program-suffix | --program-suffi | --program-suff \
668
| --program-suf | --program-su | --program-s)
669
ac_prev=program_suffix ;;
670
-program-suffix=* | --program-suffix=* | --program-suffi=* \
671
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672
program_suffix=$ac_optarg ;;
674
-program-transform-name | --program-transform-name \
675
| --program-transform-nam | --program-transform-na \
676
| --program-transform-n | --program-transform- \
677
| --program-transform | --program-transfor \
678
| --program-transfo | --program-transf \
679
| --program-trans | --program-tran \
680
| --progr-tra | --program-tr | --program-t)
681
ac_prev=program_transform_name ;;
682
-program-transform-name=* | --program-transform-name=* \
683
| --program-transform-nam=* | --program-transform-na=* \
684
| --program-transform-n=* | --program-transform-=* \
685
| --program-transform=* | --program-transfor=* \
686
| --program-transfo=* | --program-transf=* \
687
| --program-trans=* | --program-tran=* \
688
| --progr-tra=* | --program-tr=* | --program-t=*)
689
program_transform_name=$ac_optarg ;;
691
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
692
| -silent | --silent | --silen | --sile | --sil)
695
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699
sbindir=$ac_optarg ;;
701
-sharedstatedir | --sharedstatedir | --sharedstatedi \
702
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703
| --sharedst | --shareds | --shared | --share | --shar \
705
ac_prev=sharedstatedir ;;
706
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710
sharedstatedir=$ac_optarg ;;
712
-site | --site | --sit)
714
-site=* | --site=* | --sit=*)
717
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723
| --syscon | --sysco | --sysc | --sys | --sy)
724
ac_prev=sysconfdir ;;
725
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727
sysconfdir=$ac_optarg ;;
729
-target | --target | --targe | --targ | --tar | --ta | --t)
730
ac_prev=target_alias ;;
731
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732
target_alias=$ac_optarg ;;
734
-v | -verbose | --verbose | --verbos | --verbo | --verb)
737
-version | --version | --versio | --versi | --vers | -V)
741
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742
# Reject names that are not valid shell variable names.
743
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744
{ echo "$as_me: error: invalid package name: $ac_package" >&2
745
{ (exit 1); exit 1; }; }
746
ac_package=`echo $ac_package| sed 's/-/_/g'`
748
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751
eval "with_$ac_package='$ac_optarg'" ;;
753
-without-* | --without-*)
754
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755
# Reject names that are not valid shell variable names.
756
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757
{ echo "$as_me: error: invalid package name: $ac_package" >&2
758
{ (exit 1); exit 1; }; }
759
ac_package=`echo $ac_package | sed 's/-/_/g'`
760
eval "with_$ac_package=no" ;;
763
# Obsolete; use --with-x.
766
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767
| --x-incl | --x-inc | --x-in | --x-i)
768
ac_prev=x_includes ;;
769
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771
x_includes=$ac_optarg ;;
773
-x-libraries | --x-libraries | --x-librarie | --x-librari \
774
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775
ac_prev=x_libraries ;;
776
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778
x_libraries=$ac_optarg ;;
780
-*) { echo "$as_me: error: unrecognized option: $ac_option
781
Try \`$0 --help' for more information." >&2
782
{ (exit 1); exit 1; }; }
786
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787
# Reject names that are not valid shell variable names.
788
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790
{ (exit 1); exit 1; }; }
791
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792
eval "$ac_envvar='$ac_optarg'"
796
# FIXME: should be removed in autoconf 3.0.
797
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806
if test -n "$ac_prev"; then
807
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808
{ echo "$as_me: error: missing argument to $ac_option" >&2
809
{ (exit 1); exit 1; }; }
812
# Be sure to have absolute paths.
813
for ac_var in exec_prefix prefix
815
eval ac_val=$`echo $ac_var`
817
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819
{ (exit 1); exit 1; }; };;
823
# Be sure to have absolute paths.
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825
localstatedir libdir includedir oldincludedir infodir mandir
827
eval ac_val=$`echo $ac_var`
829
[\\/$]* | ?:[\\/]* ) ;;
830
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831
{ (exit 1); exit 1; }; };;
835
# There might be people who depend on the old broken behavior: `$host'
836
# used to hold the argument of --host etc.
837
# FIXME: To remove some day.
842
# FIXME: To remove some day.
843
if test "x$host_alias" != x; then
844
if test "x$build_alias" = x; then
845
cross_compiling=maybe
846
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847
If a cross compiler is detected then cross compile mode will be used." >&2
848
elif test "x$build_alias" != "x$host_alias"; then
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
test "$silent" = yes && exec 6>/dev/null
859
# Find the source files, if location was not specified.
860
if test -z "$srcdir"; then
861
ac_srcdir_defaulted=yes
862
# Try the directory containing this script, then its parent.
863
ac_confdir=`(dirname "$0") 2>/dev/null ||
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865
X"$0" : 'X\(//\)[^/]' \| \
866
X"$0" : 'X\(//\)$' \| \
867
X"$0" : 'X\(/\)' \| \
868
. : '\(.\)' 2>/dev/null ||
870
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
872
/^X\(\/\/\)$/{ s//\1/; q; }
873
/^X\(\/\).*/{ s//\1/; q; }
876
if test ! -r $srcdir/$ac_unique_file; then
880
ac_srcdir_defaulted=no
882
if test ! -r $srcdir/$ac_unique_file; then
883
if test "$ac_srcdir_defaulted" = yes; then
884
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885
{ (exit 1); exit 1; }; }
887
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888
{ (exit 1); exit 1; }; }
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893
{ (exit 1); exit 1; }; }
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895
ac_env_build_alias_set=${build_alias+set}
896
ac_env_build_alias_value=$build_alias
897
ac_cv_env_build_alias_set=${build_alias+set}
898
ac_cv_env_build_alias_value=$build_alias
899
ac_env_host_alias_set=${host_alias+set}
900
ac_env_host_alias_value=$host_alias
901
ac_cv_env_host_alias_set=${host_alias+set}
902
ac_cv_env_host_alias_value=$host_alias
903
ac_env_target_alias_set=${target_alias+set}
904
ac_env_target_alias_value=$target_alias
905
ac_cv_env_target_alias_set=${target_alias+set}
906
ac_cv_env_target_alias_value=$target_alias
907
ac_env_CC_set=${CC+set}
909
ac_cv_env_CC_set=${CC+set}
910
ac_cv_env_CC_value=$CC
911
ac_env_CFLAGS_set=${CFLAGS+set}
912
ac_env_CFLAGS_value=$CFLAGS
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
914
ac_cv_env_CFLAGS_value=$CFLAGS
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
916
ac_env_LDFLAGS_value=$LDFLAGS
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920
ac_env_CPPFLAGS_value=$CPPFLAGS
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923
ac_env_CPP_set=${CPP+set}
924
ac_env_CPP_value=$CPP
925
ac_cv_env_CPP_set=${CPP+set}
926
ac_cv_env_CPP_value=$CPP
927
ac_env_CXX_set=${CXX+set}
928
ac_env_CXX_value=$CXX
929
ac_cv_env_CXX_set=${CXX+set}
930
ac_cv_env_CXX_value=$CXX
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932
ac_env_CXXFLAGS_value=$CXXFLAGS
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935
ac_env_CXXCPP_set=${CXXCPP+set}
936
ac_env_CXXCPP_value=$CXXCPP
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
938
ac_cv_env_CXXCPP_value=$CXXCPP
939
ac_env_F77_set=${F77+set}
940
ac_env_F77_value=$F77
941
ac_cv_env_F77_set=${F77+set}
942
ac_cv_env_F77_value=$F77
943
ac_env_FFLAGS_set=${FFLAGS+set}
944
ac_env_FFLAGS_value=$FFLAGS
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
946
ac_cv_env_FFLAGS_value=$FFLAGS
949
# Report the --help message.
951
if test "$ac_init_help" = "long"; then
952
# Omit some internal or obsolete options to make the list less imposing.
953
# This message is too long to be a string in the A/UX 3.1 sh.
955
\`configure' configures this package to adapt to many kinds of systems.
957
Usage: $0 [OPTION]... [VAR=VALUE]...
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
960
VAR=VALUE. See below for descriptions of some of the useful variables.
962
Defaults for the options are specified in brackets.
965
-h, --help display this help and exit
966
--help=short display options specific to this package
967
--help=recursive display the short help of all the included packages
968
-V, --version display version information and exit
969
-q, --quiet, --silent do not print \`checking...' messages
970
--cache-file=FILE cache test results in FILE [disabled]
971
-C, --config-cache alias for \`--cache-file=config.cache'
972
-n, --no-create do not create output files
973
--srcdir=DIR find the sources in DIR [configure dir or \`..']
978
Installation directories:
979
--prefix=PREFIX install architecture-independent files in PREFIX
981
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
984
By default, \`make install' will install all the files in
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987
for instance \`--prefix=\$HOME'.
989
For better control, use the options below.
991
Fine tuning of the installation directories:
992
--bindir=DIR user executables [EPREFIX/bin]
993
--sbindir=DIR system admin executables [EPREFIX/sbin]
994
--libexecdir=DIR program executables [EPREFIX/libexec]
995
--datadir=DIR read-only architecture-independent data [PREFIX/share]
996
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
999
--libdir=DIR object code libraries [EPREFIX/lib]
1000
--includedir=DIR C header files [PREFIX/include]
1001
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1002
--infodir=DIR info documentation [PREFIX/info]
1003
--mandir=DIR man documentation [PREFIX/man]
1009
--program-prefix=PREFIX prepend PREFIX to installed program names
1010
--program-suffix=SUFFIX append SUFFIX to installed program names
1011
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014
--x-includes=DIR X include files are in DIR
1015
--x-libraries=DIR X library files are in DIR
1018
--build=BUILD configure for building on BUILD [guessed]
1019
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1023
if test -n "$ac_init_help"; then
1028
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1029
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1030
--enable-shared[=PKGS]
1031
build shared libraries [default=yes]
1032
--enable-static[=PKGS]
1033
build static libraries [default=yes]
1034
--enable-fast-install[=PKGS]
1035
optimize for fast installation [default=yes]
1036
--disable-libtool-lock avoid locking (might break parallel builds)
1037
--enable-lite disable some stuff (dont use it)
1038
--disable-locale disable use of X locale support
1039
--enable-modelock XKB keyboard language status support
1040
--disable-shape disable shaped window extension support
1041
--enable-xinerama enable Xinerama extension support
1042
--disable-shm disable usage of MIT-SHM extension
1043
--disable-xpm disable use of XPM pixmaps through libXpm
1044
--disable-png disable PNG support through libpng
1045
--disable-jpeg disable JPEG support through libjpeg
1046
--disable-gif disable GIF support through libgif or libungif
1047
--disable-tiff disable use of TIFF images through libtiff
1048
--enable-usermenu user defined menus for applications
1052
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055
--with-pic try to use only PIC/non-PIC objects [default=use
1058
include additional configurations [automatic]
1059
--with-libs-from pass compiler flags to look for libraries
1060
--with-incs-from pass compiler flags to look for header files
1061
--with-nlsdir=PATH specify where the locale stuff should go
1062
--with-x use the X Window System
1063
--with-pixmapdir=PATH specify where pixmaps are located DATADIR/pixmaps
1064
--with-appspath=PATH specify the directory for GNUstep applications
1066
Some influential environment variables:
1067
CC C compiler command
1068
CFLAGS C compiler flags
1069
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070
nonstandard directory <lib dir>
1071
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072
headers in a nonstandard directory <include dir>
1074
CXX C++ compiler command
1075
CXXFLAGS C++ compiler flags
1076
CXXCPP C++ preprocessor
1077
F77 Fortran 77 compiler command
1078
FFLAGS Fortran 77 compiler flags
1080
Use these variables to override the choices made by `configure' or to help
1081
it to find libraries and programs with nonstandard names/locations.
1086
if test "$ac_init_help" = "recursive"; then
1087
# If there are subdirs, report their specific --help.
1089
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090
test -d $ac_dir || continue
1093
if test "$ac_dir" != .; then
1094
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095
# A "../" for each directory in $ac_dir_suffix.
1096
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098
ac_dir_suffix= ac_top_builddir=
1102
.) # No --srcdir option. We are building in place.
1104
if test -z "$ac_top_builddir"; then
1107
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109
[\\/]* | ?:[\\/]* ) # Absolute path.
1110
ac_srcdir=$srcdir$ac_dir_suffix;
1111
ac_top_srcdir=$srcdir ;;
1113
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117
# Do not use `cd foo && pwd` to compute absolute paths, because
1118
# the directories may not exist.
1120
.) ac_abs_builddir="$ac_dir";;
1123
.) ac_abs_builddir=`pwd`;;
1124
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1128
case $ac_abs_builddir in
1129
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1131
case ${ac_top_builddir}. in
1132
.) ac_abs_top_builddir=$ac_abs_builddir;;
1133
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137
case $ac_abs_builddir in
1138
.) ac_abs_srcdir=$ac_srcdir;;
1141
.) ac_abs_srcdir=$ac_abs_builddir;;
1142
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146
case $ac_abs_builddir in
1147
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1149
case $ac_top_srcdir in
1150
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1151
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157
# Check for guested configure; otherwise get Cygnus style configure.
1158
if test -f $ac_srcdir/configure.gnu; then
1160
$SHELL $ac_srcdir/configure.gnu --help=recursive
1161
elif test -f $ac_srcdir/configure; then
1163
$SHELL $ac_srcdir/configure --help=recursive
1164
elif test -f $ac_srcdir/configure.ac ||
1165
test -f $ac_srcdir/configure.in; then
1167
$ac_configure --help
1169
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175
test -n "$ac_init_help" && exit 0
1176
if $ac_init_version; then
1179
Copyright (C) 2003 Free Software Foundation, Inc.
1180
This configure script is free software; the Free Software Foundation
1181
gives unlimited permission to copy, distribute and modify it.
1187
This file contains any messages produced by compilers while
1188
running configure, to aid debugging if configure makes a mistake.
1190
It was created by $as_me, which was
1191
generated by GNU Autoconf 2.59. Invocation command line was
1202
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1211
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225
test -z "$as_dir" && as_dir=.
1226
echo "PATH: $as_dir"
1241
# Keep a trace of the command line.
1242
# Strip out --no-create and --no-recursion so they do not pile up.
1243
# Strip out --silent because we don't want to record it for future runs.
1244
# Also quote any args containing shell meta-characters.
1245
# Make two passes to allow for proper duplicate-argument suppression.
1250
ac_must_keep_next=false
1256
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258
| -silent | --silent | --silen | --sile | --sil)
1260
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267
if test $ac_must_keep_next = true; then
1268
ac_must_keep_next=false # Got value, back to normal.
1271
*=* | --config-cache | -C | -disable-* | --disable-* \
1272
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274
| -with-* | --with-* | -without-* | --without-* | --x)
1275
case "$ac_configure_args0 " in
1276
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279
-* ) ac_must_keep_next=true ;;
1282
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283
# Get rid of the leading space.
1289
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
# When interrupted or exit'd, cleanup temporary files, and complete
1293
# config.log. We remove comments because anyway the quotes in there
1294
# would cause problems or look ugly.
1295
# WARNING: Be sure not to use single quotes in there, as some shells,
1296
# such as our DU 5.0 friend, will then `close' the trap.
1297
trap 'exit_status=$?
1298
# Save into config.log some information that might help in debugging.
1303
## ---------------- ##
1304
## Cache variables. ##
1305
## ---------------- ##
1308
# The following way of writing the cache mishandles newlines in values,
1311
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326
## ----------------- ##
1327
## Output variables. ##
1328
## ----------------- ##
1331
for ac_var in $ac_subst_vars
1333
eval ac_val=$`echo $ac_var`
1334
echo "$ac_var='"'"'$ac_val'"'"'"
1338
if test -n "$ac_subst_files"; then
1345
for ac_var in $ac_subst_files
1347
eval ac_val=$`echo $ac_var`
1348
echo "$ac_var='"'"'$ac_val'"'"'"
1353
if test -s confdefs.h; then
1360
sed "/^$/d" confdefs.h | sort
1363
test "$ac_signal" != 0 &&
1364
echo "$as_me: caught signal $ac_signal"
1365
echo "$as_me: exit $exit_status"
1367
rm -f core *.core &&
1368
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371
for ac_signal in 1 2 13 15; do
1372
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377
rm -rf conftest* confdefs.h
1378
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381
# Predefined preprocessor variables.
1383
cat >>confdefs.h <<_ACEOF
1384
#define PACKAGE_NAME "$PACKAGE_NAME"
1388
cat >>confdefs.h <<_ACEOF
1389
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393
cat >>confdefs.h <<_ACEOF
1394
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1398
cat >>confdefs.h <<_ACEOF
1399
#define PACKAGE_STRING "$PACKAGE_STRING"
1403
cat >>confdefs.h <<_ACEOF
1404
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408
# Let the site file select an alternate cache file if it wants to.
1409
# Prefer explicitly selected file to automatically selected ones.
1410
if test -z "$CONFIG_SITE"; then
1411
if test "x$prefix" != xNONE; then
1412
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417
for ac_site_file in $CONFIG_SITE; do
1418
if test -r "$ac_site_file"; then
1419
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420
echo "$as_me: loading site script $ac_site_file" >&6;}
1421
sed 's/^/| /' "$ac_site_file" >&5
1426
if test -r "$cache_file"; then
1427
# Some versions of bash will fail to source /dev/null (special
1428
# files actually), so we avoid doing that.
1429
if test -f "$cache_file"; then
1430
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431
echo "$as_me: loading cache $cache_file" >&6;}
1433
[\\/]* | ?:[\\/]* ) . $cache_file;;
1434
*) . ./$cache_file;;
1438
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439
echo "$as_me: creating cache $cache_file" >&6;}
1443
# Check that the precious variables saved in the cache have kept the same
1445
ac_cache_corrupted=false
1446
for ac_var in `(set) 2>&1 |
1447
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449
eval ac_new_set=\$ac_env_${ac_var}_set
1450
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451
eval ac_new_val="\$ac_env_${ac_var}_value"
1452
case $ac_old_set,$ac_new_set in
1454
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456
ac_cache_corrupted=: ;;
1458
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460
ac_cache_corrupted=: ;;
1463
if test "x$ac_old_val" != "x$ac_new_val"; then
1464
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467
echo "$as_me: former value: $ac_old_val" >&2;}
1468
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469
echo "$as_me: current value: $ac_new_val" >&2;}
1470
ac_cache_corrupted=:
1473
# Pass precious variables to config.status.
1474
if test "$ac_new_set" = set; then
1476
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478
*) ac_arg=$ac_var=$ac_new_val ;;
1480
case " $ac_configure_args " in
1481
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486
if $ac_cache_corrupted; then
1487
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491
{ (exit 1); exit 1; }; }
1495
ac_cpp='$CPP $CPPFLAGS'
1496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521
am__api_version="1.4"
1523
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524
if test -f $ac_dir/install-sh; then
1526
ac_install_sh="$ac_aux_dir/install-sh -c"
1528
elif test -f $ac_dir/install.sh; then
1530
ac_install_sh="$ac_aux_dir/install.sh -c"
1532
elif test -f $ac_dir/shtool; then
1534
ac_install_sh="$ac_aux_dir/shtool install -c"
1538
if test -z "$ac_aux_dir"; then
1539
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541
{ (exit 1); exit 1; }; }
1543
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1547
# Find a good install program. We prefer a C program (faster),
1548
# so one script is as good as another. But avoid the broken or
1549
# incompatible versions:
1550
# SysV /etc/install, /usr/sbin/install
1551
# SunOS /usr/etc/install
1552
# IRIX /sbin/install
1554
# AmigaOS /C/install, which installs bootblocks on floppy discs
1555
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558
# OS/2's system install, which has a completely different semantic
1559
# ./install, which can be erroneously created by make from ./install.sh.
1560
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1561
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1562
if test -z "$INSTALL"; then
1563
if test "${ac_cv_path_install+set}" = set; then
1564
echo $ECHO_N "(cached) $ECHO_C" >&6
1566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570
test -z "$as_dir" && as_dir=.
1571
# Account for people who put trailing slashes in PATH elements.
1573
./ | .// | /cC/* | \
1574
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1575
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1578
# OSF1 and SCO ODT 3.0 have their own names for install.
1579
# Don't use installbsd from OSF since it installs stuff as root
1581
for ac_prog in ginstall scoinst install; do
1582
for ac_exec_ext in '' $ac_executable_extensions; do
1583
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1584
if test $ac_prog = install &&
1585
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586
# AIX install. It has an incompatible calling convention.
1588
elif test $ac_prog = install &&
1589
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590
# program-specific install script used by HP pwplus--don't use.
1593
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1605
if test "${ac_cv_path_install+set}" = set; then
1606
INSTALL=$ac_cv_path_install
1608
# As a last resort, use the slow shell script. We don't cache a
1609
# path for INSTALL within a source directory, because that will
1610
# break other packages using the cache if that directory is
1611
# removed, or if the path is relative.
1612
INSTALL=$ac_install_sh
1615
echo "$as_me:$LINENO: result: $INSTALL" >&5
1616
echo "${ECHO_T}$INSTALL" >&6
1618
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1619
# It thinks the first close brace ends the variable substitution.
1620
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1622
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1624
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1626
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1627
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1630
echo timestamp > conftestfile
1631
# Do `set' in a subshell so we don't clobber the current shell's
1632
# arguments. Must try -L first in case configure is actually a
1633
# symlink; some systems play weird games with the mod time of symlinks
1634
# (eg FreeBSD returns the mod time of the symlink's containing
1637
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1638
if test "$*" = "X"; then
1640
set X `ls -t $srcdir/configure conftestfile`
1642
if test "$*" != "X $srcdir/configure conftestfile" \
1643
&& test "$*" != "X conftestfile $srcdir/configure"; then
1645
# If neither matched, then we have a broken ls. This can happen
1646
# if, for instance, CONFIG_SHELL is bash and it inherits a
1647
# broken ls alias from the environment. This has actually
1648
# happened. Such a system could not be considered "sane".
1649
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1650
alias in your environment" >&5
1651
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1652
alias in your environment" >&2;}
1653
{ (exit 1); exit 1; }; }
1656
test "$2" = conftestfile
1662
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663
Check your system clock" >&5
1664
echo "$as_me: error: newly created file is older than distributed files!
1665
Check your system clock" >&2;}
1666
{ (exit 1); exit 1; }; }
1669
echo "$as_me:$LINENO: result: yes" >&5
1670
echo "${ECHO_T}yes" >&6
1671
test "$program_prefix" != NONE &&
1672
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1673
# Use a double $ so make ignores it.
1674
test "$program_suffix" != NONE &&
1675
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1676
# Double any \ or $. echo might interpret backslashes.
1677
# By default was `s,x,x', remove it if useless.
1678
cat <<\_ACEOF >conftest.sed
1679
s/[\\$]/&&/g;s/;s,x,x,$//
1681
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1684
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1685
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1686
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1687
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1688
echo $ECHO_N "(cached) $ECHO_C" >&6
1690
cat >conftest.make <<\_ACEOF
1692
@echo 'ac_maketemp="$(MAKE)"'
1694
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1695
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1696
if test -n "$ac_maketemp"; then
1697
eval ac_cv_prog_make_${ac_make}_set=yes
1699
eval ac_cv_prog_make_${ac_make}_set=no
1703
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1704
echo "$as_me:$LINENO: result: yes" >&5
1705
echo "${ECHO_T}yes" >&6
1708
echo "$as_me:$LINENO: result: no" >&5
1709
echo "${ECHO_T}no" >&6
1710
SET_MAKE="MAKE=${MAKE-make}"
1718
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1719
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1720
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1721
{ (exit 1); exit 1; }; }
1724
cat >>confdefs.h <<_ACEOF
1725
#define PACKAGE "$PACKAGE"
1729
cat >>confdefs.h <<_ACEOF
1730
#define VERSION "$VERSION"
1735
missing_dir=`cd $ac_aux_dir && pwd`
1736
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1737
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1738
# Run test in a subshell; some versions of sh will print an error if
1739
# an executable is not found, even if stderr is redirected.
1740
# Redirect stdin to placate older versions of autoconf. Sigh.
1741
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1742
ACLOCAL=aclocal-${am__api_version}
1743
echo "$as_me:$LINENO: result: found" >&5
1744
echo "${ECHO_T}found" >&6
1746
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1747
echo "$as_me:$LINENO: result: missing" >&5
1748
echo "${ECHO_T}missing" >&6
1751
echo "$as_me:$LINENO: checking for working autoconf" >&5
1752
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1753
# Run test in a subshell; some versions of sh will print an error if
1754
# an executable is not found, even if stderr is redirected.
1755
# Redirect stdin to placate older versions of autoconf. Sigh.
1756
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1758
echo "$as_me:$LINENO: result: found" >&5
1759
echo "${ECHO_T}found" >&6
1761
AUTOCONF="$missing_dir/missing autoconf"
1762
echo "$as_me:$LINENO: result: missing" >&5
1763
echo "${ECHO_T}missing" >&6
1766
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1767
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1768
# Run test in a subshell; some versions of sh will print an error if
1769
# an executable is not found, even if stderr is redirected.
1770
# Redirect stdin to placate older versions of autoconf. Sigh.
1771
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1772
AUTOMAKE=automake-${am__api_version}
1773
echo "$as_me:$LINENO: result: found" >&5
1774
echo "${ECHO_T}found" >&6
1776
AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1777
echo "$as_me:$LINENO: result: missing" >&5
1778
echo "${ECHO_T}missing" >&6
1781
echo "$as_me:$LINENO: checking for working autoheader" >&5
1782
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1783
# Run test in a subshell; some versions of sh will print an error if
1784
# an executable is not found, even if stderr is redirected.
1785
# Redirect stdin to placate older versions of autoconf. Sigh.
1786
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1787
AUTOHEADER=autoheader
1788
echo "$as_me:$LINENO: result: found" >&5
1789
echo "${ECHO_T}found" >&6
1791
AUTOHEADER="$missing_dir/missing autoheader"
1792
echo "$as_me:$LINENO: result: missing" >&5
1793
echo "${ECHO_T}missing" >&6
1796
echo "$as_me:$LINENO: checking for working makeinfo" >&5
1797
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1798
# Run test in a subshell; some versions of sh will print an error if
1799
# an executable is not found, even if stderr is redirected.
1800
# Redirect stdin to placate older versions of autoconf. Sigh.
1801
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1803
echo "$as_me:$LINENO: result: found" >&5
1804
echo "${ECHO_T}found" >&6
1806
MAKEINFO="$missing_dir/missing makeinfo"
1807
echo "$as_me:$LINENO: result: missing" >&5
1808
echo "${ECHO_T}missing" >&6
1813
# Check whether --enable-shared or --disable-shared was given.
1814
if test "${enable_shared+set}" = set; then
1815
enableval="$enable_shared"
1816
p=${PACKAGE-default}
1818
yes) enable_shared=yes ;;
1819
no) enable_shared=no ;;
1822
# Look at the argument we got. We use all the common list separators.
1823
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1824
for pkg in $enableval; do
1826
if test "X$pkg" = "X$p"; then
1837
# Check whether --enable-static or --disable-static was given.
1838
if test "${enable_static+set}" = set; then
1839
enableval="$enable_static"
1840
p=${PACKAGE-default}
1842
yes) enable_static=yes ;;
1843
no) enable_static=no ;;
1846
# Look at the argument we got. We use all the common list separators.
1847
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1848
for pkg in $enableval; do
1850
if test "X$pkg" = "X$p"; then
1861
# Check whether --enable-fast-install or --disable-fast-install was given.
1862
if test "${enable_fast_install+set}" = set; then
1863
enableval="$enable_fast_install"
1864
p=${PACKAGE-default}
1866
yes) enable_fast_install=yes ;;
1867
no) enable_fast_install=no ;;
1869
enable_fast_install=no
1870
# Look at the argument we got. We use all the common list separators.
1871
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1872
for pkg in $enableval; do
1874
if test "X$pkg" = "X$p"; then
1875
enable_fast_install=yes
1882
enable_fast_install=yes
1885
# Make sure we can run config.sub.
1886
$ac_config_sub sun4 >/dev/null 2>&1 ||
1887
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1888
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1889
{ (exit 1); exit 1; }; }
1891
echo "$as_me:$LINENO: checking build system type" >&5
1892
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1893
if test "${ac_cv_build+set}" = set; then
1894
echo $ECHO_N "(cached) $ECHO_C" >&6
1896
ac_cv_build_alias=$build_alias
1897
test -z "$ac_cv_build_alias" &&
1898
ac_cv_build_alias=`$ac_config_guess`
1899
test -z "$ac_cv_build_alias" &&
1900
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1901
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1902
{ (exit 1); exit 1; }; }
1903
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1904
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1905
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1906
{ (exit 1); exit 1; }; }
1909
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1910
echo "${ECHO_T}$ac_cv_build" >&6
1912
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1913
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1914
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1917
echo "$as_me:$LINENO: checking host system type" >&5
1918
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1919
if test "${ac_cv_host+set}" = set; then
1920
echo $ECHO_N "(cached) $ECHO_C" >&6
1922
ac_cv_host_alias=$host_alias
1923
test -z "$ac_cv_host_alias" &&
1924
ac_cv_host_alias=$ac_cv_build_alias
1925
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1926
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1927
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1928
{ (exit 1); exit 1; }; }
1931
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1932
echo "${ECHO_T}$ac_cv_host" >&6
1934
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1935
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1936
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1940
ac_cpp='$CPP $CPPFLAGS'
1941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944
if test -n "$ac_tool_prefix"; then
1945
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1946
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1947
echo "$as_me:$LINENO: checking for $ac_word" >&5
1948
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949
if test "${ac_cv_prog_CC+set}" = set; then
1950
echo $ECHO_N "(cached) $ECHO_C" >&6
1952
if test -n "$CC"; then
1953
ac_cv_prog_CC="$CC" # Let the user override the test.
1955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959
test -z "$as_dir" && as_dir=.
1960
for ac_exec_ext in '' $ac_executable_extensions; do
1961
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1963
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972
if test -n "$CC"; then
1973
echo "$as_me:$LINENO: result: $CC" >&5
1974
echo "${ECHO_T}$CC" >&6
1976
echo "$as_me:$LINENO: result: no" >&5
1977
echo "${ECHO_T}no" >&6
1981
if test -z "$ac_cv_prog_CC"; then
1983
# Extract the first word of "gcc", so it can be a program name with args.
1984
set dummy gcc; ac_word=$2
1985
echo "$as_me:$LINENO: checking for $ac_word" >&5
1986
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1988
echo $ECHO_N "(cached) $ECHO_C" >&6
1990
if test -n "$ac_ct_CC"; then
1991
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1993
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997
test -z "$as_dir" && as_dir=.
1998
for ac_exec_ext in '' $ac_executable_extensions; do
1999
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000
ac_cv_prog_ac_ct_CC="gcc"
2001
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2010
if test -n "$ac_ct_CC"; then
2011
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2012
echo "${ECHO_T}$ac_ct_CC" >&6
2014
echo "$as_me:$LINENO: result: no" >&5
2015
echo "${ECHO_T}no" >&6
2023
if test -z "$CC"; then
2024
if test -n "$ac_tool_prefix"; then
2025
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2026
set dummy ${ac_tool_prefix}cc; ac_word=$2
2027
echo "$as_me:$LINENO: checking for $ac_word" >&5
2028
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029
if test "${ac_cv_prog_CC+set}" = set; then
2030
echo $ECHO_N "(cached) $ECHO_C" >&6
2032
if test -n "$CC"; then
2033
ac_cv_prog_CC="$CC" # Let the user override the test.
2035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039
test -z "$as_dir" && as_dir=.
2040
for ac_exec_ext in '' $ac_executable_extensions; do
2041
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042
ac_cv_prog_CC="${ac_tool_prefix}cc"
2043
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052
if test -n "$CC"; then
2053
echo "$as_me:$LINENO: result: $CC" >&5
2054
echo "${ECHO_T}$CC" >&6
2056
echo "$as_me:$LINENO: result: no" >&5
2057
echo "${ECHO_T}no" >&6
2061
if test -z "$ac_cv_prog_CC"; then
2063
# Extract the first word of "cc", so it can be a program name with args.
2064
set dummy cc; ac_word=$2
2065
echo "$as_me:$LINENO: checking for $ac_word" >&5
2066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2068
echo $ECHO_N "(cached) $ECHO_C" >&6
2070
if test -n "$ac_ct_CC"; then
2071
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077
test -z "$as_dir" && as_dir=.
2078
for ac_exec_ext in '' $ac_executable_extensions; do
2079
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080
ac_cv_prog_ac_ct_CC="cc"
2081
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090
if test -n "$ac_ct_CC"; then
2091
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092
echo "${ECHO_T}$ac_ct_CC" >&6
2094
echo "$as_me:$LINENO: result: no" >&5
2095
echo "${ECHO_T}no" >&6
2104
if test -z "$CC"; then
2105
# Extract the first word of "cc", so it can be a program name with args.
2106
set dummy cc; ac_word=$2
2107
echo "$as_me:$LINENO: checking for $ac_word" >&5
2108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109
if test "${ac_cv_prog_CC+set}" = set; then
2110
echo $ECHO_N "(cached) $ECHO_C" >&6
2112
if test -n "$CC"; then
2113
ac_cv_prog_CC="$CC" # Let the user override the test.
2116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120
test -z "$as_dir" && as_dir=.
2121
for ac_exec_ext in '' $ac_executable_extensions; do
2122
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2124
ac_prog_rejected=yes
2128
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134
if test $ac_prog_rejected = yes; then
2135
# We found a bogon in the path, so make sure we never use it.
2136
set dummy $ac_cv_prog_CC
2138
if test $# != 0; then
2139
# We chose a different compiler from the bogus one.
2140
# However, it has the same basename, so the bogon will be chosen
2141
# first if we set CC to just the basename; use the full file name.
2143
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2149
if test -n "$CC"; then
2150
echo "$as_me:$LINENO: result: $CC" >&5
2151
echo "${ECHO_T}$CC" >&6
2153
echo "$as_me:$LINENO: result: no" >&5
2154
echo "${ECHO_T}no" >&6
2158
if test -z "$CC"; then
2159
if test -n "$ac_tool_prefix"; then
2162
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2163
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2164
echo "$as_me:$LINENO: checking for $ac_word" >&5
2165
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166
if test "${ac_cv_prog_CC+set}" = set; then
2167
echo $ECHO_N "(cached) $ECHO_C" >&6
2169
if test -n "$CC"; then
2170
ac_cv_prog_CC="$CC" # Let the user override the test.
2172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176
test -z "$as_dir" && as_dir=.
2177
for ac_exec_ext in '' $ac_executable_extensions; do
2178
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2179
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2180
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189
if test -n "$CC"; then
2190
echo "$as_me:$LINENO: result: $CC" >&5
2191
echo "${ECHO_T}$CC" >&6
2193
echo "$as_me:$LINENO: result: no" >&5
2194
echo "${ECHO_T}no" >&6
2197
test -n "$CC" && break
2200
if test -z "$CC"; then
2204
# Extract the first word of "$ac_prog", so it can be a program name with args.
2205
set dummy $ac_prog; ac_word=$2
2206
echo "$as_me:$LINENO: checking for $ac_word" >&5
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209
echo $ECHO_N "(cached) $ECHO_C" >&6
2211
if test -n "$ac_ct_CC"; then
2212
ac_cv_prog_ac_ct_CC="$ac_ct_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
ac_cv_prog_ac_ct_CC="$ac_prog"
2222
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2231
if test -n "$ac_ct_CC"; then
2232
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233
echo "${ECHO_T}$ac_ct_CC" >&6
2235
echo "$as_me:$LINENO: result: no" >&5
2236
echo "${ECHO_T}no" >&6
2239
test -n "$ac_ct_CC" && break
2248
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2249
See \`config.log' for more details." >&5
2250
echo "$as_me: error: no acceptable C compiler found in \$PATH
2251
See \`config.log' for more details." >&2;}
2252
{ (exit 1); exit 1; }; }
2254
# Provide some information about the compiler.
2255
echo "$as_me:$LINENO:" \
2256
"checking for C compiler version" >&5
2257
ac_compiler=`set X $ac_compile; echo $2`
2258
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2259
(eval $ac_compiler --version </dev/null >&5) 2>&5
2261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262
(exit $ac_status); }
2263
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2264
(eval $ac_compiler -v </dev/null >&5) 2>&5
2266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
(exit $ac_status); }
2268
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2269
(eval $ac_compiler -V </dev/null >&5) 2>&5
2271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272
(exit $ac_status); }
2274
cat >conftest.$ac_ext <<_ACEOF
2277
cat confdefs.h >>conftest.$ac_ext
2278
cat >>conftest.$ac_ext <<_ACEOF
2279
/* end confdefs.h. */
2289
ac_clean_files_save=$ac_clean_files
2290
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2291
# Try to create an executable without -o first, disregard a.out.
2292
# It will help us diagnose broken compilers, and finding out an intuition
2294
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2295
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2296
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2297
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2298
(eval $ac_link_default) 2>&5
2300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301
(exit $ac_status); }; then
2302
# Find the output, starting from the most likely. This scheme is
2303
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2306
# Be careful to initialize this variable, since it used to be cached.
2307
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2309
# b.out is created by i960 compilers.
2310
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2312
test -f "$ac_file" || continue
2314
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2317
# This is the source file.
2320
# We found the default executable, but exeext='' is most
2324
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2325
# FIXME: I believe we export ac_cv_exeext for Libtool,
2326
# but it would be cool to find out if it's true. Does anybody
2327
# maintain Libtool? --akim.
2335
echo "$as_me: failed program was:" >&5
2336
sed 's/^/| /' conftest.$ac_ext >&5
2338
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2339
See \`config.log' for more details." >&5
2340
echo "$as_me: error: C compiler cannot create executables
2341
See \`config.log' for more details." >&2;}
2342
{ (exit 77); exit 77; }; }
2345
ac_exeext=$ac_cv_exeext
2346
echo "$as_me:$LINENO: result: $ac_file" >&5
2347
echo "${ECHO_T}$ac_file" >&6
2349
# Check the compiler produces executables we can run. If not, either
2350
# the compiler is broken, or we cross compile.
2351
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2352
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2353
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2354
# If not cross compiling, check that we can run a simple program.
2355
if test "$cross_compiling" != yes; then
2356
if { ac_try='./$ac_file'
2357
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361
(exit $ac_status); }; }; then
2364
if test "$cross_compiling" = maybe; then
2367
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2368
If you meant to cross compile, use \`--host'.
2369
See \`config.log' for more details." >&5
2370
echo "$as_me: error: cannot run C compiled programs.
2371
If you meant to cross compile, use \`--host'.
2372
See \`config.log' for more details." >&2;}
2373
{ (exit 1); exit 1; }; }
2377
echo "$as_me:$LINENO: result: yes" >&5
2378
echo "${ECHO_T}yes" >&6
2380
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2381
ac_clean_files=$ac_clean_files_save
2382
# Check the compiler produces executables we can run. If not, either
2383
# the compiler is broken, or we cross compile.
2384
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2385
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2386
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2387
echo "${ECHO_T}$cross_compiling" >&6
2389
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2390
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392
(eval $ac_link) 2>&5
2394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395
(exit $ac_status); }; then
2396
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2397
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2398
# work properly (i.e., refer to `conftest.exe'), while it won't with
2400
for ac_file in conftest.exe conftest conftest.*; do
2401
test -f "$ac_file" || continue
2403
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2404
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2411
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2412
See \`config.log' for more details." >&5
2413
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2414
See \`config.log' for more details." >&2;}
2415
{ (exit 1); exit 1; }; }
2418
rm -f conftest$ac_cv_exeext
2419
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2420
echo "${ECHO_T}$ac_cv_exeext" >&6
2422
rm -f conftest.$ac_ext
2423
EXEEXT=$ac_cv_exeext
2425
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2426
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2427
if test "${ac_cv_objext+set}" = set; then
2428
echo $ECHO_N "(cached) $ECHO_C" >&6
2430
cat >conftest.$ac_ext <<_ACEOF
2433
cat confdefs.h >>conftest.$ac_ext
2434
cat >>conftest.$ac_ext <<_ACEOF
2435
/* end confdefs.h. */
2445
rm -f conftest.o conftest.obj
2446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447
(eval $ac_compile) 2>&5
2449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450
(exit $ac_status); }; then
2451
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2453
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2454
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2459
echo "$as_me: failed program was:" >&5
2460
sed 's/^/| /' conftest.$ac_ext >&5
2462
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2463
See \`config.log' for more details." >&5
2464
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2465
See \`config.log' for more details." >&2;}
2466
{ (exit 1); exit 1; }; }
2469
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2471
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2472
echo "${ECHO_T}$ac_cv_objext" >&6
2473
OBJEXT=$ac_cv_objext
2475
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2476
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2477
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2478
echo $ECHO_N "(cached) $ECHO_C" >&6
2480
cat >conftest.$ac_ext <<_ACEOF
2483
cat confdefs.h >>conftest.$ac_ext
2484
cat >>conftest.$ac_ext <<_ACEOF
2485
/* end confdefs.h. */
2498
rm -f conftest.$ac_objext
2499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500
(eval $ac_compile) 2>conftest.er1
2502
grep -v '^ *+' conftest.er1 >conftest.err
2504
cat conftest.err >&5
2505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506
(exit $ac_status); } &&
2507
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512
(exit $ac_status); }; } &&
2513
{ ac_try='test -s conftest.$ac_objext'
2514
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518
(exit $ac_status); }; }; then
2521
echo "$as_me: failed program was:" >&5
2522
sed 's/^/| /' conftest.$ac_ext >&5
2526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2530
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2531
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2532
GCC=`test $ac_compiler_gnu = yes && echo yes`
2533
ac_test_CFLAGS=${CFLAGS+set}
2534
ac_save_CFLAGS=$CFLAGS
2536
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2537
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2538
if test "${ac_cv_prog_cc_g+set}" = set; then
2539
echo $ECHO_N "(cached) $ECHO_C" >&6
2541
cat >conftest.$ac_ext <<_ACEOF
2544
cat confdefs.h >>conftest.$ac_ext
2545
cat >>conftest.$ac_ext <<_ACEOF
2546
/* end confdefs.h. */
2556
rm -f conftest.$ac_objext
2557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558
(eval $ac_compile) 2>conftest.er1
2560
grep -v '^ *+' conftest.er1 >conftest.err
2562
cat conftest.err >&5
2563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564
(exit $ac_status); } &&
2565
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2566
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
(exit $ac_status); }; } &&
2571
{ ac_try='test -s conftest.$ac_objext'
2572
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576
(exit $ac_status); }; }; then
2579
echo "$as_me: failed program was:" >&5
2580
sed 's/^/| /' conftest.$ac_ext >&5
2584
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2587
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2588
if test "$ac_test_CFLAGS" = set; then
2589
CFLAGS=$ac_save_CFLAGS
2590
elif test $ac_cv_prog_cc_g = yes; then
2591
if test "$GCC" = yes; then
2597
if test "$GCC" = yes; then
2603
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2604
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2605
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2606
echo $ECHO_N "(cached) $ECHO_C" >&6
2608
ac_cv_prog_cc_stdc=no
2610
cat >conftest.$ac_ext <<_ACEOF
2613
cat confdefs.h >>conftest.$ac_ext
2614
cat >>conftest.$ac_ext <<_ACEOF
2615
/* end confdefs.h. */
2618
#include <sys/types.h>
2619
#include <sys/stat.h>
2620
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2621
struct buf { int x; };
2622
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2623
static char *e (p, i)
2629
static char *f (char * (*g) (char **, int), char **p, ...)
2634
s = g (p, va_arg (v,int));
2639
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2640
function prototypes and stuff, but not '\xHH' hex character constants.
2641
These don't provoke an error unfortunately, instead are silently treated
2642
as 'x'. The following induces an error, until -std1 is added to get
2643
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2644
array size at least. It's necessary to write '\x00'==0 to get something
2645
that's true only with -std1. */
2646
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2648
int test (int i, double x);
2649
struct s1 {int (*f) (int a);};
2650
struct s2 {int (*f) (double a);};
2651
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2657
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2662
# Don't try gcc -ansi; that turns off useful extensions and
2663
# breaks some systems' header files.
2664
# AIX -qlanglvl=ansi
2665
# Ultrix and OSF/1 -std1
2666
# HP-UX 10.20 and later -Ae
2667
# HP-UX older versions -Aa -D_HPUX_SOURCE
2668
# SVR4 -Xc -D__EXTENSIONS__
2669
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2671
CC="$ac_save_CC $ac_arg"
2672
rm -f conftest.$ac_objext
2673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674
(eval $ac_compile) 2>conftest.er1
2676
grep -v '^ *+' conftest.er1 >conftest.err
2678
cat conftest.err >&5
2679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680
(exit $ac_status); } &&
2681
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686
(exit $ac_status); }; } &&
2687
{ ac_try='test -s conftest.$ac_objext'
2688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692
(exit $ac_status); }; }; then
2693
ac_cv_prog_cc_stdc=$ac_arg
2696
echo "$as_me: failed program was:" >&5
2697
sed 's/^/| /' conftest.$ac_ext >&5
2700
rm -f conftest.err conftest.$ac_objext
2702
rm -f conftest.$ac_ext conftest.$ac_objext
2707
case "x$ac_cv_prog_cc_stdc" in
2709
echo "$as_me:$LINENO: result: none needed" >&5
2710
echo "${ECHO_T}none needed" >&6 ;;
2712
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2713
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2714
CC="$CC $ac_cv_prog_cc_stdc" ;;
2717
# Some people use a C++ compiler to compile C. Since we use `exit',
2718
# in C++ we need to declare it. In case someone uses the same compiler
2719
# for both compiling C and C++ we need to have the C++ compiler decide
2720
# the declaration of exit, since it's the most demanding environment.
2721
cat >conftest.$ac_ext <<_ACEOF
2726
rm -f conftest.$ac_objext
2727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728
(eval $ac_compile) 2>conftest.er1
2730
grep -v '^ *+' conftest.er1 >conftest.err
2732
cat conftest.err >&5
2733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734
(exit $ac_status); } &&
2735
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740
(exit $ac_status); }; } &&
2741
{ ac_try='test -s conftest.$ac_objext'
2742
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746
(exit $ac_status); }; }; then
2747
for ac_declaration in \
2749
'extern "C" void std::exit (int) throw (); using std::exit;' \
2750
'extern "C" void std::exit (int); using std::exit;' \
2751
'extern "C" void exit (int) throw ();' \
2752
'extern "C" void exit (int);' \
2755
cat >conftest.$ac_ext <<_ACEOF
2758
cat confdefs.h >>conftest.$ac_ext
2759
cat >>conftest.$ac_ext <<_ACEOF
2760
/* end confdefs.h. */
2771
rm -f conftest.$ac_objext
2772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773
(eval $ac_compile) 2>conftest.er1
2775
grep -v '^ *+' conftest.er1 >conftest.err
2777
cat conftest.err >&5
2778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779
(exit $ac_status); } &&
2780
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785
(exit $ac_status); }; } &&
2786
{ ac_try='test -s conftest.$ac_objext'
2787
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
(exit $ac_status); }; }; then
2794
echo "$as_me: failed program was:" >&5
2795
sed 's/^/| /' conftest.$ac_ext >&5
2799
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800
cat >conftest.$ac_ext <<_ACEOF
2803
cat confdefs.h >>conftest.$ac_ext
2804
cat >>conftest.$ac_ext <<_ACEOF
2805
/* end confdefs.h. */
2815
rm -f conftest.$ac_objext
2816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817
(eval $ac_compile) 2>conftest.er1
2819
grep -v '^ *+' conftest.er1 >conftest.err
2821
cat conftest.err >&5
2822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823
(exit $ac_status); } &&
2824
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829
(exit $ac_status); }; } &&
2830
{ ac_try='test -s conftest.$ac_objext'
2831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835
(exit $ac_status); }; }; then
2838
echo "$as_me: failed program was:" >&5
2839
sed 's/^/| /' conftest.$ac_ext >&5
2842
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845
if test -n "$ac_declaration"; then
2846
echo '#ifdef __cplusplus' >>confdefs.h
2847
echo $ac_declaration >>confdefs.h
2848
echo '#endif' >>confdefs.h
2852
echo "$as_me: failed program was:" >&5
2853
sed 's/^/| /' conftest.$ac_ext >&5
2856
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858
ac_cpp='$CPP $CPPFLAGS'
2859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2864
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2865
if test "${lt_cv_path_SED+set}" = set; then
2866
echo $ECHO_N "(cached) $ECHO_C" >&6
2868
# Loop through the user's path and test for sed and gsed.
2869
# Then use that list of sed's as ones to test for truncation.
2870
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874
test -z "$as_dir" && as_dir=.
2875
for lt_ac_prog in sed gsed; do
2876
for ac_exec_ext in '' $ac_executable_extensions; do
2877
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2878
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2885
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2886
# along with /bin/sed that truncates output.
2887
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2888
test ! -f $lt_ac_sed && break
2889
cat /dev/null > conftest.in
2891
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2892
# Check for GNU sed and select it if it is found.
2893
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2894
lt_cv_path_SED=$lt_ac_sed
2898
cat conftest.in conftest.in >conftest.tmp
2899
mv conftest.tmp conftest.in
2900
cp conftest.in conftest.nl
2902
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2903
cmp -s conftest.out conftest.nl || break
2904
# 10000 chars as input seems more than enough
2905
test $lt_ac_count -gt 10 && break
2906
lt_ac_count=`expr $lt_ac_count + 1`
2907
if test $lt_ac_count -gt $lt_ac_max; then
2908
lt_ac_max=$lt_ac_count
2909
lt_cv_path_SED=$lt_ac_sed
2917
echo "$as_me:$LINENO: result: $SED" >&5
2918
echo "${ECHO_T}$SED" >&6
2920
echo "$as_me:$LINENO: checking for egrep" >&5
2921
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2922
if test "${ac_cv_prog_egrep+set}" = set; then
2923
echo $ECHO_N "(cached) $ECHO_C" >&6
2925
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2926
then ac_cv_prog_egrep='grep -E'
2927
else ac_cv_prog_egrep='egrep'
2930
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2931
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2932
EGREP=$ac_cv_prog_egrep
2936
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2937
if test "${with_gnu_ld+set}" = set; then
2938
withval="$with_gnu_ld"
2939
test "$withval" = no || with_gnu_ld=yes
2944
if test "$GCC" = yes; then
2945
# Check if gcc -print-prog-name=ld gives a path.
2946
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2947
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2950
# gcc leaves a trailing carriage return which upsets mingw
2951
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2953
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2956
# Accept absolute paths.
2958
re_direlt='/[^/][^/]*/\.\./'
2959
# Canonicalize the pathname of ld
2960
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2961
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2962
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2964
test -z "$LD" && LD="$ac_prog"
2967
# If it fails, then pretend we aren't using GCC.
2971
# If it is relative, then search for the first ld in PATH.
2975
elif test "$with_gnu_ld" = yes; then
2976
echo "$as_me:$LINENO: checking for GNU ld" >&5
2977
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2979
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2980
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2982
if test "${lt_cv_path_LD+set}" = set; then
2983
echo $ECHO_N "(cached) $ECHO_C" >&6
2985
if test -z "$LD"; then
2986
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2987
for ac_dir in $PATH; do
2989
test -z "$ac_dir" && ac_dir=.
2990
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2991
lt_cv_path_LD="$ac_dir/$ac_prog"
2992
# Check to see if the program is GNU ld. I'd rather use --version,
2993
# but apparently some GNU ld's only accept -v.
2994
# Break only if it was the GNU/non-GNU ld that we prefer.
2995
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2996
*GNU* | *'with BFD'*)
2997
test "$with_gnu_ld" != no && break
3000
test "$with_gnu_ld" != yes && break
3007
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3012
if test -n "$LD"; then
3013
echo "$as_me:$LINENO: result: $LD" >&5
3014
echo "${ECHO_T}$LD" >&6
3016
echo "$as_me:$LINENO: result: no" >&5
3017
echo "${ECHO_T}no" >&6
3019
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3020
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3021
{ (exit 1); exit 1; }; }
3022
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3023
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3024
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3025
echo $ECHO_N "(cached) $ECHO_C" >&6
3027
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3028
case `$LD -v 2>&1 </dev/null` in
3029
*GNU* | *'with BFD'*)
3030
lt_cv_prog_gnu_ld=yes
3033
lt_cv_prog_gnu_ld=no
3037
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3038
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3039
with_gnu_ld=$lt_cv_prog_gnu_ld
3042
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3043
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3044
if test "${lt_cv_ld_reload_flag+set}" = set; then
3045
echo $ECHO_N "(cached) $ECHO_C" >&6
3047
lt_cv_ld_reload_flag='-r'
3049
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3050
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3051
reload_flag=$lt_cv_ld_reload_flag
3052
case $reload_flag in
3054
*) reload_flag=" $reload_flag" ;;
3056
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3058
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3059
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3060
if test "${lt_cv_path_NM+set}" = set; then
3061
echo $ECHO_N "(cached) $ECHO_C" >&6
3063
if test -n "$NM"; then
3064
# Let the user override the test.
3067
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3068
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3070
test -z "$ac_dir" && ac_dir=.
3071
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3072
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3073
# Check to see if the nm accepts a BSD-compat flag.
3074
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3075
# nm: unknown option "B" ignored
3076
# Tru64's nm complains that /dev/null is an invalid object file
3077
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3078
*/dev/null* | *'Invalid file or object type'*)
3079
lt_cv_path_NM="$tmp_nm -B"
3083
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3085
lt_cv_path_NM="$tmp_nm -p"
3089
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3090
continue # so that we can try to find one that supports BSD flags
3097
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3100
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3101
echo "${ECHO_T}$lt_cv_path_NM" >&6
3104
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3105
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3107
if test "$LN_S" = "ln -s"; then
3108
echo "$as_me:$LINENO: result: yes" >&5
3109
echo "${ECHO_T}yes" >&6
3111
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3112
echo "${ECHO_T}no, using $LN_S" >&6
3115
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3116
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3117
if test "${lt_cv_deplibs_check_method+set}" = set; then
3118
echo $ECHO_N "(cached) $ECHO_C" >&6
3120
lt_cv_file_magic_cmd='$MAGIC_CMD'
3121
lt_cv_file_magic_test_file=
3122
lt_cv_deplibs_check_method='unknown'
3123
# Need to set the preceding variable on all platforms that support
3124
# interlibrary dependencies.
3125
# 'none' -- dependencies not supported.
3126
# `unknown' -- same as none, but documents that we really don't know.
3127
# 'pass_all' -- all dependencies passed with no checks.
3128
# 'test_compile' -- check by making test program.
3129
# 'file_magic [[regex]]' -- check by looking for files in library path
3130
# which responds to the $file_magic_cmd with a given extended regex.
3131
# If you have `file' or equivalent on your system and you're not sure
3132
# whether `pass_all' will *always* work, you probably want this one.
3136
lt_cv_deplibs_check_method=pass_all
3140
lt_cv_deplibs_check_method=pass_all
3144
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3145
lt_cv_file_magic_cmd='/usr/bin/file -L'
3146
lt_cv_file_magic_test_file=/shlib/libc.so
3150
# func_win32_libid is a shell function defined in ltmain.sh
3151
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3152
lt_cv_file_magic_cmd='func_win32_libid'
3156
# Base MSYS/MinGW do not provide the 'file' command needed by
3157
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3158
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3159
lt_cv_file_magic_cmd='$OBJDUMP -f'
3162
darwin* | rhapsody*)
3163
lt_cv_deplibs_check_method=pass_all
3166
freebsd* | kfreebsd*-gnu)
3167
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3170
# Not sure whether the presence of OpenBSD here was a mistake.
3171
# Let's accept both of them until this is cleared up.
3172
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3173
lt_cv_file_magic_cmd=/usr/bin/file
3174
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3178
lt_cv_deplibs_check_method=pass_all
3183
lt_cv_deplibs_check_method=pass_all
3186
hpux10.20* | hpux11*)
3187
lt_cv_file_magic_cmd=/usr/bin/file
3190
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3191
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3194
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]'
3195
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3198
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3199
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3204
irix5* | irix6* | nonstopux*)
3206
*-32|*"-32 ") libmagic=32-bit;;
3207
*-n32|*"-n32 ") libmagic=N32;;
3208
*-64|*"-64 ") libmagic=64-bit;;
3209
*) libmagic=never-match;;
3211
lt_cv_deplibs_check_method=pass_all
3214
# This must be Linux ELF.
3216
lt_cv_deplibs_check_method=pass_all
3219
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3220
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3221
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3223
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3228
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3229
lt_cv_file_magic_cmd=/usr/bin/file
3230
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3234
lt_cv_deplibs_check_method=unknown
3238
lt_cv_file_magic_cmd=/usr/bin/file
3239
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3240
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3241
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3243
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3247
osf3* | osf4* | osf5*)
3248
lt_cv_deplibs_check_method=pass_all
3252
lt_cv_deplibs_check_method=pass_all
3256
lt_cv_deplibs_check_method=pass_all
3259
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3260
case $host_vendor in
3262
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]'
3263
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3266
lt_cv_deplibs_check_method=pass_all
3269
lt_cv_file_magic_cmd='/bin/file'
3270
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3273
lt_cv_file_magic_cmd='/bin/file'
3274
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3275
lt_cv_file_magic_test_file=/lib/libc.so
3278
lt_cv_deplibs_check_method=pass_all
3283
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3284
lt_cv_deplibs_check_method=pass_all
3289
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3290
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3291
file_magic_cmd=$lt_cv_file_magic_cmd
3292
deplibs_check_method=$lt_cv_deplibs_check_method
3293
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3298
# If no C compiler was specified, use CC.
3301
# Allow CC to be a program name with arguments.
3305
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3306
if test "${enable_libtool_lock+set}" = set; then
3307
enableval="$enable_libtool_lock"
3310
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3312
# Some flags need to be propagated to the compiler or linker for good
3316
# Find out which ABI we are using.
3317
echo 'int i;' > conftest.$ac_ext
3318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319
(eval $ac_compile) 2>&5
3321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322
(exit $ac_status); }; then
3323
case `/usr/bin/file conftest.$ac_objext` in
3335
# Find out which ABI we are using.
3336
echo '#line 3336 "configure"' > conftest.$ac_ext
3337
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338
(eval $ac_compile) 2>&5
3340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341
(exit $ac_status); }; then
3342
if test "$lt_cv_prog_gnu_ld" = yes; then
3343
case `/usr/bin/file conftest.$ac_objext` in
3345
LD="${LD-ld} -melf32bsmip"
3348
LD="${LD-ld} -melf32bmipn32"
3351
LD="${LD-ld} -melf64bmip"
3355
case `/usr/bin/file conftest.$ac_objext` in
3371
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3372
# Find out which ABI we are using.
3373
echo 'int i;' > conftest.$ac_ext
3374
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375
(eval $ac_compile) 2>&5
3377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378
(exit $ac_status); }; then
3379
case "`/usr/bin/file conftest.o`" in
3383
LD="${LD-ld} -m elf_i386"
3385
ppc64-*linux*|powerpc64-*linux*)
3386
LD="${LD-ld} -m elf32ppclinux"
3389
LD="${LD-ld} -m elf_s390"
3392
LD="${LD-ld} -m elf32_sparc"
3399
LD="${LD-ld} -m elf_x86_64"
3401
ppc*-*linux*|powerpc*-*linux*)
3402
LD="${LD-ld} -m elf64ppc"
3405
LD="${LD-ld} -m elf64_s390"
3408
LD="${LD-ld} -m elf64_sparc"
3418
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3419
SAVE_CFLAGS="$CFLAGS"
3420
CFLAGS="$CFLAGS -belf"
3421
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3422
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3423
if test "${lt_cv_cc_needs_belf+set}" = set; then
3424
echo $ECHO_N "(cached) $ECHO_C" >&6
3427
ac_cpp='$CPP $CPPFLAGS'
3428
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
cat >conftest.$ac_ext <<_ACEOF
3435
cat confdefs.h >>conftest.$ac_ext
3436
cat >>conftest.$ac_ext <<_ACEOF
3437
/* end confdefs.h. */
3447
rm -f conftest.$ac_objext conftest$ac_exeext
3448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3449
(eval $ac_link) 2>conftest.er1
3451
grep -v '^ *+' conftest.er1 >conftest.err
3453
cat conftest.err >&5
3454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455
(exit $ac_status); } &&
3456
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461
(exit $ac_status); }; } &&
3462
{ ac_try='test -s conftest$ac_exeext'
3463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467
(exit $ac_status); }; }; then
3468
lt_cv_cc_needs_belf=yes
3470
echo "$as_me: failed program was:" >&5
3471
sed 's/^/| /' conftest.$ac_ext >&5
3473
lt_cv_cc_needs_belf=no
3475
rm -f conftest.err conftest.$ac_objext \
3476
conftest$ac_exeext conftest.$ac_ext
3478
ac_cpp='$CPP $CPPFLAGS'
3479
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3485
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3486
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3487
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3488
CFLAGS="$SAVE_CFLAGS"
3494
need_locks="$enable_libtool_lock"
3498
ac_cpp='$CPP $CPPFLAGS'
3499
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3503
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3504
# On Suns, sometimes $CPP names a directory.
3505
if test -n "$CPP" && test -d "$CPP"; then
3508
if test -z "$CPP"; then
3509
if test "${ac_cv_prog_CPP+set}" = set; then
3510
echo $ECHO_N "(cached) $ECHO_C" >&6
3512
# Double quotes because CPP needs to be expanded
3513
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3516
for ac_c_preproc_warn_flag in '' yes
3518
# Use a header file that comes with gcc, so configuring glibc
3519
# with a fresh cross-compiler works.
3520
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521
# <limits.h> exists even on freestanding compilers.
3522
# On the NeXT, cc -E runs the code through the compiler's parser,
3523
# not just through cpp. "Syntax error" is here to catch this case.
3524
cat >conftest.$ac_ext <<_ACEOF
3527
cat confdefs.h >>conftest.$ac_ext
3528
cat >>conftest.$ac_ext <<_ACEOF
3529
/* end confdefs.h. */
3531
# include <limits.h>
3533
# include <assert.h>
3537
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3538
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3540
grep -v '^ *+' conftest.er1 >conftest.err
3542
cat conftest.err >&5
3543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544
(exit $ac_status); } >/dev/null; then
3545
if test -s conftest.err; then
3546
ac_cpp_err=$ac_c_preproc_warn_flag
3547
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3554
if test -z "$ac_cpp_err"; then
3557
echo "$as_me: failed program was:" >&5
3558
sed 's/^/| /' conftest.$ac_ext >&5
3560
# Broken: fails on valid input.
3563
rm -f conftest.err conftest.$ac_ext
3565
# OK, works on sane cases. Now check whether non-existent headers
3566
# can be detected and how.
3567
cat >conftest.$ac_ext <<_ACEOF
3570
cat confdefs.h >>conftest.$ac_ext
3571
cat >>conftest.$ac_ext <<_ACEOF
3572
/* end confdefs.h. */
3573
#include <ac_nonexistent.h>
3575
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3576
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3578
grep -v '^ *+' conftest.er1 >conftest.err
3580
cat conftest.err >&5
3581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582
(exit $ac_status); } >/dev/null; then
3583
if test -s conftest.err; then
3584
ac_cpp_err=$ac_c_preproc_warn_flag
3585
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592
if test -z "$ac_cpp_err"; then
3593
# Broken: success on invalid input.
3596
echo "$as_me: failed program was:" >&5
3597
sed 's/^/| /' conftest.$ac_ext >&5
3599
# Passes both tests.
3603
rm -f conftest.err conftest.$ac_ext
3606
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3607
rm -f conftest.err conftest.$ac_ext
3608
if $ac_preproc_ok; then
3620
echo "$as_me:$LINENO: result: $CPP" >&5
3621
echo "${ECHO_T}$CPP" >&6
3623
for ac_c_preproc_warn_flag in '' yes
3625
# Use a header file that comes with gcc, so configuring glibc
3626
# with a fresh cross-compiler works.
3627
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3628
# <limits.h> exists even on freestanding compilers.
3629
# On the NeXT, cc -E runs the code through the compiler's parser,
3630
# not just through cpp. "Syntax error" is here to catch this case.
3631
cat >conftest.$ac_ext <<_ACEOF
3634
cat confdefs.h >>conftest.$ac_ext
3635
cat >>conftest.$ac_ext <<_ACEOF
3636
/* end confdefs.h. */
3638
# include <limits.h>
3640
# include <assert.h>
3644
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3645
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3647
grep -v '^ *+' conftest.er1 >conftest.err
3649
cat conftest.err >&5
3650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651
(exit $ac_status); } >/dev/null; then
3652
if test -s conftest.err; then
3653
ac_cpp_err=$ac_c_preproc_warn_flag
3654
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3661
if test -z "$ac_cpp_err"; then
3664
echo "$as_me: failed program was:" >&5
3665
sed 's/^/| /' conftest.$ac_ext >&5
3667
# Broken: fails on valid input.
3670
rm -f conftest.err conftest.$ac_ext
3672
# OK, works on sane cases. Now check whether non-existent headers
3673
# can be detected and how.
3674
cat >conftest.$ac_ext <<_ACEOF
3677
cat confdefs.h >>conftest.$ac_ext
3678
cat >>conftest.$ac_ext <<_ACEOF
3679
/* end confdefs.h. */
3680
#include <ac_nonexistent.h>
3682
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3683
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3685
grep -v '^ *+' conftest.er1 >conftest.err
3687
cat conftest.err >&5
3688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689
(exit $ac_status); } >/dev/null; then
3690
if test -s conftest.err; then
3691
ac_cpp_err=$ac_c_preproc_warn_flag
3692
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3699
if test -z "$ac_cpp_err"; then
3700
# Broken: success on invalid input.
3703
echo "$as_me: failed program was:" >&5
3704
sed 's/^/| /' conftest.$ac_ext >&5
3706
# Passes both tests.
3710
rm -f conftest.err conftest.$ac_ext
3713
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3714
rm -f conftest.err conftest.$ac_ext
3715
if $ac_preproc_ok; then
3718
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3719
See \`config.log' for more details." >&5
3720
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3721
See \`config.log' for more details." >&2;}
3722
{ (exit 1); exit 1; }; }
3726
ac_cpp='$CPP $CPPFLAGS'
3727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3733
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3734
if test "${ac_cv_header_stdc+set}" = set; then
3735
echo $ECHO_N "(cached) $ECHO_C" >&6
3737
cat >conftest.$ac_ext <<_ACEOF
3740
cat confdefs.h >>conftest.$ac_ext
3741
cat >>conftest.$ac_ext <<_ACEOF
3742
/* end confdefs.h. */
3756
rm -f conftest.$ac_objext
3757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758
(eval $ac_compile) 2>conftest.er1
3760
grep -v '^ *+' conftest.er1 >conftest.err
3762
cat conftest.err >&5
3763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764
(exit $ac_status); } &&
3765
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770
(exit $ac_status); }; } &&
3771
{ ac_try='test -s conftest.$ac_objext'
3772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776
(exit $ac_status); }; }; then
3777
ac_cv_header_stdc=yes
3779
echo "$as_me: failed program was:" >&5
3780
sed 's/^/| /' conftest.$ac_ext >&5
3782
ac_cv_header_stdc=no
3784
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786
if test $ac_cv_header_stdc = yes; then
3787
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3788
cat >conftest.$ac_ext <<_ACEOF
3791
cat confdefs.h >>conftest.$ac_ext
3792
cat >>conftest.$ac_ext <<_ACEOF
3793
/* end confdefs.h. */
3797
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798
$EGREP "memchr" >/dev/null 2>&1; then
3801
ac_cv_header_stdc=no
3807
if test $ac_cv_header_stdc = yes; then
3808
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3809
cat >conftest.$ac_ext <<_ACEOF
3812
cat confdefs.h >>conftest.$ac_ext
3813
cat >>conftest.$ac_ext <<_ACEOF
3814
/* end confdefs.h. */
3818
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3819
$EGREP "free" >/dev/null 2>&1; then
3822
ac_cv_header_stdc=no
3828
if test $ac_cv_header_stdc = yes; then
3829
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3830
if test "$cross_compiling" = yes; then
3833
cat >conftest.$ac_ext <<_ACEOF
3836
cat confdefs.h >>conftest.$ac_ext
3837
cat >>conftest.$ac_ext <<_ACEOF
3838
/* end confdefs.h. */
3840
#if ((' ' & 0x0FF) == 0x020)
3841
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3842
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3844
# define ISLOWER(c) \
3845
(('a' <= (c) && (c) <= 'i') \
3846
|| ('j' <= (c) && (c) <= 'r') \
3847
|| ('s' <= (c) && (c) <= 'z'))
3848
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3851
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3856
for (i = 0; i < 256; i++)
3857
if (XOR (islower (i), ISLOWER (i))
3858
|| toupper (i) != TOUPPER (i))
3863
rm -f conftest$ac_exeext
3864
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865
(eval $ac_link) 2>&5
3867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3869
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873
(exit $ac_status); }; }; then
3876
echo "$as_me: program exited with status $ac_status" >&5
3877
echo "$as_me: failed program was:" >&5
3878
sed 's/^/| /' conftest.$ac_ext >&5
3881
ac_cv_header_stdc=no
3883
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3887
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3888
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3889
if test $ac_cv_header_stdc = yes; then
3891
cat >>confdefs.h <<\_ACEOF
3892
#define STDC_HEADERS 1
3897
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3907
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3908
inttypes.h stdint.h unistd.h
3910
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3911
echo "$as_me:$LINENO: checking for $ac_header" >&5
3912
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3913
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3914
echo $ECHO_N "(cached) $ECHO_C" >&6
3916
cat >conftest.$ac_ext <<_ACEOF
3919
cat confdefs.h >>conftest.$ac_ext
3920
cat >>conftest.$ac_ext <<_ACEOF
3921
/* end confdefs.h. */
3922
$ac_includes_default
3924
#include <$ac_header>
3926
rm -f conftest.$ac_objext
3927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928
(eval $ac_compile) 2>conftest.er1
3930
grep -v '^ *+' conftest.er1 >conftest.err
3932
cat conftest.err >&5
3933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934
(exit $ac_status); } &&
3935
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940
(exit $ac_status); }; } &&
3941
{ ac_try='test -s conftest.$ac_objext'
3942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946
(exit $ac_status); }; }; then
3947
eval "$as_ac_Header=yes"
3949
echo "$as_me: failed program was:" >&5
3950
sed 's/^/| /' conftest.$ac_ext >&5
3952
eval "$as_ac_Header=no"
3954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3956
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3957
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3958
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3959
cat >>confdefs.h <<_ACEOF
3960
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3969
for ac_header in dlfcn.h
3971
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3973
echo "$as_me:$LINENO: checking for $ac_header" >&5
3974
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3975
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3976
echo $ECHO_N "(cached) $ECHO_C" >&6
3978
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3979
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3981
# Is the header compilable?
3982
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3983
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3984
cat >conftest.$ac_ext <<_ACEOF
3987
cat confdefs.h >>conftest.$ac_ext
3988
cat >>conftest.$ac_ext <<_ACEOF
3989
/* end confdefs.h. */
3990
$ac_includes_default
3991
#include <$ac_header>
3993
rm -f conftest.$ac_objext
3994
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995
(eval $ac_compile) 2>conftest.er1
3997
grep -v '^ *+' conftest.er1 >conftest.err
3999
cat conftest.err >&5
4000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001
(exit $ac_status); } &&
4002
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4003
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007
(exit $ac_status); }; } &&
4008
{ ac_try='test -s conftest.$ac_objext'
4009
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013
(exit $ac_status); }; }; then
4014
ac_header_compiler=yes
4016
echo "$as_me: failed program was:" >&5
4017
sed 's/^/| /' conftest.$ac_ext >&5
4019
ac_header_compiler=no
4021
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4023
echo "${ECHO_T}$ac_header_compiler" >&6
4025
# Is the header present?
4026
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4027
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4028
cat >conftest.$ac_ext <<_ACEOF
4031
cat confdefs.h >>conftest.$ac_ext
4032
cat >>conftest.$ac_ext <<_ACEOF
4033
/* end confdefs.h. */
4034
#include <$ac_header>
4036
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4037
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4039
grep -v '^ *+' conftest.er1 >conftest.err
4041
cat conftest.err >&5
4042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043
(exit $ac_status); } >/dev/null; then
4044
if test -s conftest.err; then
4045
ac_cpp_err=$ac_c_preproc_warn_flag
4046
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4053
if test -z "$ac_cpp_err"; then
4054
ac_header_preproc=yes
4056
echo "$as_me: failed program was:" >&5
4057
sed 's/^/| /' conftest.$ac_ext >&5
4059
ac_header_preproc=no
4061
rm -f conftest.err conftest.$ac_ext
4062
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4063
echo "${ECHO_T}$ac_header_preproc" >&6
4065
# So? What about this header?
4066
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4068
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4069
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4070
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4071
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4072
ac_header_preproc=yes
4075
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4076
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4077
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4078
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4079
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4080
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4081
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4082
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4083
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4084
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4085
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4086
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4089
## ------------------------------------------ ##
4090
## Report this to the AC_PACKAGE_NAME lists. ##
4091
## ------------------------------------------ ##
4094
sed "s/^/$as_me: WARNING: /" >&2
4097
echo "$as_me:$LINENO: checking for $ac_header" >&5
4098
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4099
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4100
echo $ECHO_N "(cached) $ECHO_C" >&6
4102
eval "$as_ac_Header=\$ac_header_preproc"
4104
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4105
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4108
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4109
cat >>confdefs.h <<_ACEOF
4110
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4118
ac_cpp='$CXXCPP $CPPFLAGS'
4119
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4122
if test -n "$ac_tool_prefix"; then
4123
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4125
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4126
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4127
echo "$as_me:$LINENO: checking for $ac_word" >&5
4128
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129
if test "${ac_cv_prog_CXX+set}" = set; then
4130
echo $ECHO_N "(cached) $ECHO_C" >&6
4132
if test -n "$CXX"; then
4133
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139
test -z "$as_dir" && as_dir=.
4140
for ac_exec_ext in '' $ac_executable_extensions; do
4141
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4143
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152
if test -n "$CXX"; then
4153
echo "$as_me:$LINENO: result: $CXX" >&5
4154
echo "${ECHO_T}$CXX" >&6
4156
echo "$as_me:$LINENO: result: no" >&5
4157
echo "${ECHO_T}no" >&6
4160
test -n "$CXX" && break
4163
if test -z "$CXX"; then
4165
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4167
# Extract the first word of "$ac_prog", so it can be a program name with args.
4168
set dummy $ac_prog; ac_word=$2
4169
echo "$as_me:$LINENO: checking for $ac_word" >&5
4170
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4172
echo $ECHO_N "(cached) $ECHO_C" >&6
4174
if test -n "$ac_ct_CXX"; then
4175
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181
test -z "$as_dir" && as_dir=.
4182
for ac_exec_ext in '' $ac_executable_extensions; do
4183
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184
ac_cv_prog_ac_ct_CXX="$ac_prog"
4185
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4194
if test -n "$ac_ct_CXX"; then
4195
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4196
echo "${ECHO_T}$ac_ct_CXX" >&6
4198
echo "$as_me:$LINENO: result: no" >&5
4199
echo "${ECHO_T}no" >&6
4202
test -n "$ac_ct_CXX" && break
4204
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4210
# Provide some information about the compiler.
4211
echo "$as_me:$LINENO:" \
4212
"checking for C++ compiler version" >&5
4213
ac_compiler=`set X $ac_compile; echo $2`
4214
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4215
(eval $ac_compiler --version </dev/null >&5) 2>&5
4217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218
(exit $ac_status); }
4219
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4220
(eval $ac_compiler -v </dev/null >&5) 2>&5
4222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223
(exit $ac_status); }
4224
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4225
(eval $ac_compiler -V </dev/null >&5) 2>&5
4227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228
(exit $ac_status); }
4230
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4231
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4232
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4233
echo $ECHO_N "(cached) $ECHO_C" >&6
4235
cat >conftest.$ac_ext <<_ACEOF
4238
cat confdefs.h >>conftest.$ac_ext
4239
cat >>conftest.$ac_ext <<_ACEOF
4240
/* end confdefs.h. */
4253
rm -f conftest.$ac_objext
4254
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4255
(eval $ac_compile) 2>conftest.er1
4257
grep -v '^ *+' conftest.er1 >conftest.err
4259
cat conftest.err >&5
4260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
(exit $ac_status); } &&
4262
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
(exit $ac_status); }; } &&
4268
{ ac_try='test -s conftest.$ac_objext'
4269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273
(exit $ac_status); }; }; then
4276
echo "$as_me: failed program was:" >&5
4277
sed 's/^/| /' conftest.$ac_ext >&5
4281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4282
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4285
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4286
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4287
GXX=`test $ac_compiler_gnu = yes && echo yes`
4288
ac_test_CXXFLAGS=${CXXFLAGS+set}
4289
ac_save_CXXFLAGS=$CXXFLAGS
4291
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4292
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4293
if test "${ac_cv_prog_cxx_g+set}" = set; then
4294
echo $ECHO_N "(cached) $ECHO_C" >&6
4296
cat >conftest.$ac_ext <<_ACEOF
4299
cat confdefs.h >>conftest.$ac_ext
4300
cat >>conftest.$ac_ext <<_ACEOF
4301
/* end confdefs.h. */
4311
rm -f conftest.$ac_objext
4312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313
(eval $ac_compile) 2>conftest.er1
4315
grep -v '^ *+' conftest.er1 >conftest.err
4317
cat conftest.err >&5
4318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319
(exit $ac_status); } &&
4320
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325
(exit $ac_status); }; } &&
4326
{ ac_try='test -s conftest.$ac_objext'
4327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331
(exit $ac_status); }; }; then
4332
ac_cv_prog_cxx_g=yes
4334
echo "$as_me: failed program was:" >&5
4335
sed 's/^/| /' conftest.$ac_ext >&5
4339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4341
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4342
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4343
if test "$ac_test_CXXFLAGS" = set; then
4344
CXXFLAGS=$ac_save_CXXFLAGS
4345
elif test $ac_cv_prog_cxx_g = yes; then
4346
if test "$GXX" = yes; then
4352
if test "$GXX" = yes; then
4358
for ac_declaration in \
4360
'extern "C" void std::exit (int) throw (); using std::exit;' \
4361
'extern "C" void std::exit (int); using std::exit;' \
4362
'extern "C" void exit (int) throw ();' \
4363
'extern "C" void exit (int);' \
4366
cat >conftest.$ac_ext <<_ACEOF
4369
cat confdefs.h >>conftest.$ac_ext
4370
cat >>conftest.$ac_ext <<_ACEOF
4371
/* end confdefs.h. */
4382
rm -f conftest.$ac_objext
4383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384
(eval $ac_compile) 2>conftest.er1
4386
grep -v '^ *+' conftest.er1 >conftest.err
4388
cat conftest.err >&5
4389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390
(exit $ac_status); } &&
4391
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4392
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396
(exit $ac_status); }; } &&
4397
{ ac_try='test -s conftest.$ac_objext'
4398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402
(exit $ac_status); }; }; then
4405
echo "$as_me: failed program was:" >&5
4406
sed 's/^/| /' conftest.$ac_ext >&5
4410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4411
cat >conftest.$ac_ext <<_ACEOF
4414
cat confdefs.h >>conftest.$ac_ext
4415
cat >>conftest.$ac_ext <<_ACEOF
4416
/* end confdefs.h. */
4426
rm -f conftest.$ac_objext
4427
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428
(eval $ac_compile) 2>conftest.er1
4430
grep -v '^ *+' conftest.er1 >conftest.err
4432
cat conftest.err >&5
4433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434
(exit $ac_status); } &&
4435
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4436
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440
(exit $ac_status); }; } &&
4441
{ ac_try='test -s conftest.$ac_objext'
4442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446
(exit $ac_status); }; }; then
4449
echo "$as_me: failed program was:" >&5
4450
sed 's/^/| /' conftest.$ac_ext >&5
4453
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4456
if test -n "$ac_declaration"; then
4457
echo '#ifdef __cplusplus' >>confdefs.h
4458
echo $ac_declaration >>confdefs.h
4459
echo '#endif' >>confdefs.h
4463
ac_cpp='$CXXCPP $CPPFLAGS'
4464
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4469
ac_cpp='$CXXCPP $CPPFLAGS'
4470
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4473
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4474
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4475
if test -z "$CXXCPP"; then
4476
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4477
echo $ECHO_N "(cached) $ECHO_C" >&6
4479
# Double quotes because CXXCPP needs to be expanded
4480
for CXXCPP in "$CXX -E" "/lib/cpp"
4483
for ac_cxx_preproc_warn_flag in '' yes
4485
# Use a header file that comes with gcc, so configuring glibc
4486
# with a fresh cross-compiler works.
4487
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4488
# <limits.h> exists even on freestanding compilers.
4489
# On the NeXT, cc -E runs the code through the compiler's parser,
4490
# not just through cpp. "Syntax error" is here to catch this case.
4491
cat >conftest.$ac_ext <<_ACEOF
4494
cat confdefs.h >>conftest.$ac_ext
4495
cat >>conftest.$ac_ext <<_ACEOF
4496
/* end confdefs.h. */
4498
# include <limits.h>
4500
# include <assert.h>
4504
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4505
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4507
grep -v '^ *+' conftest.er1 >conftest.err
4509
cat conftest.err >&5
4510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511
(exit $ac_status); } >/dev/null; then
4512
if test -s conftest.err; then
4513
ac_cpp_err=$ac_cxx_preproc_warn_flag
4514
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4521
if test -z "$ac_cpp_err"; then
4524
echo "$as_me: failed program was:" >&5
4525
sed 's/^/| /' conftest.$ac_ext >&5
4527
# Broken: fails on valid input.
4530
rm -f conftest.err conftest.$ac_ext
4532
# OK, works on sane cases. Now check whether non-existent headers
4533
# can be detected and how.
4534
cat >conftest.$ac_ext <<_ACEOF
4537
cat confdefs.h >>conftest.$ac_ext
4538
cat >>conftest.$ac_ext <<_ACEOF
4539
/* end confdefs.h. */
4540
#include <ac_nonexistent.h>
4542
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4543
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4545
grep -v '^ *+' conftest.er1 >conftest.err
4547
cat conftest.err >&5
4548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
(exit $ac_status); } >/dev/null; then
4550
if test -s conftest.err; then
4551
ac_cpp_err=$ac_cxx_preproc_warn_flag
4552
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4559
if test -z "$ac_cpp_err"; then
4560
# Broken: success on invalid input.
4563
echo "$as_me: failed program was:" >&5
4564
sed 's/^/| /' conftest.$ac_ext >&5
4566
# Passes both tests.
4570
rm -f conftest.err conftest.$ac_ext
4573
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574
rm -f conftest.err conftest.$ac_ext
4575
if $ac_preproc_ok; then
4580
ac_cv_prog_CXXCPP=$CXXCPP
4583
CXXCPP=$ac_cv_prog_CXXCPP
4585
ac_cv_prog_CXXCPP=$CXXCPP
4587
echo "$as_me:$LINENO: result: $CXXCPP" >&5
4588
echo "${ECHO_T}$CXXCPP" >&6
4590
for ac_cxx_preproc_warn_flag in '' yes
4592
# Use a header file that comes with gcc, so configuring glibc
4593
# with a fresh cross-compiler works.
4594
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595
# <limits.h> exists even on freestanding compilers.
4596
# On the NeXT, cc -E runs the code through the compiler's parser,
4597
# not just through cpp. "Syntax error" is here to catch this case.
4598
cat >conftest.$ac_ext <<_ACEOF
4601
cat confdefs.h >>conftest.$ac_ext
4602
cat >>conftest.$ac_ext <<_ACEOF
4603
/* end confdefs.h. */
4605
# include <limits.h>
4607
# include <assert.h>
4611
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4612
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4614
grep -v '^ *+' conftest.er1 >conftest.err
4616
cat conftest.err >&5
4617
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618
(exit $ac_status); } >/dev/null; then
4619
if test -s conftest.err; then
4620
ac_cpp_err=$ac_cxx_preproc_warn_flag
4621
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4628
if test -z "$ac_cpp_err"; then
4631
echo "$as_me: failed program was:" >&5
4632
sed 's/^/| /' conftest.$ac_ext >&5
4634
# Broken: fails on valid input.
4637
rm -f conftest.err conftest.$ac_ext
4639
# OK, works on sane cases. Now check whether non-existent headers
4640
# can be detected and how.
4641
cat >conftest.$ac_ext <<_ACEOF
4644
cat confdefs.h >>conftest.$ac_ext
4645
cat >>conftest.$ac_ext <<_ACEOF
4646
/* end confdefs.h. */
4647
#include <ac_nonexistent.h>
4649
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4652
grep -v '^ *+' conftest.er1 >conftest.err
4654
cat conftest.err >&5
4655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656
(exit $ac_status); } >/dev/null; then
4657
if test -s conftest.err; then
4658
ac_cpp_err=$ac_cxx_preproc_warn_flag
4659
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4666
if test -z "$ac_cpp_err"; then
4667
# Broken: success on invalid input.
4670
echo "$as_me: failed program was:" >&5
4671
sed 's/^/| /' conftest.$ac_ext >&5
4673
# Passes both tests.
4677
rm -f conftest.err conftest.$ac_ext
4680
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4681
rm -f conftest.err conftest.$ac_ext
4682
if $ac_preproc_ok; then
4685
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4686
See \`config.log' for more details." >&5
4687
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4688
See \`config.log' for more details." >&2;}
4689
{ (exit 1); exit 1; }; }
4693
ac_cpp='$CXXCPP $CPPFLAGS'
4694
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4700
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4701
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4703
if test -n "$ac_tool_prefix"; then
4704
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4706
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4707
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4708
echo "$as_me:$LINENO: checking for $ac_word" >&5
4709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710
if test "${ac_cv_prog_F77+set}" = set; then
4711
echo $ECHO_N "(cached) $ECHO_C" >&6
4713
if test -n "$F77"; then
4714
ac_cv_prog_F77="$F77" # Let the user override the test.
4716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720
test -z "$as_dir" && as_dir=.
4721
for ac_exec_ext in '' $ac_executable_extensions; do
4722
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4724
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733
if test -n "$F77"; then
4734
echo "$as_me:$LINENO: result: $F77" >&5
4735
echo "${ECHO_T}$F77" >&6
4737
echo "$as_me:$LINENO: result: no" >&5
4738
echo "${ECHO_T}no" >&6
4741
test -n "$F77" && break
4744
if test -z "$F77"; then
4746
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4748
# Extract the first word of "$ac_prog", so it can be a program name with args.
4749
set dummy $ac_prog; ac_word=$2
4750
echo "$as_me:$LINENO: checking for $ac_word" >&5
4751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4753
echo $ECHO_N "(cached) $ECHO_C" >&6
4755
if test -n "$ac_ct_F77"; then
4756
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762
test -z "$as_dir" && as_dir=.
4763
for ac_exec_ext in '' $ac_executable_extensions; do
4764
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765
ac_cv_prog_ac_ct_F77="$ac_prog"
4766
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774
ac_ct_F77=$ac_cv_prog_ac_ct_F77
4775
if test -n "$ac_ct_F77"; then
4776
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4777
echo "${ECHO_T}$ac_ct_F77" >&6
4779
echo "$as_me:$LINENO: result: no" >&5
4780
echo "${ECHO_T}no" >&6
4783
test -n "$ac_ct_F77" && break
4790
# Provide some information about the compiler.
4791
echo "$as_me:4791:" \
4792
"checking for Fortran 77 compiler version" >&5
4793
ac_compiler=`set X $ac_compile; echo $2`
4794
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4795
(eval $ac_compiler --version </dev/null >&5) 2>&5
4797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798
(exit $ac_status); }
4799
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4800
(eval $ac_compiler -v </dev/null >&5) 2>&5
4802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803
(exit $ac_status); }
4804
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4805
(eval $ac_compiler -V </dev/null >&5) 2>&5
4807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808
(exit $ac_status); }
4811
# If we don't use `.F' as extension, the preprocessor is not run on the
4812
# input file. (Note that this only needs to work for GNU compilers.)
4815
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4816
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4817
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4818
echo $ECHO_N "(cached) $ECHO_C" >&6
4820
cat >conftest.$ac_ext <<_ACEOF
4828
rm -f conftest.$ac_objext
4829
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830
(eval $ac_compile) 2>conftest.er1
4832
grep -v '^ *+' conftest.er1 >conftest.err
4834
cat conftest.err >&5
4835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836
(exit $ac_status); } &&
4837
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4838
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842
(exit $ac_status); }; } &&
4843
{ ac_try='test -s conftest.$ac_objext'
4844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848
(exit $ac_status); }; }; then
4851
echo "$as_me: failed program was:" >&5
4852
sed 's/^/| /' conftest.$ac_ext >&5
4856
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4860
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4861
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4863
ac_test_FFLAGS=${FFLAGS+set}
4864
ac_save_FFLAGS=$FFLAGS
4866
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4867
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4868
if test "${ac_cv_prog_f77_g+set}" = set; then
4869
echo $ECHO_N "(cached) $ECHO_C" >&6
4872
cat >conftest.$ac_ext <<_ACEOF
4877
rm -f conftest.$ac_objext
4878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879
(eval $ac_compile) 2>conftest.er1
4881
grep -v '^ *+' conftest.er1 >conftest.err
4883
cat conftest.err >&5
4884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885
(exit $ac_status); } &&
4886
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891
(exit $ac_status); }; } &&
4892
{ ac_try='test -s conftest.$ac_objext'
4893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897
(exit $ac_status); }; }; then
4898
ac_cv_prog_f77_g=yes
4900
echo "$as_me: failed program was:" >&5
4901
sed 's/^/| /' conftest.$ac_ext >&5
4905
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4908
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4909
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4910
if test "$ac_test_FFLAGS" = set; then
4911
FFLAGS=$ac_save_FFLAGS
4912
elif test $ac_cv_prog_f77_g = yes; then
4913
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4919
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4926
G77=`test $ac_compiler_gnu = yes && echo yes`
4928
ac_cpp='$CPP $CPPFLAGS'
4929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4935
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4937
# find the maximum length of command line arguments
4938
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4939
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4940
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4941
echo $ECHO_N "(cached) $ECHO_C" >&6
4948
# On DJGPP, this test can blow up pretty badly due to problems in libc
4949
# (any single argument exceeding 2000 bytes causes a buffer overrun
4950
# during glob expansion). Even if it were fixed, the result of this
4951
# check would be larger than it should be.
4952
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4956
# Under GNU Hurd, this test is not required because there is
4957
# no limit to the length of command line arguments.
4958
# Libtool will interpret -1 as no limit whatsoever
4959
lt_cv_sys_max_cmd_len=-1;
4963
# On Win9x/ME, this test blows up -- it succeeds, but takes
4964
# about 5 minutes as the teststring grows exponentially.
4965
# Worse, since 9x/ME are not pre-emptively multitasking,
4966
# you end up with a "frozen" computer, even though with patience
4967
# the test eventually succeeds (with a max line length of 256k).
4968
# Instead, let's just punt: use the minimum linelength reported by
4969
# all of the supported platforms: 8192 (on NT/2K/XP).
4970
lt_cv_sys_max_cmd_len=8192;
4974
# On AmigaOS with pdksh, this test takes hours, literally.
4975
# So we just punt and use a minimum line length of 8192.
4976
lt_cv_sys_max_cmd_len=8192;
4980
# If test is not a shell built-in, we'll probably end up computing a
4981
# maximum length that is only half of the actual maximum length, but
4983
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4984
= "XX$teststring") >/dev/null 2>&1 &&
4985
new_result=`expr "X$teststring" : ".*" 2>&1` &&
4986
lt_cv_sys_max_cmd_len=$new_result &&
4987
test $i != 17 # 1/2 MB should be enough
4990
teststring=$teststring$teststring
4993
# Add a significant safety factor because C++ compilers can tack on massive
4994
# amounts of additional arguments before passing them to the linker.
4995
# It appears as though 1/2 is a usable value.
4996
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5002
if test -n $lt_cv_sys_max_cmd_len ; then
5003
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5004
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5006
echo "$as_me:$LINENO: result: none" >&5
5007
echo "${ECHO_T}none" >&6
5013
# Check for command to grab the raw symbol name followed by C symbol from nm.
5014
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5015
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5016
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5017
echo $ECHO_N "(cached) $ECHO_C" >&6
5020
# These are sane defaults that work on at least a few old systems.
5021
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5023
# Character class describing NM global symbol codes.
5024
symcode='[BCDEGRST]'
5026
# Regexp to match symbols that can be accessed directly from C.
5027
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5029
# Transform the above into a raw symbol and a C symbol.
5030
symxfrm='\1 \2\3 \3'
5032
# Transform an extracted symbol line into a proper C declaration
5033
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5035
# Transform an extracted symbol line into symbol name and symbol address
5036
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'"
5038
# Define system-specific variables.
5043
cygwin* | mingw* | pw32*)
5044
symcode='[ABCDGISTW]'
5046
hpux*) # Its linker distinguishes data from code symbols
5047
if test "$host_cpu" = ia64; then
5048
symcode='[ABCDEGRST]'
5050
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5051
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'"
5054
symcode='[BCDEGRST]'
5057
symcode='[BCDEGQRST]'
5067
# Handle CRLF in mingw tool chain
5071
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5075
# If we're using GNU nm, then use its standard symbol codes.
5076
case `$NM -V 2>&1` in
5077
*GNU* | *'with BFD'*)
5078
symcode='[ABCDGIRSTW]' ;;
5081
# Try without a prefix undercore, then with it.
5082
for ac_symprfx in "" "_"; do
5084
# Write the raw and C identifiers.
5085
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5087
# Check to see that the pipe works correctly.
5091
cat > conftest.$ac_ext <<EOF
5096
void nm_test_func(){}
5100
int main(){nm_test_var='a';nm_test_func();return(0);}
5103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104
(eval $ac_compile) 2>&5
5106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107
(exit $ac_status); }; then
5108
# Now try to grab the symbols.
5110
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5111
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114
(exit $ac_status); } && test -s "$nlist"; then
5115
# Try sorting and uniquifying the output.
5116
if sort "$nlist" | uniq > "$nlist"T; then
5117
mv -f "$nlist"T "$nlist"
5122
# Make sure that we snagged all the symbols we need.
5123
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5124
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5125
cat <<EOF > conftest.$ac_ext
5131
# Now generate the symbol file.
5132
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5134
cat <<EOF >> conftest.$ac_ext
5135
#if defined (__STDC__) && __STDC__
5136
# define lt_ptr_t void *
5138
# define lt_ptr_t char *
5142
/* The mapping between symbol names and symbols. */
5147
lt_preloaded_symbols[] =
5150
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5151
cat <<\EOF >> conftest.$ac_ext
5159
# Now try linking the two files.
5160
mv conftest.$ac_objext conftstm.$ac_objext
5161
lt_save_LIBS="$LIBS"
5162
lt_save_CFLAGS="$CFLAGS"
5163
LIBS="conftstm.$ac_objext"
5164
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5166
(eval $ac_link) 2>&5
5168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5172
LIBS="$lt_save_LIBS"
5173
CFLAGS="$lt_save_CFLAGS"
5175
echo "cannot find nm_test_func in $nlist" >&5
5178
echo "cannot find nm_test_var in $nlist" >&5
5181
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5184
echo "$progname: failed program was:" >&5
5185
cat conftest.$ac_ext >&5
5187
rm -f conftest* conftst*
5189
# Do not use the global_symbol_pipe unless it works.
5190
if test "$pipe_works" = yes; then
5193
lt_cv_sys_global_symbol_pipe=
5199
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5200
lt_cv_sys_global_symbol_to_cdecl=
5202
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5203
echo "$as_me:$LINENO: result: failed" >&5
5204
echo "${ECHO_T}failed" >&6
5206
echo "$as_me:$LINENO: result: ok" >&5
5207
echo "${ECHO_T}ok" >&6
5210
echo "$as_me:$LINENO: checking for objdir" >&5
5211
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5212
if test "${lt_cv_objdir+set}" = set; then
5213
echo $ECHO_N "(cached) $ECHO_C" >&6
5215
rm -f .libs 2>/dev/null
5216
mkdir .libs 2>/dev/null
5217
if test -d .libs; then
5220
# MS-DOS does not allow filenames that begin with a dot.
5223
rmdir .libs 2>/dev/null
5225
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5226
echo "${ECHO_T}$lt_cv_objdir" >&6
5227
objdir=$lt_cv_objdir
5235
# AIX sometimes has problems with the GCC collect2 program. For some
5236
# reason, if we set the COLLECT_NAMES environment variable, the problems
5237
# vanish in a puff of smoke.
5238
if test "X${COLLECT_NAMES+set}" != Xset; then
5240
export COLLECT_NAMES
5245
# Sed substitution that helps us do robust quoting. It backslashifies
5246
# metacharacters that are still active within double-quoted strings.
5247
Xsed='sed -e s/^X//'
5248
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5250
# Same as above, but do not quote variable references.
5251
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5253
# Sed substitution to delay expansion of an escaped shell variable in a
5254
# double_quote_subst'ed string.
5255
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5257
# Sed substitution to avoid accidental globbing in evaled expressions
5258
no_glob_subst='s/\*/\\\*/g'
5264
default_ofile=libtool
5265
can_build_shared=yes
5267
# All known linkers require a `.a' archive for static linking (except M$VC,
5268
# which needs '.lib').
5270
ltmain="$ac_aux_dir/ltmain.sh"
5271
ofile="$default_ofile"
5272
with_gnu_ld="$lt_cv_prog_gnu_ld"
5274
if test -n "$ac_tool_prefix"; then
5275
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5276
set dummy ${ac_tool_prefix}ar; ac_word=$2
5277
echo "$as_me:$LINENO: checking for $ac_word" >&5
5278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5279
if test "${ac_cv_prog_AR+set}" = set; then
5280
echo $ECHO_N "(cached) $ECHO_C" >&6
5282
if test -n "$AR"; then
5283
ac_cv_prog_AR="$AR" # Let the user override the test.
5285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289
test -z "$as_dir" && as_dir=.
5290
for ac_exec_ext in '' $ac_executable_extensions; do
5291
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292
ac_cv_prog_AR="${ac_tool_prefix}ar"
5293
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302
if test -n "$AR"; then
5303
echo "$as_me:$LINENO: result: $AR" >&5
5304
echo "${ECHO_T}$AR" >&6
5306
echo "$as_me:$LINENO: result: no" >&5
5307
echo "${ECHO_T}no" >&6
5311
if test -z "$ac_cv_prog_AR"; then
5313
# Extract the first word of "ar", so it can be a program name with args.
5314
set dummy ar; ac_word=$2
5315
echo "$as_me:$LINENO: checking for $ac_word" >&5
5316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5317
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5318
echo $ECHO_N "(cached) $ECHO_C" >&6
5320
if test -n "$ac_ct_AR"; then
5321
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327
test -z "$as_dir" && as_dir=.
5328
for ac_exec_ext in '' $ac_executable_extensions; do
5329
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330
ac_cv_prog_ac_ct_AR="ar"
5331
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5340
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5341
if test -n "$ac_ct_AR"; then
5342
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5343
echo "${ECHO_T}$ac_ct_AR" >&6
5345
echo "$as_me:$LINENO: result: no" >&5
5346
echo "${ECHO_T}no" >&6
5354
if test -n "$ac_tool_prefix"; then
5355
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5356
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5357
echo "$as_me:$LINENO: checking for $ac_word" >&5
5358
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359
if test "${ac_cv_prog_RANLIB+set}" = set; then
5360
echo $ECHO_N "(cached) $ECHO_C" >&6
5362
if test -n "$RANLIB"; then
5363
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369
test -z "$as_dir" && as_dir=.
5370
for ac_exec_ext in '' $ac_executable_extensions; do
5371
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5373
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381
RANLIB=$ac_cv_prog_RANLIB
5382
if test -n "$RANLIB"; then
5383
echo "$as_me:$LINENO: result: $RANLIB" >&5
5384
echo "${ECHO_T}$RANLIB" >&6
5386
echo "$as_me:$LINENO: result: no" >&5
5387
echo "${ECHO_T}no" >&6
5391
if test -z "$ac_cv_prog_RANLIB"; then
5392
ac_ct_RANLIB=$RANLIB
5393
# Extract the first word of "ranlib", so it can be a program name with args.
5394
set dummy ranlib; ac_word=$2
5395
echo "$as_me:$LINENO: checking for $ac_word" >&5
5396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5397
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5398
echo $ECHO_N "(cached) $ECHO_C" >&6
5400
if test -n "$ac_ct_RANLIB"; then
5401
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407
test -z "$as_dir" && as_dir=.
5408
for ac_exec_ext in '' $ac_executable_extensions; do
5409
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410
ac_cv_prog_ac_ct_RANLIB="ranlib"
5411
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5420
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5421
if test -n "$ac_ct_RANLIB"; then
5422
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5423
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5425
echo "$as_me:$LINENO: result: no" >&5
5426
echo "${ECHO_T}no" >&6
5429
RANLIB=$ac_ct_RANLIB
5431
RANLIB="$ac_cv_prog_RANLIB"
5434
if test -n "$ac_tool_prefix"; then
5435
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5436
set dummy ${ac_tool_prefix}strip; ac_word=$2
5437
echo "$as_me:$LINENO: checking for $ac_word" >&5
5438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5439
if test "${ac_cv_prog_STRIP+set}" = set; then
5440
echo $ECHO_N "(cached) $ECHO_C" >&6
5442
if test -n "$STRIP"; then
5443
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449
test -z "$as_dir" && as_dir=.
5450
for ac_exec_ext in '' $ac_executable_extensions; do
5451
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5453
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5461
STRIP=$ac_cv_prog_STRIP
5462
if test -n "$STRIP"; then
5463
echo "$as_me:$LINENO: result: $STRIP" >&5
5464
echo "${ECHO_T}$STRIP" >&6
5466
echo "$as_me:$LINENO: result: no" >&5
5467
echo "${ECHO_T}no" >&6
5471
if test -z "$ac_cv_prog_STRIP"; then
5473
# Extract the first word of "strip", so it can be a program name with args.
5474
set dummy strip; ac_word=$2
5475
echo "$as_me:$LINENO: checking for $ac_word" >&5
5476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5477
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5478
echo $ECHO_N "(cached) $ECHO_C" >&6
5480
if test -n "$ac_ct_STRIP"; then
5481
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487
test -z "$as_dir" && as_dir=.
5488
for ac_exec_ext in '' $ac_executable_extensions; do
5489
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490
ac_cv_prog_ac_ct_STRIP="strip"
5491
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5500
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5501
if test -n "$ac_ct_STRIP"; then
5502
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5503
echo "${ECHO_T}$ac_ct_STRIP" >&6
5505
echo "$as_me:$LINENO: result: no" >&5
5506
echo "${ECHO_T}no" >&6
5511
STRIP="$ac_cv_prog_STRIP"
5516
old_CFLAGS="$CFLAGS"
5518
# Set sane defaults for various variables
5519
test -z "$AR" && AR=ar
5520
test -z "$AR_FLAGS" && AR_FLAGS=cru
5521
test -z "$AS" && AS=as
5522
test -z "$CC" && CC=cc
5523
test -z "$LTCC" && LTCC=$CC
5524
test -z "$DLLTOOL" && DLLTOOL=dlltool
5525
test -z "$LD" && LD=ld
5526
test -z "$LN_S" && LN_S="ln -s"
5527
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5528
test -z "$NM" && NM=nm
5529
test -z "$SED" && SED=sed
5530
test -z "$OBJDUMP" && OBJDUMP=objdump
5531
test -z "$RANLIB" && RANLIB=:
5532
test -z "$STRIP" && STRIP=:
5533
test -z "$ac_objext" && ac_objext=o
5535
# Determine commands to create old-style static archives.
5536
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5537
old_postinstall_cmds='chmod 644 $oldlib'
5538
old_postuninstall_cmds=
5540
if test -n "$RANLIB"; then
5543
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5546
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5549
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5552
# Only perform the check for file, if the check method requires it
5553
case $deplibs_check_method in
5555
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5556
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5557
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5558
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5559
echo $ECHO_N "(cached) $ECHO_C" >&6
5563
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5566
lt_save_MAGIC_CMD="$MAGIC_CMD"
5567
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5568
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5569
for ac_dir in $ac_dummy; do
5571
test -z "$ac_dir" && ac_dir=.
5572
if test -f $ac_dir/${ac_tool_prefix}file; then
5573
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5574
if test -n "$file_magic_test_file"; then
5575
case $deplibs_check_method in
5577
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5578
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5579
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5580
$EGREP "$file_magic_regex" > /dev/null; then
5585
*** Warning: the command libtool uses to detect shared libraries,
5586
*** $file_magic_cmd, produces output that libtool cannot recognize.
5587
*** The result is that libtool may fail to recognize shared libraries
5588
*** as such. This will affect the creation of libtool libraries that
5589
*** depend on shared libraries, but programs linked with such libtool
5590
*** libraries will work regardless of this problem. Nevertheless, you
5591
*** may want to report the problem to your system manager and/or to
5592
*** bug-libtool@gnu.org
5602
MAGIC_CMD="$lt_save_MAGIC_CMD"
5607
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5608
if test -n "$MAGIC_CMD"; then
5609
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5610
echo "${ECHO_T}$MAGIC_CMD" >&6
5612
echo "$as_me:$LINENO: result: no" >&5
5613
echo "${ECHO_T}no" >&6
5616
if test -z "$lt_cv_path_MAGIC_CMD"; then
5617
if test -n "$ac_tool_prefix"; then
5618
echo "$as_me:$LINENO: checking for file" >&5
5619
echo $ECHO_N "checking for file... $ECHO_C" >&6
5620
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5621
echo $ECHO_N "(cached) $ECHO_C" >&6
5625
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5628
lt_save_MAGIC_CMD="$MAGIC_CMD"
5629
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5630
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5631
for ac_dir in $ac_dummy; do
5633
test -z "$ac_dir" && ac_dir=.
5634
if test -f $ac_dir/file; then
5635
lt_cv_path_MAGIC_CMD="$ac_dir/file"
5636
if test -n "$file_magic_test_file"; then
5637
case $deplibs_check_method in
5639
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5640
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5641
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5642
$EGREP "$file_magic_regex" > /dev/null; then
5647
*** Warning: the command libtool uses to detect shared libraries,
5648
*** $file_magic_cmd, produces output that libtool cannot recognize.
5649
*** The result is that libtool may fail to recognize shared libraries
5650
*** as such. This will affect the creation of libtool libraries that
5651
*** depend on shared libraries, but programs linked with such libtool
5652
*** libraries will work regardless of this problem. Nevertheless, you
5653
*** may want to report the problem to your system manager and/or to
5654
*** bug-libtool@gnu.org
5664
MAGIC_CMD="$lt_save_MAGIC_CMD"
5669
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5670
if test -n "$MAGIC_CMD"; then
5671
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5672
echo "${ECHO_T}$MAGIC_CMD" >&6
5674
echo "$as_me:$LINENO: result: no" >&5
5675
echo "${ECHO_T}no" >&6
5690
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5691
if test "${enable_libtool_lock+set}" = set; then
5692
enableval="$enable_libtool_lock"
5695
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5698
# Check whether --with-pic or --without-pic was given.
5699
if test "${with_pic+set}" = set; then
5705
test -z "$pic_mode" && pic_mode=default
5707
# Use C for the default configuration in the libtool script
5711
ac_cpp='$CPP $CPPFLAGS'
5712
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717
# Source file extension for C test sources.
5720
# Object file extension for compiled C test sources.
5724
# Code to be used in simple compile tests
5725
lt_simple_compile_test_code="int some_variable = 0;\n"
5727
# Code to be used in simple link tests
5728
lt_simple_link_test_code='int main(){return(0);}\n'
5731
# If no C compiler was specified, use CC.
5734
# Allow CC to be a program name with arguments.
5739
# Check for any special shared library compilation flags.
5742
if test "$GCC" = no; then
5745
lt_prog_cc_shlib='-belf'
5749
if test -n "$lt_prog_cc_shlib"; then
5750
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5751
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5752
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5754
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5755
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5756
lt_cv_prog_cc_can_build_shared=no
5762
# Check to make sure the static flag actually works.
5764
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5765
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5766
if test "${lt_prog_compiler_static_works+set}" = set; then
5767
echo $ECHO_N "(cached) $ECHO_C" >&6
5769
lt_prog_compiler_static_works=no
5770
save_LDFLAGS="$LDFLAGS"
5771
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5772
printf "$lt_simple_link_test_code" > conftest.$ac_ext
5773
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5774
# The compiler can only warn and ignore the option if not recognized
5775
# So say no if there are warnings
5776
if test -s conftest.err; then
5777
# Append any errors to the config.log.
5778
cat conftest.err 1>&5
5780
lt_prog_compiler_static_works=yes
5784
LDFLAGS="$save_LDFLAGS"
5787
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5788
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5790
if test x"$lt_prog_compiler_static_works" = xyes; then
5793
lt_prog_compiler_static=
5799
lt_prog_compiler_no_builtin_flag=
5801
if test "$GCC" = yes; then
5802
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5805
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5806
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5807
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5808
echo $ECHO_N "(cached) $ECHO_C" >&6
5810
lt_cv_prog_compiler_rtti_exceptions=no
5811
ac_outfile=conftest.$ac_objext
5812
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5813
lt_compiler_flag="-fno-rtti -fno-exceptions"
5814
# Insert the option either (1) after the last *FLAGS variable, or
5815
# (2) before a word containing "conftest.", or (3) at the end.
5816
# Note that $ac_compile itself does not contain backslashes and begins
5817
# with a dollar sign (not a hyphen), so the echo should work correctly.
5818
# The option is referenced via a variable to avoid confusing sed.
5819
lt_compile=`echo "$ac_compile" | $SED \
5820
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5821
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5822
-e 's:$: $lt_compiler_flag:'`
5823
(eval echo "\"\$as_me:5823: $lt_compile\"" >&5)
5824
(eval "$lt_compile" 2>conftest.err)
5826
cat conftest.err >&5
5827
echo "$as_me:5827: \$? = $ac_status" >&5
5828
if (exit $ac_status) && test -s "$ac_outfile"; then
5829
# The compiler can only warn and ignore the option if not recognized
5830
# So say no if there are warnings
5831
if test ! -s conftest.err; then
5832
lt_cv_prog_compiler_rtti_exceptions=yes
5838
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5839
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5841
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5842
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5849
lt_prog_compiler_wl=
5850
lt_prog_compiler_pic=
5851
lt_prog_compiler_static=
5853
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5854
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5856
if test "$GCC" = yes; then
5857
lt_prog_compiler_wl='-Wl,'
5858
lt_prog_compiler_static='-static'
5862
# All AIX code is PIC.
5863
if test "$host_cpu" = ia64; then
5864
# AIX 5 now supports IA64 processor
5865
lt_prog_compiler_static='-Bstatic'
5870
# FIXME: we need at least 68020 code to build shared libraries, but
5871
# adding the `-m68020' flag to GCC prevents building anything better,
5873
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5876
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5877
# PIC is the default for these OSes.
5880
mingw* | pw32* | os2*)
5881
# This hack is so that the source file can tell whether it is being
5882
# built for inclusion in a dll (and should export symbols for example).
5883
lt_prog_compiler_pic='-DDLL_EXPORT'
5886
darwin* | rhapsody*)
5887
# PIC is the default on this platform
5888
# Common symbols not allowed in MH_DYLIB files
5889
lt_prog_compiler_pic='-fno-common'
5893
# Just because we use GCC doesn't mean we suddenly get shared libraries
5894
# on systems that don't support them.
5895
lt_prog_compiler_can_build_shared=no
5900
if test -d /usr/nec; then
5901
lt_prog_compiler_pic=-Kconform_pic
5906
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5913
lt_prog_compiler_pic='-fPIC'
5919
lt_prog_compiler_pic='-fPIC'
5923
# PORTME Check for flag to pass linker flags through the system compiler.
5926
lt_prog_compiler_wl='-Wl,'
5927
if test "$host_cpu" = ia64; then
5928
# AIX 5 now supports IA64 processor
5929
lt_prog_compiler_static='-Bstatic'
5931
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5935
mingw* | pw32* | os2*)
5936
# This hack is so that the source file can tell whether it is being
5937
# built for inclusion in a dll (and should export symbols for example).
5938
lt_prog_compiler_pic='-DDLL_EXPORT'
5941
hpux9* | hpux10* | hpux11*)
5942
lt_prog_compiler_wl='-Wl,'
5943
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5950
lt_prog_compiler_pic='+Z'
5953
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5954
lt_prog_compiler_static='${wl}-a ${wl}archive'
5957
irix5* | irix6* | nonstopux*)
5958
lt_prog_compiler_wl='-Wl,'
5959
# PIC (with -KPIC) is the default.
5960
lt_prog_compiler_static='-non_shared'
5964
lt_prog_compiler_pic='-KPIC'
5965
lt_prog_compiler_static='-Bstatic'
5971
lt_prog_compiler_wl='-Wl,'
5972
lt_prog_compiler_pic='-KPIC'
5973
lt_prog_compiler_static='-static'
5976
lt_prog_compiler_wl='-Wl,'
5977
# All Alpha code is PIC.
5978
lt_prog_compiler_static='-non_shared'
5983
osf3* | osf4* | osf5*)
5984
lt_prog_compiler_wl='-Wl,'
5985
# All OSF/1 code is PIC.
5986
lt_prog_compiler_static='-non_shared'
5990
lt_prog_compiler_pic='-Kpic'
5991
lt_prog_compiler_static='-dn'
5995
lt_prog_compiler_wl='-Wl,'
5996
lt_prog_compiler_pic='-KPIC'
5997
lt_prog_compiler_static='-Bstatic'
6001
lt_prog_compiler_wl='-Qoption ld '
6002
lt_prog_compiler_pic='-PIC'
6003
lt_prog_compiler_static='-Bstatic'
6006
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6007
lt_prog_compiler_wl='-Wl,'
6008
lt_prog_compiler_pic='-KPIC'
6009
lt_prog_compiler_static='-Bstatic'
6013
if test -d /usr/nec ;then
6014
lt_prog_compiler_pic='-Kconform_pic'
6015
lt_prog_compiler_static='-Bstatic'
6020
lt_prog_compiler_pic='-pic'
6021
lt_prog_compiler_static='-Bstatic'
6025
lt_prog_compiler_can_build_shared=no
6030
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6031
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6034
# Check to make sure the PIC flag actually works.
6036
if test -n "$lt_prog_compiler_pic"; then
6038
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6039
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6040
if test "${lt_prog_compiler_pic_works+set}" = set; then
6041
echo $ECHO_N "(cached) $ECHO_C" >&6
6043
lt_prog_compiler_pic_works=no
6044
ac_outfile=conftest.$ac_objext
6045
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6046
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6047
# Insert the option either (1) after the last *FLAGS variable, or
6048
# (2) before a word containing "conftest.", or (3) at the end.
6049
# Note that $ac_compile itself does not contain backslashes and begins
6050
# with a dollar sign (not a hyphen), so the echo should work correctly.
6051
# The option is referenced via a variable to avoid confusing sed.
6052
lt_compile=`echo "$ac_compile" | $SED \
6053
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6054
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6055
-e 's:$: $lt_compiler_flag:'`
6056
(eval echo "\"\$as_me:6056: $lt_compile\"" >&5)
6057
(eval "$lt_compile" 2>conftest.err)
6059
cat conftest.err >&5
6060
echo "$as_me:6060: \$? = $ac_status" >&5
6061
if (exit $ac_status) && test -s "$ac_outfile"; then
6062
# The compiler can only warn and ignore the option if not recognized
6063
# So say no if there are warnings
6064
if test ! -s conftest.err; then
6065
lt_prog_compiler_pic_works=yes
6071
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6072
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6074
if test x"$lt_prog_compiler_pic_works" = xyes; then
6075
case $lt_prog_compiler_pic in
6077
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6080
lt_prog_compiler_pic=
6081
lt_prog_compiler_can_build_shared=no
6086
# For platforms which do not support PIC, -DPIC is meaningless:
6088
lt_prog_compiler_pic=
6091
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6095
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6096
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6097
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6098
echo $ECHO_N "(cached) $ECHO_C" >&6
6100
lt_cv_prog_compiler_c_o=no
6101
$rm -r conftest 2>/dev/null
6105
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107
lt_compiler_flag="-o out/conftest2.$ac_objext"
6108
# Insert the option either (1) after the last *FLAGS variable, or
6109
# (2) before a word containing "conftest.", or (3) at the end.
6110
# Note that $ac_compile itself does not contain backslashes and begins
6111
# with a dollar sign (not a hyphen), so the echo should work correctly.
6112
lt_compile=`echo "$ac_compile" | $SED \
6113
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6114
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6115
-e 's:$: $lt_compiler_flag:'`
6116
(eval echo "\"\$as_me:6116: $lt_compile\"" >&5)
6117
(eval "$lt_compile" 2>out/conftest.err)
6119
cat out/conftest.err >&5
6120
echo "$as_me:6120: \$? = $ac_status" >&5
6121
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6123
# The compiler can only warn and ignore the option if not recognized
6124
# So say no if there are warnings
6125
if test ! -s out/conftest.err; then
6126
lt_cv_prog_compiler_c_o=yes
6131
# SGI C++ compiler will create directory out/ii_files/ for
6132
# template instantiation
6133
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6134
$rm out/* && rmdir out
6140
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6141
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6144
hard_links="nottested"
6145
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6146
# do not overwrite the value of need_locks provided by the user
6147
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6148
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6151
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6153
ln conftest.a conftest.b 2>&5 || hard_links=no
6154
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6155
echo "$as_me:$LINENO: result: $hard_links" >&5
6156
echo "${ECHO_T}$hard_links" >&6
6157
if test "$hard_links" = no; then
6158
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6159
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6166
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6167
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6170
allow_undefined_flag=
6171
enable_shared_with_static_runtimes=no
6173
archive_expsym_cmds=
6174
old_archive_From_new_cmds=
6175
old_archive_from_expsyms_cmds=
6176
export_dynamic_flag_spec=
6177
whole_archive_flag_spec=
6178
thread_safe_flag_spec=
6179
hardcode_libdir_flag_spec=
6180
hardcode_libdir_flag_spec_ld=
6181
hardcode_libdir_separator=
6184
hardcode_shlibpath_var=unsupported
6185
link_all_deplibs=unknown
6186
hardcode_automatic=no
6189
always_export_symbols=no
6190
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6191
# include_expsyms should be a list of space-separated symbols to be *always*
6192
# included in the symbol list
6194
# exclude_expsyms can be an extended regexp of symbols to exclude
6195
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6196
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6197
# as well as any symbol that contains `d'.
6198
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6199
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6200
# platforms (ab)use it in PIC code, but their linkers get confused if
6201
# the symbol is explicitly referenced. Since portable code cannot
6202
# rely on this symbol name, it's probably fine to never include it in
6203
# preloaded symbol tables.
6204
extract_expsyms_cmds=
6207
cygwin* | mingw* | pw32*)
6208
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6209
# When not using gcc, we currently assume that we are using
6210
# Microsoft Visual C++.
6211
if test "$GCC" != yes; then
6221
if test "$with_gnu_ld" = yes; then
6222
# If archive_cmds runs LD, not CC, wlarc should be empty
6225
# See if GNU ld supports shared libraries.
6227
aix3* | aix4* | aix5*)
6228
# On AIX/PPC, the GNU linker is very broken
6229
if test "$host_cpu" != ia64; then
6233
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6234
*** to be unable to reliably create shared libraries on AIX.
6235
*** Therefore, libtool is disabling shared libraries support. If you
6236
*** really care for shared libraries, you may want to modify your PATH
6237
*** so that a non-GNU linker is found, and then restart.
6244
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)'
6245
hardcode_libdir_flag_spec='-L$libdir'
6246
hardcode_minus_L=yes
6248
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6249
# that the semantics of dynamic libraries on AmigaOS, at least up
6250
# to version 4, is to share data among multiple programs linked
6251
# with the same dynamic library. Since this doesn't match the
6252
# behavior of shared libraries on other platforms, we can't use
6258
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6259
allow_undefined_flag=unsupported
6260
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6261
# support --undefined. This deserves some investigation. FIXME
6262
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6268
cygwin* | mingw* | pw32*)
6269
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6270
# as there is no search path for DLLs.
6271
hardcode_libdir_flag_spec='-L$libdir'
6272
allow_undefined_flag=unsupported
6273
always_export_symbols=no
6274
enable_shared_with_static_runtimes=yes
6275
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6277
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6278
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6279
# If the export-symbols file already is a .def file (1st line
6280
# is EXPORTS), use it as is; otherwise, prepend...
6281
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6282
cp $export_symbols $output_objdir/$soname.def;
6284
echo EXPORTS > $output_objdir/$soname.def;
6285
cat $export_symbols >> $output_objdir/$soname.def;
6287
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6293
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6294
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6295
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6298
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6299
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6304
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6308
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6309
*** create shared libraries on Solaris systems. Therefore, libtool
6310
*** is disabling shared libraries support. We urge you to upgrade GNU
6311
*** binutils to release 2.9.1 or newer. Another option is to modify
6312
*** your PATH or compiler configuration so that the native linker is
6313
*** used, and then restart.
6316
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6317
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6318
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6325
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6328
hardcode_shlibpath_var=no
6332
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6333
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6334
archive_cmds="$tmp_archive_cmds"
6335
supports_anon_versioning=no
6336
case `$LD -v 2>/dev/null` in
6337
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6338
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6339
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6340
*\ 2.11.*) ;; # other 2.11 versions
6341
*) supports_anon_versioning=yes ;;
6343
if test $supports_anon_versioning = yes; then
6344
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6345
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6346
$echo "local: *; };" >> $output_objdir/$libname.ver~
6347
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6349
archive_expsym_cmds="$tmp_archive_cmds"
6358
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6359
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6360
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6367
if test "$ld_shlibs" = yes; then
6368
runpath_var=LD_RUN_PATH
6369
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6370
export_dynamic_flag_spec='${wl}--export-dynamic'
6371
# ancient GNU ld didn't support --whole-archive et. al.
6372
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6373
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6375
whole_archive_flag_spec=
6379
# PORTME fill in a description of your system's linker (not GNU ld)
6382
allow_undefined_flag=unsupported
6383
always_export_symbols=yes
6384
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'
6385
# Note: this linker hardcodes the directories in LIBPATH if there
6386
# are no directories specified by -L.
6387
hardcode_minus_L=yes
6388
if test "$GCC" = yes && test -z "$link_static_flag"; then
6389
# Neither direct hardcoding nor static linking is supported with a
6391
hardcode_direct=unsupported
6396
if test "$host_cpu" = ia64; then
6397
# On IA64, the linker does run time linking by default, so we don't
6398
# have to do anything special.
6399
aix_use_runtimelinking=no
6400
exp_sym_flag='-Bexport'
6403
# If we're using GNU nm, then we don't want the "-C" option.
6404
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6405
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6406
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'
6408
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'
6410
aix_use_runtimelinking=no
6412
# Test if we are trying to use run time linking or normal
6413
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6414
# need to do runtime linking.
6415
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6416
for ld_flag in $LDFLAGS; do
6417
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6418
aix_use_runtimelinking=yes
6424
exp_sym_flag='-bexport'
6425
no_entry_flag='-bnoentry'
6428
# When large executables or shared objects are built, AIX ld can
6429
# have problems creating the table of contents. If linking a library
6430
# or program results in "error TOC overflow" add -mminimal-toc to
6431
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6432
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6436
hardcode_libdir_separator=':'
6437
link_all_deplibs=yes
6439
if test "$GCC" = yes; then
6440
case $host_os in aix4.012|aix4.012.*)
6441
# We only want to do this on AIX 4.2 and lower, the check
6442
# below for broken collect2 doesn't work under 4.3+
6443
collect2name=`${CC} -print-prog-name=collect2`
6444
if test -f "$collect2name" && \
6445
strings "$collect2name" | grep resolve_lib_name >/dev/null
6447
# We have reworked collect2
6450
# We have old collect2
6451
hardcode_direct=unsupported
6452
# It fails to find uninstalled libraries when the uninstalled
6453
# path is not listed in the libpath. Setting hardcode_minus_L
6454
# to unsupported forces relinking
6455
hardcode_minus_L=yes
6456
hardcode_libdir_flag_spec='-L$libdir'
6457
hardcode_libdir_separator=
6460
shared_flag='-shared'
6463
if test "$host_cpu" = ia64; then
6464
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6465
# chokes on -Wl,-G. The following line is correct:
6468
if test "$aix_use_runtimelinking" = yes; then
6469
shared_flag='${wl}-G'
6471
shared_flag='${wl}-bM:SRE'
6476
# It seems that -bexpall does not export symbols beginning with
6477
# underscore (_), so it is better to generate a list of symbols to export.
6478
always_export_symbols=yes
6479
if test "$aix_use_runtimelinking" = yes; then
6480
# Warning - without using the other runtime loading flags (-brtl),
6481
# -berok will link without error, but may produce a broken library.
6482
allow_undefined_flag='-berok'
6483
# Determine the default libpath from the value encoded in an empty executable.
6484
cat >conftest.$ac_ext <<_ACEOF
6487
cat confdefs.h >>conftest.$ac_ext
6488
cat >>conftest.$ac_ext <<_ACEOF
6489
/* end confdefs.h. */
6499
rm -f conftest.$ac_objext conftest$ac_exeext
6500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501
(eval $ac_link) 2>conftest.er1
6503
grep -v '^ *+' conftest.er1 >conftest.err
6505
cat conftest.err >&5
6506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507
(exit $ac_status); } &&
6508
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6509
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513
(exit $ac_status); }; } &&
6514
{ ac_try='test -s conftest$ac_exeext'
6515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519
(exit $ac_status); }; }; then
6521
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6523
# Check for a 64-bit object if we didn't find anything.
6524
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; }
6527
echo "$as_me: failed program was:" >&5
6528
sed 's/^/| /' conftest.$ac_ext >&5
6531
rm -f conftest.err conftest.$ac_objext \
6532
conftest$ac_exeext conftest.$ac_ext
6533
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6535
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6536
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"
6538
if test "$host_cpu" = ia64; then
6539
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6540
allow_undefined_flag="-z nodefs"
6541
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"
6543
# Determine the default libpath from the value encoded in an empty executable.
6544
cat >conftest.$ac_ext <<_ACEOF
6547
cat confdefs.h >>conftest.$ac_ext
6548
cat >>conftest.$ac_ext <<_ACEOF
6549
/* end confdefs.h. */
6559
rm -f conftest.$ac_objext conftest$ac_exeext
6560
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561
(eval $ac_link) 2>conftest.er1
6563
grep -v '^ *+' conftest.er1 >conftest.err
6565
cat conftest.err >&5
6566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567
(exit $ac_status); } &&
6568
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6569
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573
(exit $ac_status); }; } &&
6574
{ ac_try='test -s conftest$ac_exeext'
6575
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579
(exit $ac_status); }; }; then
6581
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6583
# Check for a 64-bit object if we didn't find anything.
6584
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; }
6587
echo "$as_me: failed program was:" >&5
6588
sed 's/^/| /' conftest.$ac_ext >&5
6591
rm -f conftest.err conftest.$ac_objext \
6592
conftest$ac_exeext conftest.$ac_ext
6593
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6595
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6596
# Warning - without using the other run time loading flags,
6597
# -berok will link without error, but may produce a broken library.
6598
no_undefined_flag=' ${wl}-bernotok'
6599
allow_undefined_flag=' ${wl}-berok'
6600
# -bexpall does not export symbols beginning with underscore (_)
6601
always_export_symbols=yes
6602
# Exported symbols can be pulled into shared objects from archives
6603
whole_archive_flag_spec=' '
6604
archive_cmds_need_lc=yes
6605
# This is similar to how AIX traditionally builds it's shared libraries.
6606
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'
6612
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)'
6613
hardcode_libdir_flag_spec='-L$libdir'
6614
hardcode_minus_L=yes
6615
# see comment about different semantics on the GNU ld section
6620
export_dynamic_flag_spec=-rdynamic
6623
cygwin* | mingw* | pw32*)
6624
# When not using gcc, we currently assume that we are using
6625
# Microsoft Visual C++.
6626
# hardcode_libdir_flag_spec is actually meaningless, as there is
6627
# no search path for DLLs.
6628
hardcode_libdir_flag_spec=' '
6629
allow_undefined_flag=unsupported
6630
# Tell ltmain to make .lib files, not .a files.
6632
# Tell ltmain to make .dll files, not .so files.
6634
# FIXME: Setting linknames here is a bad hack.
6635
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6636
# The linker will automatically build a .lib file if we build a DLL.
6637
old_archive_From_new_cmds='true'
6638
# FIXME: Should let the user specify the lib program.
6639
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6640
fix_srcfile_path='`cygpath -w "$srcfile"`'
6641
enable_shared_with_static_runtimes=yes
6644
darwin* | rhapsody*)
6645
if test "$GXX" = yes ; then
6646
archive_cmds_need_lc=no
6648
rhapsody* | darwin1.[012])
6649
allow_undefined_flag='-undefined suppress'
6652
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6653
allow_undefined_flag='-flat_namespace -undefined suppress'
6655
case ${MACOSX_DEPLOYMENT_TARGET} in
6657
allow_undefined_flag='-flat_namespace -undefined suppress'
6660
allow_undefined_flag='-undefined dynamic_lookup'
6666
lt_int_apple_cc_single_mod=no
6667
output_verbose_link_cmd='echo'
6668
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6669
lt_int_apple_cc_single_mod=yes
6671
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6672
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6674
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'
6676
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6677
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6678
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6679
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}'
6681
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}'
6683
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}'
6685
hardcode_automatic=yes
6686
hardcode_shlibpath_var=unsupported
6687
whole_archive_flag_spec='-all_load $convenience'
6688
link_all_deplibs=yes
6695
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6696
hardcode_libdir_flag_spec='-L$libdir'
6697
hardcode_shlibpath_var=no
6704
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6705
# support. Future versions do this automatically, but an explicit c++rt0.o
6706
# does not break anything, and helps significantly (at the cost of a little
6709
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6710
hardcode_libdir_flag_spec='-R$libdir'
6712
hardcode_shlibpath_var=no
6715
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6717
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6719
hardcode_minus_L=yes
6720
hardcode_shlibpath_var=no
6723
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6724
freebsd* | kfreebsd*-gnu)
6725
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6726
hardcode_libdir_flag_spec='-R$libdir'
6728
hardcode_shlibpath_var=no
6732
if test "$GCC" = yes; then
6733
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'
6735
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'
6737
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6738
hardcode_libdir_separator=:
6741
# hardcode_minus_L: Not really in the search PATH,
6742
# but as the default location of the library.
6743
hardcode_minus_L=yes
6744
export_dynamic_flag_spec='${wl}-E'
6748
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6751
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6754
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6760
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6763
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6767
if test "$with_gnu_ld" = no; then
6770
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6771
hardcode_libdir_flag_spec_ld='+b $libdir'
6772
hardcode_libdir_separator=:
6774
hardcode_shlibpath_var=no
6777
hardcode_libdir_flag_spec='-L$libdir'
6779
hardcode_shlibpath_var=no
6781
# hardcode_minus_L: Not really in the search PATH,
6782
# but as the default location of the library.
6783
hardcode_minus_L=yes
6786
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6787
hardcode_libdir_separator=:
6789
export_dynamic_flag_spec='${wl}-E'
6791
# hardcode_minus_L: Not really in the search PATH,
6792
# but as the default location of the library.
6793
hardcode_minus_L=yes
6799
irix5* | irix6* | nonstopux*)
6800
if test "$GCC" = yes; then
6801
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'
6803
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'
6804
hardcode_libdir_flag_spec_ld='-rpath $libdir'
6806
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6807
hardcode_libdir_separator=:
6808
link_all_deplibs=yes
6811
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6812
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6813
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6815
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6817
hardcode_libdir_flag_spec='-R$libdir'
6819
hardcode_shlibpath_var=no
6823
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6825
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6826
hardcode_libdir_separator=:
6827
hardcode_shlibpath_var=no
6832
hardcode_shlibpath_var=no
6833
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6834
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6835
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6836
export_dynamic_flag_spec='${wl}-E'
6839
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6840
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6841
hardcode_libdir_flag_spec='-R$libdir'
6844
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6845
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6852
hardcode_libdir_flag_spec='-L$libdir'
6853
hardcode_minus_L=yes
6854
allow_undefined_flag=unsupported
6855
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'
6856
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6860
if test "$GCC" = yes; then
6861
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6862
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'
6864
allow_undefined_flag=' -expect_unresolved \*'
6865
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'
6867
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6868
hardcode_libdir_separator=:
6871
osf4* | osf5*) # as osf3* with the addition of -msym flag
6872
if test "$GCC" = yes; then
6873
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6874
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'
6875
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6877
allow_undefined_flag=' -expect_unresolved \*'
6878
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'
6879
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6880
$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'
6882
# Both c and cxx compiler support -rpath directly
6883
hardcode_libdir_flag_spec='-rpath $libdir'
6885
hardcode_libdir_separator=:
6889
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6890
hardcode_shlibpath_var=no
6891
export_dynamic_flag_spec='${wl}-Bexport'
6892
runpath_var=LD_RUN_PATH
6893
hardcode_runpath_var=yes
6897
no_undefined_flag=' -z text'
6898
if test "$GCC" = yes; then
6899
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6900
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6901
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6903
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6904
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6905
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6907
hardcode_libdir_flag_spec='-R$libdir'
6908
hardcode_shlibpath_var=no
6910
solaris2.[0-5] | solaris2.[0-5].*) ;;
6911
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6912
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6914
link_all_deplibs=yes
6918
if test "x$host_vendor" = xsequent; then
6919
# Use $CC to link under sequent, because it throws in some extra .o
6920
# files that make .init and .fini sections work.
6921
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6923
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6925
hardcode_libdir_flag_spec='-L$libdir'
6927
hardcode_minus_L=yes
6928
hardcode_shlibpath_var=no
6932
case $host_vendor in
6934
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6935
hardcode_direct=yes # is this really true???
6938
## LD is ld it makes a PLAMLIB
6939
## CC just makes a GrossModule.
6940
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6941
reload_cmds='$CC -r -o $output$reload_objs'
6945
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6946
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6949
runpath_var='LD_RUN_PATH'
6950
hardcode_shlibpath_var=no
6954
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6955
hardcode_shlibpath_var=no
6956
export_dynamic_flag_spec='-Bexport'
6960
if test -d /usr/nec; then
6961
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6962
hardcode_shlibpath_var=no
6963
runpath_var=LD_RUN_PATH
6964
hardcode_runpath_var=yes
6970
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6973
hardcode_shlibpath_var=no
6974
hardcode_runpath_var=yes
6975
runpath_var=LD_RUN_PATH
6978
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6979
no_undefined_flag='${wl}-z ${wl}text'
6980
if test "$GCC" = yes; then
6981
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6983
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6985
runpath_var='LD_RUN_PATH'
6986
hardcode_shlibpath_var=no
6990
no_undefined_flag=' -z text'
6991
# $CC -shared without GNU ld will not create a library from C++
6992
# object files and a static libstdc++, better avoid it by now
6993
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6995
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6996
hardcode_libdir_flag_spec=
6997
hardcode_shlibpath_var=no
6998
runpath_var='LD_RUN_PATH'
7002
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7003
hardcode_libdir_flag_spec='-L$libdir'
7004
hardcode_shlibpath_var=no
7013
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7014
echo "${ECHO_T}$ld_shlibs" >&6
7015
test "$ld_shlibs" = no && can_build_shared=no
7017
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7018
if test "$GCC" = yes; then
7019
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7023
# Do we need to explicitly link libc?
7025
case "x$archive_cmds_need_lc" in
7027
# Assume -lc should be added
7028
archive_cmds_need_lc=yes
7030
if test "$enable_shared" = yes && test "$GCC" = yes; then
7031
case $archive_cmds in
7033
# FIXME: we may have to deal with multi-command sequences.
7036
# Test whether the compiler implicitly links with -lc since on some
7037
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7038
# to ld, don't add -lc before -lgcc.
7039
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7040
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7042
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045
(eval $ac_compile) 2>&5
7047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048
(exit $ac_status); } 2>conftest.err; then
7051
libobjs=conftest.$ac_objext
7053
wl=$lt_prog_compiler_wl
7059
lt_save_allow_undefined_flag=$allow_undefined_flag
7060
allow_undefined_flag=
7061
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7062
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065
(exit $ac_status); }
7067
archive_cmds_need_lc=no
7069
archive_cmds_need_lc=yes
7071
allow_undefined_flag=$lt_save_allow_undefined_flag
7073
cat conftest.err 1>&5
7076
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7077
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7084
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7085
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7087
libname_spec='lib$name'
7095
shlibpath_overrides_runpath=unknown
7097
dynamic_linker="$host_os ld.so"
7098
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7099
if test "$GCC" = yes; then
7100
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7101
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7102
# if the path contains ";" then we assume it to be the separator
7103
# otherwise default to the standard path separator (i.e. ":") - it is
7104
# assumed that no part of a normal pathname contains ";" but that should
7105
# okay in the real world where ";" in dirpaths is itself problematic.
7106
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7108
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7111
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7113
need_lib_prefix=unknown
7114
hardcode_into_libs=no
7116
# when you set need_version to no, make sure it does not cause -set_version
7117
# flags to be left without arguments
7118
need_version=unknown
7123
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7124
shlibpath_var=LIBPATH
7126
# AIX 3 has no versioning support, so we append a major version to the name.
7127
soname_spec='${libname}${release}${shared_ext}$major'
7134
hardcode_into_libs=yes
7135
if test "$host_cpu" = ia64; then
7136
# AIX 5 supports IA64
7137
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7138
shlibpath_var=LD_LIBRARY_PATH
7140
# With GCC up to 2.95.x, collect2 would create an import file
7141
# for dependence libraries. The import file would start with
7142
# the line `#! .'. This would cause the generated library to
7143
# depend on `.', always an invalid library. This was fixed in
7144
# development snapshots of GCC prior to 3.0.
7146
aix4 | aix4.[01] | aix4.[01].*)
7147
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7149
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7156
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7157
# soname into executable. Probably we can add versioning support to
7158
# collect2, so additional links can be useful in future.
7159
if test "$aix_use_runtimelinking" = yes; then
7160
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7161
# instead of lib<name>.a to let people know that these are not
7162
# typical AIX shared libraries.
7163
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7165
# We preserve .a as extension for shared libraries through AIX4.2
7166
# and later when we are not doing run time linking.
7167
library_names_spec='${libname}${release}.a $libname.a'
7168
soname_spec='${libname}${release}${shared_ext}$major'
7170
shlibpath_var=LIBPATH
7175
library_names_spec='$libname.ixlibrary $libname.a'
7176
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7177
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'
7181
library_names_spec='${libname}${shared_ext}'
7182
dynamic_linker="$host_os ld.so"
7183
shlibpath_var=LIBRARY_PATH
7189
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7190
soname_spec='${libname}${release}${shared_ext}$major'
7191
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7192
shlibpath_var=LD_LIBRARY_PATH
7193
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7194
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7195
# the default ld.so.conf also contains /usr/contrib/lib and
7196
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7197
# libtool to hard-code these into programs
7200
cygwin* | mingw* | pw32*)
7201
version_type=windows
7206
case $GCC,$host_os in
7207
yes,cygwin* | yes,mingw* | yes,pw32*)
7208
library_names_spec='$libname.dll.a'
7209
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7210
postinstall_cmds='base_file=`basename \${file}`~
7211
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7212
dldir=$destdir/`dirname \$dlpath`~
7213
test -d \$dldir || mkdir -p \$dldir~
7214
$install_prog $dir/$dlname \$dldir/$dlname'
7215
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7216
dlpath=$dir/\$dldll~
7218
shlibpath_overrides_runpath=yes
7222
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7223
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7224
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7227
# MinGW DLLs use traditional 'lib' prefix
7228
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7229
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7230
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7231
# It is most probably a Windows format PATH printed by
7232
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7233
# path with ; separators, and with drive letters. We can handle the
7234
# drive letters (cygwin fileutils understands them), so leave them,
7235
# especially as we might pass files found there to a mingw objdump,
7236
# which wouldn't understand a cygwinified path. Ahh.
7237
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7239
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7243
# pw32 DLLs use 'pw' prefix rather than 'lib'
7244
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7250
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7253
dynamic_linker='Win32 ld.exe'
7254
# FIXME: first we should search . and the directory the executable is in
7258
darwin* | rhapsody*)
7259
dynamic_linker="$host_os dyld"
7263
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7264
soname_spec='${libname}${release}${major}$shared_ext'
7265
shlibpath_overrides_runpath=yes
7266
shlibpath_var=DYLD_LIBRARY_PATH
7267
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7268
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7269
if test "$GCC" = yes; then
7270
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"`
7272
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7274
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7282
soname_spec='${libname}${release}${shared_ext}$major'
7283
shlibpath_var=LD_LIBRARY_PATH
7294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7295
soname_spec='${libname}${release}${shared_ext}$major'
7296
shlibpath_var=LD_LIBRARY_PATH
7297
shlibpath_overrides_runpath=no
7298
hardcode_into_libs=yes
7299
dynamic_linker='GNU ld.so'
7303
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7304
version_type=freebsd-$objformat
7305
case $version_type in
7307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7312
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7316
shlibpath_var=LD_LIBRARY_PATH
7319
shlibpath_overrides_runpath=yes
7321
freebsd3.01* | freebsdelf3.01*)
7322
shlibpath_overrides_runpath=yes
7323
hardcode_into_libs=yes
7326
shlibpath_overrides_runpath=no
7327
hardcode_into_libs=yes
7336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7337
soname_spec='${libname}${release}${shared_ext}$major'
7338
shlibpath_var=LD_LIBRARY_PATH
7339
hardcode_into_libs=yes
7342
hpux9* | hpux10* | hpux11*)
7343
# Give a soname corresponding to the major version so that dld.sl refuses to
7344
# link against other versions.
7351
hardcode_into_libs=yes
7352
dynamic_linker="$host_os dld.so"
7353
shlibpath_var=LD_LIBRARY_PATH
7354
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7356
soname_spec='${libname}${release}${shared_ext}$major'
7357
if test "X$HPUX_IA64_MODE" = X32; then
7358
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7360
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7362
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7366
hardcode_into_libs=yes
7367
dynamic_linker="$host_os dld.sl"
7368
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7369
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7371
soname_spec='${libname}${release}${shared_ext}$major'
7372
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7373
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7377
dynamic_linker="$host_os dld.sl"
7378
shlibpath_var=SHLIB_PATH
7379
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7381
soname_spec='${libname}${release}${shared_ext}$major'
7384
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7385
postinstall_cmds='chmod 555 $lib'
7388
irix5* | irix6* | nonstopux*)
7390
nonstopux*) version_type=nonstopux ;;
7392
if test "$lt_cv_prog_gnu_ld" = yes; then
7400
soname_spec='${libname}${release}${shared_ext}$major'
7401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7403
irix5* | nonstopux*)
7407
case $LD in # libtool.m4 will add one of these switches to LD
7408
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7409
libsuff= shlibsuff= libmagic=32-bit;;
7410
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7411
libsuff=32 shlibsuff=N32 libmagic=N32;;
7412
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7413
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7414
*) libsuff= shlibsuff= libmagic=never-match;;
7418
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7419
shlibpath_overrides_runpath=no
7420
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7421
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7422
hardcode_into_libs=yes
7425
# No shared lib support for Linux oldld, aout, or coff.
7426
linux*oldld* | linux*aout* | linux*coff*)
7430
# This must be Linux ELF.
7435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7436
soname_spec='${libname}${release}${shared_ext}$major'
7437
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7438
shlibpath_var=LD_LIBRARY_PATH
7439
shlibpath_overrides_runpath=no
7440
# This implies no fast_install, which is unacceptable.
7441
# Some rework will be needed to allow for fast_install
7442
# before this can be enabled.
7443
hardcode_into_libs=yes
7445
# Append ld.so.conf contents to the search path
7446
if test -f /etc/ld.so.conf; then
7447
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7448
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7451
# We used to test for /lib/ld.so.1 and disable shared libraries on
7452
# powerpc, because MkLinux only supported shared libraries with the
7453
# GNU dynamic linker. Since this was broken with cross compilers,
7454
# most powerpc-linux boxes support dynamic linking these days and
7455
# people can always --disable-shared, the test was removed, and we
7456
# assume the GNU/Linux dynamic linker is in use.
7457
dynamic_linker='GNU/Linux ld.so'
7464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7465
soname_spec='${libname}${release}${shared_ext}$major'
7466
shlibpath_var=LD_LIBRARY_PATH
7467
shlibpath_overrides_runpath=no
7468
hardcode_into_libs=yes
7469
dynamic_linker='NetBSD ld.elf_so'
7476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7477
soname_spec='${libname}${release}${shared_ext}$major'
7478
shlibpath_var=LD_LIBRARY_PATH
7479
shlibpath_overrides_runpath=no
7480
hardcode_into_libs=yes
7481
dynamic_linker='GNU ld.so'
7488
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7490
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7491
dynamic_linker='NetBSD (a.out) ld.so'
7493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7494
soname_spec='${libname}${release}${shared_ext}$major'
7495
dynamic_linker='NetBSD ld.elf_so'
7497
shlibpath_var=LD_LIBRARY_PATH
7498
shlibpath_overrides_runpath=yes
7499
hardcode_into_libs=yes
7504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7505
shlibpath_var=LD_LIBRARY_PATH
7506
shlibpath_overrides_runpath=yes
7513
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7514
soname_spec='${libname}${release}${shared_ext}$major'
7515
shlibpath_var=LD_LIBRARY_PATH
7516
shlibpath_overrides_runpath=yes
7523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7524
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7525
shlibpath_var=LD_LIBRARY_PATH
7526
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7528
openbsd2.[89] | openbsd2.[89].*)
7529
shlibpath_overrides_runpath=no
7532
shlibpath_overrides_runpath=yes
7536
shlibpath_overrides_runpath=yes
7541
libname_spec='$name'
7544
library_names_spec='$libname${shared_ext} $libname.a'
7545
dynamic_linker='OS/2 ld.exe'
7546
shlibpath_var=LIBPATH
7549
osf3* | osf4* | osf5*)
7553
soname_spec='${libname}${release}${shared_ext}$major'
7554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7555
shlibpath_var=LD_LIBRARY_PATH
7556
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7557
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7562
soname_spec='${libname}${release}${shared_ext}$major'
7563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564
shlibpath_var=LD_LIBRARY_PATH
7571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7572
soname_spec='${libname}${release}${shared_ext}$major'
7573
shlibpath_var=LD_LIBRARY_PATH
7574
shlibpath_overrides_runpath=yes
7575
hardcode_into_libs=yes
7576
# ldd complains unless libraries are executable
7577
postinstall_cmds='chmod +x $lib'
7582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7583
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7584
shlibpath_var=LD_LIBRARY_PATH
7585
shlibpath_overrides_runpath=yes
7586
if test "$with_gnu_ld" = yes; then
7592
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7595
soname_spec='${libname}${release}${shared_ext}$major'
7596
shlibpath_var=LD_LIBRARY_PATH
7597
case $host_vendor in
7599
shlibpath_overrides_runpath=no
7601
export_dynamic_flag_spec='${wl}-Blargedynsym'
7602
runpath_var=LD_RUN_PATH
7610
shlibpath_overrides_runpath=no
7611
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7617
if test -d /usr/nec ;then
7619
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7620
soname_spec='$libname${shared_ext}.$major'
7621
shlibpath_var=LD_LIBRARY_PATH
7627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7628
soname_spec='${libname}${release}${shared_ext}$major'
7629
shlibpath_var=LD_LIBRARY_PATH
7636
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7637
echo "${ECHO_T}$dynamic_linker" >&6
7638
test "$dynamic_linker" = no && can_build_shared=no
7640
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7641
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7643
if test -n "$hardcode_libdir_flag_spec" || \
7644
test -n "$runpath_var " || \
7645
test "X$hardcode_automatic"="Xyes" ; then
7647
# We can hardcode non-existant directories.
7648
if test "$hardcode_direct" != no &&
7649
# If the only mechanism to avoid hardcoding is shlibpath_var, we
7650
# have to relink, otherwise we might link with an installed library
7651
# when we should be linking with a yet-to-be-installed one
7652
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7653
test "$hardcode_minus_L" != no; then
7654
# Linking always hardcodes the temporary library directory.
7655
hardcode_action=relink
7657
# We can link without hardcoding, and we can hardcode nonexisting dirs.
7658
hardcode_action=immediate
7661
# We cannot hardcode anything, or else we can only hardcode existing
7663
hardcode_action=unsupported
7665
echo "$as_me:$LINENO: result: $hardcode_action" >&5
7666
echo "${ECHO_T}$hardcode_action" >&6
7668
if test "$hardcode_action" = relink; then
7669
# Fast installation is not supported
7670
enable_fast_install=no
7671
elif test "$shlibpath_overrides_runpath" = yes ||
7672
test "$enable_shared" = no; then
7673
# Fast installation is not necessary
7674
enable_fast_install=needless
7679
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7680
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7681
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7682
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7683
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7684
echo "$as_me:$LINENO: result: yes" >&5
7685
echo "${ECHO_T}yes" >&6
7687
# FIXME - insert some real tests, host_os isn't really good enough
7690
if test -n "$STRIP" ; then
7691
striplib="$STRIP -x"
7692
echo "$as_me:$LINENO: result: yes" >&5
7693
echo "${ECHO_T}yes" >&6
7695
echo "$as_me:$LINENO: result: no" >&5
7696
echo "${ECHO_T}no" >&6
7700
echo "$as_me:$LINENO: result: no" >&5
7701
echo "${ECHO_T}no" >&6
7706
if test "x$enable_dlopen" != xyes; then
7707
enable_dlopen=unknown
7708
enable_dlopen_self=unknown
7709
enable_dlopen_self_static=unknown
7716
lt_cv_dlopen="load_add_on"
7718
lt_cv_dlopen_self=yes
7722
lt_cv_dlopen="LoadLibrary"
7727
lt_cv_dlopen="dlopen"
7732
# if libdl is installed we need to link against it
7733
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7734
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7735
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7736
echo $ECHO_N "(cached) $ECHO_C" >&6
7738
ac_check_lib_save_LIBS=$LIBS
7740
cat >conftest.$ac_ext <<_ACEOF
7743
cat confdefs.h >>conftest.$ac_ext
7744
cat >>conftest.$ac_ext <<_ACEOF
7745
/* end confdefs.h. */
7747
/* Override any gcc2 internal prototype to avoid an error. */
7751
/* We use char because int might match the return type of a gcc2
7752
builtin and then its argument prototype would still apply. */
7762
rm -f conftest.$ac_objext conftest$ac_exeext
7763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7764
(eval $ac_link) 2>conftest.er1
7766
grep -v '^ *+' conftest.er1 >conftest.err
7768
cat conftest.err >&5
7769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770
(exit $ac_status); } &&
7771
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776
(exit $ac_status); }; } &&
7777
{ ac_try='test -s conftest$ac_exeext'
7778
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782
(exit $ac_status); }; }; then
7783
ac_cv_lib_dl_dlopen=yes
7785
echo "$as_me: failed program was:" >&5
7786
sed 's/^/| /' conftest.$ac_ext >&5
7788
ac_cv_lib_dl_dlopen=no
7790
rm -f conftest.err conftest.$ac_objext \
7791
conftest$ac_exeext conftest.$ac_ext
7792
LIBS=$ac_check_lib_save_LIBS
7794
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7795
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7796
if test $ac_cv_lib_dl_dlopen = yes; then
7797
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7802
lt_cv_dlopen_self=yes
7809
echo "$as_me:$LINENO: checking for shl_load" >&5
7810
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7811
if test "${ac_cv_func_shl_load+set}" = set; then
7812
echo $ECHO_N "(cached) $ECHO_C" >&6
7814
cat >conftest.$ac_ext <<_ACEOF
7817
cat confdefs.h >>conftest.$ac_ext
7818
cat >>conftest.$ac_ext <<_ACEOF
7819
/* end confdefs.h. */
7820
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7821
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7822
#define shl_load innocuous_shl_load
7824
/* System header to define __stub macros and hopefully few prototypes,
7825
which can conflict with char shl_load (); below.
7826
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7827
<limits.h> exists even on freestanding compilers. */
7830
# include <limits.h>
7832
# include <assert.h>
7837
/* Override any gcc2 internal prototype to avoid an error. */
7842
/* We use char because int might match the return type of a gcc2
7843
builtin and then its argument prototype would still apply. */
7845
/* The GNU C library defines this for functions which it implements
7846
to always fail with ENOSYS. Some functions are actually named
7847
something starting with __ and the normal name is an alias. */
7848
#if defined (__stub_shl_load) || defined (__stub___shl_load)
7851
char (*f) () = shl_load;
7860
return f != shl_load;
7865
rm -f conftest.$ac_objext conftest$ac_exeext
7866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867
(eval $ac_link) 2>conftest.er1
7869
grep -v '^ *+' conftest.er1 >conftest.err
7871
cat conftest.err >&5
7872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873
(exit $ac_status); } &&
7874
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879
(exit $ac_status); }; } &&
7880
{ ac_try='test -s conftest$ac_exeext'
7881
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885
(exit $ac_status); }; }; then
7886
ac_cv_func_shl_load=yes
7888
echo "$as_me: failed program was:" >&5
7889
sed 's/^/| /' conftest.$ac_ext >&5
7891
ac_cv_func_shl_load=no
7893
rm -f conftest.err conftest.$ac_objext \
7894
conftest$ac_exeext conftest.$ac_ext
7896
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7897
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7898
if test $ac_cv_func_shl_load = yes; then
7899
lt_cv_dlopen="shl_load"
7901
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7902
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7903
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7904
echo $ECHO_N "(cached) $ECHO_C" >&6
7906
ac_check_lib_save_LIBS=$LIBS
7908
cat >conftest.$ac_ext <<_ACEOF
7911
cat confdefs.h >>conftest.$ac_ext
7912
cat >>conftest.$ac_ext <<_ACEOF
7913
/* end confdefs.h. */
7915
/* Override any gcc2 internal prototype to avoid an error. */
7919
/* We use char because int might match the return type of a gcc2
7920
builtin and then its argument prototype would still apply. */
7930
rm -f conftest.$ac_objext conftest$ac_exeext
7931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932
(eval $ac_link) 2>conftest.er1
7934
grep -v '^ *+' conftest.er1 >conftest.err
7936
cat conftest.err >&5
7937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938
(exit $ac_status); } &&
7939
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944
(exit $ac_status); }; } &&
7945
{ ac_try='test -s conftest$ac_exeext'
7946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950
(exit $ac_status); }; }; then
7951
ac_cv_lib_dld_shl_load=yes
7953
echo "$as_me: failed program was:" >&5
7954
sed 's/^/| /' conftest.$ac_ext >&5
7956
ac_cv_lib_dld_shl_load=no
7958
rm -f conftest.err conftest.$ac_objext \
7959
conftest$ac_exeext conftest.$ac_ext
7960
LIBS=$ac_check_lib_save_LIBS
7962
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7963
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7964
if test $ac_cv_lib_dld_shl_load = yes; then
7965
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7967
echo "$as_me:$LINENO: checking for dlopen" >&5
7968
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7969
if test "${ac_cv_func_dlopen+set}" = set; then
7970
echo $ECHO_N "(cached) $ECHO_C" >&6
7972
cat >conftest.$ac_ext <<_ACEOF
7975
cat confdefs.h >>conftest.$ac_ext
7976
cat >>conftest.$ac_ext <<_ACEOF
7977
/* end confdefs.h. */
7978
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7979
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7980
#define dlopen innocuous_dlopen
7982
/* System header to define __stub macros and hopefully few prototypes,
7983
which can conflict with char dlopen (); below.
7984
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7985
<limits.h> exists even on freestanding compilers. */
7988
# include <limits.h>
7990
# include <assert.h>
7995
/* Override any gcc2 internal prototype to avoid an error. */
8000
/* We use char because int might match the return type of a gcc2
8001
builtin and then its argument prototype would still apply. */
8003
/* The GNU C library defines this for functions which it implements
8004
to always fail with ENOSYS. Some functions are actually named
8005
something starting with __ and the normal name is an alias. */
8006
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8009
char (*f) () = dlopen;
8023
rm -f conftest.$ac_objext conftest$ac_exeext
8024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025
(eval $ac_link) 2>conftest.er1
8027
grep -v '^ *+' conftest.er1 >conftest.err
8029
cat conftest.err >&5
8030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031
(exit $ac_status); } &&
8032
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037
(exit $ac_status); }; } &&
8038
{ ac_try='test -s conftest$ac_exeext'
8039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043
(exit $ac_status); }; }; then
8044
ac_cv_func_dlopen=yes
8046
echo "$as_me: failed program was:" >&5
8047
sed 's/^/| /' conftest.$ac_ext >&5
8049
ac_cv_func_dlopen=no
8051
rm -f conftest.err conftest.$ac_objext \
8052
conftest$ac_exeext conftest.$ac_ext
8054
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8055
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8056
if test $ac_cv_func_dlopen = yes; then
8057
lt_cv_dlopen="dlopen"
8059
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8060
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8061
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8062
echo $ECHO_N "(cached) $ECHO_C" >&6
8064
ac_check_lib_save_LIBS=$LIBS
8066
cat >conftest.$ac_ext <<_ACEOF
8069
cat confdefs.h >>conftest.$ac_ext
8070
cat >>conftest.$ac_ext <<_ACEOF
8071
/* end confdefs.h. */
8073
/* Override any gcc2 internal prototype to avoid an error. */
8077
/* We use char because int might match the return type of a gcc2
8078
builtin and then its argument prototype would still apply. */
8088
rm -f conftest.$ac_objext conftest$ac_exeext
8089
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090
(eval $ac_link) 2>conftest.er1
8092
grep -v '^ *+' conftest.er1 >conftest.err
8094
cat conftest.err >&5
8095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096
(exit $ac_status); } &&
8097
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8098
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102
(exit $ac_status); }; } &&
8103
{ ac_try='test -s conftest$ac_exeext'
8104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108
(exit $ac_status); }; }; then
8109
ac_cv_lib_dl_dlopen=yes
8111
echo "$as_me: failed program was:" >&5
8112
sed 's/^/| /' conftest.$ac_ext >&5
8114
ac_cv_lib_dl_dlopen=no
8116
rm -f conftest.err conftest.$ac_objext \
8117
conftest$ac_exeext conftest.$ac_ext
8118
LIBS=$ac_check_lib_save_LIBS
8120
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8121
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8122
if test $ac_cv_lib_dl_dlopen = yes; then
8123
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8125
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8126
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8127
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8128
echo $ECHO_N "(cached) $ECHO_C" >&6
8130
ac_check_lib_save_LIBS=$LIBS
8132
cat >conftest.$ac_ext <<_ACEOF
8135
cat confdefs.h >>conftest.$ac_ext
8136
cat >>conftest.$ac_ext <<_ACEOF
8137
/* end confdefs.h. */
8139
/* Override any gcc2 internal prototype to avoid an error. */
8143
/* We use char because int might match the return type of a gcc2
8144
builtin and then its argument prototype would still apply. */
8154
rm -f conftest.$ac_objext conftest$ac_exeext
8155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156
(eval $ac_link) 2>conftest.er1
8158
grep -v '^ *+' conftest.er1 >conftest.err
8160
cat conftest.err >&5
8161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162
(exit $ac_status); } &&
8163
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168
(exit $ac_status); }; } &&
8169
{ ac_try='test -s conftest$ac_exeext'
8170
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174
(exit $ac_status); }; }; then
8175
ac_cv_lib_svld_dlopen=yes
8177
echo "$as_me: failed program was:" >&5
8178
sed 's/^/| /' conftest.$ac_ext >&5
8180
ac_cv_lib_svld_dlopen=no
8182
rm -f conftest.err conftest.$ac_objext \
8183
conftest$ac_exeext conftest.$ac_ext
8184
LIBS=$ac_check_lib_save_LIBS
8186
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8187
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8188
if test $ac_cv_lib_svld_dlopen = yes; then
8189
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8191
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8192
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8193
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8194
echo $ECHO_N "(cached) $ECHO_C" >&6
8196
ac_check_lib_save_LIBS=$LIBS
8198
cat >conftest.$ac_ext <<_ACEOF
8201
cat confdefs.h >>conftest.$ac_ext
8202
cat >>conftest.$ac_ext <<_ACEOF
8203
/* end confdefs.h. */
8205
/* Override any gcc2 internal prototype to avoid an error. */
8209
/* We use char because int might match the return type of a gcc2
8210
builtin and then its argument prototype would still apply. */
8220
rm -f conftest.$ac_objext conftest$ac_exeext
8221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8222
(eval $ac_link) 2>conftest.er1
8224
grep -v '^ *+' conftest.er1 >conftest.err
8226
cat conftest.err >&5
8227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228
(exit $ac_status); } &&
8229
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234
(exit $ac_status); }; } &&
8235
{ ac_try='test -s conftest$ac_exeext'
8236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240
(exit $ac_status); }; }; then
8241
ac_cv_lib_dld_dld_link=yes
8243
echo "$as_me: failed program was:" >&5
8244
sed 's/^/| /' conftest.$ac_ext >&5
8246
ac_cv_lib_dld_dld_link=no
8248
rm -f conftest.err conftest.$ac_objext \
8249
conftest$ac_exeext conftest.$ac_ext
8250
LIBS=$ac_check_lib_save_LIBS
8252
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8253
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8254
if test $ac_cv_lib_dld_dld_link = yes; then
8255
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8276
if test "x$lt_cv_dlopen" != xno; then
8282
case $lt_cv_dlopen in
8284
save_CPPFLAGS="$CPPFLAGS"
8285
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8287
save_LDFLAGS="$LDFLAGS"
8288
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8291
LIBS="$lt_cv_dlopen_libs $LIBS"
8293
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8294
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8295
if test "${lt_cv_dlopen_self+set}" = set; then
8296
echo $ECHO_N "(cached) $ECHO_C" >&6
8298
if test "$cross_compiling" = yes; then :
8299
lt_cv_dlopen_self=cross
8301
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8302
lt_status=$lt_dlunknown
8303
cat > conftest.$ac_ext <<EOF
8304
#line 8304 "configure"
8305
#include "confdefs.h"
8314
# define LT_DLGLOBAL RTLD_GLOBAL
8317
# define LT_DLGLOBAL DL_GLOBAL
8319
# define LT_DLGLOBAL 0
8323
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8324
find out it does not work in some platform. */
8325
#ifndef LT_DLLAZY_OR_NOW
8327
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8330
# define LT_DLLAZY_OR_NOW DL_LAZY
8333
# define LT_DLLAZY_OR_NOW RTLD_NOW
8336
# define LT_DLLAZY_OR_NOW DL_NOW
8338
# define LT_DLLAZY_OR_NOW 0
8346
extern "C" void exit (int);
8349
void fnord() { int i=42;}
8352
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8353
int status = $lt_dlunknown;
8357
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8358
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8359
/* dlclose (self); */
8365
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366
(eval $ac_link) 2>&5
8368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8370
(./conftest; exit; ) 2>/dev/null
8373
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8374
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8375
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8378
# compilation failed
8379
lt_cv_dlopen_self=no
8386
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8387
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8389
if test "x$lt_cv_dlopen_self" = xyes; then
8390
LDFLAGS="$LDFLAGS $link_static_flag"
8391
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8392
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8393
if test "${lt_cv_dlopen_self_static+set}" = set; then
8394
echo $ECHO_N "(cached) $ECHO_C" >&6
8396
if test "$cross_compiling" = yes; then :
8397
lt_cv_dlopen_self_static=cross
8399
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8400
lt_status=$lt_dlunknown
8401
cat > conftest.$ac_ext <<EOF
8402
#line 8402 "configure"
8403
#include "confdefs.h"
8412
# define LT_DLGLOBAL RTLD_GLOBAL
8415
# define LT_DLGLOBAL DL_GLOBAL
8417
# define LT_DLGLOBAL 0
8421
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8422
find out it does not work in some platform. */
8423
#ifndef LT_DLLAZY_OR_NOW
8425
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8428
# define LT_DLLAZY_OR_NOW DL_LAZY
8431
# define LT_DLLAZY_OR_NOW RTLD_NOW
8434
# define LT_DLLAZY_OR_NOW DL_NOW
8436
# define LT_DLLAZY_OR_NOW 0
8444
extern "C" void exit (int);
8447
void fnord() { int i=42;}
8450
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8451
int status = $lt_dlunknown;
8455
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8456
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8457
/* dlclose (self); */
8463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464
(eval $ac_link) 2>&5
8466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8468
(./conftest; exit; ) 2>/dev/null
8471
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8472
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8473
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8476
# compilation failed
8477
lt_cv_dlopen_self_static=no
8484
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8485
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8488
CPPFLAGS="$save_CPPFLAGS"
8489
LDFLAGS="$save_LDFLAGS"
8494
case $lt_cv_dlopen_self in
8495
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8496
*) enable_dlopen_self=unknown ;;
8499
case $lt_cv_dlopen_self_static in
8500
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8501
*) enable_dlopen_self_static=unknown ;;
8506
# Report which librarie types wil actually be built
8507
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8508
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8509
echo "$as_me:$LINENO: result: $can_build_shared" >&5
8510
echo "${ECHO_T}$can_build_shared" >&6
8512
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8513
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8514
test "$can_build_shared" = "no" && enable_shared=no
8516
# On AIX, shared libraries and static libraries use the same namespace, and
8517
# are all built from PIC.
8520
test "$enable_shared" = yes && enable_static=no
8521
if test -n "$RANLIB"; then
8522
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8523
postinstall_cmds='$RANLIB $lib'
8528
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8529
test "$enable_shared" = yes && enable_static=no
8532
darwin* | rhapsody*)
8533
if test "$GCC" = yes; then
8534
archive_cmds_need_lc=no
8536
rhapsody* | darwin1.[012])
8537
allow_undefined_flag='-undefined suppress'
8540
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8541
allow_undefined_flag='-flat_namespace -undefined suppress'
8543
case ${MACOSX_DEPLOYMENT_TARGET} in
8545
allow_undefined_flag='-flat_namespace -undefined suppress'
8548
allow_undefined_flag='-undefined dynamic_lookup'
8554
output_verbose_link_cmd='echo'
8555
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8556
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8557
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8558
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}'
8559
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}'
8561
hardcode_automatic=yes
8562
hardcode_shlibpath_var=unsupported
8563
whole_archive_flag_spec='-all_load $convenience'
8564
link_all_deplibs=yes
8570
echo "$as_me:$LINENO: result: $enable_shared" >&5
8571
echo "${ECHO_T}$enable_shared" >&6
8573
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8574
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8575
# Make sure either enable_shared or enable_static is yes.
8576
test "$enable_shared" = yes || enable_static=yes
8577
echo "$as_me:$LINENO: result: $enable_static" >&5
8578
echo "${ECHO_T}$enable_static" >&6
8580
# The else clause should only fire when bootstrapping the
8581
# libtool distribution, otherwise you forgot to ship ltmain.sh
8582
# with your package, and you will get complaints that there are
8583
# no rules to generate ltmain.sh.
8584
if test -f "$ltmain"; then
8585
# See if we are running on zsh, and set the options which allow our commands through
8586
# without removal of \ escapes.
8587
if test -n "${ZSH_VERSION+set}" ; then
8588
setopt NO_GLOB_SUBST
8590
# Now quote all the things that may contain metacharacters while being
8591
# careful not to overquote the AC_SUBSTed values. We take copies of the
8592
# variables and quote the copies for generation of the libtool script.
8593
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8595
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8596
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8597
deplibs_check_method reload_flag reload_cmds need_locks \
8598
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8599
lt_cv_sys_global_symbol_to_c_name_address \
8600
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8601
old_postinstall_cmds old_postuninstall_cmds \
8605
lt_prog_compiler_wl \
8606
lt_prog_compiler_pic \
8607
lt_prog_compiler_static \
8608
lt_prog_compiler_no_builtin_flag \
8609
export_dynamic_flag_spec \
8610
thread_safe_flag_spec \
8611
whole_archive_flag_spec \
8612
enable_shared_with_static_runtimes \
8614
old_archive_from_new_cmds \
8619
compiler_lib_search_path \
8621
archive_expsym_cmds \
8623
postuninstall_cmds \
8624
old_archive_from_expsyms_cmds \
8625
allow_undefined_flag \
8627
export_symbols_cmds \
8628
hardcode_libdir_flag_spec \
8629
hardcode_libdir_flag_spec_ld \
8630
hardcode_libdir_separator \
8631
hardcode_automatic \
8633
module_expsym_cmds \
8634
lt_cv_prog_compiler_c_o \
8639
old_archive_cmds | \
8640
old_archive_from_new_cmds | \
8642
archive_expsym_cmds | \
8644
module_expsym_cmds | \
8645
old_archive_from_expsyms_cmds | \
8646
export_symbols_cmds | \
8647
extract_expsyms_cmds | reload_cmds | finish_cmds | \
8648
postinstall_cmds | postuninstall_cmds | \
8649
old_postinstall_cmds | old_postuninstall_cmds | \
8650
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8651
# Double-quote double-evaled strings.
8652
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8655
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8661
*'\$0 --fallback-echo"')
8662
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8667
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8669
{ echo "$as_me:$LINENO: creating $ofile" >&5
8670
echo "$as_me: creating $ofile" >&6;}
8672
cat <<__EOF__ >> "$cfgfile"
8675
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8676
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8677
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8679
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8680
# Free Software Foundation, Inc.
8682
# This file is part of GNU Libtool:
8683
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8685
# This program is free software; you can redistribute it and/or modify
8686
# it under the terms of the GNU General Public License as published by
8687
# the Free Software Foundation; either version 2 of the License, or
8688
# (at your option) any later version.
8690
# This program is distributed in the hope that it will be useful, but
8691
# WITHOUT ANY WARRANTY; without even the implied warranty of
8692
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8693
# General Public License for more details.
8695
# You should have received a copy of the GNU General Public License
8696
# along with this program; if not, write to the Free Software
8697
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8699
# As a special exception to the GNU General Public License, if you
8700
# distribute this file as part of a program that contains a
8701
# configuration script generated by Autoconf, you may include it under
8702
# the same distribution terms that you use for the rest of that program.
8704
# A sed program that does not truncate output.
8707
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8708
Xsed="$SED -e s/^X//"
8710
# The HP-UX ksh and POSIX shell print the target directory to stdout
8712
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8714
# The names of the tagged configurations supported by this script.
8717
# ### BEGIN LIBTOOL CONFIG
8719
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8721
# Shell to use when invoking shell scripts.
8724
# Whether or not to build shared libraries.
8725
build_libtool_libs=$enable_shared
8727
# Whether or not to build static libraries.
8728
build_old_libs=$enable_static
8730
# Whether or not to add -lc for building shared libraries.
8731
build_libtool_need_lc=$archive_cmds_need_lc
8733
# Whether or not to disallow shared libs when runtime libs are static
8734
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8736
# Whether or not to optimize for fast installation.
8737
fast_install=$enable_fast_install
8740
host_alias=$host_alias
8743
# An echo program that does not interpret backslashes.
8748
AR_FLAGS=$lt_AR_FLAGS
8753
# A language-specific compiler.
8756
# Is the compiler the GNU C compiler?
8762
# The linker used to build libraries.
8765
# Whether we need hard or soft links.
8768
# A BSD-compatible nm program.
8771
# A symbol stripping program
8774
# Used to examine libraries when file_magic_cmd begins "file"
8775
MAGIC_CMD=$MAGIC_CMD
8777
# Used on cygwin: DLL creation program.
8780
# Used on cygwin: object dumper.
8783
# Used on cygwin: assembler.
8786
# The name of the directory that contains temporary libtool files.
8789
# How to create reloadable object files.
8790
reload_flag=$lt_reload_flag
8791
reload_cmds=$lt_reload_cmds
8793
# How to pass a linker flag through the compiler.
8794
wl=$lt_lt_prog_compiler_wl
8796
# Object file suffix (normally "o").
8799
# Old archive suffix (normally "a").
8802
# Shared library suffix (normally ".so").
8803
shrext_cmds='$shrext_cmds'
8805
# Executable file suffix (normally "").
8808
# Additional compiler flags for building library objects.
8809
pic_flag=$lt_lt_prog_compiler_pic
8812
# What is the maximum length of a command?
8813
max_cmd_len=$lt_cv_sys_max_cmd_len
8815
# Does compiler simultaneously support -c and -o options?
8816
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8818
# Must we lock files when doing compilation ?
8819
need_locks=$lt_need_locks
8821
# Do we need the lib prefix for modules?
8822
need_lib_prefix=$need_lib_prefix
8824
# Do we need a version for libraries?
8825
need_version=$need_version
8827
# Whether dlopen is supported.
8828
dlopen_support=$enable_dlopen
8830
# Whether dlopen of programs is supported.
8831
dlopen_self=$enable_dlopen_self
8833
# Whether dlopen of statically linked programs is supported.
8834
dlopen_self_static=$enable_dlopen_self_static
8836
# Compiler flag to prevent dynamic linking.
8837
link_static_flag=$lt_lt_prog_compiler_static
8839
# Compiler flag to turn off builtin functions.
8840
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8842
# Compiler flag to allow reflexive dlopens.
8843
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8845
# Compiler flag to generate shared objects directly from archives.
8846
whole_archive_flag_spec=$lt_whole_archive_flag_spec
8848
# Compiler flag to generate thread-safe objects.
8849
thread_safe_flag_spec=$lt_thread_safe_flag_spec
8851
# Library versioning type.
8852
version_type=$version_type
8854
# Format of library name prefix.
8855
libname_spec=$lt_libname_spec
8857
# List of archive names. First name is the real one, the rest are links.
8858
# The last name is the one that the linker finds with -lNAME.
8859
library_names_spec=$lt_library_names_spec
8861
# The coded name of the library, if different from the real name.
8862
soname_spec=$lt_soname_spec
8864
# Commands used to build and install an old-style archive.
8866
old_archive_cmds=$lt_old_archive_cmds
8867
old_postinstall_cmds=$lt_old_postinstall_cmds
8868
old_postuninstall_cmds=$lt_old_postuninstall_cmds
8870
# Create an old-style archive from a shared archive.
8871
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8873
# Create a temporary old-style archive to link instead of a shared archive.
8874
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8876
# Commands used to build and install a shared archive.
8877
archive_cmds=$lt_archive_cmds
8878
archive_expsym_cmds=$lt_archive_expsym_cmds
8879
postinstall_cmds=$lt_postinstall_cmds
8880
postuninstall_cmds=$lt_postuninstall_cmds
8882
# Commands used to build a loadable module (assumed same as above if empty)
8883
module_cmds=$lt_module_cmds
8884
module_expsym_cmds=$lt_module_expsym_cmds
8886
# Commands to strip libraries.
8887
old_striplib=$lt_old_striplib
8888
striplib=$lt_striplib
8890
# Dependencies to place before the objects being linked to create a
8892
predep_objects=$lt_predep_objects
8894
# Dependencies to place after the objects being linked to create a
8896
postdep_objects=$lt_postdep_objects
8898
# Dependencies to place before the objects being linked to create a
8902
# Dependencies to place after the objects being linked to create a
8904
postdeps=$lt_postdeps
8906
# The library search path used internally by the compiler when linking
8908
compiler_lib_search_path=$lt_compiler_lib_search_path
8910
# Method to check whether dependent libraries are shared objects.
8911
deplibs_check_method=$lt_deplibs_check_method
8913
# Command to use when deplibs_check_method == file_magic.
8914
file_magic_cmd=$lt_file_magic_cmd
8916
# Flag that allows shared libraries with undefined symbols to be built.
8917
allow_undefined_flag=$lt_allow_undefined_flag
8919
# Flag that forces no undefined symbols.
8920
no_undefined_flag=$lt_no_undefined_flag
8922
# Commands used to finish a libtool library installation in a directory.
8923
finish_cmds=$lt_finish_cmds
8925
# Same as above, but a single script fragment to be evaled but not shown.
8926
finish_eval=$lt_finish_eval
8928
# Take the output of nm and produce a listing of raw symbols and C names.
8929
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8931
# Transform the output of nm in a proper C declaration
8932
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8934
# Transform the output of nm in a C name address pair
8935
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8937
# This is the shared library runtime path variable.
8938
runpath_var=$runpath_var
8940
# This is the shared library path variable.
8941
shlibpath_var=$shlibpath_var
8943
# Is shlibpath searched before the hard-coded library search path?
8944
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8946
# How to hardcode a shared library path into an executable.
8947
hardcode_action=$hardcode_action
8949
# Whether we should hardcode library paths into libraries.
8950
hardcode_into_libs=$hardcode_into_libs
8952
# Flag to hardcode \$libdir into a binary during linking.
8953
# This must work even if \$libdir does not exist.
8954
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8956
# If ld is used when linking, flag to hardcode \$libdir into
8957
# a binary during linking. This must work even if \$libdir does
8959
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8961
# Whether we need a single -rpath flag with a separated argument.
8962
hardcode_libdir_separator=$lt_hardcode_libdir_separator
8964
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8966
hardcode_direct=$hardcode_direct
8968
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8970
hardcode_minus_L=$hardcode_minus_L
8972
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8973
# the resulting binary.
8974
hardcode_shlibpath_var=$hardcode_shlibpath_var
8976
# Set to yes if building a shared library automatically hardcodes DIR into the library
8977
# and all subsequent libraries and executables linked against it.
8978
hardcode_automatic=$hardcode_automatic
8980
# Variables whose values should be saved in libtool wrapper scripts and
8981
# restored at relink time.
8982
variables_saved_for_relink="$variables_saved_for_relink"
8984
# Whether libtool must link a program against all its dependency libraries.
8985
link_all_deplibs=$link_all_deplibs
8987
# Compile-time system search path for libraries
8988
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8990
# Run-time system search path for libraries
8991
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8993
# Fix the shell variable \$srcfile for the compiler.
8994
fix_srcfile_path="$fix_srcfile_path"
8996
# Set to yes if exported symbols are required.
8997
always_export_symbols=$always_export_symbols
8999
# The commands to list exported symbols.
9000
export_symbols_cmds=$lt_export_symbols_cmds
9002
# The commands to extract the exported symbol list from a shared archive.
9003
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9005
# Symbols that should not be listed in the preloaded symbols.
9006
exclude_expsyms=$lt_exclude_expsyms
9008
# Symbols that must always be exported.
9009
include_expsyms=$lt_include_expsyms
9011
# ### END LIBTOOL CONFIG
9018
cat <<\EOF >> "$cfgfile"
9020
# AIX sometimes has problems with the GCC collect2 program. For some
9021
# reason, if we set the COLLECT_NAMES environment variable, the problems
9022
# vanish in a puff of smoke.
9023
if test "X${COLLECT_NAMES+set}" != Xset; then
9025
export COLLECT_NAMES
9031
# We use sed instead of cat because bash on DJGPP gets confused if
9032
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9033
# text mode, it properly converts lines to CR/LF. This bash problem
9034
# is reportedly fixed, but why not run on old versions too?
9035
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9037
mv -f "$cfgfile" "$ofile" || \
9038
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9042
# If there is no Makefile yet, we rely on a make rule to execute
9043
# `config.status --recheck' to rerun these tests and create the
9044
# libtool script then.
9045
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9046
if test -f "$ltmain_in"; then
9047
test -f Makefile && make "$ltmain"
9053
ac_cpp='$CPP $CPPFLAGS'
9054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9061
# Check whether --with-tags or --without-tags was given.
9062
if test "${with_tags+set}" = set; then
9063
withval="$with_tags"
9067
if test -f "$ltmain" && test -n "$tagnames"; then
9068
if test ! -f "${ofile}"; then
9069
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9070
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9073
if test -z "$LTCC"; then
9074
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9075
if test -z "$LTCC"; then
9076
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9077
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9079
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9080
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9084
# Extract list of available tagged configurations in $ofile.
9085
# Note that this assumes the entire list is on one line.
9086
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9088
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9089
for tagname in $tagnames; do
9091
# Check whether tagname contains only valid characters
9092
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9094
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9095
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9096
{ (exit 1); exit 1; }; }
9100
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9102
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9103
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9104
{ (exit 1); exit 1; }; }
9107
# Update the list of available tags.
9108
if test -n "$tagname"; then
9109
echo appending configuration tag \"$tagname\" to $ofile
9113
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9115
ac_cpp='$CXXCPP $CPPFLAGS'
9116
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9123
archive_cmds_need_lc_CXX=no
9124
allow_undefined_flag_CXX=
9125
always_export_symbols_CXX=no
9126
archive_expsym_cmds_CXX=
9127
export_dynamic_flag_spec_CXX=
9128
hardcode_direct_CXX=no
9129
hardcode_libdir_flag_spec_CXX=
9130
hardcode_libdir_flag_spec_ld_CXX=
9131
hardcode_libdir_separator_CXX=
9132
hardcode_minus_L_CXX=no
9133
hardcode_automatic_CXX=no
9135
module_expsym_cmds_CXX=
9136
link_all_deplibs_CXX=unknown
9137
old_archive_cmds_CXX=$old_archive_cmds
9138
no_undefined_flag_CXX=
9139
whole_archive_flag_spec_CXX=
9140
enable_shared_with_static_runtimes_CXX=no
9142
# Dependencies to place before and after the object being linked:
9144
postdep_objects_CXX=
9147
compiler_lib_search_path_CXX=
9149
# Source file extension for C++ test sources.
9152
# Object file extension for compiled C++ test sources.
9156
# Code to be used in simple compile tests
9157
lt_simple_compile_test_code="int some_variable = 0;\n"
9159
# Code to be used in simple link tests
9160
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9162
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9164
# If no C compiler was specified, use CC.
9167
# Allow CC to be a program name with arguments.
9171
# Allow CC to be a program name with arguments.
9176
lt_save_with_gnu_ld=$with_gnu_ld
9177
lt_save_path_LD=$lt_cv_path_LD
9178
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9179
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9181
unset lt_cv_prog_gnu_ld
9183
if test -n "${lt_cv_path_LDCXX+set}"; then
9184
lt_cv_path_LD=$lt_cv_path_LDCXX
9188
test -z "${LDCXX+set}" || LD=$LDCXX
9192
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9194
# We don't want -fno-exception wen compiling C++ code, so set the
9195
# no_builtin_flag separately
9196
if test "$GXX" = yes; then
9197
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9199
lt_prog_compiler_no_builtin_flag_CXX=
9202
if test "$GXX" = yes; then
9203
# Set up default GNU C++ configuration
9206
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9207
if test "${with_gnu_ld+set}" = set; then
9208
withval="$with_gnu_ld"
9209
test "$withval" = no || with_gnu_ld=yes
9214
if test "$GCC" = yes; then
9215
# Check if gcc -print-prog-name=ld gives a path.
9216
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9217
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9220
# gcc leaves a trailing carriage return which upsets mingw
9221
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9223
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9226
# Accept absolute paths.
9228
re_direlt='/[^/][^/]*/\.\./'
9229
# Canonicalize the pathname of ld
9230
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9231
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9232
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9234
test -z "$LD" && LD="$ac_prog"
9237
# If it fails, then pretend we aren't using GCC.
9241
# If it is relative, then search for the first ld in PATH.
9245
elif test "$with_gnu_ld" = yes; then
9246
echo "$as_me:$LINENO: checking for GNU ld" >&5
9247
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9249
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9250
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9252
if test "${lt_cv_path_LD+set}" = set; then
9253
echo $ECHO_N "(cached) $ECHO_C" >&6
9255
if test -z "$LD"; then
9256
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9257
for ac_dir in $PATH; do
9259
test -z "$ac_dir" && ac_dir=.
9260
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9261
lt_cv_path_LD="$ac_dir/$ac_prog"
9262
# Check to see if the program is GNU ld. I'd rather use --version,
9263
# but apparently some GNU ld's only accept -v.
9264
# Break only if it was the GNU/non-GNU ld that we prefer.
9265
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9266
*GNU* | *'with BFD'*)
9267
test "$with_gnu_ld" != no && break
9270
test "$with_gnu_ld" != yes && break
9277
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9282
if test -n "$LD"; then
9283
echo "$as_me:$LINENO: result: $LD" >&5
9284
echo "${ECHO_T}$LD" >&6
9286
echo "$as_me:$LINENO: result: no" >&5
9287
echo "${ECHO_T}no" >&6
9289
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9290
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9291
{ (exit 1); exit 1; }; }
9292
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9293
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9294
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9295
echo $ECHO_N "(cached) $ECHO_C" >&6
9297
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9298
case `$LD -v 2>&1 </dev/null` in
9299
*GNU* | *'with BFD'*)
9300
lt_cv_prog_gnu_ld=yes
9303
lt_cv_prog_gnu_ld=no
9307
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9308
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9309
with_gnu_ld=$lt_cv_prog_gnu_ld
9313
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9314
# archiving commands below assume that GNU ld is being used.
9315
if test "$with_gnu_ld" = yes; then
9316
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317
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'
9319
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9320
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9322
# If archive_cmds runs LD, not CC, wlarc should be empty
9323
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9324
# investigate it a little bit more. (MM)
9327
# ancient GNU ld didn't support --whole-archive et. al.
9328
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9329
grep 'no-whole-archive' > /dev/null; then
9330
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9332
whole_archive_flag_spec_CXX=
9338
# A generic and very simple default shared library creation
9339
# command for GNU C++ for the case where it uses the native
9340
# linker, instead of GNU ld. If possible, this setting should
9341
# overridden to take advantage of the native linker features on
9342
# the platform it is being used on.
9343
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9346
# Commands to make compiler produce verbose output that lists
9347
# what "hidden" libraries, object files and flags are used when
9348
# linking a shared library.
9349
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9357
# PORTME: fill in a description of your system's C++ link characteristics
9358
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9359
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9363
# FIXME: insert proper C++ library support
9367
if test "$host_cpu" = ia64; then
9368
# On IA64, the linker does run time linking by default, so we don't
9369
# have to do anything special.
9370
aix_use_runtimelinking=no
9371
exp_sym_flag='-Bexport'
9374
aix_use_runtimelinking=no
9376
# Test if we are trying to use run time linking or normal
9377
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9378
# need to do runtime linking.
9379
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9380
for ld_flag in $LDFLAGS; do
9383
aix_use_runtimelinking=yes
9390
exp_sym_flag='-bexport'
9391
no_entry_flag='-bnoentry'
9394
# When large executables or shared objects are built, AIX ld can
9395
# have problems creating the table of contents. If linking a library
9396
# or program results in "error TOC overflow" add -mminimal-toc to
9397
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9398
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9401
hardcode_direct_CXX=yes
9402
hardcode_libdir_separator_CXX=':'
9403
link_all_deplibs_CXX=yes
9405
if test "$GXX" = yes; then
9406
case $host_os in aix4.012|aix4.012.*)
9407
# We only want to do this on AIX 4.2 and lower, the check
9408
# below for broken collect2 doesn't work under 4.3+
9409
collect2name=`${CC} -print-prog-name=collect2`
9410
if test -f "$collect2name" && \
9411
strings "$collect2name" | grep resolve_lib_name >/dev/null
9413
# We have reworked collect2
9414
hardcode_direct_CXX=yes
9416
# We have old collect2
9417
hardcode_direct_CXX=unsupported
9418
# It fails to find uninstalled libraries when the uninstalled
9419
# path is not listed in the libpath. Setting hardcode_minus_L
9420
# to unsupported forces relinking
9421
hardcode_minus_L_CXX=yes
9422
hardcode_libdir_flag_spec_CXX='-L$libdir'
9423
hardcode_libdir_separator_CXX=
9426
shared_flag='-shared'
9429
if test "$host_cpu" = ia64; then
9430
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9431
# chokes on -Wl,-G. The following line is correct:
9434
if test "$aix_use_runtimelinking" = yes; then
9435
shared_flag='${wl}-G'
9437
shared_flag='${wl}-bM:SRE'
9442
# It seems that -bexpall does not export symbols beginning with
9443
# underscore (_), so it is better to generate a list of symbols to export.
9444
always_export_symbols_CXX=yes
9445
if test "$aix_use_runtimelinking" = yes; then
9446
# Warning - without using the other runtime loading flags (-brtl),
9447
# -berok will link without error, but may produce a broken library.
9448
allow_undefined_flag_CXX='-berok'
9449
# Determine the default libpath from the value encoded in an empty executable.
9450
cat >conftest.$ac_ext <<_ACEOF
9453
cat confdefs.h >>conftest.$ac_ext
9454
cat >>conftest.$ac_ext <<_ACEOF
9455
/* end confdefs.h. */
9465
rm -f conftest.$ac_objext conftest$ac_exeext
9466
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467
(eval $ac_link) 2>conftest.er1
9469
grep -v '^ *+' conftest.er1 >conftest.err
9471
cat conftest.err >&5
9472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473
(exit $ac_status); } &&
9474
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9475
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479
(exit $ac_status); }; } &&
9480
{ ac_try='test -s conftest$ac_exeext'
9481
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485
(exit $ac_status); }; }; then
9487
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9489
# Check for a 64-bit object if we didn't find anything.
9490
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; }
9493
echo "$as_me: failed program was:" >&5
9494
sed 's/^/| /' conftest.$ac_ext >&5
9497
rm -f conftest.err conftest.$ac_objext \
9498
conftest$ac_exeext conftest.$ac_ext
9499
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9501
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9503
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"
9505
if test "$host_cpu" = ia64; then
9506
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9507
allow_undefined_flag_CXX="-z nodefs"
9508
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"
9510
# Determine the default libpath from the value encoded in an empty executable.
9511
cat >conftest.$ac_ext <<_ACEOF
9514
cat confdefs.h >>conftest.$ac_ext
9515
cat >>conftest.$ac_ext <<_ACEOF
9516
/* end confdefs.h. */
9526
rm -f conftest.$ac_objext conftest$ac_exeext
9527
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9528
(eval $ac_link) 2>conftest.er1
9530
grep -v '^ *+' conftest.er1 >conftest.err
9532
cat conftest.err >&5
9533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534
(exit $ac_status); } &&
9535
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540
(exit $ac_status); }; } &&
9541
{ ac_try='test -s conftest$ac_exeext'
9542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546
(exit $ac_status); }; }; then
9548
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9550
# Check for a 64-bit object if we didn't find anything.
9551
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; }
9554
echo "$as_me: failed program was:" >&5
9555
sed 's/^/| /' conftest.$ac_ext >&5
9558
rm -f conftest.err conftest.$ac_objext \
9559
conftest$ac_exeext conftest.$ac_ext
9560
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9562
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9563
# Warning - without using the other run time loading flags,
9564
# -berok will link without error, but may produce a broken library.
9565
no_undefined_flag_CXX=' ${wl}-bernotok'
9566
allow_undefined_flag_CXX=' ${wl}-berok'
9567
# -bexpall does not export symbols beginning with underscore (_)
9568
always_export_symbols_CXX=yes
9569
# Exported symbols can be pulled into shared objects from archives
9570
whole_archive_flag_spec_CXX=' '
9571
archive_cmds_need_lc_CXX=yes
9572
# This is similar to how AIX traditionally builds it's shared libraries.
9573
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'
9578
case $cc_basename in
9580
# FIXME: insert proper C++ library support
9586
cygwin* | mingw* | pw32*)
9587
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9588
# as there is no search path for DLLs.
9589
hardcode_libdir_flag_spec_CXX='-L$libdir'
9590
allow_undefined_flag_CXX=unsupported
9591
always_export_symbols_CXX=no
9592
enable_shared_with_static_runtimes_CXX=yes
9594
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9595
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'
9596
# If the export-symbols file already is a .def file (1st line
9597
# is EXPORTS), use it as is; otherwise, prepend...
9598
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9599
cp $export_symbols $output_objdir/$soname.def;
9601
echo EXPORTS > $output_objdir/$soname.def;
9602
cat $export_symbols >> $output_objdir/$soname.def;
9604
$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'
9610
darwin* | rhapsody*)
9611
if test "$GXX" = yes; then
9612
archive_cmds_need_lc_CXX=no
9614
rhapsody* | darwin1.[012])
9615
allow_undefined_flag_CXX='-undefined suppress'
9618
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9619
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9621
case ${MACOSX_DEPLOYMENT_TARGET} in
9623
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9626
allow_undefined_flag_CXX='-undefined dynamic_lookup'
9632
lt_int_apple_cc_single_mod=no
9633
output_verbose_link_cmd='echo'
9634
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9635
lt_int_apple_cc_single_mod=yes
9637
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9638
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9640
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'
9642
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9644
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9645
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9646
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}'
9648
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}'
9650
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}'
9651
hardcode_direct_CXX=no
9652
hardcode_automatic_CXX=yes
9653
hardcode_shlibpath_var_CXX=unsupported
9654
whole_archive_flag_spec_CXX='-all_load $convenience'
9655
link_all_deplibs_CXX=yes
9662
case $cc_basename in
9664
# FIXME: insert proper C++ library support
9668
# Green Hills C++ Compiler
9669
# FIXME: insert proper C++ library support
9673
# FIXME: insert proper C++ library support
9679
# C++ shared libraries reported to be fairly broken before switch to ELF
9683
archive_cmds_need_lc_CXX=no
9685
freebsd* | kfreebsd*-gnu)
9686
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9693
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9694
hardcode_libdir_separator_CXX=:
9695
export_dynamic_flag_spec_CXX='${wl}-E'
9696
hardcode_direct_CXX=yes
9697
hardcode_minus_L_CXX=yes # Not in the search PATH,
9698
# but as the default
9699
# location of the library.
9701
case $cc_basename in
9703
# FIXME: insert proper C++ library support
9707
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'
9708
# Commands to make compiler produce verbose output that lists
9709
# what "hidden" libraries, object files and flags are used when
9710
# linking a shared library.
9712
# There doesn't appear to be a way to prevent this compiler from
9713
# explicitly linking system object files so we need to strip them
9714
# from the output so that they don't get included in the library
9716
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'
9719
if test "$GXX" = yes; then
9720
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'
9722
# FIXME: insert proper C++ library support
9729
if test $with_gnu_ld = no; then
9732
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9733
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9734
hardcode_libdir_separator_CXX=:
9737
hardcode_libdir_flag_spec_CXX='-L$libdir'
9740
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9741
hardcode_libdir_separator_CXX=:
9742
export_dynamic_flag_spec_CXX='${wl}-E'
9748
hardcode_direct_CXX=no
9749
hardcode_shlibpath_var_CXX=no
9752
hardcode_direct_CXX=no
9753
hardcode_shlibpath_var_CXX=no
9754
hardcode_minus_L_CXX=yes # Not in the search PATH,
9755
# but as the default
9756
# location of the library.
9759
hardcode_direct_CXX=yes
9760
hardcode_minus_L_CXX=yes # Not in the search PATH,
9761
# but as the default
9762
# location of the library.
9766
case $cc_basename in
9768
# FIXME: insert proper C++ library support
9774
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9777
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9780
# Commands to make compiler produce verbose output that lists
9781
# what "hidden" libraries, object files and flags are used when
9782
# linking a shared library.
9784
# There doesn't appear to be a way to prevent this compiler from
9785
# explicitly linking system object files so we need to strip them
9786
# from the output so that they don't get included in the library
9788
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'
9791
if test "$GXX" = yes; then
9792
if test $with_gnu_ld = no; then
9795
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9798
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'
9803
# FIXME: insert proper C++ library support
9810
case $cc_basename in
9813
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'
9815
# Archives containing C++ object files must be created using
9816
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
9817
# necessary to make sure instantiated templates are included
9819
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9822
if test "$GXX" = yes; then
9823
if test "$with_gnu_ld" = no; then
9824
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'
9826
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'
9829
link_all_deplibs_CXX=yes
9832
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9833
hardcode_libdir_separator_CXX=:
9836
case $cc_basename in
9838
# Kuck and Associates, Inc. (KAI) C++ Compiler
9840
# KCC will only create a shared library if the output file
9841
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9842
# to its proper name (with version) after linking.
9843
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'
9844
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'
9845
# Commands to make compiler produce verbose output that lists
9846
# what "hidden" libraries, object files and flags are used when
9847
# linking a shared library.
9849
# There doesn't appear to be a way to prevent this compiler from
9850
# explicitly linking system object files so we need to strip them
9851
# from the output so that they don't get included in the library
9853
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'
9855
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9856
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9858
# Archives containing C++ object files must be created using
9859
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9860
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9865
archive_cmds_need_lc_CXX=no
9866
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9867
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'
9868
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9869
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9870
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9874
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9875
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'
9877
runpath_var=LD_RUN_PATH
9878
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9879
hardcode_libdir_separator_CXX=:
9881
# Commands to make compiler produce verbose output that lists
9882
# what "hidden" libraries, object files and flags are used when
9883
# linking a shared library.
9885
# There doesn't appear to be a way to prevent this compiler from
9886
# explicitly linking system object files so we need to strip them
9887
# from the output so that they don't get included in the library
9889
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'
9894
# FIXME: insert proper C++ library support
9898
# FIXME: insert proper C++ library support
9902
case $cc_basename in
9904
# FIXME: insert proper C++ library support
9908
# FIXME: insert proper C++ library support
9913
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
9914
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9915
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9917
hardcode_libdir_flag_spec_CXX='-R$libdir'
9918
hardcode_direct_CXX=yes
9919
hardcode_shlibpath_var_CXX=no
9921
# Workaround some broken pre-1.5 toolchains
9922
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9925
case $cc_basename in
9927
# Kuck and Associates, Inc. (KAI) C++ Compiler
9929
# KCC will only create a shared library if the output file
9930
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9931
# to its proper name (with version) after linking.
9932
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'
9934
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9935
hardcode_libdir_separator_CXX=:
9937
# Archives containing C++ object files must be created using
9938
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9939
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9943
# Rational C++ 2.4.1
9944
# FIXME: insert proper C++ library support
9948
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9949
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'
9951
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9952
hardcode_libdir_separator_CXX=:
9954
# Commands to make compiler produce verbose output that lists
9955
# what "hidden" libraries, object files and flags are used when
9956
# linking a shared library.
9958
# There doesn't appear to be a way to prevent this compiler from
9959
# explicitly linking system object files so we need to strip them
9960
# from the output so that they don't get included in the library
9962
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'
9965
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9966
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9967
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'
9969
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9970
hardcode_libdir_separator_CXX=:
9972
# Commands to make compiler produce verbose output that lists
9973
# what "hidden" libraries, object files and flags are used when
9974
# linking a shared library.
9975
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9978
# FIXME: insert proper C++ library support
9985
case $cc_basename in
9987
# Kuck and Associates, Inc. (KAI) C++ Compiler
9989
# KCC will only create a shared library if the output file
9990
# ends with ".so" (or ".sl" for HP-UX), so rename the library
9991
# to its proper name (with version) after linking.
9992
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'
9994
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9995
hardcode_libdir_separator_CXX=:
9997
# Archives containing C++ object files must be created using
9998
# the KAI C++ compiler.
9999
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10002
# Rational C++ 2.4.1
10003
# FIXME: insert proper C++ library support
10007
allow_undefined_flag_CXX=' -expect_unresolved \*'
10008
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'
10009
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10010
echo "-hidden">> $lib.exp~
10011
$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~
10014
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10015
hardcode_libdir_separator_CXX=:
10017
# Commands to make compiler produce verbose output that lists
10018
# what "hidden" libraries, object files and flags are used when
10019
# linking a shared library.
10021
# There doesn't appear to be a way to prevent this compiler from
10022
# explicitly linking system object files so we need to strip them
10023
# from the output so that they don't get included in the library
10025
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'
10028
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10029
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10030
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'
10032
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10033
hardcode_libdir_separator_CXX=:
10035
# Commands to make compiler produce verbose output that lists
10036
# what "hidden" libraries, object files and flags are used when
10037
# linking a shared library.
10038
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10041
# FIXME: insert proper C++ library support
10048
# FIXME: insert proper C++ library support
10052
archive_cmds_need_lc_CXX=no
10053
case $cc_basename in
10055
# FIXME: insert proper C++ library support
10059
# FIXME: insert proper C++ library support
10065
case $cc_basename in
10068
# FIXME: insert proper C++ library support
10073
# FIXME: insert proper C++ library support
10077
# FIXME: insert proper C++ library support
10083
case $cc_basename in
10085
# Sun C++ 4.2, 5.x and Centerline C++
10086
no_undefined_flag_CXX=' -zdefs'
10087
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10088
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10089
$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'
10091
hardcode_libdir_flag_spec_CXX='-R$libdir'
10092
hardcode_shlibpath_var_CXX=no
10094
solaris2.0-5 | solaris2.0-5.*) ;;
10096
# The C++ compiler is used as linker so we must use $wl
10097
# flag to pass the commands to the underlying system
10099
# Supported since Solaris 2.6 (maybe 2.5.1?)
10100
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10103
link_all_deplibs_CXX=yes
10105
# Commands to make compiler produce verbose output that lists
10106
# what "hidden" libraries, object files and flags are used when
10107
# linking a shared library.
10109
# There doesn't appear to be a way to prevent this compiler from
10110
# explicitly linking system object files so we need to strip them
10111
# from the output so that they don't get included in the library
10113
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'
10115
# Archives containing C++ object files must be created using
10116
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10117
# necessary to make sure instantiated templates are included
10119
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10122
# Green Hills C++ Compiler
10123
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10125
# The C++ compiler must be used to create the archive.
10126
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10129
# GNU C++ compiler with Solaris linker
10130
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10131
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10132
if $CC --version | grep -v '^2\.7' > /dev/null; then
10133
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10134
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10135
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10137
# Commands to make compiler produce verbose output that lists
10138
# what "hidden" libraries, object files and flags are used when
10139
# linking a shared library.
10140
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10142
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10144
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10145
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10146
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10148
# Commands to make compiler produce verbose output that lists
10149
# what "hidden" libraries, object files and flags are used when
10150
# linking a shared library.
10151
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10154
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10159
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10160
archive_cmds_need_lc_CXX=no
10163
case $cc_basename in
10165
# NonStop-UX NCC 3.20
10166
# FIXME: insert proper C++ library support
10170
# FIXME: insert proper C++ library support
10176
# FIXME: insert proper C++ library support
10180
# FIXME: insert proper C++ library support
10184
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10185
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10186
test "$ld_shlibs_CXX" = no && can_build_shared=no
10192
cat > conftest.$ac_ext <<EOF
10196
Foo (void) { a = 0; }
10202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203
(eval $ac_compile) 2>&5
10205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206
(exit $ac_status); }; then
10207
# Parse the compiler output and extract the necessary
10208
# objects, libraries and library flags.
10210
# Sentinel used to keep track of whether or not we are before
10211
# the conftest object file.
10212
pre_test_object_deps_done=no
10214
# The `*' in the case matches for architectures that use `case' in
10215
# $output_verbose_cmd can trigger glob expansion during the loop
10216
# eval without this substitution.
10217
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10219
for p in `eval $output_verbose_link_cmd`; do
10223
# Some compilers place space between "-{L,R}" and the path.
10224
# Remove the space.
10225
if test $p = "-L" \
10226
|| test $p = "-R"; then
10233
if test "$pre_test_object_deps_done" = no; then
10236
# Internal compiler library paths should come after those
10237
# provided the user. The postdeps already come after the
10238
# user supplied libs so there is no need to process them.
10239
if test -z "$compiler_lib_search_path_CXX"; then
10240
compiler_lib_search_path_CXX="${prev}${p}"
10242
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10245
# The "-l" case would never come before the object being
10246
# linked, so don't bother handling this case.
10249
if test -z "$postdeps_CXX"; then
10250
postdeps_CXX="${prev}${p}"
10252
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10258
# This assumes that the test object file only shows up
10259
# once in the compiler output.
10260
if test "$p" = "conftest.$objext"; then
10261
pre_test_object_deps_done=yes
10265
if test "$pre_test_object_deps_done" = no; then
10266
if test -z "$predep_objects_CXX"; then
10267
predep_objects_CXX="$p"
10269
predep_objects_CXX="$predep_objects_CXX $p"
10272
if test -z "$postdep_objects_CXX"; then
10273
postdep_objects_CXX="$p"
10275
postdep_objects_CXX="$postdep_objects_CXX $p"
10280
*) ;; # Ignore the rest.
10288
echo "libtool.m4: error: problem compiling CXX test program"
10291
$rm -f confest.$objext
10293
case " $postdeps_CXX " in
10294
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10297
lt_prog_compiler_wl_CXX=
10298
lt_prog_compiler_pic_CXX=
10299
lt_prog_compiler_static_CXX=
10301
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10302
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10304
# C++ specific cases for pic, static, wl, etc.
10305
if test "$GXX" = yes; then
10306
lt_prog_compiler_wl_CXX='-Wl,'
10307
lt_prog_compiler_static_CXX='-static'
10311
# All AIX code is PIC.
10312
if test "$host_cpu" = ia64; then
10313
# AIX 5 now supports IA64 processor
10314
lt_prog_compiler_static_CXX='-Bstatic'
10318
# FIXME: we need at least 68020 code to build shared libraries, but
10319
# adding the `-m68020' flag to GCC prevents building anything better,
10321
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10323
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10324
# PIC is the default for these OSes.
10326
mingw* | os2* | pw32*)
10327
# This hack is so that the source file can tell whether it is being
10328
# built for inclusion in a dll (and should export symbols for example).
10329
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10331
darwin* | rhapsody*)
10332
# PIC is the default on this platform
10333
# Common symbols not allowed in MH_DYLIB files
10334
lt_prog_compiler_pic_CXX='-fno-common'
10337
# DJGPP does not support shared libraries at all
10338
lt_prog_compiler_pic_CXX=
10341
if test -d /usr/nec; then
10342
lt_prog_compiler_pic_CXX=-Kconform_pic
10346
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10347
# not for PA HP-UX.
10348
case "$host_cpu" in
10352
lt_prog_compiler_pic_CXX='-fPIC'
10357
lt_prog_compiler_pic_CXX='-fPIC'
10363
# All AIX code is PIC.
10364
if test "$host_cpu" = ia64; then
10365
# AIX 5 now supports IA64 processor
10366
lt_prog_compiler_static_CXX='-Bstatic'
10368
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10372
case $cc_basename in
10374
# Green Hills C++ Compiler
10375
# _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"
10380
case $cc_basename in
10382
lt_prog_compiler_pic_CXX='-KPIC'
10385
# Green Hills C++ Compiler
10386
lt_prog_compiler_pic_CXX='-pic'
10392
freebsd* | kfreebsd*-gnu)
10393
# FreeBSD uses GNU C++
10395
hpux9* | hpux10* | hpux11*)
10396
case $cc_basename in
10398
lt_prog_compiler_wl_CXX='-Wl,'
10399
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10400
if test "$host_cpu" != ia64; then
10401
lt_prog_compiler_pic_CXX='+Z'
10405
lt_prog_compiler_wl_CXX='-Wl,'
10406
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10407
case "$host_cpu" in
10412
lt_prog_compiler_pic_CXX='+Z'
10420
irix5* | irix6* | nonstopux*)
10421
case $cc_basename in
10423
lt_prog_compiler_wl_CXX='-Wl,'
10424
lt_prog_compiler_static_CXX='-non_shared'
10425
# CC pic flag -KPIC is the default.
10432
case $cc_basename in
10435
lt_prog_compiler_wl_CXX='--backend -Wl,'
10436
lt_prog_compiler_pic_CXX='-fPIC'
10440
lt_prog_compiler_wl_CXX='-Wl,'
10441
lt_prog_compiler_pic_CXX='-KPIC'
10442
lt_prog_compiler_static_CXX='-static'
10446
# Make sure the PIC flag is empty. It appears that all Alpha
10447
# Linux and Compaq Tru64 Unix objects are PIC.
10448
lt_prog_compiler_pic_CXX=
10449
lt_prog_compiler_static_CXX='-non_shared'
10460
case $cc_basename in
10462
lt_prog_compiler_pic_CXX='-W c,exportall'
10468
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10470
osf3* | osf4* | osf5*)
10471
case $cc_basename in
10473
lt_prog_compiler_wl_CXX='--backend -Wl,'
10476
# Rational C++ 2.4.1
10477
lt_prog_compiler_pic_CXX='-pic'
10480
# Digital/Compaq C++
10481
lt_prog_compiler_wl_CXX='-Wl,'
10482
# Make sure the PIC flag is empty. It appears that all Alpha
10483
# Linux and Compaq Tru64 Unix objects are PIC.
10484
lt_prog_compiler_pic_CXX=
10485
lt_prog_compiler_static_CXX='-non_shared'
10494
case $cc_basename in
10496
lt_prog_compiler_pic_CXX='-fPIC'
10503
case $cc_basename in
10505
# Sun C++ 4.2, 5.x and Centerline C++
10506
lt_prog_compiler_pic_CXX='-KPIC'
10507
lt_prog_compiler_static_CXX='-Bstatic'
10508
lt_prog_compiler_wl_CXX='-Qoption ld '
10511
# Green Hills C++ Compiler
10512
lt_prog_compiler_pic_CXX='-PIC'
10519
case $cc_basename in
10522
lt_prog_compiler_pic_CXX='-pic'
10523
lt_prog_compiler_static_CXX='-Bstatic'
10527
lt_prog_compiler_pic_CXX='-pic'
10534
case $cc_basename in
10536
# NonStop-UX NCC 3.20
10537
lt_prog_compiler_pic_CXX='-KPIC'
10548
lt_prog_compiler_can_build_shared_CXX=no
10553
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10554
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10557
# Check to make sure the PIC flag actually works.
10559
if test -n "$lt_prog_compiler_pic_CXX"; then
10561
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10562
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10563
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10564
echo $ECHO_N "(cached) $ECHO_C" >&6
10566
lt_prog_compiler_pic_works_CXX=no
10567
ac_outfile=conftest.$ac_objext
10568
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10569
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10570
# Insert the option either (1) after the last *FLAGS variable, or
10571
# (2) before a word containing "conftest.", or (3) at the end.
10572
# Note that $ac_compile itself does not contain backslashes and begins
10573
# with a dollar sign (not a hyphen), so the echo should work correctly.
10574
# The option is referenced via a variable to avoid confusing sed.
10575
lt_compile=`echo "$ac_compile" | $SED \
10576
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10577
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10578
-e 's:$: $lt_compiler_flag:'`
10579
(eval echo "\"\$as_me:10579: $lt_compile\"" >&5)
10580
(eval "$lt_compile" 2>conftest.err)
10582
cat conftest.err >&5
10583
echo "$as_me:10583: \$? = $ac_status" >&5
10584
if (exit $ac_status) && test -s "$ac_outfile"; then
10585
# The compiler can only warn and ignore the option if not recognized
10586
# So say no if there are warnings
10587
if test ! -s conftest.err; then
10588
lt_prog_compiler_pic_works_CXX=yes
10594
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10595
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10597
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10598
case $lt_prog_compiler_pic_CXX in
10600
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10603
lt_prog_compiler_pic_CXX=
10604
lt_prog_compiler_can_build_shared_CXX=no
10609
# For platforms which do not support PIC, -DPIC is meaningless:
10611
lt_prog_compiler_pic_CXX=
10614
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10618
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10619
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10620
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10621
echo $ECHO_N "(cached) $ECHO_C" >&6
10623
lt_cv_prog_compiler_c_o_CXX=no
10624
$rm -r conftest 2>/dev/null
10628
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10630
lt_compiler_flag="-o out/conftest2.$ac_objext"
10631
# Insert the option either (1) after the last *FLAGS variable, or
10632
# (2) before a word containing "conftest.", or (3) at the end.
10633
# Note that $ac_compile itself does not contain backslashes and begins
10634
# with a dollar sign (not a hyphen), so the echo should work correctly.
10635
lt_compile=`echo "$ac_compile" | $SED \
10636
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10637
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10638
-e 's:$: $lt_compiler_flag:'`
10639
(eval echo "\"\$as_me:10639: $lt_compile\"" >&5)
10640
(eval "$lt_compile" 2>out/conftest.err)
10642
cat out/conftest.err >&5
10643
echo "$as_me:10643: \$? = $ac_status" >&5
10644
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10646
# The compiler can only warn and ignore the option if not recognized
10647
# So say no if there are warnings
10648
if test ! -s out/conftest.err; then
10649
lt_cv_prog_compiler_c_o_CXX=yes
10654
# SGI C++ compiler will create directory out/ii_files/ for
10655
# template instantiation
10656
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10657
$rm out/* && rmdir out
10663
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10664
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10667
hard_links="nottested"
10668
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10669
# do not overwrite the value of need_locks provided by the user
10670
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10671
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10674
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10676
ln conftest.a conftest.b 2>&5 || hard_links=no
10677
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10678
echo "$as_me:$LINENO: result: $hard_links" >&5
10679
echo "${ECHO_T}$hard_links" >&6
10680
if test "$hard_links" = no; then
10681
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10682
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10689
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10690
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10692
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10695
# If we're using GNU nm, then we don't want the "-C" option.
10696
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10697
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10698
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'
10700
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'
10704
export_symbols_cmds_CXX="$ltdll_cmds"
10707
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10710
link_all_deplibs_CXX=no
10713
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10717
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10718
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10719
test "$ld_shlibs_CXX" = no && can_build_shared=no
10721
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10722
if test "$GCC" = yes; then
10723
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10727
# Do we need to explicitly link libc?
10729
case "x$archive_cmds_need_lc_CXX" in
10731
# Assume -lc should be added
10732
archive_cmds_need_lc_CXX=yes
10734
if test "$enable_shared" = yes && test "$GCC" = yes; then
10735
case $archive_cmds_CXX in
10737
# FIXME: we may have to deal with multi-command sequences.
10740
# Test whether the compiler implicitly links with -lc since on some
10741
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10742
# to ld, don't add -lc before -lgcc.
10743
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10744
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10746
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10748
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10749
(eval $ac_compile) 2>&5
10751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752
(exit $ac_status); } 2>conftest.err; then
10755
libobjs=conftest.$ac_objext
10757
wl=$lt_prog_compiler_wl_CXX
10763
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10764
allow_undefined_flag_CXX=
10765
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10766
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769
(exit $ac_status); }
10771
archive_cmds_need_lc_CXX=no
10773
archive_cmds_need_lc_CXX=yes
10775
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10777
cat conftest.err 1>&5
10780
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10781
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10788
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10789
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10790
library_names_spec=
10791
libname_spec='lib$name'
10795
postuninstall_cmds=
10799
shlibpath_overrides_runpath=unknown
10801
dynamic_linker="$host_os ld.so"
10802
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10803
if test "$GCC" = yes; then
10804
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10805
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10806
# if the path contains ";" then we assume it to be the separator
10807
# otherwise default to the standard path separator (i.e. ":") - it is
10808
# assumed that no part of a normal pathname contains ";" but that should
10809
# okay in the real world where ";" in dirpaths is itself problematic.
10810
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10812
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10815
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10817
need_lib_prefix=unknown
10818
hardcode_into_libs=no
10820
# when you set need_version to no, make sure it does not cause -set_version
10821
# flags to be left without arguments
10822
need_version=unknown
10827
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10828
shlibpath_var=LIBPATH
10830
# AIX 3 has no versioning support, so we append a major version to the name.
10831
soname_spec='${libname}${release}${shared_ext}$major'
10838
hardcode_into_libs=yes
10839
if test "$host_cpu" = ia64; then
10840
# AIX 5 supports IA64
10841
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10842
shlibpath_var=LD_LIBRARY_PATH
10844
# With GCC up to 2.95.x, collect2 would create an import file
10845
# for dependence libraries. The import file would start with
10846
# the line `#! .'. This would cause the generated library to
10847
# depend on `.', always an invalid library. This was fixed in
10848
# development snapshots of GCC prior to 3.0.
10850
aix4 | aix4.[01] | aix4.[01].*)
10851
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10853
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10856
can_build_shared=no
10860
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10861
# soname into executable. Probably we can add versioning support to
10862
# collect2, so additional links can be useful in future.
10863
if test "$aix_use_runtimelinking" = yes; then
10864
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10865
# instead of lib<name>.a to let people know that these are not
10866
# typical AIX shared libraries.
10867
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869
# We preserve .a as extension for shared libraries through AIX4.2
10870
# and later when we are not doing run time linking.
10871
library_names_spec='${libname}${release}.a $libname.a'
10872
soname_spec='${libname}${release}${shared_ext}$major'
10874
shlibpath_var=LIBPATH
10879
library_names_spec='$libname.ixlibrary $libname.a'
10880
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10881
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'
10885
library_names_spec='${libname}${shared_ext}'
10886
dynamic_linker="$host_os ld.so"
10887
shlibpath_var=LIBRARY_PATH
10893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894
soname_spec='${libname}${release}${shared_ext}$major'
10895
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10896
shlibpath_var=LD_LIBRARY_PATH
10897
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10898
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10899
# the default ld.so.conf also contains /usr/contrib/lib and
10900
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10901
# libtool to hard-code these into programs
10904
cygwin* | mingw* | pw32*)
10905
version_type=windows
10910
case $GCC,$host_os in
10911
yes,cygwin* | yes,mingw* | yes,pw32*)
10912
library_names_spec='$libname.dll.a'
10913
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10914
postinstall_cmds='base_file=`basename \${file}`~
10915
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10916
dldir=$destdir/`dirname \$dlpath`~
10917
test -d \$dldir || mkdir -p \$dldir~
10918
$install_prog $dir/$dlname \$dldir/$dlname'
10919
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10920
dlpath=$dir/\$dldll~
10922
shlibpath_overrides_runpath=yes
10926
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10927
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10928
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10931
# MinGW DLLs use traditional 'lib' prefix
10932
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10933
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10934
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10935
# It is most probably a Windows format PATH printed by
10936
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10937
# path with ; separators, and with drive letters. We can handle the
10938
# drive letters (cygwin fileutils understands them), so leave them,
10939
# especially as we might pass files found there to a mingw objdump,
10940
# which wouldn't understand a cygwinified path. Ahh.
10941
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10943
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10947
# pw32 DLLs use 'pw' prefix rather than 'lib'
10948
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10954
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10957
dynamic_linker='Win32 ld.exe'
10958
# FIXME: first we should search . and the directory the executable is in
10962
darwin* | rhapsody*)
10963
dynamic_linker="$host_os dyld"
10964
version_type=darwin
10967
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10968
soname_spec='${libname}${release}${major}$shared_ext'
10969
shlibpath_overrides_runpath=yes
10970
shlibpath_var=DYLD_LIBRARY_PATH
10971
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10972
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10973
if test "$GCC" = yes; then
10974
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"`
10976
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10978
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10986
soname_spec='${libname}${release}${shared_ext}$major'
10987
shlibpath_var=LD_LIBRARY_PATH
10998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10999
soname_spec='${libname}${release}${shared_ext}$major'
11000
shlibpath_var=LD_LIBRARY_PATH
11001
shlibpath_overrides_runpath=no
11002
hardcode_into_libs=yes
11003
dynamic_linker='GNU ld.so'
11007
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11008
version_type=freebsd-$objformat
11009
case $version_type in
11011
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11016
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11020
shlibpath_var=LD_LIBRARY_PATH
11023
shlibpath_overrides_runpath=yes
11025
freebsd3.01* | freebsdelf3.01*)
11026
shlibpath_overrides_runpath=yes
11027
hardcode_into_libs=yes
11030
shlibpath_overrides_runpath=no
11031
hardcode_into_libs=yes
11040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11041
soname_spec='${libname}${release}${shared_ext}$major'
11042
shlibpath_var=LD_LIBRARY_PATH
11043
hardcode_into_libs=yes
11046
hpux9* | hpux10* | hpux11*)
11047
# Give a soname corresponding to the major version so that dld.sl refuses to
11048
# link against other versions.
11052
case "$host_cpu" in
11055
hardcode_into_libs=yes
11056
dynamic_linker="$host_os dld.so"
11057
shlibpath_var=LD_LIBRARY_PATH
11058
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060
soname_spec='${libname}${release}${shared_ext}$major'
11061
if test "X$HPUX_IA64_MODE" = X32; then
11062
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11064
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11066
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11070
hardcode_into_libs=yes
11071
dynamic_linker="$host_os dld.sl"
11072
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11073
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075
soname_spec='${libname}${release}${shared_ext}$major'
11076
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11077
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11081
dynamic_linker="$host_os dld.sl"
11082
shlibpath_var=SHLIB_PATH
11083
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085
soname_spec='${libname}${release}${shared_ext}$major'
11088
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11089
postinstall_cmds='chmod 555 $lib'
11092
irix5* | irix6* | nonstopux*)
11094
nonstopux*) version_type=nonstopux ;;
11096
if test "$lt_cv_prog_gnu_ld" = yes; then
11104
soname_spec='${libname}${release}${shared_ext}$major'
11105
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11107
irix5* | nonstopux*)
11108
libsuff= shlibsuff=
11111
case $LD in # libtool.m4 will add one of these switches to LD
11112
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11113
libsuff= shlibsuff= libmagic=32-bit;;
11114
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11115
libsuff=32 shlibsuff=N32 libmagic=N32;;
11116
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11117
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11118
*) libsuff= shlibsuff= libmagic=never-match;;
11122
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11123
shlibpath_overrides_runpath=no
11124
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11125
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11126
hardcode_into_libs=yes
11129
# No shared lib support for Linux oldld, aout, or coff.
11130
linux*oldld* | linux*aout* | linux*coff*)
11134
# This must be Linux ELF.
11139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140
soname_spec='${libname}${release}${shared_ext}$major'
11141
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11142
shlibpath_var=LD_LIBRARY_PATH
11143
shlibpath_overrides_runpath=no
11144
# This implies no fast_install, which is unacceptable.
11145
# Some rework will be needed to allow for fast_install
11146
# before this can be enabled.
11147
hardcode_into_libs=yes
11149
# Append ld.so.conf contents to the search path
11150
if test -f /etc/ld.so.conf; then
11151
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11152
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11155
# We used to test for /lib/ld.so.1 and disable shared libraries on
11156
# powerpc, because MkLinux only supported shared libraries with the
11157
# GNU dynamic linker. Since this was broken with cross compilers,
11158
# most powerpc-linux boxes support dynamic linking these days and
11159
# people can always --disable-shared, the test was removed, and we
11160
# assume the GNU/Linux dynamic linker is in use.
11161
dynamic_linker='GNU/Linux ld.so'
11168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11169
soname_spec='${libname}${release}${shared_ext}$major'
11170
shlibpath_var=LD_LIBRARY_PATH
11171
shlibpath_overrides_runpath=no
11172
hardcode_into_libs=yes
11173
dynamic_linker='NetBSD ld.elf_so'
11180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11181
soname_spec='${libname}${release}${shared_ext}$major'
11182
shlibpath_var=LD_LIBRARY_PATH
11183
shlibpath_overrides_runpath=no
11184
hardcode_into_libs=yes
11185
dynamic_linker='GNU ld.so'
11192
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11194
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11195
dynamic_linker='NetBSD (a.out) ld.so'
11197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11198
soname_spec='${libname}${release}${shared_ext}$major'
11199
dynamic_linker='NetBSD ld.elf_so'
11201
shlibpath_var=LD_LIBRARY_PATH
11202
shlibpath_overrides_runpath=yes
11203
hardcode_into_libs=yes
11208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209
shlibpath_var=LD_LIBRARY_PATH
11210
shlibpath_overrides_runpath=yes
11217
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218
soname_spec='${libname}${release}${shared_ext}$major'
11219
shlibpath_var=LD_LIBRARY_PATH
11220
shlibpath_overrides_runpath=yes
11227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11228
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11229
shlibpath_var=LD_LIBRARY_PATH
11230
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11232
openbsd2.[89] | openbsd2.[89].*)
11233
shlibpath_overrides_runpath=no
11236
shlibpath_overrides_runpath=yes
11240
shlibpath_overrides_runpath=yes
11245
libname_spec='$name'
11248
library_names_spec='$libname${shared_ext} $libname.a'
11249
dynamic_linker='OS/2 ld.exe'
11250
shlibpath_var=LIBPATH
11253
osf3* | osf4* | osf5*)
11257
soname_spec='${libname}${release}${shared_ext}$major'
11258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259
shlibpath_var=LD_LIBRARY_PATH
11260
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11261
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11266
soname_spec='${libname}${release}${shared_ext}$major'
11267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268
shlibpath_var=LD_LIBRARY_PATH
11275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276
soname_spec='${libname}${release}${shared_ext}$major'
11277
shlibpath_var=LD_LIBRARY_PATH
11278
shlibpath_overrides_runpath=yes
11279
hardcode_into_libs=yes
11280
# ldd complains unless libraries are executable
11281
postinstall_cmds='chmod +x $lib'
11286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11287
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11288
shlibpath_var=LD_LIBRARY_PATH
11289
shlibpath_overrides_runpath=yes
11290
if test "$with_gnu_ld" = yes; then
11296
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11298
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299
soname_spec='${libname}${release}${shared_ext}$major'
11300
shlibpath_var=LD_LIBRARY_PATH
11301
case $host_vendor in
11303
shlibpath_overrides_runpath=no
11305
export_dynamic_flag_spec='${wl}-Blargedynsym'
11306
runpath_var=LD_RUN_PATH
11314
shlibpath_overrides_runpath=no
11315
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11321
if test -d /usr/nec ;then
11323
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11324
soname_spec='$libname${shared_ext}.$major'
11325
shlibpath_var=LD_LIBRARY_PATH
11331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332
soname_spec='${libname}${release}${shared_ext}$major'
11333
shlibpath_var=LD_LIBRARY_PATH
11340
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11341
echo "${ECHO_T}$dynamic_linker" >&6
11342
test "$dynamic_linker" = no && can_build_shared=no
11344
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11345
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11346
hardcode_action_CXX=
11347
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11348
test -n "$runpath_var CXX" || \
11349
test "X$hardcode_automatic_CXX"="Xyes" ; then
11351
# We can hardcode non-existant directories.
11352
if test "$hardcode_direct_CXX" != no &&
11353
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11354
# have to relink, otherwise we might link with an installed library
11355
# when we should be linking with a yet-to-be-installed one
11356
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11357
test "$hardcode_minus_L_CXX" != no; then
11358
# Linking always hardcodes the temporary library directory.
11359
hardcode_action_CXX=relink
11361
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11362
hardcode_action_CXX=immediate
11365
# We cannot hardcode anything, or else we can only hardcode existing
11367
hardcode_action_CXX=unsupported
11369
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11370
echo "${ECHO_T}$hardcode_action_CXX" >&6
11372
if test "$hardcode_action_CXX" = relink; then
11373
# Fast installation is not supported
11374
enable_fast_install=no
11375
elif test "$shlibpath_overrides_runpath" = yes ||
11376
test "$enable_shared" = no; then
11377
# Fast installation is not necessary
11378
enable_fast_install=needless
11383
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11384
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11385
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11386
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11387
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11388
echo "$as_me:$LINENO: result: yes" >&5
11389
echo "${ECHO_T}yes" >&6
11391
# FIXME - insert some real tests, host_os isn't really good enough
11394
if test -n "$STRIP" ; then
11395
striplib="$STRIP -x"
11396
echo "$as_me:$LINENO: result: yes" >&5
11397
echo "${ECHO_T}yes" >&6
11399
echo "$as_me:$LINENO: result: no" >&5
11400
echo "${ECHO_T}no" >&6
11404
echo "$as_me:$LINENO: result: no" >&5
11405
echo "${ECHO_T}no" >&6
11410
if test "x$enable_dlopen" != xyes; then
11411
enable_dlopen=unknown
11412
enable_dlopen_self=unknown
11413
enable_dlopen_self_static=unknown
11420
lt_cv_dlopen="load_add_on"
11422
lt_cv_dlopen_self=yes
11426
lt_cv_dlopen="LoadLibrary"
11431
lt_cv_dlopen="dlopen"
11436
# if libdl is installed we need to link against it
11437
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11438
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11439
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11440
echo $ECHO_N "(cached) $ECHO_C" >&6
11442
ac_check_lib_save_LIBS=$LIBS
11444
cat >conftest.$ac_ext <<_ACEOF
11447
cat confdefs.h >>conftest.$ac_ext
11448
cat >>conftest.$ac_ext <<_ACEOF
11449
/* end confdefs.h. */
11451
/* Override any gcc2 internal prototype to avoid an error. */
11455
/* We use char because int might match the return type of a gcc2
11456
builtin and then its argument prototype would still apply. */
11466
rm -f conftest.$ac_objext conftest$ac_exeext
11467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468
(eval $ac_link) 2>conftest.er1
11470
grep -v '^ *+' conftest.er1 >conftest.err
11472
cat conftest.err >&5
11473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474
(exit $ac_status); } &&
11475
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477
(eval $ac_try) 2>&5
11479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480
(exit $ac_status); }; } &&
11481
{ ac_try='test -s conftest$ac_exeext'
11482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483
(eval $ac_try) 2>&5
11485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486
(exit $ac_status); }; }; then
11487
ac_cv_lib_dl_dlopen=yes
11489
echo "$as_me: failed program was:" >&5
11490
sed 's/^/| /' conftest.$ac_ext >&5
11492
ac_cv_lib_dl_dlopen=no
11494
rm -f conftest.err conftest.$ac_objext \
11495
conftest$ac_exeext conftest.$ac_ext
11496
LIBS=$ac_check_lib_save_LIBS
11498
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11499
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11500
if test $ac_cv_lib_dl_dlopen = yes; then
11501
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11504
lt_cv_dlopen="dyld"
11506
lt_cv_dlopen_self=yes
11513
echo "$as_me:$LINENO: checking for shl_load" >&5
11514
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11515
if test "${ac_cv_func_shl_load+set}" = set; then
11516
echo $ECHO_N "(cached) $ECHO_C" >&6
11518
cat >conftest.$ac_ext <<_ACEOF
11521
cat confdefs.h >>conftest.$ac_ext
11522
cat >>conftest.$ac_ext <<_ACEOF
11523
/* end confdefs.h. */
11524
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11525
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11526
#define shl_load innocuous_shl_load
11528
/* System header to define __stub macros and hopefully few prototypes,
11529
which can conflict with char shl_load (); below.
11530
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11531
<limits.h> exists even on freestanding compilers. */
11534
# include <limits.h>
11536
# include <assert.h>
11541
/* Override any gcc2 internal prototype to avoid an error. */
11546
/* We use char because int might match the return type of a gcc2
11547
builtin and then its argument prototype would still apply. */
11549
/* The GNU C library defines this for functions which it implements
11550
to always fail with ENOSYS. Some functions are actually named
11551
something starting with __ and the normal name is an alias. */
11552
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11555
char (*f) () = shl_load;
11564
return f != shl_load;
11569
rm -f conftest.$ac_objext conftest$ac_exeext
11570
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571
(eval $ac_link) 2>conftest.er1
11573
grep -v '^ *+' conftest.er1 >conftest.err
11575
cat conftest.err >&5
11576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577
(exit $ac_status); } &&
11578
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580
(eval $ac_try) 2>&5
11582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583
(exit $ac_status); }; } &&
11584
{ ac_try='test -s conftest$ac_exeext'
11585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586
(eval $ac_try) 2>&5
11588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589
(exit $ac_status); }; }; then
11590
ac_cv_func_shl_load=yes
11592
echo "$as_me: failed program was:" >&5
11593
sed 's/^/| /' conftest.$ac_ext >&5
11595
ac_cv_func_shl_load=no
11597
rm -f conftest.err conftest.$ac_objext \
11598
conftest$ac_exeext conftest.$ac_ext
11600
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11601
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11602
if test $ac_cv_func_shl_load = yes; then
11603
lt_cv_dlopen="shl_load"
11605
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11606
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11607
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11608
echo $ECHO_N "(cached) $ECHO_C" >&6
11610
ac_check_lib_save_LIBS=$LIBS
11612
cat >conftest.$ac_ext <<_ACEOF
11615
cat confdefs.h >>conftest.$ac_ext
11616
cat >>conftest.$ac_ext <<_ACEOF
11617
/* end confdefs.h. */
11619
/* Override any gcc2 internal prototype to avoid an error. */
11623
/* We use char because int might match the return type of a gcc2
11624
builtin and then its argument prototype would still apply. */
11634
rm -f conftest.$ac_objext conftest$ac_exeext
11635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636
(eval $ac_link) 2>conftest.er1
11638
grep -v '^ *+' conftest.er1 >conftest.err
11640
cat conftest.err >&5
11641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642
(exit $ac_status); } &&
11643
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645
(eval $ac_try) 2>&5
11647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648
(exit $ac_status); }; } &&
11649
{ ac_try='test -s conftest$ac_exeext'
11650
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651
(eval $ac_try) 2>&5
11653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654
(exit $ac_status); }; }; then
11655
ac_cv_lib_dld_shl_load=yes
11657
echo "$as_me: failed program was:" >&5
11658
sed 's/^/| /' conftest.$ac_ext >&5
11660
ac_cv_lib_dld_shl_load=no
11662
rm -f conftest.err conftest.$ac_objext \
11663
conftest$ac_exeext conftest.$ac_ext
11664
LIBS=$ac_check_lib_save_LIBS
11666
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11667
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11668
if test $ac_cv_lib_dld_shl_load = yes; then
11669
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11671
echo "$as_me:$LINENO: checking for dlopen" >&5
11672
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11673
if test "${ac_cv_func_dlopen+set}" = set; then
11674
echo $ECHO_N "(cached) $ECHO_C" >&6
11676
cat >conftest.$ac_ext <<_ACEOF
11679
cat confdefs.h >>conftest.$ac_ext
11680
cat >>conftest.$ac_ext <<_ACEOF
11681
/* end confdefs.h. */
11682
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11683
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684
#define dlopen innocuous_dlopen
11686
/* System header to define __stub macros and hopefully few prototypes,
11687
which can conflict with char dlopen (); below.
11688
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689
<limits.h> exists even on freestanding compilers. */
11692
# include <limits.h>
11694
# include <assert.h>
11699
/* Override any gcc2 internal prototype to avoid an error. */
11704
/* We use char because int might match the return type of a gcc2
11705
builtin and then its argument prototype would still apply. */
11707
/* The GNU C library defines this for functions which it implements
11708
to always fail with ENOSYS. Some functions are actually named
11709
something starting with __ and the normal name is an alias. */
11710
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11713
char (*f) () = dlopen;
11722
return f != dlopen;
11727
rm -f conftest.$ac_objext conftest$ac_exeext
11728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729
(eval $ac_link) 2>conftest.er1
11731
grep -v '^ *+' conftest.er1 >conftest.err
11733
cat conftest.err >&5
11734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735
(exit $ac_status); } &&
11736
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738
(eval $ac_try) 2>&5
11740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741
(exit $ac_status); }; } &&
11742
{ ac_try='test -s conftest$ac_exeext'
11743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744
(eval $ac_try) 2>&5
11746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747
(exit $ac_status); }; }; then
11748
ac_cv_func_dlopen=yes
11750
echo "$as_me: failed program was:" >&5
11751
sed 's/^/| /' conftest.$ac_ext >&5
11753
ac_cv_func_dlopen=no
11755
rm -f conftest.err conftest.$ac_objext \
11756
conftest$ac_exeext conftest.$ac_ext
11758
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11759
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11760
if test $ac_cv_func_dlopen = yes; then
11761
lt_cv_dlopen="dlopen"
11763
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11764
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11765
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11766
echo $ECHO_N "(cached) $ECHO_C" >&6
11768
ac_check_lib_save_LIBS=$LIBS
11770
cat >conftest.$ac_ext <<_ACEOF
11773
cat confdefs.h >>conftest.$ac_ext
11774
cat >>conftest.$ac_ext <<_ACEOF
11775
/* end confdefs.h. */
11777
/* Override any gcc2 internal prototype to avoid an error. */
11781
/* We use char because int might match the return type of a gcc2
11782
builtin and then its argument prototype would still apply. */
11792
rm -f conftest.$ac_objext conftest$ac_exeext
11793
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11794
(eval $ac_link) 2>conftest.er1
11796
grep -v '^ *+' conftest.er1 >conftest.err
11798
cat conftest.err >&5
11799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800
(exit $ac_status); } &&
11801
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803
(eval $ac_try) 2>&5
11805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806
(exit $ac_status); }; } &&
11807
{ ac_try='test -s conftest$ac_exeext'
11808
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809
(eval $ac_try) 2>&5
11811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812
(exit $ac_status); }; }; then
11813
ac_cv_lib_dl_dlopen=yes
11815
echo "$as_me: failed program was:" >&5
11816
sed 's/^/| /' conftest.$ac_ext >&5
11818
ac_cv_lib_dl_dlopen=no
11820
rm -f conftest.err conftest.$ac_objext \
11821
conftest$ac_exeext conftest.$ac_ext
11822
LIBS=$ac_check_lib_save_LIBS
11824
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11825
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11826
if test $ac_cv_lib_dl_dlopen = yes; then
11827
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11829
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11830
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11831
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11832
echo $ECHO_N "(cached) $ECHO_C" >&6
11834
ac_check_lib_save_LIBS=$LIBS
11835
LIBS="-lsvld $LIBS"
11836
cat >conftest.$ac_ext <<_ACEOF
11839
cat confdefs.h >>conftest.$ac_ext
11840
cat >>conftest.$ac_ext <<_ACEOF
11841
/* end confdefs.h. */
11843
/* Override any gcc2 internal prototype to avoid an error. */
11847
/* We use char because int might match the return type of a gcc2
11848
builtin and then its argument prototype would still apply. */
11858
rm -f conftest.$ac_objext conftest$ac_exeext
11859
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11860
(eval $ac_link) 2>conftest.er1
11862
grep -v '^ *+' conftest.er1 >conftest.err
11864
cat conftest.err >&5
11865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866
(exit $ac_status); } &&
11867
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869
(eval $ac_try) 2>&5
11871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872
(exit $ac_status); }; } &&
11873
{ ac_try='test -s conftest$ac_exeext'
11874
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875
(eval $ac_try) 2>&5
11877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878
(exit $ac_status); }; }; then
11879
ac_cv_lib_svld_dlopen=yes
11881
echo "$as_me: failed program was:" >&5
11882
sed 's/^/| /' conftest.$ac_ext >&5
11884
ac_cv_lib_svld_dlopen=no
11886
rm -f conftest.err conftest.$ac_objext \
11887
conftest$ac_exeext conftest.$ac_ext
11888
LIBS=$ac_check_lib_save_LIBS
11890
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11891
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11892
if test $ac_cv_lib_svld_dlopen = yes; then
11893
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11895
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11896
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11897
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11898
echo $ECHO_N "(cached) $ECHO_C" >&6
11900
ac_check_lib_save_LIBS=$LIBS
11902
cat >conftest.$ac_ext <<_ACEOF
11905
cat confdefs.h >>conftest.$ac_ext
11906
cat >>conftest.$ac_ext <<_ACEOF
11907
/* end confdefs.h. */
11909
/* Override any gcc2 internal prototype to avoid an error. */
11913
/* We use char because int might match the return type of a gcc2
11914
builtin and then its argument prototype would still apply. */
11924
rm -f conftest.$ac_objext conftest$ac_exeext
11925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926
(eval $ac_link) 2>conftest.er1
11928
grep -v '^ *+' conftest.er1 >conftest.err
11930
cat conftest.err >&5
11931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932
(exit $ac_status); } &&
11933
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11934
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935
(eval $ac_try) 2>&5
11937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938
(exit $ac_status); }; } &&
11939
{ ac_try='test -s conftest$ac_exeext'
11940
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941
(eval $ac_try) 2>&5
11943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944
(exit $ac_status); }; }; then
11945
ac_cv_lib_dld_dld_link=yes
11947
echo "$as_me: failed program was:" >&5
11948
sed 's/^/| /' conftest.$ac_ext >&5
11950
ac_cv_lib_dld_dld_link=no
11952
rm -f conftest.err conftest.$ac_objext \
11953
conftest$ac_exeext conftest.$ac_ext
11954
LIBS=$ac_check_lib_save_LIBS
11956
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11957
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11958
if test $ac_cv_lib_dld_dld_link = yes; then
11959
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11980
if test "x$lt_cv_dlopen" != xno; then
11986
case $lt_cv_dlopen in
11988
save_CPPFLAGS="$CPPFLAGS"
11989
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11991
save_LDFLAGS="$LDFLAGS"
11992
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11995
LIBS="$lt_cv_dlopen_libs $LIBS"
11997
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11998
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11999
if test "${lt_cv_dlopen_self+set}" = set; then
12000
echo $ECHO_N "(cached) $ECHO_C" >&6
12002
if test "$cross_compiling" = yes; then :
12003
lt_cv_dlopen_self=cross
12005
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12006
lt_status=$lt_dlunknown
12007
cat > conftest.$ac_ext <<EOF
12008
#line 12008 "configure"
12009
#include "confdefs.h"
12018
# define LT_DLGLOBAL RTLD_GLOBAL
12021
# define LT_DLGLOBAL DL_GLOBAL
12023
# define LT_DLGLOBAL 0
12027
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12028
find out it does not work in some platform. */
12029
#ifndef LT_DLLAZY_OR_NOW
12031
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12034
# define LT_DLLAZY_OR_NOW DL_LAZY
12037
# define LT_DLLAZY_OR_NOW RTLD_NOW
12040
# define LT_DLLAZY_OR_NOW DL_NOW
12042
# define LT_DLLAZY_OR_NOW 0
12050
extern "C" void exit (int);
12053
void fnord() { int i=42;}
12056
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12057
int status = $lt_dlunknown;
12061
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12062
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12063
/* dlclose (self); */
12069
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070
(eval $ac_link) 2>&5
12072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12074
(./conftest; exit; ) 2>/dev/null
12076
case x$lt_status in
12077
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12078
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12079
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12082
# compilation failed
12083
lt_cv_dlopen_self=no
12090
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12091
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12093
if test "x$lt_cv_dlopen_self" = xyes; then
12094
LDFLAGS="$LDFLAGS $link_static_flag"
12095
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12096
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12097
if test "${lt_cv_dlopen_self_static+set}" = set; then
12098
echo $ECHO_N "(cached) $ECHO_C" >&6
12100
if test "$cross_compiling" = yes; then :
12101
lt_cv_dlopen_self_static=cross
12103
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12104
lt_status=$lt_dlunknown
12105
cat > conftest.$ac_ext <<EOF
12106
#line 12106 "configure"
12107
#include "confdefs.h"
12116
# define LT_DLGLOBAL RTLD_GLOBAL
12119
# define LT_DLGLOBAL DL_GLOBAL
12121
# define LT_DLGLOBAL 0
12125
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12126
find out it does not work in some platform. */
12127
#ifndef LT_DLLAZY_OR_NOW
12129
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12132
# define LT_DLLAZY_OR_NOW DL_LAZY
12135
# define LT_DLLAZY_OR_NOW RTLD_NOW
12138
# define LT_DLLAZY_OR_NOW DL_NOW
12140
# define LT_DLLAZY_OR_NOW 0
12148
extern "C" void exit (int);
12151
void fnord() { int i=42;}
12154
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12155
int status = $lt_dlunknown;
12159
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12160
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12161
/* dlclose (self); */
12167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168
(eval $ac_link) 2>&5
12170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12172
(./conftest; exit; ) 2>/dev/null
12174
case x$lt_status in
12175
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12176
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12177
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12180
# compilation failed
12181
lt_cv_dlopen_self_static=no
12188
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12189
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12192
CPPFLAGS="$save_CPPFLAGS"
12193
LDFLAGS="$save_LDFLAGS"
12198
case $lt_cv_dlopen_self in
12199
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12200
*) enable_dlopen_self=unknown ;;
12203
case $lt_cv_dlopen_self_static in
12204
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12205
*) enable_dlopen_self_static=unknown ;;
12210
# The else clause should only fire when bootstrapping the
12211
# libtool distribution, otherwise you forgot to ship ltmain.sh
12212
# with your package, and you will get complaints that there are
12213
# no rules to generate ltmain.sh.
12214
if test -f "$ltmain"; then
12215
# See if we are running on zsh, and set the options which allow our commands through
12216
# without removal of \ escapes.
12217
if test -n "${ZSH_VERSION+set}" ; then
12218
setopt NO_GLOB_SUBST
12220
# Now quote all the things that may contain metacharacters while being
12221
# careful not to overquote the AC_SUBSTed values. We take copies of the
12222
# variables and quote the copies for generation of the libtool script.
12223
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12225
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12226
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12227
deplibs_check_method reload_flag reload_cmds need_locks \
12228
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12229
lt_cv_sys_global_symbol_to_c_name_address \
12230
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12231
old_postinstall_cmds old_postuninstall_cmds \
12235
lt_prog_compiler_wl_CXX \
12236
lt_prog_compiler_pic_CXX \
12237
lt_prog_compiler_static_CXX \
12238
lt_prog_compiler_no_builtin_flag_CXX \
12239
export_dynamic_flag_spec_CXX \
12240
thread_safe_flag_spec_CXX \
12241
whole_archive_flag_spec_CXX \
12242
enable_shared_with_static_runtimes_CXX \
12243
old_archive_cmds_CXX \
12244
old_archive_from_new_cmds_CXX \
12245
predep_objects_CXX \
12246
postdep_objects_CXX \
12249
compiler_lib_search_path_CXX \
12251
archive_expsym_cmds_CXX \
12252
postinstall_cmds_CXX \
12253
postuninstall_cmds_CXX \
12254
old_archive_from_expsyms_cmds_CXX \
12255
allow_undefined_flag_CXX \
12256
no_undefined_flag_CXX \
12257
export_symbols_cmds_CXX \
12258
hardcode_libdir_flag_spec_CXX \
12259
hardcode_libdir_flag_spec_ld_CXX \
12260
hardcode_libdir_separator_CXX \
12261
hardcode_automatic_CXX \
12263
module_expsym_cmds_CXX \
12264
lt_cv_prog_compiler_c_o_CXX \
12265
exclude_expsyms_CXX \
12266
include_expsyms_CXX; do
12269
old_archive_cmds_CXX | \
12270
old_archive_from_new_cmds_CXX | \
12271
archive_cmds_CXX | \
12272
archive_expsym_cmds_CXX | \
12273
module_cmds_CXX | \
12274
module_expsym_cmds_CXX | \
12275
old_archive_from_expsyms_cmds_CXX | \
12276
export_symbols_cmds_CXX | \
12277
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12278
postinstall_cmds | postuninstall_cmds | \
12279
old_postinstall_cmds | old_postuninstall_cmds | \
12280
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12281
# Double-quote double-evaled strings.
12282
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12285
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12291
*'\$0 --fallback-echo"')
12292
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12298
cat <<__EOF__ >> "$cfgfile"
12299
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12301
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12303
# Shell to use when invoking shell scripts.
12306
# Whether or not to build shared libraries.
12307
build_libtool_libs=$enable_shared
12309
# Whether or not to build static libraries.
12310
build_old_libs=$enable_static
12312
# Whether or not to add -lc for building shared libraries.
12313
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12315
# Whether or not to disallow shared libs when runtime libs are static
12316
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12318
# Whether or not to optimize for fast installation.
12319
fast_install=$enable_fast_install
12322
host_alias=$host_alias
12325
# An echo program that does not interpret backslashes.
12330
AR_FLAGS=$lt_AR_FLAGS
12335
# A language-specific compiler.
12336
CC=$lt_compiler_CXX
12338
# Is the compiler the GNU C compiler?
12344
# The linker used to build libraries.
12347
# Whether we need hard or soft links.
12350
# A BSD-compatible nm program.
12353
# A symbol stripping program
12356
# Used to examine libraries when file_magic_cmd begins "file"
12357
MAGIC_CMD=$MAGIC_CMD
12359
# Used on cygwin: DLL creation program.
12362
# Used on cygwin: object dumper.
12365
# Used on cygwin: assembler.
12368
# The name of the directory that contains temporary libtool files.
12371
# How to create reloadable object files.
12372
reload_flag=$lt_reload_flag
12373
reload_cmds=$lt_reload_cmds
12375
# How to pass a linker flag through the compiler.
12376
wl=$lt_lt_prog_compiler_wl_CXX
12378
# Object file suffix (normally "o").
12379
objext="$ac_objext"
12381
# Old archive suffix (normally "a").
12384
# Shared library suffix (normally ".so").
12385
shrext_cmds='$shrext_cmds'
12387
# Executable file suffix (normally "").
12390
# Additional compiler flags for building library objects.
12391
pic_flag=$lt_lt_prog_compiler_pic_CXX
12394
# What is the maximum length of a command?
12395
max_cmd_len=$lt_cv_sys_max_cmd_len
12397
# Does compiler simultaneously support -c and -o options?
12398
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12400
# Must we lock files when doing compilation ?
12401
need_locks=$lt_need_locks
12403
# Do we need the lib prefix for modules?
12404
need_lib_prefix=$need_lib_prefix
12406
# Do we need a version for libraries?
12407
need_version=$need_version
12409
# Whether dlopen is supported.
12410
dlopen_support=$enable_dlopen
12412
# Whether dlopen of programs is supported.
12413
dlopen_self=$enable_dlopen_self
12415
# Whether dlopen of statically linked programs is supported.
12416
dlopen_self_static=$enable_dlopen_self_static
12418
# Compiler flag to prevent dynamic linking.
12419
link_static_flag=$lt_lt_prog_compiler_static_CXX
12421
# Compiler flag to turn off builtin functions.
12422
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12424
# Compiler flag to allow reflexive dlopens.
12425
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12427
# Compiler flag to generate shared objects directly from archives.
12428
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12430
# Compiler flag to generate thread-safe objects.
12431
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12433
# Library versioning type.
12434
version_type=$version_type
12436
# Format of library name prefix.
12437
libname_spec=$lt_libname_spec
12439
# List of archive names. First name is the real one, the rest are links.
12440
# The last name is the one that the linker finds with -lNAME.
12441
library_names_spec=$lt_library_names_spec
12443
# The coded name of the library, if different from the real name.
12444
soname_spec=$lt_soname_spec
12446
# Commands used to build and install an old-style archive.
12448
old_archive_cmds=$lt_old_archive_cmds_CXX
12449
old_postinstall_cmds=$lt_old_postinstall_cmds
12450
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12452
# Create an old-style archive from a shared archive.
12453
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12455
# Create a temporary old-style archive to link instead of a shared archive.
12456
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12458
# Commands used to build and install a shared archive.
12459
archive_cmds=$lt_archive_cmds_CXX
12460
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12461
postinstall_cmds=$lt_postinstall_cmds
12462
postuninstall_cmds=$lt_postuninstall_cmds
12464
# Commands used to build a loadable module (assumed same as above if empty)
12465
module_cmds=$lt_module_cmds_CXX
12466
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12468
# Commands to strip libraries.
12469
old_striplib=$lt_old_striplib
12470
striplib=$lt_striplib
12472
# Dependencies to place before the objects being linked to create a
12474
predep_objects=$lt_predep_objects_CXX
12476
# Dependencies to place after the objects being linked to create a
12478
postdep_objects=$lt_postdep_objects_CXX
12480
# Dependencies to place before the objects being linked to create a
12482
predeps=$lt_predeps_CXX
12484
# Dependencies to place after the objects being linked to create a
12486
postdeps=$lt_postdeps_CXX
12488
# The library search path used internally by the compiler when linking
12489
# a shared library.
12490
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12492
# Method to check whether dependent libraries are shared objects.
12493
deplibs_check_method=$lt_deplibs_check_method
12495
# Command to use when deplibs_check_method == file_magic.
12496
file_magic_cmd=$lt_file_magic_cmd
12498
# Flag that allows shared libraries with undefined symbols to be built.
12499
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12501
# Flag that forces no undefined symbols.
12502
no_undefined_flag=$lt_no_undefined_flag_CXX
12504
# Commands used to finish a libtool library installation in a directory.
12505
finish_cmds=$lt_finish_cmds
12507
# Same as above, but a single script fragment to be evaled but not shown.
12508
finish_eval=$lt_finish_eval
12510
# Take the output of nm and produce a listing of raw symbols and C names.
12511
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12513
# Transform the output of nm in a proper C declaration
12514
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12516
# Transform the output of nm in a C name address pair
12517
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12519
# This is the shared library runtime path variable.
12520
runpath_var=$runpath_var
12522
# This is the shared library path variable.
12523
shlibpath_var=$shlibpath_var
12525
# Is shlibpath searched before the hard-coded library search path?
12526
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12528
# How to hardcode a shared library path into an executable.
12529
hardcode_action=$hardcode_action_CXX
12531
# Whether we should hardcode library paths into libraries.
12532
hardcode_into_libs=$hardcode_into_libs
12534
# Flag to hardcode \$libdir into a binary during linking.
12535
# This must work even if \$libdir does not exist.
12536
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12538
# If ld is used when linking, flag to hardcode \$libdir into
12539
# a binary during linking. This must work even if \$libdir does
12541
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12543
# Whether we need a single -rpath flag with a separated argument.
12544
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12546
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12547
# resulting binary.
12548
hardcode_direct=$hardcode_direct_CXX
12550
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12551
# resulting binary.
12552
hardcode_minus_L=$hardcode_minus_L_CXX
12554
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12555
# the resulting binary.
12556
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12558
# Set to yes if building a shared library automatically hardcodes DIR into the library
12559
# and all subsequent libraries and executables linked against it.
12560
hardcode_automatic=$hardcode_automatic_CXX
12562
# Variables whose values should be saved in libtool wrapper scripts and
12563
# restored at relink time.
12564
variables_saved_for_relink="$variables_saved_for_relink"
12566
# Whether libtool must link a program against all its dependency libraries.
12567
link_all_deplibs=$link_all_deplibs_CXX
12569
# Compile-time system search path for libraries
12570
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12572
# Run-time system search path for libraries
12573
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12575
# Fix the shell variable \$srcfile for the compiler.
12576
fix_srcfile_path="$fix_srcfile_path_CXX"
12578
# Set to yes if exported symbols are required.
12579
always_export_symbols=$always_export_symbols_CXX
12581
# The commands to list exported symbols.
12582
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12584
# The commands to extract the exported symbol list from a shared archive.
12585
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12587
# Symbols that should not be listed in the preloaded symbols.
12588
exclude_expsyms=$lt_exclude_expsyms_CXX
12590
# Symbols that must always be exported.
12591
include_expsyms=$lt_include_expsyms_CXX
12593
# ### END LIBTOOL TAG CONFIG: $tagname
12599
# If there is no Makefile yet, we rely on a make rule to execute
12600
# `config.status --recheck' to rerun these tests and create the
12601
# libtool script then.
12602
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12603
if test -f "$ltmain_in"; then
12604
test -f Makefile && make "$ltmain"
12610
ac_cpp='$CPP $CPPFLAGS'
12611
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12612
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12613
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12619
with_gnu_ldcxx=$with_gnu_ld
12620
with_gnu_ld=$lt_save_with_gnu_ld
12621
lt_cv_path_LDCXX=$lt_cv_path_LD
12622
lt_cv_path_LD=$lt_save_path_LD
12623
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12624
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12632
if test -n "$F77" && test "X$F77" != "Xno"; then
12635
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12636
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12637
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12640
archive_cmds_need_lc_F77=no
12641
allow_undefined_flag_F77=
12642
always_export_symbols_F77=no
12643
archive_expsym_cmds_F77=
12644
export_dynamic_flag_spec_F77=
12645
hardcode_direct_F77=no
12646
hardcode_libdir_flag_spec_F77=
12647
hardcode_libdir_flag_spec_ld_F77=
12648
hardcode_libdir_separator_F77=
12649
hardcode_minus_L_F77=no
12650
hardcode_automatic_F77=no
12652
module_expsym_cmds_F77=
12653
link_all_deplibs_F77=unknown
12654
old_archive_cmds_F77=$old_archive_cmds
12655
no_undefined_flag_F77=
12656
whole_archive_flag_spec_F77=
12657
enable_shared_with_static_runtimes_F77=no
12659
# Source file extension for f77 test sources.
12662
# Object file extension for compiled f77 test sources.
12666
# Code to be used in simple compile tests
12667
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12669
# Code to be used in simple link tests
12670
lt_simple_link_test_code=" program t\n end\n"
12672
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12674
# If no C compiler was specified, use CC.
12677
# Allow CC to be a program name with arguments.
12681
# Allow CC to be a program name with arguments.
12686
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12688
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12689
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12690
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12691
echo "${ECHO_T}$can_build_shared" >&6
12693
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12694
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12695
test "$can_build_shared" = "no" && enable_shared=no
12697
# On AIX, shared libraries and static libraries use the same namespace, and
12698
# are all built from PIC.
12701
test "$enable_shared" = yes && enable_static=no
12702
if test -n "$RANLIB"; then
12703
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12704
postinstall_cmds='$RANLIB $lib'
12708
test "$enable_shared" = yes && enable_static=no
12711
echo "$as_me:$LINENO: result: $enable_shared" >&5
12712
echo "${ECHO_T}$enable_shared" >&6
12714
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12715
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12716
# Make sure either enable_shared or enable_static is yes.
12717
test "$enable_shared" = yes || enable_static=yes
12718
echo "$as_me:$LINENO: result: $enable_static" >&5
12719
echo "${ECHO_T}$enable_static" >&6
12721
test "$ld_shlibs_F77" = no && can_build_shared=no
12726
lt_prog_compiler_wl_F77=
12727
lt_prog_compiler_pic_F77=
12728
lt_prog_compiler_static_F77=
12730
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12731
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12733
if test "$GCC" = yes; then
12734
lt_prog_compiler_wl_F77='-Wl,'
12735
lt_prog_compiler_static_F77='-static'
12739
# All AIX code is PIC.
12740
if test "$host_cpu" = ia64; then
12741
# AIX 5 now supports IA64 processor
12742
lt_prog_compiler_static_F77='-Bstatic'
12747
# FIXME: we need at least 68020 code to build shared libraries, but
12748
# adding the `-m68020' flag to GCC prevents building anything better,
12750
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12753
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12754
# PIC is the default for these OSes.
12757
mingw* | pw32* | os2*)
12758
# This hack is so that the source file can tell whether it is being
12759
# built for inclusion in a dll (and should export symbols for example).
12760
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12763
darwin* | rhapsody*)
12764
# PIC is the default on this platform
12765
# Common symbols not allowed in MH_DYLIB files
12766
lt_prog_compiler_pic_F77='-fno-common'
12770
# Just because we use GCC doesn't mean we suddenly get shared libraries
12771
# on systems that don't support them.
12772
lt_prog_compiler_can_build_shared_F77=no
12777
if test -d /usr/nec; then
12778
lt_prog_compiler_pic_F77=-Kconform_pic
12783
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12784
# not for PA HP-UX.
12785
case "$host_cpu" in
12790
lt_prog_compiler_pic_F77='-fPIC'
12796
lt_prog_compiler_pic_F77='-fPIC'
12800
# PORTME Check for flag to pass linker flags through the system compiler.
12803
lt_prog_compiler_wl_F77='-Wl,'
12804
if test "$host_cpu" = ia64; then
12805
# AIX 5 now supports IA64 processor
12806
lt_prog_compiler_static_F77='-Bstatic'
12808
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12812
mingw* | pw32* | os2*)
12813
# This hack is so that the source file can tell whether it is being
12814
# built for inclusion in a dll (and should export symbols for example).
12815
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12818
hpux9* | hpux10* | hpux11*)
12819
lt_prog_compiler_wl_F77='-Wl,'
12820
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12821
# not for PA HP-UX.
12822
case "$host_cpu" in
12827
lt_prog_compiler_pic_F77='+Z'
12830
# Is there a better lt_prog_compiler_static that works with the bundled CC?
12831
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12834
irix5* | irix6* | nonstopux*)
12835
lt_prog_compiler_wl_F77='-Wl,'
12836
# PIC (with -KPIC) is the default.
12837
lt_prog_compiler_static_F77='-non_shared'
12841
lt_prog_compiler_pic_F77='-KPIC'
12842
lt_prog_compiler_static_F77='-Bstatic'
12848
lt_prog_compiler_wl_F77='-Wl,'
12849
lt_prog_compiler_pic_F77='-KPIC'
12850
lt_prog_compiler_static_F77='-static'
12853
lt_prog_compiler_wl_F77='-Wl,'
12854
# All Alpha code is PIC.
12855
lt_prog_compiler_static_F77='-non_shared'
12860
osf3* | osf4* | osf5*)
12861
lt_prog_compiler_wl_F77='-Wl,'
12862
# All OSF/1 code is PIC.
12863
lt_prog_compiler_static_F77='-non_shared'
12867
lt_prog_compiler_pic_F77='-Kpic'
12868
lt_prog_compiler_static_F77='-dn'
12872
lt_prog_compiler_wl_F77='-Wl,'
12873
lt_prog_compiler_pic_F77='-KPIC'
12874
lt_prog_compiler_static_F77='-Bstatic'
12878
lt_prog_compiler_wl_F77='-Qoption ld '
12879
lt_prog_compiler_pic_F77='-PIC'
12880
lt_prog_compiler_static_F77='-Bstatic'
12883
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12884
lt_prog_compiler_wl_F77='-Wl,'
12885
lt_prog_compiler_pic_F77='-KPIC'
12886
lt_prog_compiler_static_F77='-Bstatic'
12890
if test -d /usr/nec ;then
12891
lt_prog_compiler_pic_F77='-Kconform_pic'
12892
lt_prog_compiler_static_F77='-Bstatic'
12897
lt_prog_compiler_pic_F77='-pic'
12898
lt_prog_compiler_static_F77='-Bstatic'
12902
lt_prog_compiler_can_build_shared_F77=no
12907
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12908
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12911
# Check to make sure the PIC flag actually works.
12913
if test -n "$lt_prog_compiler_pic_F77"; then
12915
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12916
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12917
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12918
echo $ECHO_N "(cached) $ECHO_C" >&6
12920
lt_prog_compiler_pic_works_F77=no
12921
ac_outfile=conftest.$ac_objext
12922
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12923
lt_compiler_flag="$lt_prog_compiler_pic_F77"
12924
# Insert the option either (1) after the last *FLAGS variable, or
12925
# (2) before a word containing "conftest.", or (3) at the end.
12926
# Note that $ac_compile itself does not contain backslashes and begins
12927
# with a dollar sign (not a hyphen), so the echo should work correctly.
12928
# The option is referenced via a variable to avoid confusing sed.
12929
lt_compile=`echo "$ac_compile" | $SED \
12930
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12931
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12932
-e 's:$: $lt_compiler_flag:'`
12933
(eval echo "\"\$as_me:12933: $lt_compile\"" >&5)
12934
(eval "$lt_compile" 2>conftest.err)
12936
cat conftest.err >&5
12937
echo "$as_me:12937: \$? = $ac_status" >&5
12938
if (exit $ac_status) && test -s "$ac_outfile"; then
12939
# The compiler can only warn and ignore the option if not recognized
12940
# So say no if there are warnings
12941
if test ! -s conftest.err; then
12942
lt_prog_compiler_pic_works_F77=yes
12948
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12949
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12951
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12952
case $lt_prog_compiler_pic_F77 in
12954
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12957
lt_prog_compiler_pic_F77=
12958
lt_prog_compiler_can_build_shared_F77=no
12963
# For platforms which do not support PIC, -DPIC is meaningless:
12965
lt_prog_compiler_pic_F77=
12968
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12972
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12973
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12974
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12975
echo $ECHO_N "(cached) $ECHO_C" >&6
12977
lt_cv_prog_compiler_c_o_F77=no
12978
$rm -r conftest 2>/dev/null
12982
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12984
lt_compiler_flag="-o out/conftest2.$ac_objext"
12985
# Insert the option either (1) after the last *FLAGS variable, or
12986
# (2) before a word containing "conftest.", or (3) at the end.
12987
# Note that $ac_compile itself does not contain backslashes and begins
12988
# with a dollar sign (not a hyphen), so the echo should work correctly.
12989
lt_compile=`echo "$ac_compile" | $SED \
12990
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12991
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12992
-e 's:$: $lt_compiler_flag:'`
12993
(eval echo "\"\$as_me:12993: $lt_compile\"" >&5)
12994
(eval "$lt_compile" 2>out/conftest.err)
12996
cat out/conftest.err >&5
12997
echo "$as_me:12997: \$? = $ac_status" >&5
12998
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13000
# The compiler can only warn and ignore the option if not recognized
13001
# So say no if there are warnings
13002
if test ! -s out/conftest.err; then
13003
lt_cv_prog_compiler_c_o_F77=yes
13008
# SGI C++ compiler will create directory out/ii_files/ for
13009
# template instantiation
13010
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13011
$rm out/* && rmdir out
13017
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13018
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13021
hard_links="nottested"
13022
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13023
# do not overwrite the value of need_locks provided by the user
13024
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13025
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13028
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13030
ln conftest.a conftest.b 2>&5 || hard_links=no
13031
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13032
echo "$as_me:$LINENO: result: $hard_links" >&5
13033
echo "${ECHO_T}$hard_links" >&6
13034
if test "$hard_links" = no; then
13035
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13036
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13043
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13044
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13047
allow_undefined_flag_F77=
13048
enable_shared_with_static_runtimes_F77=no
13050
archive_expsym_cmds_F77=
13051
old_archive_From_new_cmds_F77=
13052
old_archive_from_expsyms_cmds_F77=
13053
export_dynamic_flag_spec_F77=
13054
whole_archive_flag_spec_F77=
13055
thread_safe_flag_spec_F77=
13056
hardcode_libdir_flag_spec_F77=
13057
hardcode_libdir_flag_spec_ld_F77=
13058
hardcode_libdir_separator_F77=
13059
hardcode_direct_F77=no
13060
hardcode_minus_L_F77=no
13061
hardcode_shlibpath_var_F77=unsupported
13062
link_all_deplibs_F77=unknown
13063
hardcode_automatic_F77=no
13065
module_expsym_cmds_F77=
13066
always_export_symbols_F77=no
13067
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13068
# include_expsyms should be a list of space-separated symbols to be *always*
13069
# included in the symbol list
13070
include_expsyms_F77=
13071
# exclude_expsyms can be an extended regexp of symbols to exclude
13072
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13073
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13074
# as well as any symbol that contains `d'.
13075
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13076
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13077
# platforms (ab)use it in PIC code, but their linkers get confused if
13078
# the symbol is explicitly referenced. Since portable code cannot
13079
# rely on this symbol name, it's probably fine to never include it in
13080
# preloaded symbol tables.
13081
extract_expsyms_cmds=
13084
cygwin* | mingw* | pw32*)
13085
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13086
# When not using gcc, we currently assume that we are using
13087
# Microsoft Visual C++.
13088
if test "$GCC" != yes; then
13098
if test "$with_gnu_ld" = yes; then
13099
# If archive_cmds runs LD, not CC, wlarc should be empty
13102
# See if GNU ld supports shared libraries.
13104
aix3* | aix4* | aix5*)
13105
# On AIX/PPC, the GNU linker is very broken
13106
if test "$host_cpu" != ia64; then
13110
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13111
*** to be unable to reliably create shared libraries on AIX.
13112
*** Therefore, libtool is disabling shared libraries support. If you
13113
*** really care for shared libraries, you may want to modify your PATH
13114
*** so that a non-GNU linker is found, and then restart.
13121
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)'
13122
hardcode_libdir_flag_spec_F77='-L$libdir'
13123
hardcode_minus_L_F77=yes
13125
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13126
# that the semantics of dynamic libraries on AmigaOS, at least up
13127
# to version 4, is to share data among multiple programs linked
13128
# with the same dynamic library. Since this doesn't match the
13129
# behavior of shared libraries on other platforms, we can't use
13135
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13136
allow_undefined_flag_F77=unsupported
13137
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13138
# support --undefined. This deserves some investigation. FIXME
13139
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13145
cygwin* | mingw* | pw32*)
13146
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13147
# as there is no search path for DLLs.
13148
hardcode_libdir_flag_spec_F77='-L$libdir'
13149
allow_undefined_flag_F77=unsupported
13150
always_export_symbols_F77=no
13151
enable_shared_with_static_runtimes_F77=yes
13152
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13154
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13155
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13156
# If the export-symbols file already is a .def file (1st line
13157
# is EXPORTS), use it as is; otherwise, prepend...
13158
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13159
cp $export_symbols $output_objdir/$soname.def;
13161
echo EXPORTS > $output_objdir/$soname.def;
13162
cat $export_symbols >> $output_objdir/$soname.def;
13164
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13170
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13171
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13172
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13175
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13181
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13185
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13186
*** create shared libraries on Solaris systems. Therefore, libtool
13187
*** is disabling shared libraries support. We urge you to upgrade GNU
13188
*** binutils to release 2.9.1 or newer. Another option is to modify
13189
*** your PATH or compiler configuration so that the native linker is
13190
*** used, and then restart.
13193
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13194
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13195
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13202
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13204
hardcode_direct_F77=yes
13205
hardcode_shlibpath_var_F77=no
13209
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13210
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13211
archive_cmds_F77="$tmp_archive_cmds"
13212
supports_anon_versioning=no
13213
case `$LD -v 2>/dev/null` in
13214
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13215
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13216
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13217
*\ 2.11.*) ;; # other 2.11 versions
13218
*) supports_anon_versioning=yes ;;
13220
if test $supports_anon_versioning = yes; then
13221
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13222
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13223
$echo "local: *; };" >> $output_objdir/$libname.ver~
13224
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13226
archive_expsym_cmds_F77="$tmp_archive_cmds"
13228
link_all_deplibs_F77=no
13235
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13236
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13244
if test "$ld_shlibs_F77" = yes; then
13245
runpath_var=LD_RUN_PATH
13246
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13247
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13248
# ancient GNU ld didn't support --whole-archive et. al.
13249
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13250
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13252
whole_archive_flag_spec_F77=
13256
# PORTME fill in a description of your system's linker (not GNU ld)
13259
allow_undefined_flag_F77=unsupported
13260
always_export_symbols_F77=yes
13261
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'
13262
# Note: this linker hardcodes the directories in LIBPATH if there
13263
# are no directories specified by -L.
13264
hardcode_minus_L_F77=yes
13265
if test "$GCC" = yes && test -z "$link_static_flag"; then
13266
# Neither direct hardcoding nor static linking is supported with a
13268
hardcode_direct_F77=unsupported
13273
if test "$host_cpu" = ia64; then
13274
# On IA64, the linker does run time linking by default, so we don't
13275
# have to do anything special.
13276
aix_use_runtimelinking=no
13277
exp_sym_flag='-Bexport'
13280
# If we're using GNU nm, then we don't want the "-C" option.
13281
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13282
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13283
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'
13285
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'
13287
aix_use_runtimelinking=no
13289
# Test if we are trying to use run time linking or normal
13290
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13291
# need to do runtime linking.
13292
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13293
for ld_flag in $LDFLAGS; do
13294
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13295
aix_use_runtimelinking=yes
13301
exp_sym_flag='-bexport'
13302
no_entry_flag='-bnoentry'
13305
# When large executables or shared objects are built, AIX ld can
13306
# have problems creating the table of contents. If linking a library
13307
# or program results in "error TOC overflow" add -mminimal-toc to
13308
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13309
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13311
archive_cmds_F77=''
13312
hardcode_direct_F77=yes
13313
hardcode_libdir_separator_F77=':'
13314
link_all_deplibs_F77=yes
13316
if test "$GCC" = yes; then
13317
case $host_os in aix4.012|aix4.012.*)
13318
# We only want to do this on AIX 4.2 and lower, the check
13319
# below for broken collect2 doesn't work under 4.3+
13320
collect2name=`${CC} -print-prog-name=collect2`
13321
if test -f "$collect2name" && \
13322
strings "$collect2name" | grep resolve_lib_name >/dev/null
13324
# We have reworked collect2
13325
hardcode_direct_F77=yes
13327
# We have old collect2
13328
hardcode_direct_F77=unsupported
13329
# It fails to find uninstalled libraries when the uninstalled
13330
# path is not listed in the libpath. Setting hardcode_minus_L
13331
# to unsupported forces relinking
13332
hardcode_minus_L_F77=yes
13333
hardcode_libdir_flag_spec_F77='-L$libdir'
13334
hardcode_libdir_separator_F77=
13337
shared_flag='-shared'
13340
if test "$host_cpu" = ia64; then
13341
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13342
# chokes on -Wl,-G. The following line is correct:
13345
if test "$aix_use_runtimelinking" = yes; then
13346
shared_flag='${wl}-G'
13348
shared_flag='${wl}-bM:SRE'
13353
# It seems that -bexpall does not export symbols beginning with
13354
# underscore (_), so it is better to generate a list of symbols to export.
13355
always_export_symbols_F77=yes
13356
if test "$aix_use_runtimelinking" = yes; then
13357
# Warning - without using the other runtime loading flags (-brtl),
13358
# -berok will link without error, but may produce a broken library.
13359
allow_undefined_flag_F77='-berok'
13360
# Determine the default libpath from the value encoded in an empty executable.
13361
cat >conftest.$ac_ext <<_ACEOF
13366
rm -f conftest.$ac_objext conftest$ac_exeext
13367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368
(eval $ac_link) 2>conftest.er1
13370
grep -v '^ *+' conftest.er1 >conftest.err
13372
cat conftest.err >&5
13373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374
(exit $ac_status); } &&
13375
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13376
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377
(eval $ac_try) 2>&5
13379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380
(exit $ac_status); }; } &&
13381
{ ac_try='test -s conftest$ac_exeext'
13382
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383
(eval $ac_try) 2>&5
13385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386
(exit $ac_status); }; }; then
13388
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13390
# Check for a 64-bit object if we didn't find anything.
13391
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; }
13394
echo "$as_me: failed program was:" >&5
13395
sed 's/^/| /' conftest.$ac_ext >&5
13398
rm -f conftest.err conftest.$ac_objext \
13399
conftest$ac_exeext conftest.$ac_ext
13400
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13402
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13403
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"
13405
if test "$host_cpu" = ia64; then
13406
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13407
allow_undefined_flag_F77="-z nodefs"
13408
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"
13410
# Determine the default libpath from the value encoded in an empty executable.
13411
cat >conftest.$ac_ext <<_ACEOF
13416
rm -f conftest.$ac_objext conftest$ac_exeext
13417
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418
(eval $ac_link) 2>conftest.er1
13420
grep -v '^ *+' conftest.er1 >conftest.err
13422
cat conftest.err >&5
13423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424
(exit $ac_status); } &&
13425
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13426
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427
(eval $ac_try) 2>&5
13429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430
(exit $ac_status); }; } &&
13431
{ ac_try='test -s conftest$ac_exeext'
13432
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433
(eval $ac_try) 2>&5
13435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436
(exit $ac_status); }; }; then
13438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13440
# Check for a 64-bit object if we didn't find anything.
13441
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; }
13444
echo "$as_me: failed program was:" >&5
13445
sed 's/^/| /' conftest.$ac_ext >&5
13448
rm -f conftest.err conftest.$ac_objext \
13449
conftest$ac_exeext conftest.$ac_ext
13450
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13452
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13453
# Warning - without using the other run time loading flags,
13454
# -berok will link without error, but may produce a broken library.
13455
no_undefined_flag_F77=' ${wl}-bernotok'
13456
allow_undefined_flag_F77=' ${wl}-berok'
13457
# -bexpall does not export symbols beginning with underscore (_)
13458
always_export_symbols_F77=yes
13459
# Exported symbols can be pulled into shared objects from archives
13460
whole_archive_flag_spec_F77=' '
13461
archive_cmds_need_lc_F77=yes
13462
# This is similar to how AIX traditionally builds it's shared libraries.
13463
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'
13469
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)'
13470
hardcode_libdir_flag_spec_F77='-L$libdir'
13471
hardcode_minus_L_F77=yes
13472
# see comment about different semantics on the GNU ld section
13477
export_dynamic_flag_spec_F77=-rdynamic
13480
cygwin* | mingw* | pw32*)
13481
# When not using gcc, we currently assume that we are using
13482
# Microsoft Visual C++.
13483
# hardcode_libdir_flag_spec is actually meaningless, as there is
13484
# no search path for DLLs.
13485
hardcode_libdir_flag_spec_F77=' '
13486
allow_undefined_flag_F77=unsupported
13487
# Tell ltmain to make .lib files, not .a files.
13489
# Tell ltmain to make .dll files, not .so files.
13491
# FIXME: Setting linknames here is a bad hack.
13492
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13493
# The linker will automatically build a .lib file if we build a DLL.
13494
old_archive_From_new_cmds_F77='true'
13495
# FIXME: Should let the user specify the lib program.
13496
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13497
fix_srcfile_path='`cygpath -w "$srcfile"`'
13498
enable_shared_with_static_runtimes_F77=yes
13501
darwin* | rhapsody*)
13502
if test "$GXX" = yes ; then
13503
archive_cmds_need_lc_F77=no
13505
rhapsody* | darwin1.[012])
13506
allow_undefined_flag_F77='-undefined suppress'
13509
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13510
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13512
case ${MACOSX_DEPLOYMENT_TARGET} in
13514
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13517
allow_undefined_flag_F77='-undefined dynamic_lookup'
13523
lt_int_apple_cc_single_mod=no
13524
output_verbose_link_cmd='echo'
13525
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13526
lt_int_apple_cc_single_mod=yes
13528
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13529
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13531
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'
13533
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13534
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13535
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13536
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}'
13538
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}'
13540
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}'
13541
hardcode_direct_F77=no
13542
hardcode_automatic_F77=yes
13543
hardcode_shlibpath_var_F77=unsupported
13544
whole_archive_flag_spec_F77='-all_load $convenience'
13545
link_all_deplibs_F77=yes
13552
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553
hardcode_libdir_flag_spec_F77='-L$libdir'
13554
hardcode_shlibpath_var_F77=no
13561
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13562
# support. Future versions do this automatically, but an explicit c++rt0.o
13563
# does not break anything, and helps significantly (at the cost of a little
13566
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13567
hardcode_libdir_flag_spec_F77='-R$libdir'
13568
hardcode_direct_F77=yes
13569
hardcode_shlibpath_var_F77=no
13572
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13574
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13575
hardcode_direct_F77=yes
13576
hardcode_minus_L_F77=yes
13577
hardcode_shlibpath_var_F77=no
13580
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13581
freebsd* | kfreebsd*-gnu)
13582
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13583
hardcode_libdir_flag_spec_F77='-R$libdir'
13584
hardcode_direct_F77=yes
13585
hardcode_shlibpath_var_F77=no
13589
if test "$GCC" = yes; then
13590
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'
13592
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'
13594
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13595
hardcode_libdir_separator_F77=:
13596
hardcode_direct_F77=yes
13598
# hardcode_minus_L: Not really in the search PATH,
13599
# but as the default location of the library.
13600
hardcode_minus_L_F77=yes
13601
export_dynamic_flag_spec_F77='${wl}-E'
13605
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13606
case "$host_cpu" in
13608
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13611
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13615
case "$host_cpu" in
13617
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13620
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13624
if test "$with_gnu_ld" = no; then
13625
case "$host_cpu" in
13627
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13628
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13629
hardcode_libdir_separator_F77=:
13630
hardcode_direct_F77=no
13631
hardcode_shlibpath_var_F77=no
13634
hardcode_libdir_flag_spec_F77='-L$libdir'
13635
hardcode_direct_F77=no
13636
hardcode_shlibpath_var_F77=no
13638
# hardcode_minus_L: Not really in the search PATH,
13639
# but as the default location of the library.
13640
hardcode_minus_L_F77=yes
13643
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13644
hardcode_libdir_separator_F77=:
13645
hardcode_direct_F77=yes
13646
export_dynamic_flag_spec_F77='${wl}-E'
13648
# hardcode_minus_L: Not really in the search PATH,
13649
# but as the default location of the library.
13650
hardcode_minus_L_F77=yes
13656
irix5* | irix6* | nonstopux*)
13657
if test "$GCC" = yes; then
13658
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'
13660
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'
13661
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13663
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13664
hardcode_libdir_separator_F77=:
13665
link_all_deplibs_F77=yes
13668
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13669
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13670
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13672
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13674
hardcode_libdir_flag_spec_F77='-R$libdir'
13675
hardcode_direct_F77=yes
13676
hardcode_shlibpath_var_F77=no
13680
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13681
hardcode_direct_F77=yes
13682
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13683
hardcode_libdir_separator_F77=:
13684
hardcode_shlibpath_var_F77=no
13688
hardcode_direct_F77=yes
13689
hardcode_shlibpath_var_F77=no
13690
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13691
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13692
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13693
export_dynamic_flag_spec_F77='${wl}-E'
13696
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13697
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698
hardcode_libdir_flag_spec_F77='-R$libdir'
13701
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13702
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13709
hardcode_libdir_flag_spec_F77='-L$libdir'
13710
hardcode_minus_L_F77=yes
13711
allow_undefined_flag_F77=unsupported
13712
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'
13713
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13717
if test "$GCC" = yes; then
13718
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13719
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'
13721
allow_undefined_flag_F77=' -expect_unresolved \*'
13722
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'
13724
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13725
hardcode_libdir_separator_F77=:
13728
osf4* | osf5*) # as osf3* with the addition of -msym flag
13729
if test "$GCC" = yes; then
13730
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13731
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'
13732
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13734
allow_undefined_flag_F77=' -expect_unresolved \*'
13735
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'
13736
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~
13737
$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'
13739
# Both c and cxx compiler support -rpath directly
13740
hardcode_libdir_flag_spec_F77='-rpath $libdir'
13742
hardcode_libdir_separator_F77=:
13746
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13747
hardcode_shlibpath_var_F77=no
13748
export_dynamic_flag_spec_F77='${wl}-Bexport'
13749
runpath_var=LD_RUN_PATH
13750
hardcode_runpath_var=yes
13754
no_undefined_flag_F77=' -z text'
13755
if test "$GCC" = yes; then
13756
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13757
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13758
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13760
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13761
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13762
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13764
hardcode_libdir_flag_spec_F77='-R$libdir'
13765
hardcode_shlibpath_var_F77=no
13767
solaris2.[0-5] | solaris2.[0-5].*) ;;
13768
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
13769
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13771
link_all_deplibs_F77=yes
13775
if test "x$host_vendor" = xsequent; then
13776
# Use $CC to link under sequent, because it throws in some extra .o
13777
# files that make .init and .fini sections work.
13778
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13780
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13782
hardcode_libdir_flag_spec_F77='-L$libdir'
13783
hardcode_direct_F77=yes
13784
hardcode_minus_L_F77=yes
13785
hardcode_shlibpath_var_F77=no
13789
case $host_vendor in
13791
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792
hardcode_direct_F77=yes # is this really true???
13795
## LD is ld it makes a PLAMLIB
13796
## CC just makes a GrossModule.
13797
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13798
reload_cmds_F77='$CC -r -o $output$reload_objs'
13799
hardcode_direct_F77=no
13802
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13803
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13806
runpath_var='LD_RUN_PATH'
13807
hardcode_shlibpath_var_F77=no
13811
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13812
hardcode_shlibpath_var_F77=no
13813
export_dynamic_flag_spec_F77='-Bexport'
13817
if test -d /usr/nec; then
13818
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13819
hardcode_shlibpath_var_F77=no
13820
runpath_var=LD_RUN_PATH
13821
hardcode_runpath_var=yes
13827
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13828
hardcode_direct_F77=yes
13829
hardcode_minus_L_F77=no
13830
hardcode_shlibpath_var_F77=no
13831
hardcode_runpath_var=yes
13832
runpath_var=LD_RUN_PATH
13835
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13836
no_undefined_flag_F77='${wl}-z ${wl}text'
13837
if test "$GCC" = yes; then
13838
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13840
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13842
runpath_var='LD_RUN_PATH'
13843
hardcode_shlibpath_var_F77=no
13847
no_undefined_flag_F77=' -z text'
13848
# $CC -shared without GNU ld will not create a library from C++
13849
# object files and a static libstdc++, better avoid it by now
13850
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13852
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13853
hardcode_libdir_flag_spec_F77=
13854
hardcode_shlibpath_var_F77=no
13855
runpath_var='LD_RUN_PATH'
13859
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860
hardcode_libdir_flag_spec_F77='-L$libdir'
13861
hardcode_shlibpath_var_F77=no
13870
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13871
echo "${ECHO_T}$ld_shlibs_F77" >&6
13872
test "$ld_shlibs_F77" = no && can_build_shared=no
13874
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13875
if test "$GCC" = yes; then
13876
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13880
# Do we need to explicitly link libc?
13882
case "x$archive_cmds_need_lc_F77" in
13884
# Assume -lc should be added
13885
archive_cmds_need_lc_F77=yes
13887
if test "$enable_shared" = yes && test "$GCC" = yes; then
13888
case $archive_cmds_F77 in
13890
# FIXME: we may have to deal with multi-command sequences.
13893
# Test whether the compiler implicitly links with -lc since on some
13894
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13895
# to ld, don't add -lc before -lgcc.
13896
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13897
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13899
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13901
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902
(eval $ac_compile) 2>&5
13904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905
(exit $ac_status); } 2>conftest.err; then
13908
libobjs=conftest.$ac_objext
13910
wl=$lt_prog_compiler_wl_F77
13916
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13917
allow_undefined_flag_F77=
13918
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13919
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922
(exit $ac_status); }
13924
archive_cmds_need_lc_F77=no
13926
archive_cmds_need_lc_F77=yes
13928
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13930
cat conftest.err 1>&5
13933
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13934
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13941
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13942
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13943
library_names_spec=
13944
libname_spec='lib$name'
13948
postuninstall_cmds=
13952
shlibpath_overrides_runpath=unknown
13954
dynamic_linker="$host_os ld.so"
13955
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13956
if test "$GCC" = yes; then
13957
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13958
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13959
# if the path contains ";" then we assume it to be the separator
13960
# otherwise default to the standard path separator (i.e. ":") - it is
13961
# assumed that no part of a normal pathname contains ";" but that should
13962
# okay in the real world where ";" in dirpaths is itself problematic.
13963
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13965
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13968
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13970
need_lib_prefix=unknown
13971
hardcode_into_libs=no
13973
# when you set need_version to no, make sure it does not cause -set_version
13974
# flags to be left without arguments
13975
need_version=unknown
13980
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13981
shlibpath_var=LIBPATH
13983
# AIX 3 has no versioning support, so we append a major version to the name.
13984
soname_spec='${libname}${release}${shared_ext}$major'
13991
hardcode_into_libs=yes
13992
if test "$host_cpu" = ia64; then
13993
# AIX 5 supports IA64
13994
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13995
shlibpath_var=LD_LIBRARY_PATH
13997
# With GCC up to 2.95.x, collect2 would create an import file
13998
# for dependence libraries. The import file would start with
13999
# the line `#! .'. This would cause the generated library to
14000
# depend on `.', always an invalid library. This was fixed in
14001
# development snapshots of GCC prior to 3.0.
14003
aix4 | aix4.[01] | aix4.[01].*)
14004
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14006
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14009
can_build_shared=no
14013
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14014
# soname into executable. Probably we can add versioning support to
14015
# collect2, so additional links can be useful in future.
14016
if test "$aix_use_runtimelinking" = yes; then
14017
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14018
# instead of lib<name>.a to let people know that these are not
14019
# typical AIX shared libraries.
14020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022
# We preserve .a as extension for shared libraries through AIX4.2
14023
# and later when we are not doing run time linking.
14024
library_names_spec='${libname}${release}.a $libname.a'
14025
soname_spec='${libname}${release}${shared_ext}$major'
14027
shlibpath_var=LIBPATH
14032
library_names_spec='$libname.ixlibrary $libname.a'
14033
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14034
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'
14038
library_names_spec='${libname}${shared_ext}'
14039
dynamic_linker="$host_os ld.so"
14040
shlibpath_var=LIBRARY_PATH
14046
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14047
soname_spec='${libname}${release}${shared_ext}$major'
14048
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14049
shlibpath_var=LD_LIBRARY_PATH
14050
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14051
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14052
# the default ld.so.conf also contains /usr/contrib/lib and
14053
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14054
# libtool to hard-code these into programs
14057
cygwin* | mingw* | pw32*)
14058
version_type=windows
14063
case $GCC,$host_os in
14064
yes,cygwin* | yes,mingw* | yes,pw32*)
14065
library_names_spec='$libname.dll.a'
14066
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14067
postinstall_cmds='base_file=`basename \${file}`~
14068
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14069
dldir=$destdir/`dirname \$dlpath`~
14070
test -d \$dldir || mkdir -p \$dldir~
14071
$install_prog $dir/$dlname \$dldir/$dlname'
14072
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14073
dlpath=$dir/\$dldll~
14075
shlibpath_overrides_runpath=yes
14079
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14080
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14081
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14084
# MinGW DLLs use traditional 'lib' prefix
14085
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14086
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14087
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14088
# It is most probably a Windows format PATH printed by
14089
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14090
# path with ; separators, and with drive letters. We can handle the
14091
# drive letters (cygwin fileutils understands them), so leave them,
14092
# especially as we might pass files found there to a mingw objdump,
14093
# which wouldn't understand a cygwinified path. Ahh.
14094
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14096
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14100
# pw32 DLLs use 'pw' prefix rather than 'lib'
14101
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14107
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14110
dynamic_linker='Win32 ld.exe'
14111
# FIXME: first we should search . and the directory the executable is in
14115
darwin* | rhapsody*)
14116
dynamic_linker="$host_os dyld"
14117
version_type=darwin
14120
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14121
soname_spec='${libname}${release}${major}$shared_ext'
14122
shlibpath_overrides_runpath=yes
14123
shlibpath_var=DYLD_LIBRARY_PATH
14124
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14125
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14126
if test "$GCC" = yes; then
14127
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"`
14129
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14131
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14139
soname_spec='${libname}${release}${shared_ext}$major'
14140
shlibpath_var=LD_LIBRARY_PATH
14151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14152
soname_spec='${libname}${release}${shared_ext}$major'
14153
shlibpath_var=LD_LIBRARY_PATH
14154
shlibpath_overrides_runpath=no
14155
hardcode_into_libs=yes
14156
dynamic_linker='GNU ld.so'
14160
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14161
version_type=freebsd-$objformat
14162
case $version_type in
14164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14169
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14173
shlibpath_var=LD_LIBRARY_PATH
14176
shlibpath_overrides_runpath=yes
14178
freebsd3.01* | freebsdelf3.01*)
14179
shlibpath_overrides_runpath=yes
14180
hardcode_into_libs=yes
14183
shlibpath_overrides_runpath=no
14184
hardcode_into_libs=yes
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
14196
hardcode_into_libs=yes
14199
hpux9* | hpux10* | hpux11*)
14200
# Give a soname corresponding to the major version so that dld.sl refuses to
14201
# link against other versions.
14205
case "$host_cpu" in
14208
hardcode_into_libs=yes
14209
dynamic_linker="$host_os dld.so"
14210
shlibpath_var=LD_LIBRARY_PATH
14211
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14213
soname_spec='${libname}${release}${shared_ext}$major'
14214
if test "X$HPUX_IA64_MODE" = X32; then
14215
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14217
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14219
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14223
hardcode_into_libs=yes
14224
dynamic_linker="$host_os dld.sl"
14225
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14226
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228
soname_spec='${libname}${release}${shared_ext}$major'
14229
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14230
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14234
dynamic_linker="$host_os dld.sl"
14235
shlibpath_var=SHLIB_PATH
14236
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14238
soname_spec='${libname}${release}${shared_ext}$major'
14241
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14242
postinstall_cmds='chmod 555 $lib'
14245
irix5* | irix6* | nonstopux*)
14247
nonstopux*) version_type=nonstopux ;;
14249
if test "$lt_cv_prog_gnu_ld" = yes; then
14257
soname_spec='${libname}${release}${shared_ext}$major'
14258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14260
irix5* | nonstopux*)
14261
libsuff= shlibsuff=
14264
case $LD in # libtool.m4 will add one of these switches to LD
14265
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14266
libsuff= shlibsuff= libmagic=32-bit;;
14267
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14268
libsuff=32 shlibsuff=N32 libmagic=N32;;
14269
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14270
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14271
*) libsuff= shlibsuff= libmagic=never-match;;
14275
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14276
shlibpath_overrides_runpath=no
14277
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14278
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14279
hardcode_into_libs=yes
14282
# No shared lib support for Linux oldld, aout, or coff.
14283
linux*oldld* | linux*aout* | linux*coff*)
14287
# This must be Linux ELF.
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'
14294
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14295
shlibpath_var=LD_LIBRARY_PATH
14296
shlibpath_overrides_runpath=no
14297
# This implies no fast_install, which is unacceptable.
14298
# Some rework will be needed to allow for fast_install
14299
# before this can be enabled.
14300
hardcode_into_libs=yes
14302
# Append ld.so.conf contents to the search path
14303
if test -f /etc/ld.so.conf; then
14304
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14305
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14308
# We used to test for /lib/ld.so.1 and disable shared libraries on
14309
# powerpc, because MkLinux only supported shared libraries with the
14310
# GNU dynamic linker. Since this was broken with cross compilers,
14311
# most powerpc-linux boxes support dynamic linking these days and
14312
# people can always --disable-shared, the test was removed, and we
14313
# assume the GNU/Linux dynamic linker is in use.
14314
dynamic_linker='GNU/Linux ld.so'
14321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14322
soname_spec='${libname}${release}${shared_ext}$major'
14323
shlibpath_var=LD_LIBRARY_PATH
14324
shlibpath_overrides_runpath=no
14325
hardcode_into_libs=yes
14326
dynamic_linker='NetBSD ld.elf_so'
14333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14334
soname_spec='${libname}${release}${shared_ext}$major'
14335
shlibpath_var=LD_LIBRARY_PATH
14336
shlibpath_overrides_runpath=no
14337
hardcode_into_libs=yes
14338
dynamic_linker='GNU ld.so'
14345
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14346
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14347
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14348
dynamic_linker='NetBSD (a.out) ld.so'
14350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14351
soname_spec='${libname}${release}${shared_ext}$major'
14352
dynamic_linker='NetBSD ld.elf_so'
14354
shlibpath_var=LD_LIBRARY_PATH
14355
shlibpath_overrides_runpath=yes
14356
hardcode_into_libs=yes
14361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14362
shlibpath_var=LD_LIBRARY_PATH
14363
shlibpath_overrides_runpath=yes
14370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371
soname_spec='${libname}${release}${shared_ext}$major'
14372
shlibpath_var=LD_LIBRARY_PATH
14373
shlibpath_overrides_runpath=yes
14380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14381
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14382
shlibpath_var=LD_LIBRARY_PATH
14383
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14385
openbsd2.[89] | openbsd2.[89].*)
14386
shlibpath_overrides_runpath=no
14389
shlibpath_overrides_runpath=yes
14393
shlibpath_overrides_runpath=yes
14398
libname_spec='$name'
14401
library_names_spec='$libname${shared_ext} $libname.a'
14402
dynamic_linker='OS/2 ld.exe'
14403
shlibpath_var=LIBPATH
14406
osf3* | osf4* | osf5*)
14410
soname_spec='${libname}${release}${shared_ext}$major'
14411
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14412
shlibpath_var=LD_LIBRARY_PATH
14413
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14414
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14419
soname_spec='${libname}${release}${shared_ext}$major'
14420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14421
shlibpath_var=LD_LIBRARY_PATH
14428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14429
soname_spec='${libname}${release}${shared_ext}$major'
14430
shlibpath_var=LD_LIBRARY_PATH
14431
shlibpath_overrides_runpath=yes
14432
hardcode_into_libs=yes
14433
# ldd complains unless libraries are executable
14434
postinstall_cmds='chmod +x $lib'
14439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14440
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14441
shlibpath_var=LD_LIBRARY_PATH
14442
shlibpath_overrides_runpath=yes
14443
if test "$with_gnu_ld" = yes; then
14449
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14451
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14452
soname_spec='${libname}${release}${shared_ext}$major'
14453
shlibpath_var=LD_LIBRARY_PATH
14454
case $host_vendor in
14456
shlibpath_overrides_runpath=no
14458
export_dynamic_flag_spec='${wl}-Blargedynsym'
14459
runpath_var=LD_RUN_PATH
14467
shlibpath_overrides_runpath=no
14468
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14474
if test -d /usr/nec ;then
14476
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14477
soname_spec='$libname${shared_ext}.$major'
14478
shlibpath_var=LD_LIBRARY_PATH
14484
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485
soname_spec='${libname}${release}${shared_ext}$major'
14486
shlibpath_var=LD_LIBRARY_PATH
14493
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14494
echo "${ECHO_T}$dynamic_linker" >&6
14495
test "$dynamic_linker" = no && can_build_shared=no
14497
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14498
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14499
hardcode_action_F77=
14500
if test -n "$hardcode_libdir_flag_spec_F77" || \
14501
test -n "$runpath_var F77" || \
14502
test "X$hardcode_automatic_F77"="Xyes" ; then
14504
# We can hardcode non-existant directories.
14505
if test "$hardcode_direct_F77" != no &&
14506
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14507
# have to relink, otherwise we might link with an installed library
14508
# when we should be linking with a yet-to-be-installed one
14509
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14510
test "$hardcode_minus_L_F77" != no; then
14511
# Linking always hardcodes the temporary library directory.
14512
hardcode_action_F77=relink
14514
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14515
hardcode_action_F77=immediate
14518
# We cannot hardcode anything, or else we can only hardcode existing
14520
hardcode_action_F77=unsupported
14522
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14523
echo "${ECHO_T}$hardcode_action_F77" >&6
14525
if test "$hardcode_action_F77" = relink; then
14526
# Fast installation is not supported
14527
enable_fast_install=no
14528
elif test "$shlibpath_overrides_runpath" = yes ||
14529
test "$enable_shared" = no; then
14530
# Fast installation is not necessary
14531
enable_fast_install=needless
14536
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14537
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14538
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14539
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14540
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14541
echo "$as_me:$LINENO: result: yes" >&5
14542
echo "${ECHO_T}yes" >&6
14544
# FIXME - insert some real tests, host_os isn't really good enough
14547
if test -n "$STRIP" ; then
14548
striplib="$STRIP -x"
14549
echo "$as_me:$LINENO: result: yes" >&5
14550
echo "${ECHO_T}yes" >&6
14552
echo "$as_me:$LINENO: result: no" >&5
14553
echo "${ECHO_T}no" >&6
14557
echo "$as_me:$LINENO: result: no" >&5
14558
echo "${ECHO_T}no" >&6
14565
# The else clause should only fire when bootstrapping the
14566
# libtool distribution, otherwise you forgot to ship ltmain.sh
14567
# with your package, and you will get complaints that there are
14568
# no rules to generate ltmain.sh.
14569
if test -f "$ltmain"; then
14570
# See if we are running on zsh, and set the options which allow our commands through
14571
# without removal of \ escapes.
14572
if test -n "${ZSH_VERSION+set}" ; then
14573
setopt NO_GLOB_SUBST
14575
# Now quote all the things that may contain metacharacters while being
14576
# careful not to overquote the AC_SUBSTed values. We take copies of the
14577
# variables and quote the copies for generation of the libtool script.
14578
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14580
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14581
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14582
deplibs_check_method reload_flag reload_cmds need_locks \
14583
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14584
lt_cv_sys_global_symbol_to_c_name_address \
14585
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14586
old_postinstall_cmds old_postuninstall_cmds \
14590
lt_prog_compiler_wl_F77 \
14591
lt_prog_compiler_pic_F77 \
14592
lt_prog_compiler_static_F77 \
14593
lt_prog_compiler_no_builtin_flag_F77 \
14594
export_dynamic_flag_spec_F77 \
14595
thread_safe_flag_spec_F77 \
14596
whole_archive_flag_spec_F77 \
14597
enable_shared_with_static_runtimes_F77 \
14598
old_archive_cmds_F77 \
14599
old_archive_from_new_cmds_F77 \
14600
predep_objects_F77 \
14601
postdep_objects_F77 \
14604
compiler_lib_search_path_F77 \
14606
archive_expsym_cmds_F77 \
14607
postinstall_cmds_F77 \
14608
postuninstall_cmds_F77 \
14609
old_archive_from_expsyms_cmds_F77 \
14610
allow_undefined_flag_F77 \
14611
no_undefined_flag_F77 \
14612
export_symbols_cmds_F77 \
14613
hardcode_libdir_flag_spec_F77 \
14614
hardcode_libdir_flag_spec_ld_F77 \
14615
hardcode_libdir_separator_F77 \
14616
hardcode_automatic_F77 \
14618
module_expsym_cmds_F77 \
14619
lt_cv_prog_compiler_c_o_F77 \
14620
exclude_expsyms_F77 \
14621
include_expsyms_F77; do
14624
old_archive_cmds_F77 | \
14625
old_archive_from_new_cmds_F77 | \
14626
archive_cmds_F77 | \
14627
archive_expsym_cmds_F77 | \
14628
module_cmds_F77 | \
14629
module_expsym_cmds_F77 | \
14630
old_archive_from_expsyms_cmds_F77 | \
14631
export_symbols_cmds_F77 | \
14632
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14633
postinstall_cmds | postuninstall_cmds | \
14634
old_postinstall_cmds | old_postuninstall_cmds | \
14635
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14636
# Double-quote double-evaled strings.
14637
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14640
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14646
*'\$0 --fallback-echo"')
14647
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14653
cat <<__EOF__ >> "$cfgfile"
14654
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14656
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14658
# Shell to use when invoking shell scripts.
14661
# Whether or not to build shared libraries.
14662
build_libtool_libs=$enable_shared
14664
# Whether or not to build static libraries.
14665
build_old_libs=$enable_static
14667
# Whether or not to add -lc for building shared libraries.
14668
build_libtool_need_lc=$archive_cmds_need_lc_F77
14670
# Whether or not to disallow shared libs when runtime libs are static
14671
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14673
# Whether or not to optimize for fast installation.
14674
fast_install=$enable_fast_install
14677
host_alias=$host_alias
14680
# An echo program that does not interpret backslashes.
14685
AR_FLAGS=$lt_AR_FLAGS
14690
# A language-specific compiler.
14691
CC=$lt_compiler_F77
14693
# Is the compiler the GNU C compiler?
14699
# The linker used to build libraries.
14702
# Whether we need hard or soft links.
14705
# A BSD-compatible nm program.
14708
# A symbol stripping program
14711
# Used to examine libraries when file_magic_cmd begins "file"
14712
MAGIC_CMD=$MAGIC_CMD
14714
# Used on cygwin: DLL creation program.
14717
# Used on cygwin: object dumper.
14720
# Used on cygwin: assembler.
14723
# The name of the directory that contains temporary libtool files.
14726
# How to create reloadable object files.
14727
reload_flag=$lt_reload_flag
14728
reload_cmds=$lt_reload_cmds
14730
# How to pass a linker flag through the compiler.
14731
wl=$lt_lt_prog_compiler_wl_F77
14733
# Object file suffix (normally "o").
14734
objext="$ac_objext"
14736
# Old archive suffix (normally "a").
14739
# Shared library suffix (normally ".so").
14740
shrext_cmds='$shrext_cmds'
14742
# Executable file suffix (normally "").
14745
# Additional compiler flags for building library objects.
14746
pic_flag=$lt_lt_prog_compiler_pic_F77
14749
# What is the maximum length of a command?
14750
max_cmd_len=$lt_cv_sys_max_cmd_len
14752
# Does compiler simultaneously support -c and -o options?
14753
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14755
# Must we lock files when doing compilation ?
14756
need_locks=$lt_need_locks
14758
# Do we need the lib prefix for modules?
14759
need_lib_prefix=$need_lib_prefix
14761
# Do we need a version for libraries?
14762
need_version=$need_version
14764
# Whether dlopen is supported.
14765
dlopen_support=$enable_dlopen
14767
# Whether dlopen of programs is supported.
14768
dlopen_self=$enable_dlopen_self
14770
# Whether dlopen of statically linked programs is supported.
14771
dlopen_self_static=$enable_dlopen_self_static
14773
# Compiler flag to prevent dynamic linking.
14774
link_static_flag=$lt_lt_prog_compiler_static_F77
14776
# Compiler flag to turn off builtin functions.
14777
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14779
# Compiler flag to allow reflexive dlopens.
14780
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14782
# Compiler flag to generate shared objects directly from archives.
14783
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14785
# Compiler flag to generate thread-safe objects.
14786
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14788
# Library versioning type.
14789
version_type=$version_type
14791
# Format of library name prefix.
14792
libname_spec=$lt_libname_spec
14794
# List of archive names. First name is the real one, the rest are links.
14795
# The last name is the one that the linker finds with -lNAME.
14796
library_names_spec=$lt_library_names_spec
14798
# The coded name of the library, if different from the real name.
14799
soname_spec=$lt_soname_spec
14801
# Commands used to build and install an old-style archive.
14803
old_archive_cmds=$lt_old_archive_cmds_F77
14804
old_postinstall_cmds=$lt_old_postinstall_cmds
14805
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14807
# Create an old-style archive from a shared archive.
14808
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14810
# Create a temporary old-style archive to link instead of a shared archive.
14811
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14813
# Commands used to build and install a shared archive.
14814
archive_cmds=$lt_archive_cmds_F77
14815
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14816
postinstall_cmds=$lt_postinstall_cmds
14817
postuninstall_cmds=$lt_postuninstall_cmds
14819
# Commands used to build a loadable module (assumed same as above if empty)
14820
module_cmds=$lt_module_cmds_F77
14821
module_expsym_cmds=$lt_module_expsym_cmds_F77
14823
# Commands to strip libraries.
14824
old_striplib=$lt_old_striplib
14825
striplib=$lt_striplib
14827
# Dependencies to place before the objects being linked to create a
14829
predep_objects=$lt_predep_objects_F77
14831
# Dependencies to place after the objects being linked to create a
14833
postdep_objects=$lt_postdep_objects_F77
14835
# Dependencies to place before the objects being linked to create a
14837
predeps=$lt_predeps_F77
14839
# Dependencies to place after the objects being linked to create a
14841
postdeps=$lt_postdeps_F77
14843
# The library search path used internally by the compiler when linking
14844
# a shared library.
14845
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14847
# Method to check whether dependent libraries are shared objects.
14848
deplibs_check_method=$lt_deplibs_check_method
14850
# Command to use when deplibs_check_method == file_magic.
14851
file_magic_cmd=$lt_file_magic_cmd
14853
# Flag that allows shared libraries with undefined symbols to be built.
14854
allow_undefined_flag=$lt_allow_undefined_flag_F77
14856
# Flag that forces no undefined symbols.
14857
no_undefined_flag=$lt_no_undefined_flag_F77
14859
# Commands used to finish a libtool library installation in a directory.
14860
finish_cmds=$lt_finish_cmds
14862
# Same as above, but a single script fragment to be evaled but not shown.
14863
finish_eval=$lt_finish_eval
14865
# Take the output of nm and produce a listing of raw symbols and C names.
14866
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14868
# Transform the output of nm in a proper C declaration
14869
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14871
# Transform the output of nm in a C name address pair
14872
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14874
# This is the shared library runtime path variable.
14875
runpath_var=$runpath_var
14877
# This is the shared library path variable.
14878
shlibpath_var=$shlibpath_var
14880
# Is shlibpath searched before the hard-coded library search path?
14881
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14883
# How to hardcode a shared library path into an executable.
14884
hardcode_action=$hardcode_action_F77
14886
# Whether we should hardcode library paths into libraries.
14887
hardcode_into_libs=$hardcode_into_libs
14889
# Flag to hardcode \$libdir into a binary during linking.
14890
# This must work even if \$libdir does not exist.
14891
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14893
# If ld is used when linking, flag to hardcode \$libdir into
14894
# a binary during linking. This must work even if \$libdir does
14896
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14898
# Whether we need a single -rpath flag with a separated argument.
14899
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14901
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14902
# resulting binary.
14903
hardcode_direct=$hardcode_direct_F77
14905
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14906
# resulting binary.
14907
hardcode_minus_L=$hardcode_minus_L_F77
14909
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14910
# the resulting binary.
14911
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14913
# Set to yes if building a shared library automatically hardcodes DIR into the library
14914
# and all subsequent libraries and executables linked against it.
14915
hardcode_automatic=$hardcode_automatic_F77
14917
# Variables whose values should be saved in libtool wrapper scripts and
14918
# restored at relink time.
14919
variables_saved_for_relink="$variables_saved_for_relink"
14921
# Whether libtool must link a program against all its dependency libraries.
14922
link_all_deplibs=$link_all_deplibs_F77
14924
# Compile-time system search path for libraries
14925
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14927
# Run-time system search path for libraries
14928
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14930
# Fix the shell variable \$srcfile for the compiler.
14931
fix_srcfile_path="$fix_srcfile_path_F77"
14933
# Set to yes if exported symbols are required.
14934
always_export_symbols=$always_export_symbols_F77
14936
# The commands to list exported symbols.
14937
export_symbols_cmds=$lt_export_symbols_cmds_F77
14939
# The commands to extract the exported symbol list from a shared archive.
14940
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14942
# Symbols that should not be listed in the preloaded symbols.
14943
exclude_expsyms=$lt_exclude_expsyms_F77
14945
# Symbols that must always be exported.
14946
include_expsyms=$lt_include_expsyms_F77
14948
# ### END LIBTOOL TAG CONFIG: $tagname
14954
# If there is no Makefile yet, we rely on a make rule to execute
14955
# `config.status --recheck' to rerun these tests and create the
14956
# libtool script then.
14957
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14958
if test -f "$ltmain_in"; then
14959
test -f Makefile && make "$ltmain"
14965
ac_cpp='$CPP $CPPFLAGS'
14966
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14967
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14968
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14978
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14982
# Source file extension for Java test sources.
14985
# Object file extension for compiled Java test sources.
14989
# Code to be used in simple compile tests
14990
lt_simple_compile_test_code="class foo {}\n"
14992
# Code to be used in simple link tests
14993
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14995
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14997
# If no C compiler was specified, use CC.
15000
# Allow CC to be a program name with arguments.
15004
# Allow CC to be a program name with arguments.
15010
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15011
archive_cmds_need_lc_GCJ=no
15014
lt_prog_compiler_no_builtin_flag_GCJ=
15016
if test "$GCC" = yes; then
15017
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15020
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15021
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15022
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15023
echo $ECHO_N "(cached) $ECHO_C" >&6
15025
lt_cv_prog_compiler_rtti_exceptions=no
15026
ac_outfile=conftest.$ac_objext
15027
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15028
lt_compiler_flag="-fno-rtti -fno-exceptions"
15029
# Insert the option either (1) after the last *FLAGS variable, or
15030
# (2) before a word containing "conftest.", or (3) at the end.
15031
# Note that $ac_compile itself does not contain backslashes and begins
15032
# with a dollar sign (not a hyphen), so the echo should work correctly.
15033
# The option is referenced via a variable to avoid confusing sed.
15034
lt_compile=`echo "$ac_compile" | $SED \
15035
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15036
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15037
-e 's:$: $lt_compiler_flag:'`
15038
(eval echo "\"\$as_me:15038: $lt_compile\"" >&5)
15039
(eval "$lt_compile" 2>conftest.err)
15041
cat conftest.err >&5
15042
echo "$as_me:15042: \$? = $ac_status" >&5
15043
if (exit $ac_status) && test -s "$ac_outfile"; then
15044
# The compiler can only warn and ignore the option if not recognized
15045
# So say no if there are warnings
15046
if test ! -s conftest.err; then
15047
lt_cv_prog_compiler_rtti_exceptions=yes
15053
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15054
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15056
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15057
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15064
lt_prog_compiler_wl_GCJ=
15065
lt_prog_compiler_pic_GCJ=
15066
lt_prog_compiler_static_GCJ=
15068
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15069
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15071
if test "$GCC" = yes; then
15072
lt_prog_compiler_wl_GCJ='-Wl,'
15073
lt_prog_compiler_static_GCJ='-static'
15077
# All AIX code is PIC.
15078
if test "$host_cpu" = ia64; then
15079
# AIX 5 now supports IA64 processor
15080
lt_prog_compiler_static_GCJ='-Bstatic'
15085
# FIXME: we need at least 68020 code to build shared libraries, but
15086
# adding the `-m68020' flag to GCC prevents building anything better,
15088
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15091
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15092
# PIC is the default for these OSes.
15095
mingw* | pw32* | os2*)
15096
# This hack is so that the source file can tell whether it is being
15097
# built for inclusion in a dll (and should export symbols for example).
15098
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15101
darwin* | rhapsody*)
15102
# PIC is the default on this platform
15103
# Common symbols not allowed in MH_DYLIB files
15104
lt_prog_compiler_pic_GCJ='-fno-common'
15108
# Just because we use GCC doesn't mean we suddenly get shared libraries
15109
# on systems that don't support them.
15110
lt_prog_compiler_can_build_shared_GCJ=no
15115
if test -d /usr/nec; then
15116
lt_prog_compiler_pic_GCJ=-Kconform_pic
15121
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15122
# not for PA HP-UX.
15123
case "$host_cpu" in
15128
lt_prog_compiler_pic_GCJ='-fPIC'
15134
lt_prog_compiler_pic_GCJ='-fPIC'
15138
# PORTME Check for flag to pass linker flags through the system compiler.
15141
lt_prog_compiler_wl_GCJ='-Wl,'
15142
if test "$host_cpu" = ia64; then
15143
# AIX 5 now supports IA64 processor
15144
lt_prog_compiler_static_GCJ='-Bstatic'
15146
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15150
mingw* | pw32* | os2*)
15151
# This hack is so that the source file can tell whether it is being
15152
# built for inclusion in a dll (and should export symbols for example).
15153
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15156
hpux9* | hpux10* | hpux11*)
15157
lt_prog_compiler_wl_GCJ='-Wl,'
15158
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15159
# not for PA HP-UX.
15160
case "$host_cpu" in
15165
lt_prog_compiler_pic_GCJ='+Z'
15168
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15169
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15172
irix5* | irix6* | nonstopux*)
15173
lt_prog_compiler_wl_GCJ='-Wl,'
15174
# PIC (with -KPIC) is the default.
15175
lt_prog_compiler_static_GCJ='-non_shared'
15179
lt_prog_compiler_pic_GCJ='-KPIC'
15180
lt_prog_compiler_static_GCJ='-Bstatic'
15186
lt_prog_compiler_wl_GCJ='-Wl,'
15187
lt_prog_compiler_pic_GCJ='-KPIC'
15188
lt_prog_compiler_static_GCJ='-static'
15191
lt_prog_compiler_wl_GCJ='-Wl,'
15192
# All Alpha code is PIC.
15193
lt_prog_compiler_static_GCJ='-non_shared'
15198
osf3* | osf4* | osf5*)
15199
lt_prog_compiler_wl_GCJ='-Wl,'
15200
# All OSF/1 code is PIC.
15201
lt_prog_compiler_static_GCJ='-non_shared'
15205
lt_prog_compiler_pic_GCJ='-Kpic'
15206
lt_prog_compiler_static_GCJ='-dn'
15210
lt_prog_compiler_wl_GCJ='-Wl,'
15211
lt_prog_compiler_pic_GCJ='-KPIC'
15212
lt_prog_compiler_static_GCJ='-Bstatic'
15216
lt_prog_compiler_wl_GCJ='-Qoption ld '
15217
lt_prog_compiler_pic_GCJ='-PIC'
15218
lt_prog_compiler_static_GCJ='-Bstatic'
15221
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15222
lt_prog_compiler_wl_GCJ='-Wl,'
15223
lt_prog_compiler_pic_GCJ='-KPIC'
15224
lt_prog_compiler_static_GCJ='-Bstatic'
15228
if test -d /usr/nec ;then
15229
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15230
lt_prog_compiler_static_GCJ='-Bstatic'
15235
lt_prog_compiler_pic_GCJ='-pic'
15236
lt_prog_compiler_static_GCJ='-Bstatic'
15240
lt_prog_compiler_can_build_shared_GCJ=no
15245
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15246
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15249
# Check to make sure the PIC flag actually works.
15251
if test -n "$lt_prog_compiler_pic_GCJ"; then
15253
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15254
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15255
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15256
echo $ECHO_N "(cached) $ECHO_C" >&6
15258
lt_prog_compiler_pic_works_GCJ=no
15259
ac_outfile=conftest.$ac_objext
15260
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15261
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15262
# Insert the option either (1) after the last *FLAGS variable, or
15263
# (2) before a word containing "conftest.", or (3) at the end.
15264
# Note that $ac_compile itself does not contain backslashes and begins
15265
# with a dollar sign (not a hyphen), so the echo should work correctly.
15266
# The option is referenced via a variable to avoid confusing sed.
15267
lt_compile=`echo "$ac_compile" | $SED \
15268
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15269
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15270
-e 's:$: $lt_compiler_flag:'`
15271
(eval echo "\"\$as_me:15271: $lt_compile\"" >&5)
15272
(eval "$lt_compile" 2>conftest.err)
15274
cat conftest.err >&5
15275
echo "$as_me:15275: \$? = $ac_status" >&5
15276
if (exit $ac_status) && test -s "$ac_outfile"; then
15277
# The compiler can only warn and ignore the option if not recognized
15278
# So say no if there are warnings
15279
if test ! -s conftest.err; then
15280
lt_prog_compiler_pic_works_GCJ=yes
15286
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15287
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15289
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15290
case $lt_prog_compiler_pic_GCJ in
15292
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15295
lt_prog_compiler_pic_GCJ=
15296
lt_prog_compiler_can_build_shared_GCJ=no
15301
# For platforms which do not support PIC, -DPIC is meaningless:
15303
lt_prog_compiler_pic_GCJ=
15306
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15310
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15311
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15312
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15313
echo $ECHO_N "(cached) $ECHO_C" >&6
15315
lt_cv_prog_compiler_c_o_GCJ=no
15316
$rm -r conftest 2>/dev/null
15320
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15322
lt_compiler_flag="-o out/conftest2.$ac_objext"
15323
# Insert the option either (1) after the last *FLAGS variable, or
15324
# (2) before a word containing "conftest.", or (3) at the end.
15325
# Note that $ac_compile itself does not contain backslashes and begins
15326
# with a dollar sign (not a hyphen), so the echo should work correctly.
15327
lt_compile=`echo "$ac_compile" | $SED \
15328
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15329
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15330
-e 's:$: $lt_compiler_flag:'`
15331
(eval echo "\"\$as_me:15331: $lt_compile\"" >&5)
15332
(eval "$lt_compile" 2>out/conftest.err)
15334
cat out/conftest.err >&5
15335
echo "$as_me:15335: \$? = $ac_status" >&5
15336
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15338
# The compiler can only warn and ignore the option if not recognized
15339
# So say no if there are warnings
15340
if test ! -s out/conftest.err; then
15341
lt_cv_prog_compiler_c_o_GCJ=yes
15346
# SGI C++ compiler will create directory out/ii_files/ for
15347
# template instantiation
15348
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15349
$rm out/* && rmdir out
15355
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15356
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15359
hard_links="nottested"
15360
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15361
# do not overwrite the value of need_locks provided by the user
15362
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15363
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15366
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15368
ln conftest.a conftest.b 2>&5 || hard_links=no
15369
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15370
echo "$as_me:$LINENO: result: $hard_links" >&5
15371
echo "${ECHO_T}$hard_links" >&6
15372
if test "$hard_links" = no; then
15373
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15374
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15381
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15382
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15385
allow_undefined_flag_GCJ=
15386
enable_shared_with_static_runtimes_GCJ=no
15388
archive_expsym_cmds_GCJ=
15389
old_archive_From_new_cmds_GCJ=
15390
old_archive_from_expsyms_cmds_GCJ=
15391
export_dynamic_flag_spec_GCJ=
15392
whole_archive_flag_spec_GCJ=
15393
thread_safe_flag_spec_GCJ=
15394
hardcode_libdir_flag_spec_GCJ=
15395
hardcode_libdir_flag_spec_ld_GCJ=
15396
hardcode_libdir_separator_GCJ=
15397
hardcode_direct_GCJ=no
15398
hardcode_minus_L_GCJ=no
15399
hardcode_shlibpath_var_GCJ=unsupported
15400
link_all_deplibs_GCJ=unknown
15401
hardcode_automatic_GCJ=no
15403
module_expsym_cmds_GCJ=
15404
always_export_symbols_GCJ=no
15405
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15406
# include_expsyms should be a list of space-separated symbols to be *always*
15407
# included in the symbol list
15408
include_expsyms_GCJ=
15409
# exclude_expsyms can be an extended regexp of symbols to exclude
15410
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15411
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15412
# as well as any symbol that contains `d'.
15413
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15414
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15415
# platforms (ab)use it in PIC code, but their linkers get confused if
15416
# the symbol is explicitly referenced. Since portable code cannot
15417
# rely on this symbol name, it's probably fine to never include it in
15418
# preloaded symbol tables.
15419
extract_expsyms_cmds=
15422
cygwin* | mingw* | pw32*)
15423
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15424
# When not using gcc, we currently assume that we are using
15425
# Microsoft Visual C++.
15426
if test "$GCC" != yes; then
15436
if test "$with_gnu_ld" = yes; then
15437
# If archive_cmds runs LD, not CC, wlarc should be empty
15440
# See if GNU ld supports shared libraries.
15442
aix3* | aix4* | aix5*)
15443
# On AIX/PPC, the GNU linker is very broken
15444
if test "$host_cpu" != ia64; then
15448
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15449
*** to be unable to reliably create shared libraries on AIX.
15450
*** Therefore, libtool is disabling shared libraries support. If you
15451
*** really care for shared libraries, you may want to modify your PATH
15452
*** so that a non-GNU linker is found, and then restart.
15459
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)'
15460
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15461
hardcode_minus_L_GCJ=yes
15463
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15464
# that the semantics of dynamic libraries on AmigaOS, at least up
15465
# to version 4, is to share data among multiple programs linked
15466
# with the same dynamic library. Since this doesn't match the
15467
# behavior of shared libraries on other platforms, we can't use
15473
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15474
allow_undefined_flag_GCJ=unsupported
15475
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15476
# support --undefined. This deserves some investigation. FIXME
15477
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15483
cygwin* | mingw* | pw32*)
15484
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15485
# as there is no search path for DLLs.
15486
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15487
allow_undefined_flag_GCJ=unsupported
15488
always_export_symbols_GCJ=no
15489
enable_shared_with_static_runtimes_GCJ=yes
15490
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15492
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15493
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15494
# If the export-symbols file already is a .def file (1st line
15495
# is EXPORTS), use it as is; otherwise, prepend...
15496
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15497
cp $export_symbols $output_objdir/$soname.def;
15499
echo EXPORTS > $output_objdir/$soname.def;
15500
cat $export_symbols >> $output_objdir/$soname.def;
15502
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15508
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15509
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15510
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15513
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15514
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15519
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15523
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15524
*** create shared libraries on Solaris systems. Therefore, libtool
15525
*** is disabling shared libraries support. We urge you to upgrade GNU
15526
*** binutils to release 2.9.1 or newer. Another option is to modify
15527
*** your PATH or compiler configuration so that the native linker is
15528
*** used, and then restart.
15531
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15532
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15533
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15540
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15542
hardcode_direct_GCJ=yes
15543
hardcode_shlibpath_var_GCJ=no
15547
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15548
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15549
archive_cmds_GCJ="$tmp_archive_cmds"
15550
supports_anon_versioning=no
15551
case `$LD -v 2>/dev/null` in
15552
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15553
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15554
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15555
*\ 2.11.*) ;; # other 2.11 versions
15556
*) supports_anon_versioning=yes ;;
15558
if test $supports_anon_versioning = yes; then
15559
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15560
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15561
$echo "local: *; };" >> $output_objdir/$libname.ver~
15562
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15564
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15566
link_all_deplibs_GCJ=no
15573
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15574
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15575
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15582
if test "$ld_shlibs_GCJ" = yes; then
15583
runpath_var=LD_RUN_PATH
15584
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15585
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15586
# ancient GNU ld didn't support --whole-archive et. al.
15587
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15588
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15590
whole_archive_flag_spec_GCJ=
15594
# PORTME fill in a description of your system's linker (not GNU ld)
15597
allow_undefined_flag_GCJ=unsupported
15598
always_export_symbols_GCJ=yes
15599
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'
15600
# Note: this linker hardcodes the directories in LIBPATH if there
15601
# are no directories specified by -L.
15602
hardcode_minus_L_GCJ=yes
15603
if test "$GCC" = yes && test -z "$link_static_flag"; then
15604
# Neither direct hardcoding nor static linking is supported with a
15606
hardcode_direct_GCJ=unsupported
15611
if test "$host_cpu" = ia64; then
15612
# On IA64, the linker does run time linking by default, so we don't
15613
# have to do anything special.
15614
aix_use_runtimelinking=no
15615
exp_sym_flag='-Bexport'
15618
# If we're using GNU nm, then we don't want the "-C" option.
15619
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15620
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15621
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'
15623
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'
15625
aix_use_runtimelinking=no
15627
# Test if we are trying to use run time linking or normal
15628
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15629
# need to do runtime linking.
15630
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15631
for ld_flag in $LDFLAGS; do
15632
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15633
aix_use_runtimelinking=yes
15639
exp_sym_flag='-bexport'
15640
no_entry_flag='-bnoentry'
15643
# When large executables or shared objects are built, AIX ld can
15644
# have problems creating the table of contents. If linking a library
15645
# or program results in "error TOC overflow" add -mminimal-toc to
15646
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15647
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15649
archive_cmds_GCJ=''
15650
hardcode_direct_GCJ=yes
15651
hardcode_libdir_separator_GCJ=':'
15652
link_all_deplibs_GCJ=yes
15654
if test "$GCC" = yes; then
15655
case $host_os in aix4.012|aix4.012.*)
15656
# We only want to do this on AIX 4.2 and lower, the check
15657
# below for broken collect2 doesn't work under 4.3+
15658
collect2name=`${CC} -print-prog-name=collect2`
15659
if test -f "$collect2name" && \
15660
strings "$collect2name" | grep resolve_lib_name >/dev/null
15662
# We have reworked collect2
15663
hardcode_direct_GCJ=yes
15665
# We have old collect2
15666
hardcode_direct_GCJ=unsupported
15667
# It fails to find uninstalled libraries when the uninstalled
15668
# path is not listed in the libpath. Setting hardcode_minus_L
15669
# to unsupported forces relinking
15670
hardcode_minus_L_GCJ=yes
15671
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15672
hardcode_libdir_separator_GCJ=
15675
shared_flag='-shared'
15678
if test "$host_cpu" = ia64; then
15679
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15680
# chokes on -Wl,-G. The following line is correct:
15683
if test "$aix_use_runtimelinking" = yes; then
15684
shared_flag='${wl}-G'
15686
shared_flag='${wl}-bM:SRE'
15691
# It seems that -bexpall does not export symbols beginning with
15692
# underscore (_), so it is better to generate a list of symbols to export.
15693
always_export_symbols_GCJ=yes
15694
if test "$aix_use_runtimelinking" = yes; then
15695
# Warning - without using the other runtime loading flags (-brtl),
15696
# -berok will link without error, but may produce a broken library.
15697
allow_undefined_flag_GCJ='-berok'
15698
# Determine the default libpath from the value encoded in an empty executable.
15699
cat >conftest.$ac_ext <<_ACEOF
15702
cat confdefs.h >>conftest.$ac_ext
15703
cat >>conftest.$ac_ext <<_ACEOF
15704
/* end confdefs.h. */
15714
rm -f conftest.$ac_objext conftest$ac_exeext
15715
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15716
(eval $ac_link) 2>conftest.er1
15718
grep -v '^ *+' conftest.er1 >conftest.err
15720
cat conftest.err >&5
15721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722
(exit $ac_status); } &&
15723
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725
(eval $ac_try) 2>&5
15727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728
(exit $ac_status); }; } &&
15729
{ ac_try='test -s conftest$ac_exeext'
15730
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731
(eval $ac_try) 2>&5
15733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734
(exit $ac_status); }; }; then
15736
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15738
# Check for a 64-bit object if we didn't find anything.
15739
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; }
15742
echo "$as_me: failed program was:" >&5
15743
sed 's/^/| /' conftest.$ac_ext >&5
15746
rm -f conftest.err conftest.$ac_objext \
15747
conftest$ac_exeext conftest.$ac_ext
15748
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15750
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15751
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"
15753
if test "$host_cpu" = ia64; then
15754
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15755
allow_undefined_flag_GCJ="-z nodefs"
15756
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"
15758
# Determine the default libpath from the value encoded in an empty executable.
15759
cat >conftest.$ac_ext <<_ACEOF
15762
cat confdefs.h >>conftest.$ac_ext
15763
cat >>conftest.$ac_ext <<_ACEOF
15764
/* end confdefs.h. */
15774
rm -f conftest.$ac_objext conftest$ac_exeext
15775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15776
(eval $ac_link) 2>conftest.er1
15778
grep -v '^ *+' conftest.er1 >conftest.err
15780
cat conftest.err >&5
15781
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782
(exit $ac_status); } &&
15783
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15784
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785
(eval $ac_try) 2>&5
15787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788
(exit $ac_status); }; } &&
15789
{ ac_try='test -s conftest$ac_exeext'
15790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791
(eval $ac_try) 2>&5
15793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794
(exit $ac_status); }; }; then
15796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15798
# Check for a 64-bit object if we didn't find anything.
15799
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; }
15802
echo "$as_me: failed program was:" >&5
15803
sed 's/^/| /' conftest.$ac_ext >&5
15806
rm -f conftest.err conftest.$ac_objext \
15807
conftest$ac_exeext conftest.$ac_ext
15808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15810
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15811
# Warning - without using the other run time loading flags,
15812
# -berok will link without error, but may produce a broken library.
15813
no_undefined_flag_GCJ=' ${wl}-bernotok'
15814
allow_undefined_flag_GCJ=' ${wl}-berok'
15815
# -bexpall does not export symbols beginning with underscore (_)
15816
always_export_symbols_GCJ=yes
15817
# Exported symbols can be pulled into shared objects from archives
15818
whole_archive_flag_spec_GCJ=' '
15819
archive_cmds_need_lc_GCJ=yes
15820
# This is similar to how AIX traditionally builds it's shared libraries.
15821
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'
15827
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)'
15828
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15829
hardcode_minus_L_GCJ=yes
15830
# see comment about different semantics on the GNU ld section
15835
export_dynamic_flag_spec_GCJ=-rdynamic
15838
cygwin* | mingw* | pw32*)
15839
# When not using gcc, we currently assume that we are using
15840
# Microsoft Visual C++.
15841
# hardcode_libdir_flag_spec is actually meaningless, as there is
15842
# no search path for DLLs.
15843
hardcode_libdir_flag_spec_GCJ=' '
15844
allow_undefined_flag_GCJ=unsupported
15845
# Tell ltmain to make .lib files, not .a files.
15847
# Tell ltmain to make .dll files, not .so files.
15849
# FIXME: Setting linknames here is a bad hack.
15850
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15851
# The linker will automatically build a .lib file if we build a DLL.
15852
old_archive_From_new_cmds_GCJ='true'
15853
# FIXME: Should let the user specify the lib program.
15854
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15855
fix_srcfile_path='`cygpath -w "$srcfile"`'
15856
enable_shared_with_static_runtimes_GCJ=yes
15859
darwin* | rhapsody*)
15860
if test "$GXX" = yes ; then
15861
archive_cmds_need_lc_GCJ=no
15863
rhapsody* | darwin1.[012])
15864
allow_undefined_flag_GCJ='-undefined suppress'
15867
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15868
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15870
case ${MACOSX_DEPLOYMENT_TARGET} in
15872
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15875
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15881
lt_int_apple_cc_single_mod=no
15882
output_verbose_link_cmd='echo'
15883
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15884
lt_int_apple_cc_single_mod=yes
15886
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15887
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15889
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'
15891
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15892
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15893
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15894
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}'
15896
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}'
15898
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}'
15899
hardcode_direct_GCJ=no
15900
hardcode_automatic_GCJ=yes
15901
hardcode_shlibpath_var_GCJ=unsupported
15902
whole_archive_flag_spec_GCJ='-all_load $convenience'
15903
link_all_deplibs_GCJ=yes
15910
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15911
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15912
hardcode_shlibpath_var_GCJ=no
15919
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15920
# support. Future versions do this automatically, but an explicit c++rt0.o
15921
# does not break anything, and helps significantly (at the cost of a little
15924
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15925
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15926
hardcode_direct_GCJ=yes
15927
hardcode_shlibpath_var_GCJ=no
15930
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15932
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15933
hardcode_direct_GCJ=yes
15934
hardcode_minus_L_GCJ=yes
15935
hardcode_shlibpath_var_GCJ=no
15938
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15939
freebsd* | kfreebsd*-gnu)
15940
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15941
hardcode_libdir_flag_spec_GCJ='-R$libdir'
15942
hardcode_direct_GCJ=yes
15943
hardcode_shlibpath_var_GCJ=no
15947
if test "$GCC" = yes; then
15948
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'
15950
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'
15952
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15953
hardcode_libdir_separator_GCJ=:
15954
hardcode_direct_GCJ=yes
15956
# hardcode_minus_L: Not really in the search PATH,
15957
# but as the default location of the library.
15958
hardcode_minus_L_GCJ=yes
15959
export_dynamic_flag_spec_GCJ='${wl}-E'
15963
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15964
case "$host_cpu" in
15966
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15969
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15973
case "$host_cpu" in
15975
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15978
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15982
if test "$with_gnu_ld" = no; then
15983
case "$host_cpu" in
15985
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15986
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15987
hardcode_libdir_separator_GCJ=:
15988
hardcode_direct_GCJ=no
15989
hardcode_shlibpath_var_GCJ=no
15992
hardcode_libdir_flag_spec_GCJ='-L$libdir'
15993
hardcode_direct_GCJ=no
15994
hardcode_shlibpath_var_GCJ=no
15996
# hardcode_minus_L: Not really in the search PATH,
15997
# but as the default location of the library.
15998
hardcode_minus_L_GCJ=yes
16001
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16002
hardcode_libdir_separator_GCJ=:
16003
hardcode_direct_GCJ=yes
16004
export_dynamic_flag_spec_GCJ='${wl}-E'
16006
# hardcode_minus_L: Not really in the search PATH,
16007
# but as the default location of the library.
16008
hardcode_minus_L_GCJ=yes
16014
irix5* | irix6* | nonstopux*)
16015
if test "$GCC" = yes; then
16016
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'
16018
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'
16019
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16021
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16022
hardcode_libdir_separator_GCJ=:
16023
link_all_deplibs_GCJ=yes
16026
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16027
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16028
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16030
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16032
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16033
hardcode_direct_GCJ=yes
16034
hardcode_shlibpath_var_GCJ=no
16038
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16039
hardcode_direct_GCJ=yes
16040
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16041
hardcode_libdir_separator_GCJ=:
16042
hardcode_shlibpath_var_GCJ=no
16046
hardcode_direct_GCJ=yes
16047
hardcode_shlibpath_var_GCJ=no
16048
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16049
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16050
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16051
export_dynamic_flag_spec_GCJ='${wl}-E'
16054
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16055
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16056
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16059
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16060
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16067
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16068
hardcode_minus_L_GCJ=yes
16069
allow_undefined_flag_GCJ=unsupported
16070
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'
16071
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16075
if test "$GCC" = yes; then
16076
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16077
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'
16079
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16080
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'
16082
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16083
hardcode_libdir_separator_GCJ=:
16086
osf4* | osf5*) # as osf3* with the addition of -msym flag
16087
if test "$GCC" = yes; then
16088
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16089
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'
16090
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16092
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16093
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'
16094
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~
16095
$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'
16097
# Both c and cxx compiler support -rpath directly
16098
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16100
hardcode_libdir_separator_GCJ=:
16104
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105
hardcode_shlibpath_var_GCJ=no
16106
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16107
runpath_var=LD_RUN_PATH
16108
hardcode_runpath_var=yes
16112
no_undefined_flag_GCJ=' -z text'
16113
if test "$GCC" = yes; then
16114
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16115
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16116
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16118
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16119
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16120
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16122
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16123
hardcode_shlibpath_var_GCJ=no
16125
solaris2.[0-5] | solaris2.[0-5].*) ;;
16126
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16127
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16129
link_all_deplibs_GCJ=yes
16133
if test "x$host_vendor" = xsequent; then
16134
# Use $CC to link under sequent, because it throws in some extra .o
16135
# files that make .init and .fini sections work.
16136
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16138
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16140
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16141
hardcode_direct_GCJ=yes
16142
hardcode_minus_L_GCJ=yes
16143
hardcode_shlibpath_var_GCJ=no
16147
case $host_vendor in
16149
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150
hardcode_direct_GCJ=yes # is this really true???
16153
## LD is ld it makes a PLAMLIB
16154
## CC just makes a GrossModule.
16155
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16156
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16157
hardcode_direct_GCJ=no
16160
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16161
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16164
runpath_var='LD_RUN_PATH'
16165
hardcode_shlibpath_var_GCJ=no
16169
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170
hardcode_shlibpath_var_GCJ=no
16171
export_dynamic_flag_spec_GCJ='-Bexport'
16175
if test -d /usr/nec; then
16176
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16177
hardcode_shlibpath_var_GCJ=no
16178
runpath_var=LD_RUN_PATH
16179
hardcode_runpath_var=yes
16185
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16186
hardcode_direct_GCJ=yes
16187
hardcode_minus_L_GCJ=no
16188
hardcode_shlibpath_var_GCJ=no
16189
hardcode_runpath_var=yes
16190
runpath_var=LD_RUN_PATH
16193
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16194
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16195
if test "$GCC" = yes; then
16196
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16198
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200
runpath_var='LD_RUN_PATH'
16201
hardcode_shlibpath_var_GCJ=no
16205
no_undefined_flag_GCJ=' -z text'
16206
# $CC -shared without GNU ld will not create a library from C++
16207
# object files and a static libstdc++, better avoid it by now
16208
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16210
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16211
hardcode_libdir_flag_spec_GCJ=
16212
hardcode_shlibpath_var_GCJ=no
16213
runpath_var='LD_RUN_PATH'
16217
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16218
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16219
hardcode_shlibpath_var_GCJ=no
16228
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16229
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16230
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16232
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16233
if test "$GCC" = yes; then
16234
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16238
# Do we need to explicitly link libc?
16240
case "x$archive_cmds_need_lc_GCJ" in
16242
# Assume -lc should be added
16243
archive_cmds_need_lc_GCJ=yes
16245
if test "$enable_shared" = yes && test "$GCC" = yes; then
16246
case $archive_cmds_GCJ in
16248
# FIXME: we may have to deal with multi-command sequences.
16251
# Test whether the compiler implicitly links with -lc since on some
16252
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16253
# to ld, don't add -lc before -lgcc.
16254
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16255
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16257
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260
(eval $ac_compile) 2>&5
16262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263
(exit $ac_status); } 2>conftest.err; then
16266
libobjs=conftest.$ac_objext
16268
wl=$lt_prog_compiler_wl_GCJ
16274
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16275
allow_undefined_flag_GCJ=
16276
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16277
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280
(exit $ac_status); }
16282
archive_cmds_need_lc_GCJ=no
16284
archive_cmds_need_lc_GCJ=yes
16286
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16288
cat conftest.err 1>&5
16291
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16292
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16299
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16300
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16301
library_names_spec=
16302
libname_spec='lib$name'
16306
postuninstall_cmds=
16310
shlibpath_overrides_runpath=unknown
16312
dynamic_linker="$host_os ld.so"
16313
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16314
if test "$GCC" = yes; then
16315
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16316
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16317
# if the path contains ";" then we assume it to be the separator
16318
# otherwise default to the standard path separator (i.e. ":") - it is
16319
# assumed that no part of a normal pathname contains ";" but that should
16320
# okay in the real world where ";" in dirpaths is itself problematic.
16321
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16323
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16326
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16328
need_lib_prefix=unknown
16329
hardcode_into_libs=no
16331
# when you set need_version to no, make sure it does not cause -set_version
16332
# flags to be left without arguments
16333
need_version=unknown
16338
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16339
shlibpath_var=LIBPATH
16341
# AIX 3 has no versioning support, so we append a major version to the name.
16342
soname_spec='${libname}${release}${shared_ext}$major'
16349
hardcode_into_libs=yes
16350
if test "$host_cpu" = ia64; then
16351
# AIX 5 supports IA64
16352
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16353
shlibpath_var=LD_LIBRARY_PATH
16355
# With GCC up to 2.95.x, collect2 would create an import file
16356
# for dependence libraries. The import file would start with
16357
# the line `#! .'. This would cause the generated library to
16358
# depend on `.', always an invalid library. This was fixed in
16359
# development snapshots of GCC prior to 3.0.
16361
aix4 | aix4.[01] | aix4.[01].*)
16362
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16364
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16367
can_build_shared=no
16371
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16372
# soname into executable. Probably we can add versioning support to
16373
# collect2, so additional links can be useful in future.
16374
if test "$aix_use_runtimelinking" = yes; then
16375
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16376
# instead of lib<name>.a to let people know that these are not
16377
# typical AIX shared libraries.
16378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380
# We preserve .a as extension for shared libraries through AIX4.2
16381
# and later when we are not doing run time linking.
16382
library_names_spec='${libname}${release}.a $libname.a'
16383
soname_spec='${libname}${release}${shared_ext}$major'
16385
shlibpath_var=LIBPATH
16390
library_names_spec='$libname.ixlibrary $libname.a'
16391
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16392
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'
16396
library_names_spec='${libname}${shared_ext}'
16397
dynamic_linker="$host_os ld.so"
16398
shlibpath_var=LIBRARY_PATH
16404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16405
soname_spec='${libname}${release}${shared_ext}$major'
16406
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16407
shlibpath_var=LD_LIBRARY_PATH
16408
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16409
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16410
# the default ld.so.conf also contains /usr/contrib/lib and
16411
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16412
# libtool to hard-code these into programs
16415
cygwin* | mingw* | pw32*)
16416
version_type=windows
16421
case $GCC,$host_os in
16422
yes,cygwin* | yes,mingw* | yes,pw32*)
16423
library_names_spec='$libname.dll.a'
16424
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16425
postinstall_cmds='base_file=`basename \${file}`~
16426
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16427
dldir=$destdir/`dirname \$dlpath`~
16428
test -d \$dldir || mkdir -p \$dldir~
16429
$install_prog $dir/$dlname \$dldir/$dlname'
16430
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16431
dlpath=$dir/\$dldll~
16433
shlibpath_overrides_runpath=yes
16437
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16438
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16439
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16442
# MinGW DLLs use traditional 'lib' prefix
16443
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16444
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16445
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16446
# It is most probably a Windows format PATH printed by
16447
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16448
# path with ; separators, and with drive letters. We can handle the
16449
# drive letters (cygwin fileutils understands them), so leave them,
16450
# especially as we might pass files found there to a mingw objdump,
16451
# which wouldn't understand a cygwinified path. Ahh.
16452
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16454
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16458
# pw32 DLLs use 'pw' prefix rather than 'lib'
16459
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16465
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16468
dynamic_linker='Win32 ld.exe'
16469
# FIXME: first we should search . and the directory the executable is in
16473
darwin* | rhapsody*)
16474
dynamic_linker="$host_os dyld"
16475
version_type=darwin
16478
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16479
soname_spec='${libname}${release}${major}$shared_ext'
16480
shlibpath_overrides_runpath=yes
16481
shlibpath_var=DYLD_LIBRARY_PATH
16482
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16483
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16484
if test "$GCC" = yes; then
16485
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"`
16487
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16489
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16497
soname_spec='${libname}${release}${shared_ext}$major'
16498
shlibpath_var=LD_LIBRARY_PATH
16509
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16510
soname_spec='${libname}${release}${shared_ext}$major'
16511
shlibpath_var=LD_LIBRARY_PATH
16512
shlibpath_overrides_runpath=no
16513
hardcode_into_libs=yes
16514
dynamic_linker='GNU ld.so'
16518
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16519
version_type=freebsd-$objformat
16520
case $version_type in
16522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16527
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16531
shlibpath_var=LD_LIBRARY_PATH
16534
shlibpath_overrides_runpath=yes
16536
freebsd3.01* | freebsdelf3.01*)
16537
shlibpath_overrides_runpath=yes
16538
hardcode_into_libs=yes
16541
shlibpath_overrides_runpath=no
16542
hardcode_into_libs=yes
16551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16552
soname_spec='${libname}${release}${shared_ext}$major'
16553
shlibpath_var=LD_LIBRARY_PATH
16554
hardcode_into_libs=yes
16557
hpux9* | hpux10* | hpux11*)
16558
# Give a soname corresponding to the major version so that dld.sl refuses to
16559
# link against other versions.
16563
case "$host_cpu" in
16566
hardcode_into_libs=yes
16567
dynamic_linker="$host_os dld.so"
16568
shlibpath_var=LD_LIBRARY_PATH
16569
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571
soname_spec='${libname}${release}${shared_ext}$major'
16572
if test "X$HPUX_IA64_MODE" = X32; then
16573
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16575
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16577
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16581
hardcode_into_libs=yes
16582
dynamic_linker="$host_os dld.sl"
16583
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16584
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586
soname_spec='${libname}${release}${shared_ext}$major'
16587
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16588
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16592
dynamic_linker="$host_os dld.sl"
16593
shlibpath_var=SHLIB_PATH
16594
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596
soname_spec='${libname}${release}${shared_ext}$major'
16599
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16600
postinstall_cmds='chmod 555 $lib'
16603
irix5* | irix6* | nonstopux*)
16605
nonstopux*) version_type=nonstopux ;;
16607
if test "$lt_cv_prog_gnu_ld" = yes; then
16615
soname_spec='${libname}${release}${shared_ext}$major'
16616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16618
irix5* | nonstopux*)
16619
libsuff= shlibsuff=
16622
case $LD in # libtool.m4 will add one of these switches to LD
16623
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16624
libsuff= shlibsuff= libmagic=32-bit;;
16625
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16626
libsuff=32 shlibsuff=N32 libmagic=N32;;
16627
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16628
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16629
*) libsuff= shlibsuff= libmagic=never-match;;
16633
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16634
shlibpath_overrides_runpath=no
16635
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16636
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16637
hardcode_into_libs=yes
16640
# No shared lib support for Linux oldld, aout, or coff.
16641
linux*oldld* | linux*aout* | linux*coff*)
16645
# This must be Linux ELF.
16650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651
soname_spec='${libname}${release}${shared_ext}$major'
16652
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16653
shlibpath_var=LD_LIBRARY_PATH
16654
shlibpath_overrides_runpath=no
16655
# This implies no fast_install, which is unacceptable.
16656
# Some rework will be needed to allow for fast_install
16657
# before this can be enabled.
16658
hardcode_into_libs=yes
16660
# Append ld.so.conf contents to the search path
16661
if test -f /etc/ld.so.conf; then
16662
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16663
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16666
# We used to test for /lib/ld.so.1 and disable shared libraries on
16667
# powerpc, because MkLinux only supported shared libraries with the
16668
# GNU dynamic linker. Since this was broken with cross compilers,
16669
# most powerpc-linux boxes support dynamic linking these days and
16670
# people can always --disable-shared, the test was removed, and we
16671
# assume the GNU/Linux dynamic linker is in use.
16672
dynamic_linker='GNU/Linux ld.so'
16679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16680
soname_spec='${libname}${release}${shared_ext}$major'
16681
shlibpath_var=LD_LIBRARY_PATH
16682
shlibpath_overrides_runpath=no
16683
hardcode_into_libs=yes
16684
dynamic_linker='NetBSD ld.elf_so'
16691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16692
soname_spec='${libname}${release}${shared_ext}$major'
16693
shlibpath_var=LD_LIBRARY_PATH
16694
shlibpath_overrides_runpath=no
16695
hardcode_into_libs=yes
16696
dynamic_linker='GNU ld.so'
16703
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16705
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16706
dynamic_linker='NetBSD (a.out) ld.so'
16708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16709
soname_spec='${libname}${release}${shared_ext}$major'
16710
dynamic_linker='NetBSD ld.elf_so'
16712
shlibpath_var=LD_LIBRARY_PATH
16713
shlibpath_overrides_runpath=yes
16714
hardcode_into_libs=yes
16719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16720
shlibpath_var=LD_LIBRARY_PATH
16721
shlibpath_overrides_runpath=yes
16728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16729
soname_spec='${libname}${release}${shared_ext}$major'
16730
shlibpath_var=LD_LIBRARY_PATH
16731
shlibpath_overrides_runpath=yes
16738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16739
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16740
shlibpath_var=LD_LIBRARY_PATH
16741
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16743
openbsd2.[89] | openbsd2.[89].*)
16744
shlibpath_overrides_runpath=no
16747
shlibpath_overrides_runpath=yes
16751
shlibpath_overrides_runpath=yes
16756
libname_spec='$name'
16759
library_names_spec='$libname${shared_ext} $libname.a'
16760
dynamic_linker='OS/2 ld.exe'
16761
shlibpath_var=LIBPATH
16764
osf3* | osf4* | osf5*)
16768
soname_spec='${libname}${release}${shared_ext}$major'
16769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16770
shlibpath_var=LD_LIBRARY_PATH
16771
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16772
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16777
soname_spec='${libname}${release}${shared_ext}$major'
16778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779
shlibpath_var=LD_LIBRARY_PATH
16786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16787
soname_spec='${libname}${release}${shared_ext}$major'
16788
shlibpath_var=LD_LIBRARY_PATH
16789
shlibpath_overrides_runpath=yes
16790
hardcode_into_libs=yes
16791
# ldd complains unless libraries are executable
16792
postinstall_cmds='chmod +x $lib'
16797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16798
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16799
shlibpath_var=LD_LIBRARY_PATH
16800
shlibpath_overrides_runpath=yes
16801
if test "$with_gnu_ld" = yes; then
16807
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16810
soname_spec='${libname}${release}${shared_ext}$major'
16811
shlibpath_var=LD_LIBRARY_PATH
16812
case $host_vendor in
16814
shlibpath_overrides_runpath=no
16816
export_dynamic_flag_spec='${wl}-Blargedynsym'
16817
runpath_var=LD_RUN_PATH
16825
shlibpath_overrides_runpath=no
16826
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16832
if test -d /usr/nec ;then
16834
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16835
soname_spec='$libname${shared_ext}.$major'
16836
shlibpath_var=LD_LIBRARY_PATH
16842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843
soname_spec='${libname}${release}${shared_ext}$major'
16844
shlibpath_var=LD_LIBRARY_PATH
16851
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16852
echo "${ECHO_T}$dynamic_linker" >&6
16853
test "$dynamic_linker" = no && can_build_shared=no
16855
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16856
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16857
hardcode_action_GCJ=
16858
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16859
test -n "$runpath_var GCJ" || \
16860
test "X$hardcode_automatic_GCJ"="Xyes" ; then
16862
# We can hardcode non-existant directories.
16863
if test "$hardcode_direct_GCJ" != no &&
16864
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16865
# have to relink, otherwise we might link with an installed library
16866
# when we should be linking with a yet-to-be-installed one
16867
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16868
test "$hardcode_minus_L_GCJ" != no; then
16869
# Linking always hardcodes the temporary library directory.
16870
hardcode_action_GCJ=relink
16872
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16873
hardcode_action_GCJ=immediate
16876
# We cannot hardcode anything, or else we can only hardcode existing
16878
hardcode_action_GCJ=unsupported
16880
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16881
echo "${ECHO_T}$hardcode_action_GCJ" >&6
16883
if test "$hardcode_action_GCJ" = relink; then
16884
# Fast installation is not supported
16885
enable_fast_install=no
16886
elif test "$shlibpath_overrides_runpath" = yes ||
16887
test "$enable_shared" = no; then
16888
# Fast installation is not necessary
16889
enable_fast_install=needless
16894
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16895
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16896
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16897
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16898
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16899
echo "$as_me:$LINENO: result: yes" >&5
16900
echo "${ECHO_T}yes" >&6
16902
# FIXME - insert some real tests, host_os isn't really good enough
16905
if test -n "$STRIP" ; then
16906
striplib="$STRIP -x"
16907
echo "$as_me:$LINENO: result: yes" >&5
16908
echo "${ECHO_T}yes" >&6
16910
echo "$as_me:$LINENO: result: no" >&5
16911
echo "${ECHO_T}no" >&6
16915
echo "$as_me:$LINENO: result: no" >&5
16916
echo "${ECHO_T}no" >&6
16921
if test "x$enable_dlopen" != xyes; then
16922
enable_dlopen=unknown
16923
enable_dlopen_self=unknown
16924
enable_dlopen_self_static=unknown
16931
lt_cv_dlopen="load_add_on"
16933
lt_cv_dlopen_self=yes
16937
lt_cv_dlopen="LoadLibrary"
16942
lt_cv_dlopen="dlopen"
16947
# if libdl is installed we need to link against it
16948
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16949
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16950
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16951
echo $ECHO_N "(cached) $ECHO_C" >&6
16953
ac_check_lib_save_LIBS=$LIBS
16955
cat >conftest.$ac_ext <<_ACEOF
16958
cat confdefs.h >>conftest.$ac_ext
16959
cat >>conftest.$ac_ext <<_ACEOF
16960
/* end confdefs.h. */
16962
/* Override any gcc2 internal prototype to avoid an error. */
16966
/* We use char because int might match the return type of a gcc2
16967
builtin and then its argument prototype would still apply. */
16977
rm -f conftest.$ac_objext conftest$ac_exeext
16978
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16979
(eval $ac_link) 2>conftest.er1
16981
grep -v '^ *+' conftest.er1 >conftest.err
16983
cat conftest.err >&5
16984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985
(exit $ac_status); } &&
16986
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988
(eval $ac_try) 2>&5
16990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991
(exit $ac_status); }; } &&
16992
{ ac_try='test -s conftest$ac_exeext'
16993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994
(eval $ac_try) 2>&5
16996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997
(exit $ac_status); }; }; then
16998
ac_cv_lib_dl_dlopen=yes
17000
echo "$as_me: failed program was:" >&5
17001
sed 's/^/| /' conftest.$ac_ext >&5
17003
ac_cv_lib_dl_dlopen=no
17005
rm -f conftest.err conftest.$ac_objext \
17006
conftest$ac_exeext conftest.$ac_ext
17007
LIBS=$ac_check_lib_save_LIBS
17009
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17010
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17011
if test $ac_cv_lib_dl_dlopen = yes; then
17012
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17015
lt_cv_dlopen="dyld"
17017
lt_cv_dlopen_self=yes
17024
echo "$as_me:$LINENO: checking for shl_load" >&5
17025
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17026
if test "${ac_cv_func_shl_load+set}" = set; then
17027
echo $ECHO_N "(cached) $ECHO_C" >&6
17029
cat >conftest.$ac_ext <<_ACEOF
17032
cat confdefs.h >>conftest.$ac_ext
17033
cat >>conftest.$ac_ext <<_ACEOF
17034
/* end confdefs.h. */
17035
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17036
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17037
#define shl_load innocuous_shl_load
17039
/* System header to define __stub macros and hopefully few prototypes,
17040
which can conflict with char shl_load (); below.
17041
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17042
<limits.h> exists even on freestanding compilers. */
17045
# include <limits.h>
17047
# include <assert.h>
17052
/* Override any gcc2 internal prototype to avoid an error. */
17057
/* We use char because int might match the return type of a gcc2
17058
builtin and then its argument prototype would still apply. */
17060
/* The GNU C library defines this for functions which it implements
17061
to always fail with ENOSYS. Some functions are actually named
17062
something starting with __ and the normal name is an alias. */
17063
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17066
char (*f) () = shl_load;
17075
return f != shl_load;
17080
rm -f conftest.$ac_objext conftest$ac_exeext
17081
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082
(eval $ac_link) 2>conftest.er1
17084
grep -v '^ *+' conftest.er1 >conftest.err
17086
cat conftest.err >&5
17087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088
(exit $ac_status); } &&
17089
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091
(eval $ac_try) 2>&5
17093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094
(exit $ac_status); }; } &&
17095
{ ac_try='test -s conftest$ac_exeext'
17096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097
(eval $ac_try) 2>&5
17099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100
(exit $ac_status); }; }; then
17101
ac_cv_func_shl_load=yes
17103
echo "$as_me: failed program was:" >&5
17104
sed 's/^/| /' conftest.$ac_ext >&5
17106
ac_cv_func_shl_load=no
17108
rm -f conftest.err conftest.$ac_objext \
17109
conftest$ac_exeext conftest.$ac_ext
17111
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17112
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17113
if test $ac_cv_func_shl_load = yes; then
17114
lt_cv_dlopen="shl_load"
17116
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17117
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17118
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17119
echo $ECHO_N "(cached) $ECHO_C" >&6
17121
ac_check_lib_save_LIBS=$LIBS
17123
cat >conftest.$ac_ext <<_ACEOF
17126
cat confdefs.h >>conftest.$ac_ext
17127
cat >>conftest.$ac_ext <<_ACEOF
17128
/* end confdefs.h. */
17130
/* Override any gcc2 internal prototype to avoid an error. */
17134
/* We use char because int might match the return type of a gcc2
17135
builtin and then its argument prototype would still apply. */
17145
rm -f conftest.$ac_objext conftest$ac_exeext
17146
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17147
(eval $ac_link) 2>conftest.er1
17149
grep -v '^ *+' conftest.er1 >conftest.err
17151
cat conftest.err >&5
17152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153
(exit $ac_status); } &&
17154
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156
(eval $ac_try) 2>&5
17158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159
(exit $ac_status); }; } &&
17160
{ ac_try='test -s conftest$ac_exeext'
17161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162
(eval $ac_try) 2>&5
17164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165
(exit $ac_status); }; }; then
17166
ac_cv_lib_dld_shl_load=yes
17168
echo "$as_me: failed program was:" >&5
17169
sed 's/^/| /' conftest.$ac_ext >&5
17171
ac_cv_lib_dld_shl_load=no
17173
rm -f conftest.err conftest.$ac_objext \
17174
conftest$ac_exeext conftest.$ac_ext
17175
LIBS=$ac_check_lib_save_LIBS
17177
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17178
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17179
if test $ac_cv_lib_dld_shl_load = yes; then
17180
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17182
echo "$as_me:$LINENO: checking for dlopen" >&5
17183
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17184
if test "${ac_cv_func_dlopen+set}" = set; then
17185
echo $ECHO_N "(cached) $ECHO_C" >&6
17187
cat >conftest.$ac_ext <<_ACEOF
17190
cat confdefs.h >>conftest.$ac_ext
17191
cat >>conftest.$ac_ext <<_ACEOF
17192
/* end confdefs.h. */
17193
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17194
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17195
#define dlopen innocuous_dlopen
17197
/* System header to define __stub macros and hopefully few prototypes,
17198
which can conflict with char dlopen (); below.
17199
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200
<limits.h> exists even on freestanding compilers. */
17203
# include <limits.h>
17205
# include <assert.h>
17210
/* Override any gcc2 internal prototype to avoid an error. */
17215
/* We use char because int might match the return type of a gcc2
17216
builtin and then its argument prototype would still apply. */
17218
/* The GNU C library defines this for functions which it implements
17219
to always fail with ENOSYS. Some functions are actually named
17220
something starting with __ and the normal name is an alias. */
17221
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17224
char (*f) () = dlopen;
17233
return f != dlopen;
17238
rm -f conftest.$ac_objext conftest$ac_exeext
17239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17240
(eval $ac_link) 2>conftest.er1
17242
grep -v '^ *+' conftest.er1 >conftest.err
17244
cat conftest.err >&5
17245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246
(exit $ac_status); } &&
17247
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249
(eval $ac_try) 2>&5
17251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252
(exit $ac_status); }; } &&
17253
{ ac_try='test -s conftest$ac_exeext'
17254
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255
(eval $ac_try) 2>&5
17257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258
(exit $ac_status); }; }; then
17259
ac_cv_func_dlopen=yes
17261
echo "$as_me: failed program was:" >&5
17262
sed 's/^/| /' conftest.$ac_ext >&5
17264
ac_cv_func_dlopen=no
17266
rm -f conftest.err conftest.$ac_objext \
17267
conftest$ac_exeext conftest.$ac_ext
17269
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17270
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17271
if test $ac_cv_func_dlopen = yes; then
17272
lt_cv_dlopen="dlopen"
17274
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17275
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17276
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17277
echo $ECHO_N "(cached) $ECHO_C" >&6
17279
ac_check_lib_save_LIBS=$LIBS
17281
cat >conftest.$ac_ext <<_ACEOF
17284
cat confdefs.h >>conftest.$ac_ext
17285
cat >>conftest.$ac_ext <<_ACEOF
17286
/* end confdefs.h. */
17288
/* Override any gcc2 internal prototype to avoid an error. */
17292
/* We use char because int might match the return type of a gcc2
17293
builtin and then its argument prototype would still apply. */
17303
rm -f conftest.$ac_objext conftest$ac_exeext
17304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17305
(eval $ac_link) 2>conftest.er1
17307
grep -v '^ *+' conftest.er1 >conftest.err
17309
cat conftest.err >&5
17310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311
(exit $ac_status); } &&
17312
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17313
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314
(eval $ac_try) 2>&5
17316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317
(exit $ac_status); }; } &&
17318
{ ac_try='test -s conftest$ac_exeext'
17319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320
(eval $ac_try) 2>&5
17322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323
(exit $ac_status); }; }; then
17324
ac_cv_lib_dl_dlopen=yes
17326
echo "$as_me: failed program was:" >&5
17327
sed 's/^/| /' conftest.$ac_ext >&5
17329
ac_cv_lib_dl_dlopen=no
17331
rm -f conftest.err conftest.$ac_objext \
17332
conftest$ac_exeext conftest.$ac_ext
17333
LIBS=$ac_check_lib_save_LIBS
17335
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17336
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17337
if test $ac_cv_lib_dl_dlopen = yes; then
17338
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17340
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17341
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17342
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17343
echo $ECHO_N "(cached) $ECHO_C" >&6
17345
ac_check_lib_save_LIBS=$LIBS
17346
LIBS="-lsvld $LIBS"
17347
cat >conftest.$ac_ext <<_ACEOF
17350
cat confdefs.h >>conftest.$ac_ext
17351
cat >>conftest.$ac_ext <<_ACEOF
17352
/* end confdefs.h. */
17354
/* Override any gcc2 internal prototype to avoid an error. */
17358
/* We use char because int might match the return type of a gcc2
17359
builtin and then its argument prototype would still apply. */
17369
rm -f conftest.$ac_objext conftest$ac_exeext
17370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371
(eval $ac_link) 2>conftest.er1
17373
grep -v '^ *+' conftest.er1 >conftest.err
17375
cat conftest.err >&5
17376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377
(exit $ac_status); } &&
17378
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380
(eval $ac_try) 2>&5
17382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383
(exit $ac_status); }; } &&
17384
{ ac_try='test -s conftest$ac_exeext'
17385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386
(eval $ac_try) 2>&5
17388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389
(exit $ac_status); }; }; then
17390
ac_cv_lib_svld_dlopen=yes
17392
echo "$as_me: failed program was:" >&5
17393
sed 's/^/| /' conftest.$ac_ext >&5
17395
ac_cv_lib_svld_dlopen=no
17397
rm -f conftest.err conftest.$ac_objext \
17398
conftest$ac_exeext conftest.$ac_ext
17399
LIBS=$ac_check_lib_save_LIBS
17401
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17402
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17403
if test $ac_cv_lib_svld_dlopen = yes; then
17404
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17406
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17407
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17408
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17409
echo $ECHO_N "(cached) $ECHO_C" >&6
17411
ac_check_lib_save_LIBS=$LIBS
17413
cat >conftest.$ac_ext <<_ACEOF
17416
cat confdefs.h >>conftest.$ac_ext
17417
cat >>conftest.$ac_ext <<_ACEOF
17418
/* end confdefs.h. */
17420
/* Override any gcc2 internal prototype to avoid an error. */
17424
/* We use char because int might match the return type of a gcc2
17425
builtin and then its argument prototype would still apply. */
17435
rm -f conftest.$ac_objext conftest$ac_exeext
17436
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437
(eval $ac_link) 2>conftest.er1
17439
grep -v '^ *+' conftest.er1 >conftest.err
17441
cat conftest.err >&5
17442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443
(exit $ac_status); } &&
17444
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446
(eval $ac_try) 2>&5
17448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449
(exit $ac_status); }; } &&
17450
{ ac_try='test -s conftest$ac_exeext'
17451
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452
(eval $ac_try) 2>&5
17454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455
(exit $ac_status); }; }; then
17456
ac_cv_lib_dld_dld_link=yes
17458
echo "$as_me: failed program was:" >&5
17459
sed 's/^/| /' conftest.$ac_ext >&5
17461
ac_cv_lib_dld_dld_link=no
17463
rm -f conftest.err conftest.$ac_objext \
17464
conftest$ac_exeext conftest.$ac_ext
17465
LIBS=$ac_check_lib_save_LIBS
17467
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17468
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17469
if test $ac_cv_lib_dld_dld_link = yes; then
17470
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17491
if test "x$lt_cv_dlopen" != xno; then
17497
case $lt_cv_dlopen in
17499
save_CPPFLAGS="$CPPFLAGS"
17500
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17502
save_LDFLAGS="$LDFLAGS"
17503
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17506
LIBS="$lt_cv_dlopen_libs $LIBS"
17508
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17509
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17510
if test "${lt_cv_dlopen_self+set}" = set; then
17511
echo $ECHO_N "(cached) $ECHO_C" >&6
17513
if test "$cross_compiling" = yes; then :
17514
lt_cv_dlopen_self=cross
17516
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17517
lt_status=$lt_dlunknown
17518
cat > conftest.$ac_ext <<EOF
17519
#line 17519 "configure"
17520
#include "confdefs.h"
17529
# define LT_DLGLOBAL RTLD_GLOBAL
17532
# define LT_DLGLOBAL DL_GLOBAL
17534
# define LT_DLGLOBAL 0
17538
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17539
find out it does not work in some platform. */
17540
#ifndef LT_DLLAZY_OR_NOW
17542
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17545
# define LT_DLLAZY_OR_NOW DL_LAZY
17548
# define LT_DLLAZY_OR_NOW RTLD_NOW
17551
# define LT_DLLAZY_OR_NOW DL_NOW
17553
# define LT_DLLAZY_OR_NOW 0
17561
extern "C" void exit (int);
17564
void fnord() { int i=42;}
17567
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17568
int status = $lt_dlunknown;
17572
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17573
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17574
/* dlclose (self); */
17580
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581
(eval $ac_link) 2>&5
17583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17585
(./conftest; exit; ) 2>/dev/null
17587
case x$lt_status in
17588
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17589
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17590
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17593
# compilation failed
17594
lt_cv_dlopen_self=no
17601
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17602
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17604
if test "x$lt_cv_dlopen_self" = xyes; then
17605
LDFLAGS="$LDFLAGS $link_static_flag"
17606
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17607
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17608
if test "${lt_cv_dlopen_self_static+set}" = set; then
17609
echo $ECHO_N "(cached) $ECHO_C" >&6
17611
if test "$cross_compiling" = yes; then :
17612
lt_cv_dlopen_self_static=cross
17614
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17615
lt_status=$lt_dlunknown
17616
cat > conftest.$ac_ext <<EOF
17617
#line 17617 "configure"
17618
#include "confdefs.h"
17627
# define LT_DLGLOBAL RTLD_GLOBAL
17630
# define LT_DLGLOBAL DL_GLOBAL
17632
# define LT_DLGLOBAL 0
17636
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17637
find out it does not work in some platform. */
17638
#ifndef LT_DLLAZY_OR_NOW
17640
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17643
# define LT_DLLAZY_OR_NOW DL_LAZY
17646
# define LT_DLLAZY_OR_NOW RTLD_NOW
17649
# define LT_DLLAZY_OR_NOW DL_NOW
17651
# define LT_DLLAZY_OR_NOW 0
17659
extern "C" void exit (int);
17662
void fnord() { int i=42;}
17665
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17666
int status = $lt_dlunknown;
17670
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17671
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17672
/* dlclose (self); */
17678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17679
(eval $ac_link) 2>&5
17681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17683
(./conftest; exit; ) 2>/dev/null
17685
case x$lt_status in
17686
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17687
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17688
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17691
# compilation failed
17692
lt_cv_dlopen_self_static=no
17699
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17700
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17703
CPPFLAGS="$save_CPPFLAGS"
17704
LDFLAGS="$save_LDFLAGS"
17709
case $lt_cv_dlopen_self in
17710
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17711
*) enable_dlopen_self=unknown ;;
17714
case $lt_cv_dlopen_self_static in
17715
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17716
*) enable_dlopen_self_static=unknown ;;
17721
# The else clause should only fire when bootstrapping the
17722
# libtool distribution, otherwise you forgot to ship ltmain.sh
17723
# with your package, and you will get complaints that there are
17724
# no rules to generate ltmain.sh.
17725
if test -f "$ltmain"; then
17726
# See if we are running on zsh, and set the options which allow our commands through
17727
# without removal of \ escapes.
17728
if test -n "${ZSH_VERSION+set}" ; then
17729
setopt NO_GLOB_SUBST
17731
# Now quote all the things that may contain metacharacters while being
17732
# careful not to overquote the AC_SUBSTed values. We take copies of the
17733
# variables and quote the copies for generation of the libtool script.
17734
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17736
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17737
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17738
deplibs_check_method reload_flag reload_cmds need_locks \
17739
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17740
lt_cv_sys_global_symbol_to_c_name_address \
17741
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17742
old_postinstall_cmds old_postuninstall_cmds \
17746
lt_prog_compiler_wl_GCJ \
17747
lt_prog_compiler_pic_GCJ \
17748
lt_prog_compiler_static_GCJ \
17749
lt_prog_compiler_no_builtin_flag_GCJ \
17750
export_dynamic_flag_spec_GCJ \
17751
thread_safe_flag_spec_GCJ \
17752
whole_archive_flag_spec_GCJ \
17753
enable_shared_with_static_runtimes_GCJ \
17754
old_archive_cmds_GCJ \
17755
old_archive_from_new_cmds_GCJ \
17756
predep_objects_GCJ \
17757
postdep_objects_GCJ \
17760
compiler_lib_search_path_GCJ \
17762
archive_expsym_cmds_GCJ \
17763
postinstall_cmds_GCJ \
17764
postuninstall_cmds_GCJ \
17765
old_archive_from_expsyms_cmds_GCJ \
17766
allow_undefined_flag_GCJ \
17767
no_undefined_flag_GCJ \
17768
export_symbols_cmds_GCJ \
17769
hardcode_libdir_flag_spec_GCJ \
17770
hardcode_libdir_flag_spec_ld_GCJ \
17771
hardcode_libdir_separator_GCJ \
17772
hardcode_automatic_GCJ \
17774
module_expsym_cmds_GCJ \
17775
lt_cv_prog_compiler_c_o_GCJ \
17776
exclude_expsyms_GCJ \
17777
include_expsyms_GCJ; do
17780
old_archive_cmds_GCJ | \
17781
old_archive_from_new_cmds_GCJ | \
17782
archive_cmds_GCJ | \
17783
archive_expsym_cmds_GCJ | \
17784
module_cmds_GCJ | \
17785
module_expsym_cmds_GCJ | \
17786
old_archive_from_expsyms_cmds_GCJ | \
17787
export_symbols_cmds_GCJ | \
17788
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17789
postinstall_cmds | postuninstall_cmds | \
17790
old_postinstall_cmds | old_postuninstall_cmds | \
17791
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17792
# Double-quote double-evaled strings.
17793
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17796
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17802
*'\$0 --fallback-echo"')
17803
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17809
cat <<__EOF__ >> "$cfgfile"
17810
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17812
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17814
# Shell to use when invoking shell scripts.
17817
# Whether or not to build shared libraries.
17818
build_libtool_libs=$enable_shared
17820
# Whether or not to build static libraries.
17821
build_old_libs=$enable_static
17823
# Whether or not to add -lc for building shared libraries.
17824
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17826
# Whether or not to disallow shared libs when runtime libs are static
17827
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17829
# Whether or not to optimize for fast installation.
17830
fast_install=$enable_fast_install
17833
host_alias=$host_alias
17836
# An echo program that does not interpret backslashes.
17841
AR_FLAGS=$lt_AR_FLAGS
17846
# A language-specific compiler.
17847
CC=$lt_compiler_GCJ
17849
# Is the compiler the GNU C compiler?
17855
# The linker used to build libraries.
17858
# Whether we need hard or soft links.
17861
# A BSD-compatible nm program.
17864
# A symbol stripping program
17867
# Used to examine libraries when file_magic_cmd begins "file"
17868
MAGIC_CMD=$MAGIC_CMD
17870
# Used on cygwin: DLL creation program.
17873
# Used on cygwin: object dumper.
17876
# Used on cygwin: assembler.
17879
# The name of the directory that contains temporary libtool files.
17882
# How to create reloadable object files.
17883
reload_flag=$lt_reload_flag
17884
reload_cmds=$lt_reload_cmds
17886
# How to pass a linker flag through the compiler.
17887
wl=$lt_lt_prog_compiler_wl_GCJ
17889
# Object file suffix (normally "o").
17890
objext="$ac_objext"
17892
# Old archive suffix (normally "a").
17895
# Shared library suffix (normally ".so").
17896
shrext_cmds='$shrext_cmds'
17898
# Executable file suffix (normally "").
17901
# Additional compiler flags for building library objects.
17902
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17905
# What is the maximum length of a command?
17906
max_cmd_len=$lt_cv_sys_max_cmd_len
17908
# Does compiler simultaneously support -c and -o options?
17909
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17911
# Must we lock files when doing compilation ?
17912
need_locks=$lt_need_locks
17914
# Do we need the lib prefix for modules?
17915
need_lib_prefix=$need_lib_prefix
17917
# Do we need a version for libraries?
17918
need_version=$need_version
17920
# Whether dlopen is supported.
17921
dlopen_support=$enable_dlopen
17923
# Whether dlopen of programs is supported.
17924
dlopen_self=$enable_dlopen_self
17926
# Whether dlopen of statically linked programs is supported.
17927
dlopen_self_static=$enable_dlopen_self_static
17929
# Compiler flag to prevent dynamic linking.
17930
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17932
# Compiler flag to turn off builtin functions.
17933
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17935
# Compiler flag to allow reflexive dlopens.
17936
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17938
# Compiler flag to generate shared objects directly from archives.
17939
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17941
# Compiler flag to generate thread-safe objects.
17942
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17944
# Library versioning type.
17945
version_type=$version_type
17947
# Format of library name prefix.
17948
libname_spec=$lt_libname_spec
17950
# List of archive names. First name is the real one, the rest are links.
17951
# The last name is the one that the linker finds with -lNAME.
17952
library_names_spec=$lt_library_names_spec
17954
# The coded name of the library, if different from the real name.
17955
soname_spec=$lt_soname_spec
17957
# Commands used to build and install an old-style archive.
17959
old_archive_cmds=$lt_old_archive_cmds_GCJ
17960
old_postinstall_cmds=$lt_old_postinstall_cmds
17961
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17963
# Create an old-style archive from a shared archive.
17964
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17966
# Create a temporary old-style archive to link instead of a shared archive.
17967
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17969
# Commands used to build and install a shared archive.
17970
archive_cmds=$lt_archive_cmds_GCJ
17971
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17972
postinstall_cmds=$lt_postinstall_cmds
17973
postuninstall_cmds=$lt_postuninstall_cmds
17975
# Commands used to build a loadable module (assumed same as above if empty)
17976
module_cmds=$lt_module_cmds_GCJ
17977
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17979
# Commands to strip libraries.
17980
old_striplib=$lt_old_striplib
17981
striplib=$lt_striplib
17983
# Dependencies to place before the objects being linked to create a
17985
predep_objects=$lt_predep_objects_GCJ
17987
# Dependencies to place after the objects being linked to create a
17989
postdep_objects=$lt_postdep_objects_GCJ
17991
# Dependencies to place before the objects being linked to create a
17993
predeps=$lt_predeps_GCJ
17995
# Dependencies to place after the objects being linked to create a
17997
postdeps=$lt_postdeps_GCJ
17999
# The library search path used internally by the compiler when linking
18000
# a shared library.
18001
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18003
# Method to check whether dependent libraries are shared objects.
18004
deplibs_check_method=$lt_deplibs_check_method
18006
# Command to use when deplibs_check_method == file_magic.
18007
file_magic_cmd=$lt_file_magic_cmd
18009
# Flag that allows shared libraries with undefined symbols to be built.
18010
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18012
# Flag that forces no undefined symbols.
18013
no_undefined_flag=$lt_no_undefined_flag_GCJ
18015
# Commands used to finish a libtool library installation in a directory.
18016
finish_cmds=$lt_finish_cmds
18018
# Same as above, but a single script fragment to be evaled but not shown.
18019
finish_eval=$lt_finish_eval
18021
# Take the output of nm and produce a listing of raw symbols and C names.
18022
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18024
# Transform the output of nm in a proper C declaration
18025
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18027
# Transform the output of nm in a C name address pair
18028
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18030
# This is the shared library runtime path variable.
18031
runpath_var=$runpath_var
18033
# This is the shared library path variable.
18034
shlibpath_var=$shlibpath_var
18036
# Is shlibpath searched before the hard-coded library search path?
18037
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18039
# How to hardcode a shared library path into an executable.
18040
hardcode_action=$hardcode_action_GCJ
18042
# Whether we should hardcode library paths into libraries.
18043
hardcode_into_libs=$hardcode_into_libs
18045
# Flag to hardcode \$libdir into a binary during linking.
18046
# This must work even if \$libdir does not exist.
18047
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18049
# If ld is used when linking, flag to hardcode \$libdir into
18050
# a binary during linking. This must work even if \$libdir does
18052
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18054
# Whether we need a single -rpath flag with a separated argument.
18055
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18057
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18058
# resulting binary.
18059
hardcode_direct=$hardcode_direct_GCJ
18061
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18062
# resulting binary.
18063
hardcode_minus_L=$hardcode_minus_L_GCJ
18065
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18066
# the resulting binary.
18067
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18069
# Set to yes if building a shared library automatically hardcodes DIR into the library
18070
# and all subsequent libraries and executables linked against it.
18071
hardcode_automatic=$hardcode_automatic_GCJ
18073
# Variables whose values should be saved in libtool wrapper scripts and
18074
# restored at relink time.
18075
variables_saved_for_relink="$variables_saved_for_relink"
18077
# Whether libtool must link a program against all its dependency libraries.
18078
link_all_deplibs=$link_all_deplibs_GCJ
18080
# Compile-time system search path for libraries
18081
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18083
# Run-time system search path for libraries
18084
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18086
# Fix the shell variable \$srcfile for the compiler.
18087
fix_srcfile_path="$fix_srcfile_path_GCJ"
18089
# Set to yes if exported symbols are required.
18090
always_export_symbols=$always_export_symbols_GCJ
18092
# The commands to list exported symbols.
18093
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18095
# The commands to extract the exported symbol list from a shared archive.
18096
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18098
# Symbols that should not be listed in the preloaded symbols.
18099
exclude_expsyms=$lt_exclude_expsyms_GCJ
18101
# Symbols that must always be exported.
18102
include_expsyms=$lt_include_expsyms_GCJ
18104
# ### END LIBTOOL TAG CONFIG: $tagname
18110
# If there is no Makefile yet, we rely on a make rule to execute
18111
# `config.status --recheck' to rerun these tests and create the
18112
# libtool script then.
18113
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18114
if test -f "$ltmain_in"; then
18115
test -f Makefile && make "$ltmain"
18121
ac_cpp='$CPP $CPPFLAGS'
18122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18137
# Source file extension for RC test sources.
18140
# Object file extension for compiled RC test sources.
18144
# Code to be used in simple compile tests
18145
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18147
# Code to be used in simple link tests
18148
lt_simple_link_test_code="$lt_simple_compile_test_code"
18150
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18152
# If no C compiler was specified, use CC.
18155
# Allow CC to be a program name with arguments.
18159
# Allow CC to be a program name with arguments.
18164
lt_cv_prog_compiler_c_o_RC=yes
18166
# The else clause should only fire when bootstrapping the
18167
# libtool distribution, otherwise you forgot to ship ltmain.sh
18168
# with your package, and you will get complaints that there are
18169
# no rules to generate ltmain.sh.
18170
if test -f "$ltmain"; then
18171
# See if we are running on zsh, and set the options which allow our commands through
18172
# without removal of \ escapes.
18173
if test -n "${ZSH_VERSION+set}" ; then
18174
setopt NO_GLOB_SUBST
18176
# Now quote all the things that may contain metacharacters while being
18177
# careful not to overquote the AC_SUBSTed values. We take copies of the
18178
# variables and quote the copies for generation of the libtool script.
18179
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18181
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18182
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18183
deplibs_check_method reload_flag reload_cmds need_locks \
18184
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18185
lt_cv_sys_global_symbol_to_c_name_address \
18186
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18187
old_postinstall_cmds old_postuninstall_cmds \
18191
lt_prog_compiler_wl_RC \
18192
lt_prog_compiler_pic_RC \
18193
lt_prog_compiler_static_RC \
18194
lt_prog_compiler_no_builtin_flag_RC \
18195
export_dynamic_flag_spec_RC \
18196
thread_safe_flag_spec_RC \
18197
whole_archive_flag_spec_RC \
18198
enable_shared_with_static_runtimes_RC \
18199
old_archive_cmds_RC \
18200
old_archive_from_new_cmds_RC \
18201
predep_objects_RC \
18202
postdep_objects_RC \
18205
compiler_lib_search_path_RC \
18207
archive_expsym_cmds_RC \
18208
postinstall_cmds_RC \
18209
postuninstall_cmds_RC \
18210
old_archive_from_expsyms_cmds_RC \
18211
allow_undefined_flag_RC \
18212
no_undefined_flag_RC \
18213
export_symbols_cmds_RC \
18214
hardcode_libdir_flag_spec_RC \
18215
hardcode_libdir_flag_spec_ld_RC \
18216
hardcode_libdir_separator_RC \
18217
hardcode_automatic_RC \
18219
module_expsym_cmds_RC \
18220
lt_cv_prog_compiler_c_o_RC \
18221
exclude_expsyms_RC \
18222
include_expsyms_RC; do
18225
old_archive_cmds_RC | \
18226
old_archive_from_new_cmds_RC | \
18227
archive_cmds_RC | \
18228
archive_expsym_cmds_RC | \
18230
module_expsym_cmds_RC | \
18231
old_archive_from_expsyms_cmds_RC | \
18232
export_symbols_cmds_RC | \
18233
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18234
postinstall_cmds | postuninstall_cmds | \
18235
old_postinstall_cmds | old_postuninstall_cmds | \
18236
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18237
# Double-quote double-evaled strings.
18238
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18241
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18247
*'\$0 --fallback-echo"')
18248
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18254
cat <<__EOF__ >> "$cfgfile"
18255
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18257
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18259
# Shell to use when invoking shell scripts.
18262
# Whether or not to build shared libraries.
18263
build_libtool_libs=$enable_shared
18265
# Whether or not to build static libraries.
18266
build_old_libs=$enable_static
18268
# Whether or not to add -lc for building shared libraries.
18269
build_libtool_need_lc=$archive_cmds_need_lc_RC
18271
# Whether or not to disallow shared libs when runtime libs are static
18272
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18274
# Whether or not to optimize for fast installation.
18275
fast_install=$enable_fast_install
18278
host_alias=$host_alias
18281
# An echo program that does not interpret backslashes.
18286
AR_FLAGS=$lt_AR_FLAGS
18291
# A language-specific compiler.
18294
# Is the compiler the GNU C compiler?
18300
# The linker used to build libraries.
18303
# Whether we need hard or soft links.
18306
# A BSD-compatible nm program.
18309
# A symbol stripping program
18312
# Used to examine libraries when file_magic_cmd begins "file"
18313
MAGIC_CMD=$MAGIC_CMD
18315
# Used on cygwin: DLL creation program.
18318
# Used on cygwin: object dumper.
18321
# Used on cygwin: assembler.
18324
# The name of the directory that contains temporary libtool files.
18327
# How to create reloadable object files.
18328
reload_flag=$lt_reload_flag
18329
reload_cmds=$lt_reload_cmds
18331
# How to pass a linker flag through the compiler.
18332
wl=$lt_lt_prog_compiler_wl_RC
18334
# Object file suffix (normally "o").
18335
objext="$ac_objext"
18337
# Old archive suffix (normally "a").
18340
# Shared library suffix (normally ".so").
18341
shrext_cmds='$shrext_cmds'
18343
# Executable file suffix (normally "").
18346
# Additional compiler flags for building library objects.
18347
pic_flag=$lt_lt_prog_compiler_pic_RC
18350
# What is the maximum length of a command?
18351
max_cmd_len=$lt_cv_sys_max_cmd_len
18353
# Does compiler simultaneously support -c and -o options?
18354
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18356
# Must we lock files when doing compilation ?
18357
need_locks=$lt_need_locks
18359
# Do we need the lib prefix for modules?
18360
need_lib_prefix=$need_lib_prefix
18362
# Do we need a version for libraries?
18363
need_version=$need_version
18365
# Whether dlopen is supported.
18366
dlopen_support=$enable_dlopen
18368
# Whether dlopen of programs is supported.
18369
dlopen_self=$enable_dlopen_self
18371
# Whether dlopen of statically linked programs is supported.
18372
dlopen_self_static=$enable_dlopen_self_static
18374
# Compiler flag to prevent dynamic linking.
18375
link_static_flag=$lt_lt_prog_compiler_static_RC
18377
# Compiler flag to turn off builtin functions.
18378
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18380
# Compiler flag to allow reflexive dlopens.
18381
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18383
# Compiler flag to generate shared objects directly from archives.
18384
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18386
# Compiler flag to generate thread-safe objects.
18387
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18389
# Library versioning type.
18390
version_type=$version_type
18392
# Format of library name prefix.
18393
libname_spec=$lt_libname_spec
18395
# List of archive names. First name is the real one, the rest are links.
18396
# The last name is the one that the linker finds with -lNAME.
18397
library_names_spec=$lt_library_names_spec
18399
# The coded name of the library, if different from the real name.
18400
soname_spec=$lt_soname_spec
18402
# Commands used to build and install an old-style archive.
18404
old_archive_cmds=$lt_old_archive_cmds_RC
18405
old_postinstall_cmds=$lt_old_postinstall_cmds
18406
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18408
# Create an old-style archive from a shared archive.
18409
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18411
# Create a temporary old-style archive to link instead of a shared archive.
18412
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18414
# Commands used to build and install a shared archive.
18415
archive_cmds=$lt_archive_cmds_RC
18416
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18417
postinstall_cmds=$lt_postinstall_cmds
18418
postuninstall_cmds=$lt_postuninstall_cmds
18420
# Commands used to build a loadable module (assumed same as above if empty)
18421
module_cmds=$lt_module_cmds_RC
18422
module_expsym_cmds=$lt_module_expsym_cmds_RC
18424
# Commands to strip libraries.
18425
old_striplib=$lt_old_striplib
18426
striplib=$lt_striplib
18428
# Dependencies to place before the objects being linked to create a
18430
predep_objects=$lt_predep_objects_RC
18432
# Dependencies to place after the objects being linked to create a
18434
postdep_objects=$lt_postdep_objects_RC
18436
# Dependencies to place before the objects being linked to create a
18438
predeps=$lt_predeps_RC
18440
# Dependencies to place after the objects being linked to create a
18442
postdeps=$lt_postdeps_RC
18444
# The library search path used internally by the compiler when linking
18445
# a shared library.
18446
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18448
# Method to check whether dependent libraries are shared objects.
18449
deplibs_check_method=$lt_deplibs_check_method
18451
# Command to use when deplibs_check_method == file_magic.
18452
file_magic_cmd=$lt_file_magic_cmd
18454
# Flag that allows shared libraries with undefined symbols to be built.
18455
allow_undefined_flag=$lt_allow_undefined_flag_RC
18457
# Flag that forces no undefined symbols.
18458
no_undefined_flag=$lt_no_undefined_flag_RC
18460
# Commands used to finish a libtool library installation in a directory.
18461
finish_cmds=$lt_finish_cmds
18463
# Same as above, but a single script fragment to be evaled but not shown.
18464
finish_eval=$lt_finish_eval
18466
# Take the output of nm and produce a listing of raw symbols and C names.
18467
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18469
# Transform the output of nm in a proper C declaration
18470
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18472
# Transform the output of nm in a C name address pair
18473
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18475
# This is the shared library runtime path variable.
18476
runpath_var=$runpath_var
18478
# This is the shared library path variable.
18479
shlibpath_var=$shlibpath_var
18481
# Is shlibpath searched before the hard-coded library search path?
18482
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18484
# How to hardcode a shared library path into an executable.
18485
hardcode_action=$hardcode_action_RC
18487
# Whether we should hardcode library paths into libraries.
18488
hardcode_into_libs=$hardcode_into_libs
18490
# Flag to hardcode \$libdir into a binary during linking.
18491
# This must work even if \$libdir does not exist.
18492
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18494
# If ld is used when linking, flag to hardcode \$libdir into
18495
# a binary during linking. This must work even if \$libdir does
18497
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18499
# Whether we need a single -rpath flag with a separated argument.
18500
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18502
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18503
# resulting binary.
18504
hardcode_direct=$hardcode_direct_RC
18506
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18507
# resulting binary.
18508
hardcode_minus_L=$hardcode_minus_L_RC
18510
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18511
# the resulting binary.
18512
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18514
# Set to yes if building a shared library automatically hardcodes DIR into the library
18515
# and all subsequent libraries and executables linked against it.
18516
hardcode_automatic=$hardcode_automatic_RC
18518
# Variables whose values should be saved in libtool wrapper scripts and
18519
# restored at relink time.
18520
variables_saved_for_relink="$variables_saved_for_relink"
18522
# Whether libtool must link a program against all its dependency libraries.
18523
link_all_deplibs=$link_all_deplibs_RC
18525
# Compile-time system search path for libraries
18526
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18528
# Run-time system search path for libraries
18529
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18531
# Fix the shell variable \$srcfile for the compiler.
18532
fix_srcfile_path="$fix_srcfile_path_RC"
18534
# Set to yes if exported symbols are required.
18535
always_export_symbols=$always_export_symbols_RC
18537
# The commands to list exported symbols.
18538
export_symbols_cmds=$lt_export_symbols_cmds_RC
18540
# The commands to extract the exported symbol list from a shared archive.
18541
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18543
# Symbols that should not be listed in the preloaded symbols.
18544
exclude_expsyms=$lt_exclude_expsyms_RC
18546
# Symbols that must always be exported.
18547
include_expsyms=$lt_include_expsyms_RC
18549
# ### END LIBTOOL TAG CONFIG: $tagname
18555
# If there is no Makefile yet, we rely on a make rule to execute
18556
# `config.status --recheck' to rerun these tests and create the
18557
# libtool script then.
18558
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18559
if test -f "$ltmain_in"; then
18560
test -f Makefile && make "$ltmain"
18566
ac_cpp='$CPP $CPPFLAGS'
18567
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18568
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18569
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18576
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18577
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18578
{ (exit 1); exit 1; }; }
18582
# Append the new tag name to the list of available tags.
18583
if test -n "$tagname" ; then
18584
available_tags="$available_tags $tagname"
18590
# Now substitute the updated list of available tags.
18591
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18592
mv "${ofile}T" "$ofile"
18596
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18597
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18598
{ (exit 1); exit 1; }; }
18604
# This can be used to rebuild libtool when needed
18605
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18607
# Always use our own libtool.
18608
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18610
# Prevent multiple expansion
18635
ac_config_headers="$ac_config_headers src/config.h"
18637
ac_config_commands="$ac_config_commands default-1"
18644
echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18645
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
18646
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18647
echo $ECHO_N "(cached) $ECHO_C" >&6
18649
ac_check_lib_save_LIBS=$LIBS
18650
LIBS="-lcposix $LIBS"
18651
cat >conftest.$ac_ext <<_ACEOF
18654
cat confdefs.h >>conftest.$ac_ext
18655
cat >>conftest.$ac_ext <<_ACEOF
18656
/* end confdefs.h. */
18658
/* Override any gcc2 internal prototype to avoid an error. */
18662
/* We use char because int might match the return type of a gcc2
18663
builtin and then its argument prototype would still apply. */
18673
rm -f conftest.$ac_objext conftest$ac_exeext
18674
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18675
(eval $ac_link) 2>conftest.er1
18677
grep -v '^ *+' conftest.er1 >conftest.err
18679
cat conftest.err >&5
18680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681
(exit $ac_status); } &&
18682
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684
(eval $ac_try) 2>&5
18686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687
(exit $ac_status); }; } &&
18688
{ ac_try='test -s conftest$ac_exeext'
18689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690
(eval $ac_try) 2>&5
18692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693
(exit $ac_status); }; }; then
18694
ac_cv_lib_cposix_strerror=yes
18696
echo "$as_me: failed program was:" >&5
18697
sed 's/^/| /' conftest.$ac_ext >&5
18699
ac_cv_lib_cposix_strerror=no
18701
rm -f conftest.err conftest.$ac_objext \
18702
conftest$ac_exeext conftest.$ac_ext
18703
LIBS=$ac_check_lib_save_LIBS
18705
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18706
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
18707
if test $ac_cv_lib_cposix_strerror = yes; then
18708
LIBS="$LIBS -lcposix"
18714
ac_cpp='$CPP $CPPFLAGS'
18715
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18716
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18717
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18718
if test -n "$ac_tool_prefix"; then
18719
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18720
set dummy ${ac_tool_prefix}gcc; ac_word=$2
18721
echo "$as_me:$LINENO: checking for $ac_word" >&5
18722
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18723
if test "${ac_cv_prog_CC+set}" = set; then
18724
echo $ECHO_N "(cached) $ECHO_C" >&6
18726
if test -n "$CC"; then
18727
ac_cv_prog_CC="$CC" # Let the user override the test.
18729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18730
for as_dir in $PATH
18733
test -z "$as_dir" && as_dir=.
18734
for ac_exec_ext in '' $ac_executable_extensions; do
18735
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18736
ac_cv_prog_CC="${ac_tool_prefix}gcc"
18737
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18746
if test -n "$CC"; then
18747
echo "$as_me:$LINENO: result: $CC" >&5
18748
echo "${ECHO_T}$CC" >&6
18750
echo "$as_me:$LINENO: result: no" >&5
18751
echo "${ECHO_T}no" >&6
18755
if test -z "$ac_cv_prog_CC"; then
18757
# Extract the first word of "gcc", so it can be a program name with args.
18758
set dummy gcc; ac_word=$2
18759
echo "$as_me:$LINENO: checking for $ac_word" >&5
18760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18761
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18762
echo $ECHO_N "(cached) $ECHO_C" >&6
18764
if test -n "$ac_ct_CC"; then
18765
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18768
for as_dir in $PATH
18771
test -z "$as_dir" && as_dir=.
18772
for ac_exec_ext in '' $ac_executable_extensions; do
18773
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18774
ac_cv_prog_ac_ct_CC="gcc"
18775
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18783
ac_ct_CC=$ac_cv_prog_ac_ct_CC
18784
if test -n "$ac_ct_CC"; then
18785
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18786
echo "${ECHO_T}$ac_ct_CC" >&6
18788
echo "$as_me:$LINENO: result: no" >&5
18789
echo "${ECHO_T}no" >&6
18794
CC="$ac_cv_prog_CC"
18797
if test -z "$CC"; then
18798
if test -n "$ac_tool_prefix"; then
18799
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18800
set dummy ${ac_tool_prefix}cc; ac_word=$2
18801
echo "$as_me:$LINENO: checking for $ac_word" >&5
18802
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18803
if test "${ac_cv_prog_CC+set}" = set; then
18804
echo $ECHO_N "(cached) $ECHO_C" >&6
18806
if test -n "$CC"; then
18807
ac_cv_prog_CC="$CC" # Let the user override the test.
18809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810
for as_dir in $PATH
18813
test -z "$as_dir" && as_dir=.
18814
for ac_exec_ext in '' $ac_executable_extensions; do
18815
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18816
ac_cv_prog_CC="${ac_tool_prefix}cc"
18817
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18826
if test -n "$CC"; then
18827
echo "$as_me:$LINENO: result: $CC" >&5
18828
echo "${ECHO_T}$CC" >&6
18830
echo "$as_me:$LINENO: result: no" >&5
18831
echo "${ECHO_T}no" >&6
18835
if test -z "$ac_cv_prog_CC"; then
18837
# Extract the first word of "cc", so it can be a program name with args.
18838
set dummy cc; ac_word=$2
18839
echo "$as_me:$LINENO: checking for $ac_word" >&5
18840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18841
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18842
echo $ECHO_N "(cached) $ECHO_C" >&6
18844
if test -n "$ac_ct_CC"; then
18845
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18848
for as_dir in $PATH
18851
test -z "$as_dir" && as_dir=.
18852
for ac_exec_ext in '' $ac_executable_extensions; do
18853
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18854
ac_cv_prog_ac_ct_CC="cc"
18855
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18863
ac_ct_CC=$ac_cv_prog_ac_ct_CC
18864
if test -n "$ac_ct_CC"; then
18865
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18866
echo "${ECHO_T}$ac_ct_CC" >&6
18868
echo "$as_me:$LINENO: result: no" >&5
18869
echo "${ECHO_T}no" >&6
18874
CC="$ac_cv_prog_CC"
18878
if test -z "$CC"; then
18879
# Extract the first word of "cc", so it can be a program name with args.
18880
set dummy cc; ac_word=$2
18881
echo "$as_me:$LINENO: checking for $ac_word" >&5
18882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18883
if test "${ac_cv_prog_CC+set}" = set; then
18884
echo $ECHO_N "(cached) $ECHO_C" >&6
18886
if test -n "$CC"; then
18887
ac_cv_prog_CC="$CC" # Let the user override the test.
18889
ac_prog_rejected=no
18890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18891
for as_dir in $PATH
18894
test -z "$as_dir" && as_dir=.
18895
for ac_exec_ext in '' $ac_executable_extensions; do
18896
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18897
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18898
ac_prog_rejected=yes
18902
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18908
if test $ac_prog_rejected = yes; then
18909
# We found a bogon in the path, so make sure we never use it.
18910
set dummy $ac_cv_prog_CC
18912
if test $# != 0; then
18913
# We chose a different compiler from the bogus one.
18914
# However, it has the same basename, so the bogon will be chosen
18915
# first if we set CC to just the basename; use the full file name.
18917
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18923
if test -n "$CC"; then
18924
echo "$as_me:$LINENO: result: $CC" >&5
18925
echo "${ECHO_T}$CC" >&6
18927
echo "$as_me:$LINENO: result: no" >&5
18928
echo "${ECHO_T}no" >&6
18932
if test -z "$CC"; then
18933
if test -n "$ac_tool_prefix"; then
18936
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18937
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18938
echo "$as_me:$LINENO: checking for $ac_word" >&5
18939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18940
if test "${ac_cv_prog_CC+set}" = set; then
18941
echo $ECHO_N "(cached) $ECHO_C" >&6
18943
if test -n "$CC"; then
18944
ac_cv_prog_CC="$CC" # Let the user override the test.
18946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18947
for as_dir in $PATH
18950
test -z "$as_dir" && as_dir=.
18951
for ac_exec_ext in '' $ac_executable_extensions; do
18952
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18953
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18954
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18963
if test -n "$CC"; then
18964
echo "$as_me:$LINENO: result: $CC" >&5
18965
echo "${ECHO_T}$CC" >&6
18967
echo "$as_me:$LINENO: result: no" >&5
18968
echo "${ECHO_T}no" >&6
18971
test -n "$CC" && break
18974
if test -z "$CC"; then
18978
# Extract the first word of "$ac_prog", so it can be a program name with args.
18979
set dummy $ac_prog; ac_word=$2
18980
echo "$as_me:$LINENO: checking for $ac_word" >&5
18981
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18982
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18983
echo $ECHO_N "(cached) $ECHO_C" >&6
18985
if test -n "$ac_ct_CC"; then
18986
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18988
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18989
for as_dir in $PATH
18992
test -z "$as_dir" && as_dir=.
18993
for ac_exec_ext in '' $ac_executable_extensions; do
18994
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18995
ac_cv_prog_ac_ct_CC="$ac_prog"
18996
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19004
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19005
if test -n "$ac_ct_CC"; then
19006
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19007
echo "${ECHO_T}$ac_ct_CC" >&6
19009
echo "$as_me:$LINENO: result: no" >&5
19010
echo "${ECHO_T}no" >&6
19013
test -n "$ac_ct_CC" && break
19022
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19023
See \`config.log' for more details." >&5
19024
echo "$as_me: error: no acceptable C compiler found in \$PATH
19025
See \`config.log' for more details." >&2;}
19026
{ (exit 1); exit 1; }; }
19028
# Provide some information about the compiler.
19029
echo "$as_me:$LINENO:" \
19030
"checking for C compiler version" >&5
19031
ac_compiler=`set X $ac_compile; echo $2`
19032
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19033
(eval $ac_compiler --version </dev/null >&5) 2>&5
19035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036
(exit $ac_status); }
19037
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19038
(eval $ac_compiler -v </dev/null >&5) 2>&5
19040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041
(exit $ac_status); }
19042
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19043
(eval $ac_compiler -V </dev/null >&5) 2>&5
19045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046
(exit $ac_status); }
19048
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19049
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19050
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19051
echo $ECHO_N "(cached) $ECHO_C" >&6
19053
cat >conftest.$ac_ext <<_ACEOF
19056
cat confdefs.h >>conftest.$ac_ext
19057
cat >>conftest.$ac_ext <<_ACEOF
19058
/* end confdefs.h. */
19071
rm -f conftest.$ac_objext
19072
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19073
(eval $ac_compile) 2>conftest.er1
19075
grep -v '^ *+' conftest.er1 >conftest.err
19077
cat conftest.err >&5
19078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079
(exit $ac_status); } &&
19080
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082
(eval $ac_try) 2>&5
19084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085
(exit $ac_status); }; } &&
19086
{ ac_try='test -s conftest.$ac_objext'
19087
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088
(eval $ac_try) 2>&5
19090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091
(exit $ac_status); }; }; then
19092
ac_compiler_gnu=yes
19094
echo "$as_me: failed program was:" >&5
19095
sed 's/^/| /' conftest.$ac_ext >&5
19099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19100
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19103
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19104
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19105
GCC=`test $ac_compiler_gnu = yes && echo yes`
19106
ac_test_CFLAGS=${CFLAGS+set}
19107
ac_save_CFLAGS=$CFLAGS
19109
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19110
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19111
if test "${ac_cv_prog_cc_g+set}" = set; then
19112
echo $ECHO_N "(cached) $ECHO_C" >&6
19114
cat >conftest.$ac_ext <<_ACEOF
19117
cat confdefs.h >>conftest.$ac_ext
19118
cat >>conftest.$ac_ext <<_ACEOF
19119
/* end confdefs.h. */
19129
rm -f conftest.$ac_objext
19130
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19131
(eval $ac_compile) 2>conftest.er1
19133
grep -v '^ *+' conftest.er1 >conftest.err
19135
cat conftest.err >&5
19136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137
(exit $ac_status); } &&
19138
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19139
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140
(eval $ac_try) 2>&5
19142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143
(exit $ac_status); }; } &&
19144
{ ac_try='test -s conftest.$ac_objext'
19145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146
(eval $ac_try) 2>&5
19148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149
(exit $ac_status); }; }; then
19150
ac_cv_prog_cc_g=yes
19152
echo "$as_me: failed program was:" >&5
19153
sed 's/^/| /' conftest.$ac_ext >&5
19157
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19159
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19160
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19161
if test "$ac_test_CFLAGS" = set; then
19162
CFLAGS=$ac_save_CFLAGS
19163
elif test $ac_cv_prog_cc_g = yes; then
19164
if test "$GCC" = yes; then
19170
if test "$GCC" = yes; then
19176
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19177
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19178
if test "${ac_cv_prog_cc_stdc+set}" = set; then
19179
echo $ECHO_N "(cached) $ECHO_C" >&6
19181
ac_cv_prog_cc_stdc=no
19183
cat >conftest.$ac_ext <<_ACEOF
19186
cat confdefs.h >>conftest.$ac_ext
19187
cat >>conftest.$ac_ext <<_ACEOF
19188
/* end confdefs.h. */
19189
#include <stdarg.h>
19191
#include <sys/types.h>
19192
#include <sys/stat.h>
19193
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19194
struct buf { int x; };
19195
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19196
static char *e (p, i)
19202
static char *f (char * (*g) (char **, int), char **p, ...)
19207
s = g (p, va_arg (v,int));
19212
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19213
function prototypes and stuff, but not '\xHH' hex character constants.
19214
These don't provoke an error unfortunately, instead are silently treated
19215
as 'x'. The following induces an error, until -std1 is added to get
19216
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19217
array size at least. It's necessary to write '\x00'==0 to get something
19218
that's true only with -std1. */
19219
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19221
int test (int i, double x);
19222
struct s1 {int (*f) (int a);};
19223
struct s2 {int (*f) (double a);};
19224
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19230
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19235
# Don't try gcc -ansi; that turns off useful extensions and
19236
# breaks some systems' header files.
19237
# AIX -qlanglvl=ansi
19238
# Ultrix and OSF/1 -std1
19239
# HP-UX 10.20 and later -Ae
19240
# HP-UX older versions -Aa -D_HPUX_SOURCE
19241
# SVR4 -Xc -D__EXTENSIONS__
19242
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19244
CC="$ac_save_CC $ac_arg"
19245
rm -f conftest.$ac_objext
19246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247
(eval $ac_compile) 2>conftest.er1
19249
grep -v '^ *+' conftest.er1 >conftest.err
19251
cat conftest.err >&5
19252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253
(exit $ac_status); } &&
19254
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19255
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256
(eval $ac_try) 2>&5
19258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259
(exit $ac_status); }; } &&
19260
{ ac_try='test -s conftest.$ac_objext'
19261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262
(eval $ac_try) 2>&5
19264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265
(exit $ac_status); }; }; then
19266
ac_cv_prog_cc_stdc=$ac_arg
19269
echo "$as_me: failed program was:" >&5
19270
sed 's/^/| /' conftest.$ac_ext >&5
19273
rm -f conftest.err conftest.$ac_objext
19275
rm -f conftest.$ac_ext conftest.$ac_objext
19280
case "x$ac_cv_prog_cc_stdc" in
19282
echo "$as_me:$LINENO: result: none needed" >&5
19283
echo "${ECHO_T}none needed" >&6 ;;
19285
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19286
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19287
CC="$CC $ac_cv_prog_cc_stdc" ;;
19290
# Some people use a C++ compiler to compile C. Since we use `exit',
19291
# in C++ we need to declare it. In case someone uses the same compiler
19292
# for both compiling C and C++ we need to have the C++ compiler decide
19293
# the declaration of exit, since it's the most demanding environment.
19294
cat >conftest.$ac_ext <<_ACEOF
19295
#ifndef __cplusplus
19299
rm -f conftest.$ac_objext
19300
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301
(eval $ac_compile) 2>conftest.er1
19303
grep -v '^ *+' conftest.er1 >conftest.err
19305
cat conftest.err >&5
19306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307
(exit $ac_status); } &&
19308
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19309
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310
(eval $ac_try) 2>&5
19312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313
(exit $ac_status); }; } &&
19314
{ ac_try='test -s conftest.$ac_objext'
19315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316
(eval $ac_try) 2>&5
19318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319
(exit $ac_status); }; }; then
19320
for ac_declaration in \
19322
'extern "C" void std::exit (int) throw (); using std::exit;' \
19323
'extern "C" void std::exit (int); using std::exit;' \
19324
'extern "C" void exit (int) throw ();' \
19325
'extern "C" void exit (int);' \
19328
cat >conftest.$ac_ext <<_ACEOF
19331
cat confdefs.h >>conftest.$ac_ext
19332
cat >>conftest.$ac_ext <<_ACEOF
19333
/* end confdefs.h. */
19335
#include <stdlib.h>
19344
rm -f conftest.$ac_objext
19345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19346
(eval $ac_compile) 2>conftest.er1
19348
grep -v '^ *+' conftest.er1 >conftest.err
19350
cat conftest.err >&5
19351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352
(exit $ac_status); } &&
19353
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19354
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355
(eval $ac_try) 2>&5
19357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358
(exit $ac_status); }; } &&
19359
{ ac_try='test -s conftest.$ac_objext'
19360
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361
(eval $ac_try) 2>&5
19363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364
(exit $ac_status); }; }; then
19367
echo "$as_me: failed program was:" >&5
19368
sed 's/^/| /' conftest.$ac_ext >&5
19372
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19373
cat >conftest.$ac_ext <<_ACEOF
19376
cat confdefs.h >>conftest.$ac_ext
19377
cat >>conftest.$ac_ext <<_ACEOF
19378
/* end confdefs.h. */
19388
rm -f conftest.$ac_objext
19389
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19390
(eval $ac_compile) 2>conftest.er1
19392
grep -v '^ *+' conftest.er1 >conftest.err
19394
cat conftest.err >&5
19395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396
(exit $ac_status); } &&
19397
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19398
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399
(eval $ac_try) 2>&5
19401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402
(exit $ac_status); }; } &&
19403
{ ac_try='test -s conftest.$ac_objext'
19404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405
(eval $ac_try) 2>&5
19407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408
(exit $ac_status); }; }; then
19411
echo "$as_me: failed program was:" >&5
19412
sed 's/^/| /' conftest.$ac_ext >&5
19415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418
if test -n "$ac_declaration"; then
19419
echo '#ifdef __cplusplus' >>confdefs.h
19420
echo $ac_declaration >>confdefs.h
19421
echo '#endif' >>confdefs.h
19425
echo "$as_me: failed program was:" >&5
19426
sed 's/^/| /' conftest.$ac_ext >&5
19429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19431
ac_cpp='$CPP $CPPFLAGS'
19432
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19437
echo "$as_me:$LINENO: checking whether ln -s works" >&5
19438
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19440
if test "$LN_S" = "ln -s"; then
19441
echo "$as_me:$LINENO: result: yes" >&5
19442
echo "${ECHO_T}yes" >&6
19444
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19445
echo "${ECHO_T}no, using $LN_S" >&6
19448
if test $ac_cv_c_compiler_gnu = yes; then
19449
echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
19450
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
19451
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
19452
echo $ECHO_N "(cached) $ECHO_C" >&6
19454
ac_pattern="Autoconf.*'x'"
19455
cat >conftest.$ac_ext <<_ACEOF
19458
cat confdefs.h >>conftest.$ac_ext
19459
cat >>conftest.$ac_ext <<_ACEOF
19460
/* end confdefs.h. */
19464
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19465
$EGREP "$ac_pattern" >/dev/null 2>&1; then
19466
ac_cv_prog_gcc_traditional=yes
19468
ac_cv_prog_gcc_traditional=no
19473
if test $ac_cv_prog_gcc_traditional = no; then
19474
cat >conftest.$ac_ext <<_ACEOF
19477
cat confdefs.h >>conftest.$ac_ext
19478
cat >>conftest.$ac_ext <<_ACEOF
19479
/* end confdefs.h. */
19480
#include <termio.h>
19483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19484
$EGREP "$ac_pattern" >/dev/null 2>&1; then
19485
ac_cv_prog_gcc_traditional=yes
19491
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
19492
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
19493
if test $ac_cv_prog_gcc_traditional = yes; then
19494
CC="$CC -traditional"
19501
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19502
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19505
_bindir=`eval echo $bindir`
19506
_bindir=`eval echo $_bindir`
19508
_libdir=`eval echo $libdir`
19509
_libdir=`eval echo $_libdir`
19510
lib_search_path="-L$_libdir"
19512
inc_search_path=`eval echo $includedir`
19513
inc_search_path="-I`eval echo $inc_search_path`"
19520
# Check whether --with-libs-from or --without-libs-from was given.
19521
if test "${with_libs_from+set}" = set; then
19522
withval="$with_libs_from"
19523
lib_search_path="$withval $lib_search_path"
19527
# Check whether --with-incs-from or --without-incs-from was given.
19528
if test "${with_incs_from+set}" = set; then
19529
withval="$with_incs_from"
19530
inc_search_path="$withval $inc_search_path"
19536
for ac_func in vprintf
19538
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19539
echo "$as_me:$LINENO: checking for $ac_func" >&5
19540
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19541
if eval "test \"\${$as_ac_var+set}\" = set"; then
19542
echo $ECHO_N "(cached) $ECHO_C" >&6
19544
cat >conftest.$ac_ext <<_ACEOF
19547
cat confdefs.h >>conftest.$ac_ext
19548
cat >>conftest.$ac_ext <<_ACEOF
19549
/* end confdefs.h. */
19550
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19551
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19552
#define $ac_func innocuous_$ac_func
19554
/* System header to define __stub macros and hopefully few prototypes,
19555
which can conflict with char $ac_func (); below.
19556
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19557
<limits.h> exists even on freestanding compilers. */
19560
# include <limits.h>
19562
# include <assert.h>
19567
/* Override any gcc2 internal prototype to avoid an error. */
19572
/* We use char because int might match the return type of a gcc2
19573
builtin and then its argument prototype would still apply. */
19575
/* The GNU C library defines this for functions which it implements
19576
to always fail with ENOSYS. Some functions are actually named
19577
something starting with __ and the normal name is an alias. */
19578
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19581
char (*f) () = $ac_func;
19590
return f != $ac_func;
19595
rm -f conftest.$ac_objext conftest$ac_exeext
19596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19597
(eval $ac_link) 2>conftest.er1
19599
grep -v '^ *+' conftest.er1 >conftest.err
19601
cat conftest.err >&5
19602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603
(exit $ac_status); } &&
19604
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606
(eval $ac_try) 2>&5
19608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609
(exit $ac_status); }; } &&
19610
{ ac_try='test -s conftest$ac_exeext'
19611
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612
(eval $ac_try) 2>&5
19614
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615
(exit $ac_status); }; }; then
19616
eval "$as_ac_var=yes"
19618
echo "$as_me: failed program was:" >&5
19619
sed 's/^/| /' conftest.$ac_ext >&5
19621
eval "$as_ac_var=no"
19623
rm -f conftest.err conftest.$ac_objext \
19624
conftest$ac_exeext conftest.$ac_ext
19626
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19627
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19628
if test `eval echo '${'$as_ac_var'}'` = yes; then
19629
cat >>confdefs.h <<_ACEOF
19630
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19633
echo "$as_me:$LINENO: checking for _doprnt" >&5
19634
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19635
if test "${ac_cv_func__doprnt+set}" = set; then
19636
echo $ECHO_N "(cached) $ECHO_C" >&6
19638
cat >conftest.$ac_ext <<_ACEOF
19641
cat confdefs.h >>conftest.$ac_ext
19642
cat >>conftest.$ac_ext <<_ACEOF
19643
/* end confdefs.h. */
19644
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19645
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19646
#define _doprnt innocuous__doprnt
19648
/* System header to define __stub macros and hopefully few prototypes,
19649
which can conflict with char _doprnt (); below.
19650
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19651
<limits.h> exists even on freestanding compilers. */
19654
# include <limits.h>
19656
# include <assert.h>
19661
/* Override any gcc2 internal prototype to avoid an error. */
19666
/* We use char because int might match the return type of a gcc2
19667
builtin and then its argument prototype would still apply. */
19669
/* The GNU C library defines this for functions which it implements
19670
to always fail with ENOSYS. Some functions are actually named
19671
something starting with __ and the normal name is an alias. */
19672
#if defined (__stub__doprnt) || defined (__stub____doprnt)
19675
char (*f) () = _doprnt;
19684
return f != _doprnt;
19689
rm -f conftest.$ac_objext conftest$ac_exeext
19690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19691
(eval $ac_link) 2>conftest.er1
19693
grep -v '^ *+' conftest.er1 >conftest.err
19695
cat conftest.err >&5
19696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697
(exit $ac_status); } &&
19698
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700
(eval $ac_try) 2>&5
19702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703
(exit $ac_status); }; } &&
19704
{ ac_try='test -s conftest$ac_exeext'
19705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706
(eval $ac_try) 2>&5
19708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709
(exit $ac_status); }; }; then
19710
ac_cv_func__doprnt=yes
19712
echo "$as_me: failed program was:" >&5
19713
sed 's/^/| /' conftest.$ac_ext >&5
19715
ac_cv_func__doprnt=no
19717
rm -f conftest.err conftest.$ac_objext \
19718
conftest$ac_exeext conftest.$ac_ext
19720
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19721
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19722
if test $ac_cv_func__doprnt = yes; then
19724
cat >>confdefs.h <<\_ACEOF
19725
#define HAVE_DOPRNT 1
19734
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19735
# for constant arguments. Useless!
19736
echo "$as_me:$LINENO: checking for working alloca.h" >&5
19737
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19738
if test "${ac_cv_working_alloca_h+set}" = set; then
19739
echo $ECHO_N "(cached) $ECHO_C" >&6
19741
cat >conftest.$ac_ext <<_ACEOF
19744
cat confdefs.h >>conftest.$ac_ext
19745
cat >>conftest.$ac_ext <<_ACEOF
19746
/* end confdefs.h. */
19747
#include <alloca.h>
19751
char *p = (char *) alloca (2 * sizeof (int));
19756
rm -f conftest.$ac_objext conftest$ac_exeext
19757
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19758
(eval $ac_link) 2>conftest.er1
19760
grep -v '^ *+' conftest.er1 >conftest.err
19762
cat conftest.err >&5
19763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764
(exit $ac_status); } &&
19765
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767
(eval $ac_try) 2>&5
19769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770
(exit $ac_status); }; } &&
19771
{ ac_try='test -s conftest$ac_exeext'
19772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773
(eval $ac_try) 2>&5
19775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776
(exit $ac_status); }; }; then
19777
ac_cv_working_alloca_h=yes
19779
echo "$as_me: failed program was:" >&5
19780
sed 's/^/| /' conftest.$ac_ext >&5
19782
ac_cv_working_alloca_h=no
19784
rm -f conftest.err conftest.$ac_objext \
19785
conftest$ac_exeext conftest.$ac_ext
19787
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19788
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19789
if test $ac_cv_working_alloca_h = yes; then
19791
cat >>confdefs.h <<\_ACEOF
19792
#define HAVE_ALLOCA_H 1
19797
echo "$as_me:$LINENO: checking for alloca" >&5
19798
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19799
if test "${ac_cv_func_alloca_works+set}" = set; then
19800
echo $ECHO_N "(cached) $ECHO_C" >&6
19802
cat >conftest.$ac_ext <<_ACEOF
19805
cat confdefs.h >>conftest.$ac_ext
19806
cat >>conftest.$ac_ext <<_ACEOF
19807
/* end confdefs.h. */
19809
# define alloca __builtin_alloca
19812
# include <malloc.h>
19813
# define alloca _alloca
19816
# include <alloca.h>
19821
# ifndef alloca /* predefined by HP cc +Olibcalls */
19832
char *p = (char *) alloca (1);
19837
rm -f conftest.$ac_objext conftest$ac_exeext
19838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19839
(eval $ac_link) 2>conftest.er1
19841
grep -v '^ *+' conftest.er1 >conftest.err
19843
cat conftest.err >&5
19844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845
(exit $ac_status); } &&
19846
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19848
(eval $ac_try) 2>&5
19850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851
(exit $ac_status); }; } &&
19852
{ ac_try='test -s conftest$ac_exeext'
19853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854
(eval $ac_try) 2>&5
19856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857
(exit $ac_status); }; }; then
19858
ac_cv_func_alloca_works=yes
19860
echo "$as_me: failed program was:" >&5
19861
sed 's/^/| /' conftest.$ac_ext >&5
19863
ac_cv_func_alloca_works=no
19865
rm -f conftest.err conftest.$ac_objext \
19866
conftest$ac_exeext conftest.$ac_ext
19868
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19869
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19871
if test $ac_cv_func_alloca_works = yes; then
19873
cat >>confdefs.h <<\_ACEOF
19874
#define HAVE_ALLOCA 1
19878
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
19879
# that cause trouble. Some versions do not even contain alloca or
19880
# contain a buggy version. If you still want to use their alloca,
19881
# use ar to extract alloca.o from them instead of compiling alloca.c.
19883
ALLOCA=alloca.$ac_objext
19885
cat >>confdefs.h <<\_ACEOF
19890
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19891
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19892
if test "${ac_cv_os_cray+set}" = set; then
19893
echo $ECHO_N "(cached) $ECHO_C" >&6
19895
cat >conftest.$ac_ext <<_ACEOF
19898
cat confdefs.h >>conftest.$ac_ext
19899
cat >>conftest.$ac_ext <<_ACEOF
19900
/* end confdefs.h. */
19901
#if defined(CRAY) && ! defined(CRAY2)
19908
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19909
$EGREP "webecray" >/dev/null 2>&1; then
19917
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19918
echo "${ECHO_T}$ac_cv_os_cray" >&6
19919
if test $ac_cv_os_cray = yes; then
19920
for ac_func in _getb67 GETB67 getb67; do
19921
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19922
echo "$as_me:$LINENO: checking for $ac_func" >&5
19923
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19924
if eval "test \"\${$as_ac_var+set}\" = set"; then
19925
echo $ECHO_N "(cached) $ECHO_C" >&6
19927
cat >conftest.$ac_ext <<_ACEOF
19930
cat confdefs.h >>conftest.$ac_ext
19931
cat >>conftest.$ac_ext <<_ACEOF
19932
/* end confdefs.h. */
19933
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19934
For example, HP-UX 11i <limits.h> declares gettimeofday. */
19935
#define $ac_func innocuous_$ac_func
19937
/* System header to define __stub macros and hopefully few prototypes,
19938
which can conflict with char $ac_func (); below.
19939
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19940
<limits.h> exists even on freestanding compilers. */
19943
# include <limits.h>
19945
# include <assert.h>
19950
/* Override any gcc2 internal prototype to avoid an error. */
19955
/* We use char because int might match the return type of a gcc2
19956
builtin and then its argument prototype would still apply. */
19958
/* The GNU C library defines this for functions which it implements
19959
to always fail with ENOSYS. Some functions are actually named
19960
something starting with __ and the normal name is an alias. */
19961
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19964
char (*f) () = $ac_func;
19973
return f != $ac_func;
19978
rm -f conftest.$ac_objext conftest$ac_exeext
19979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19980
(eval $ac_link) 2>conftest.er1
19982
grep -v '^ *+' conftest.er1 >conftest.err
19984
cat conftest.err >&5
19985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986
(exit $ac_status); } &&
19987
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19988
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989
(eval $ac_try) 2>&5
19991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992
(exit $ac_status); }; } &&
19993
{ ac_try='test -s conftest$ac_exeext'
19994
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995
(eval $ac_try) 2>&5
19997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998
(exit $ac_status); }; }; then
19999
eval "$as_ac_var=yes"
20001
echo "$as_me: failed program was:" >&5
20002
sed 's/^/| /' conftest.$ac_ext >&5
20004
eval "$as_ac_var=no"
20006
rm -f conftest.err conftest.$ac_objext \
20007
conftest$ac_exeext conftest.$ac_ext
20009
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20010
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20011
if test `eval echo '${'$as_ac_var'}'` = yes; then
20013
cat >>confdefs.h <<_ACEOF
20014
#define CRAY_STACKSEG_END $ac_func
20023
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20024
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20025
if test "${ac_cv_c_stack_direction+set}" = set; then
20026
echo $ECHO_N "(cached) $ECHO_C" >&6
20028
if test "$cross_compiling" = yes; then
20029
ac_cv_c_stack_direction=0
20031
cat >conftest.$ac_ext <<_ACEOF
20034
cat confdefs.h >>conftest.$ac_ext
20035
cat >>conftest.$ac_ext <<_ACEOF
20036
/* end confdefs.h. */
20038
find_stack_direction ()
20040
static char *addr = 0;
20045
return find_stack_direction ();
20048
return (&dummy > addr) ? 1 : -1;
20054
exit (find_stack_direction () < 0);
20057
rm -f conftest$ac_exeext
20058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20059
(eval $ac_link) 2>&5
20061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064
(eval $ac_try) 2>&5
20066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067
(exit $ac_status); }; }; then
20068
ac_cv_c_stack_direction=1
20070
echo "$as_me: program exited with status $ac_status" >&5
20071
echo "$as_me: failed program was:" >&5
20072
sed 's/^/| /' conftest.$ac_ext >&5
20074
( exit $ac_status )
20075
ac_cv_c_stack_direction=-1
20077
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20080
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20081
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20083
cat >>confdefs.h <<_ACEOF
20084
#define STACK_DIRECTION $ac_cv_c_stack_direction
20104
for ac_func in gethostname select poll strerror strcasecmp strncasecmp \
20105
setsid atexit mallinfo mkstemp snprintf vsnprintf asprintf \
20108
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20109
echo "$as_me:$LINENO: checking for $ac_func" >&5
20110
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20111
if eval "test \"\${$as_ac_var+set}\" = set"; then
20112
echo $ECHO_N "(cached) $ECHO_C" >&6
20114
cat >conftest.$ac_ext <<_ACEOF
20117
cat confdefs.h >>conftest.$ac_ext
20118
cat >>conftest.$ac_ext <<_ACEOF
20119
/* end confdefs.h. */
20120
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20121
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20122
#define $ac_func innocuous_$ac_func
20124
/* System header to define __stub macros and hopefully few prototypes,
20125
which can conflict with char $ac_func (); below.
20126
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20127
<limits.h> exists even on freestanding compilers. */
20130
# include <limits.h>
20132
# include <assert.h>
20137
/* Override any gcc2 internal prototype to avoid an error. */
20142
/* We use char because int might match the return type of a gcc2
20143
builtin and then its argument prototype would still apply. */
20145
/* The GNU C library defines this for functions which it implements
20146
to always fail with ENOSYS. Some functions are actually named
20147
something starting with __ and the normal name is an alias. */
20148
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20151
char (*f) () = $ac_func;
20160
return f != $ac_func;
20165
rm -f conftest.$ac_objext conftest$ac_exeext
20166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20167
(eval $ac_link) 2>conftest.er1
20169
grep -v '^ *+' conftest.er1 >conftest.err
20171
cat conftest.err >&5
20172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173
(exit $ac_status); } &&
20174
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20175
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176
(eval $ac_try) 2>&5
20178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179
(exit $ac_status); }; } &&
20180
{ ac_try='test -s conftest$ac_exeext'
20181
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182
(eval $ac_try) 2>&5
20184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185
(exit $ac_status); }; }; then
20186
eval "$as_ac_var=yes"
20188
echo "$as_me: failed program was:" >&5
20189
sed 's/^/| /' conftest.$ac_ext >&5
20191
eval "$as_ac_var=no"
20193
rm -f conftest.err conftest.$ac_objext \
20194
conftest$ac_exeext conftest.$ac_ext
20196
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20197
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20198
if test `eval echo '${'$as_ac_var'}'` = yes; then
20199
cat >>confdefs.h <<_ACEOF
20200
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20207
echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
20208
echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
20209
if test "${_cv_HAVE_C99_VSNPRINTF+set}" = set; then
20210
echo $ECHO_N "(cached) $ECHO_C" >&6
20213
if test "$cross_compiling" = yes; then
20214
_cv_HAVE_C99_VSNPRINTF=cross
20216
cat >conftest.$ac_ext <<_ACEOF
20219
cat confdefs.h >>conftest.$ac_ext
20220
cat >>conftest.$ac_ext <<_ACEOF
20221
/* end confdefs.h. */
20223
#include <sys/types.h>
20224
#include <stdarg.h>
20225
void foo(const char *format, ...) {
20230
va_start(ap, format);
20231
len = vsnprintf(0, 0, format, ap);
20233
if (len != 5) exit(1);
20235
if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
20239
main() { foo("hello"); }
20242
rm -f conftest$ac_exeext
20243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20244
(eval $ac_link) 2>&5
20246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20248
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249
(eval $ac_try) 2>&5
20251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252
(exit $ac_status); }; }; then
20253
_cv_HAVE_C99_VSNPRINTF=yes
20255
echo "$as_me: program exited with status $ac_status" >&5
20256
echo "$as_me: failed program was:" >&5
20257
sed 's/^/| /' conftest.$ac_ext >&5
20259
( exit $ac_status )
20260
_cv_HAVE_C99_VSNPRINTF=no
20262
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20265
echo "$as_me:$LINENO: result: $_cv_HAVE_C99_VSNPRINTF" >&5
20266
echo "${ECHO_T}$_cv_HAVE_C99_VSNPRINTF" >&6
20267
if test x"$_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
20269
cat >>confdefs.h <<\_ACEOF
20270
#define HAVE_C99_VSNPRINTF 1
20277
echo "$as_me:$LINENO: checking for dlopen" >&5
20278
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20279
if test "${ac_cv_func_dlopen+set}" = set; then
20280
echo $ECHO_N "(cached) $ECHO_C" >&6
20282
cat >conftest.$ac_ext <<_ACEOF
20285
cat confdefs.h >>conftest.$ac_ext
20286
cat >>conftest.$ac_ext <<_ACEOF
20287
/* end confdefs.h. */
20288
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20289
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20290
#define dlopen innocuous_dlopen
20292
/* System header to define __stub macros and hopefully few prototypes,
20293
which can conflict with char dlopen (); below.
20294
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20295
<limits.h> exists even on freestanding compilers. */
20298
# include <limits.h>
20300
# include <assert.h>
20305
/* Override any gcc2 internal prototype to avoid an error. */
20310
/* We use char because int might match the return type of a gcc2
20311
builtin and then its argument prototype would still apply. */
20313
/* The GNU C library defines this for functions which it implements
20314
to always fail with ENOSYS. Some functions are actually named
20315
something starting with __ and the normal name is an alias. */
20316
#if defined (__stub_dlopen) || defined (__stub___dlopen)
20319
char (*f) () = dlopen;
20328
return f != dlopen;
20333
rm -f conftest.$ac_objext conftest$ac_exeext
20334
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20335
(eval $ac_link) 2>conftest.er1
20337
grep -v '^ *+' conftest.er1 >conftest.err
20339
cat conftest.err >&5
20340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341
(exit $ac_status); } &&
20342
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20343
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344
(eval $ac_try) 2>&5
20346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347
(exit $ac_status); }; } &&
20348
{ ac_try='test -s conftest$ac_exeext'
20349
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350
(eval $ac_try) 2>&5
20352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353
(exit $ac_status); }; }; then
20354
ac_cv_func_dlopen=yes
20356
echo "$as_me: failed program was:" >&5
20357
sed 's/^/| /' conftest.$ac_ext >&5
20359
ac_cv_func_dlopen=no
20361
rm -f conftest.err conftest.$ac_objext \
20362
conftest$ac_exeext conftest.$ac_ext
20364
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20365
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20366
if test $ac_cv_func_dlopen = yes; then
20369
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20370
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20371
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20372
echo $ECHO_N "(cached) $ECHO_C" >&6
20374
ac_check_lib_save_LIBS=$LIBS
20376
cat >conftest.$ac_ext <<_ACEOF
20379
cat confdefs.h >>conftest.$ac_ext
20380
cat >>conftest.$ac_ext <<_ACEOF
20381
/* end confdefs.h. */
20383
/* Override any gcc2 internal prototype to avoid an error. */
20387
/* We use char because int might match the return type of a gcc2
20388
builtin and then its argument prototype would still apply. */
20398
rm -f conftest.$ac_objext conftest$ac_exeext
20399
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20400
(eval $ac_link) 2>conftest.er1
20402
grep -v '^ *+' conftest.er1 >conftest.err
20404
cat conftest.err >&5
20405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406
(exit $ac_status); } &&
20407
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409
(eval $ac_try) 2>&5
20411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412
(exit $ac_status); }; } &&
20413
{ ac_try='test -s conftest$ac_exeext'
20414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415
(eval $ac_try) 2>&5
20417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418
(exit $ac_status); }; }; then
20419
ac_cv_lib_dl_dlopen=yes
20421
echo "$as_me: failed program was:" >&5
20422
sed 's/^/| /' conftest.$ac_ext >&5
20424
ac_cv_lib_dl_dlopen=no
20426
rm -f conftest.err conftest.$ac_objext \
20427
conftest$ac_exeext conftest.$ac_ext
20428
LIBS=$ac_check_lib_save_LIBS
20430
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20431
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20432
if test $ac_cv_lib_dl_dlopen = yes; then
20433
DLLIBS="-ldl" HAVEDL="yes"
20441
if test "x$HAVEDL" = xyes; then
20443
for ac_header in dlfcn.h
20445
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20446
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20447
echo "$as_me:$LINENO: checking for $ac_header" >&5
20448
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20449
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20450
echo $ECHO_N "(cached) $ECHO_C" >&6
20452
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20453
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20455
# Is the header compilable?
20456
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20457
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20458
cat >conftest.$ac_ext <<_ACEOF
20461
cat confdefs.h >>conftest.$ac_ext
20462
cat >>conftest.$ac_ext <<_ACEOF
20463
/* end confdefs.h. */
20464
$ac_includes_default
20465
#include <$ac_header>
20467
rm -f conftest.$ac_objext
20468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20469
(eval $ac_compile) 2>conftest.er1
20471
grep -v '^ *+' conftest.er1 >conftest.err
20473
cat conftest.err >&5
20474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475
(exit $ac_status); } &&
20476
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478
(eval $ac_try) 2>&5
20480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481
(exit $ac_status); }; } &&
20482
{ ac_try='test -s conftest.$ac_objext'
20483
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484
(eval $ac_try) 2>&5
20486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487
(exit $ac_status); }; }; then
20488
ac_header_compiler=yes
20490
echo "$as_me: failed program was:" >&5
20491
sed 's/^/| /' conftest.$ac_ext >&5
20493
ac_header_compiler=no
20495
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20496
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20497
echo "${ECHO_T}$ac_header_compiler" >&6
20499
# Is the header present?
20500
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20501
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20502
cat >conftest.$ac_ext <<_ACEOF
20505
cat confdefs.h >>conftest.$ac_ext
20506
cat >>conftest.$ac_ext <<_ACEOF
20507
/* end confdefs.h. */
20508
#include <$ac_header>
20510
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20511
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20513
grep -v '^ *+' conftest.er1 >conftest.err
20515
cat conftest.err >&5
20516
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517
(exit $ac_status); } >/dev/null; then
20518
if test -s conftest.err; then
20519
ac_cpp_err=$ac_c_preproc_warn_flag
20520
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20527
if test -z "$ac_cpp_err"; then
20528
ac_header_preproc=yes
20530
echo "$as_me: failed program was:" >&5
20531
sed 's/^/| /' conftest.$ac_ext >&5
20533
ac_header_preproc=no
20535
rm -f conftest.err conftest.$ac_ext
20536
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20537
echo "${ECHO_T}$ac_header_preproc" >&6
20539
# So? What about this header?
20540
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20542
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20543
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20544
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20545
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20546
ac_header_preproc=yes
20549
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20550
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20551
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20552
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20553
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20554
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20555
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20556
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20557
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20558
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20559
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20560
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20563
## ------------------------------------------ ##
20564
## Report this to the AC_PACKAGE_NAME lists. ##
20565
## ------------------------------------------ ##
20568
sed "s/^/$as_me: WARNING: /" >&2
20571
echo "$as_me:$LINENO: checking for $ac_header" >&5
20572
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20573
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20574
echo $ECHO_N "(cached) $ECHO_C" >&6
20576
eval "$as_ac_Header=\$ac_header_preproc"
20578
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20579
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20582
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20583
cat >>confdefs.h <<_ACEOF
20584
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20595
if test "x$CPP_PATH" = x; then
20596
# Extract the first word of "cpp", so it can be a program name with args.
20597
set dummy cpp; ac_word=$2
20598
echo "$as_me:$LINENO: checking for $ac_word" >&5
20599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20600
if test "${ac_cv_path_CPP_PATH+set}" = set; then
20601
echo $ECHO_N "(cached) $ECHO_C" >&6
20605
ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
20608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20609
as_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
20610
for as_dir in $as_dummy
20613
test -z "$as_dir" && as_dir=.
20614
for ac_exec_ext in '' $ac_executable_extensions; do
20615
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20616
ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext"
20617
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20623
test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
20627
CPP_PATH=$ac_cv_path_CPP_PATH
20629
if test -n "$CPP_PATH"; then
20630
echo "$as_me:$LINENO: result: $CPP_PATH" >&5
20631
echo "${ECHO_T}$CPP_PATH" >&6
20633
echo "$as_me:$LINENO: result: no" >&5
20634
echo "${ECHO_T}no" >&6
20639
if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
20640
if test "$GCC" = "yes"; then
20641
CPP_PATH="gcc -E -x c"
20643
if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
20644
CPP_PATH="$CPP_PATH -B"
20646
echo "cpp, the C preprocessor was not found in your system."
20647
echo "Create a symbolic link from it to /lib/cpp and rerun configure"
20653
cat >>confdefs.h <<_ACEOF
20654
#define CPP_PATH "$CPP_PATH"
20660
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20661
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20662
if test "${ac_cv_header_sys_wait_h+set}" = set; then
20663
echo $ECHO_N "(cached) $ECHO_C" >&6
20665
cat >conftest.$ac_ext <<_ACEOF
20668
cat confdefs.h >>conftest.$ac_ext
20669
cat >>conftest.$ac_ext <<_ACEOF
20670
/* end confdefs.h. */
20671
#include <sys/types.h>
20672
#include <sys/wait.h>
20673
#ifndef WEXITSTATUS
20674
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20677
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20685
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20690
rm -f conftest.$ac_objext
20691
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692
(eval $ac_compile) 2>conftest.er1
20694
grep -v '^ *+' conftest.er1 >conftest.err
20696
cat conftest.err >&5
20697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698
(exit $ac_status); } &&
20699
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701
(eval $ac_try) 2>&5
20703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704
(exit $ac_status); }; } &&
20705
{ ac_try='test -s conftest.$ac_objext'
20706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707
(eval $ac_try) 2>&5
20709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710
(exit $ac_status); }; }; then
20711
ac_cv_header_sys_wait_h=yes
20713
echo "$as_me: failed program was:" >&5
20714
sed 's/^/| /' conftest.$ac_ext >&5
20716
ac_cv_header_sys_wait_h=no
20718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20720
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20721
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20722
if test $ac_cv_header_sys_wait_h = yes; then
20724
cat >>confdefs.h <<\_ACEOF
20725
#define HAVE_SYS_WAIT_H 1
20730
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20731
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20732
if test "${ac_cv_header_time+set}" = set; then
20733
echo $ECHO_N "(cached) $ECHO_C" >&6
20735
cat >conftest.$ac_ext <<_ACEOF
20738
cat confdefs.h >>conftest.$ac_ext
20739
cat >>conftest.$ac_ext <<_ACEOF
20740
/* end confdefs.h. */
20741
#include <sys/types.h>
20742
#include <sys/time.h>
20748
if ((struct tm *) 0)
20754
rm -f conftest.$ac_objext
20755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20756
(eval $ac_compile) 2>conftest.er1
20758
grep -v '^ *+' conftest.er1 >conftest.err
20760
cat conftest.err >&5
20761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762
(exit $ac_status); } &&
20763
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20764
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765
(eval $ac_try) 2>&5
20767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768
(exit $ac_status); }; } &&
20769
{ ac_try='test -s conftest.$ac_objext'
20770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20771
(eval $ac_try) 2>&5
20773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774
(exit $ac_status); }; }; then
20775
ac_cv_header_time=yes
20777
echo "$as_me: failed program was:" >&5
20778
sed 's/^/| /' conftest.$ac_ext >&5
20780
ac_cv_header_time=no
20782
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20784
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20785
echo "${ECHO_T}$ac_cv_header_time" >&6
20786
if test $ac_cv_header_time = yes; then
20788
cat >>confdefs.h <<\_ACEOF
20789
#define TIME_WITH_SYS_TIME 1
20806
for ac_header in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h \
20807
libintl.h sys/select.h poll.h malloc.h ctype.h string.h \
20810
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20811
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20812
echo "$as_me:$LINENO: checking for $ac_header" >&5
20813
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20814
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20815
echo $ECHO_N "(cached) $ECHO_C" >&6
20817
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20818
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20820
# Is the header compilable?
20821
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20822
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20823
cat >conftest.$ac_ext <<_ACEOF
20826
cat confdefs.h >>conftest.$ac_ext
20827
cat >>conftest.$ac_ext <<_ACEOF
20828
/* end confdefs.h. */
20829
$ac_includes_default
20830
#include <$ac_header>
20832
rm -f conftest.$ac_objext
20833
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834
(eval $ac_compile) 2>conftest.er1
20836
grep -v '^ *+' conftest.er1 >conftest.err
20838
cat conftest.err >&5
20839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840
(exit $ac_status); } &&
20841
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20842
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843
(eval $ac_try) 2>&5
20845
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846
(exit $ac_status); }; } &&
20847
{ ac_try='test -s conftest.$ac_objext'
20848
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849
(eval $ac_try) 2>&5
20851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852
(exit $ac_status); }; }; then
20853
ac_header_compiler=yes
20855
echo "$as_me: failed program was:" >&5
20856
sed 's/^/| /' conftest.$ac_ext >&5
20858
ac_header_compiler=no
20860
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20861
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20862
echo "${ECHO_T}$ac_header_compiler" >&6
20864
# Is the header present?
20865
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20866
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20867
cat >conftest.$ac_ext <<_ACEOF
20870
cat confdefs.h >>conftest.$ac_ext
20871
cat >>conftest.$ac_ext <<_ACEOF
20872
/* end confdefs.h. */
20873
#include <$ac_header>
20875
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20876
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20878
grep -v '^ *+' conftest.er1 >conftest.err
20880
cat conftest.err >&5
20881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882
(exit $ac_status); } >/dev/null; then
20883
if test -s conftest.err; then
20884
ac_cpp_err=$ac_c_preproc_warn_flag
20885
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20892
if test -z "$ac_cpp_err"; then
20893
ac_header_preproc=yes
20895
echo "$as_me: failed program was:" >&5
20896
sed 's/^/| /' conftest.$ac_ext >&5
20898
ac_header_preproc=no
20900
rm -f conftest.err conftest.$ac_ext
20901
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20902
echo "${ECHO_T}$ac_header_preproc" >&6
20904
# So? What about this header?
20905
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20907
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20908
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20909
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20910
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20911
ac_header_preproc=yes
20914
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20915
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20916
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20917
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20918
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20919
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20920
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20921
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20922
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20923
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20924
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20925
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20928
## ------------------------------------------ ##
20929
## Report this to the AC_PACKAGE_NAME lists. ##
20930
## ------------------------------------------ ##
20933
sed "s/^/$as_me: WARNING: /" >&2
20936
echo "$as_me:$LINENO: checking for $ac_header" >&5
20937
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20938
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20939
echo $ECHO_N "(cached) $ECHO_C" >&6
20941
eval "$as_ac_Header=\$ac_header_preproc"
20943
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20944
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20947
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20948
cat >>confdefs.h <<_ACEOF
20949
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20959
echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
20960
echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
20961
if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
20962
echo $ECHO_N "(cached) $ECHO_C" >&6
20964
cat >conftest.$ac_ext <<_ACEOF
20967
cat confdefs.h >>conftest.$ac_ext
20968
cat >>conftest.$ac_ext <<_ACEOF
20969
/* end confdefs.h. */
20970
#include <signal.h>
20971
/* NetBSD declares sys_siglist in unistd.h. */
20973
# include <unistd.h>
20980
#ifndef sys_siglist
20981
char *p = (char *) sys_siglist;
20988
rm -f conftest.$ac_objext
20989
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20990
(eval $ac_compile) 2>conftest.er1
20992
grep -v '^ *+' conftest.er1 >conftest.err
20994
cat conftest.err >&5
20995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996
(exit $ac_status); } &&
20997
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999
(eval $ac_try) 2>&5
21001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002
(exit $ac_status); }; } &&
21003
{ ac_try='test -s conftest.$ac_objext'
21004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005
(eval $ac_try) 2>&5
21007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008
(exit $ac_status); }; }; then
21009
ac_cv_have_decl_sys_siglist=yes
21011
echo "$as_me: failed program was:" >&5
21012
sed 's/^/| /' conftest.$ac_ext >&5
21014
ac_cv_have_decl_sys_siglist=no
21016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21018
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21019
echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
21020
if test $ac_cv_have_decl_sys_siglist = yes; then
21022
cat >>confdefs.h <<_ACEOF
21023
#define HAVE_DECL_SYS_SIGLIST 1
21028
cat >>confdefs.h <<_ACEOF
21029
#define HAVE_DECL_SYS_SIGLIST 0
21037
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21038
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21039
if test "${ac_cv_c_const+set}" = set; then
21040
echo $ECHO_N "(cached) $ECHO_C" >&6
21042
cat >conftest.$ac_ext <<_ACEOF
21045
cat confdefs.h >>conftest.$ac_ext
21046
cat >>conftest.$ac_ext <<_ACEOF
21047
/* end confdefs.h. */
21052
/* FIXME: Include the comments suggested by Paul. */
21053
#ifndef __cplusplus
21054
/* Ultrix mips cc rejects this. */
21055
typedef int charset[2];
21057
/* SunOS 4.1.1 cc rejects this. */
21058
char const *const *ccp;
21060
/* NEC SVR4.0.2 mips cc rejects this. */
21061
struct point {int x, y;};
21062
static struct point const zero = {0,0};
21063
/* AIX XL C 1.02.0.0 rejects this.
21064
It does not let you subtract one const X* pointer from another in
21065
an arm of an if-expression whose if-part is not a constant
21067
const char *g = "string";
21068
ccp = &g + (g ? g-g : 0);
21069
/* HPUX 7.0 cc rejects these. */
21072
ccp = (char const *const *) p;
21073
{ /* SCO 3.2v4 cc rejects this. */
21075
char const *s = 0 ? (char *) 0 : (char const *) 0;
21079
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21080
int x[] = {25, 17};
21081
const int *foo = &x[0];
21084
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21085
typedef const int *iptr;
21089
{ /* AIX XL C 1.02.0.0 rejects this saying
21090
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21091
struct s { int j; const int *ap[3]; };
21092
struct s *b; b->j = 5;
21094
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21095
const int foo = 10;
21103
rm -f conftest.$ac_objext
21104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21105
(eval $ac_compile) 2>conftest.er1
21107
grep -v '^ *+' conftest.er1 >conftest.err
21109
cat conftest.err >&5
21110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111
(exit $ac_status); } &&
21112
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114
(eval $ac_try) 2>&5
21116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
(exit $ac_status); }; } &&
21118
{ ac_try='test -s conftest.$ac_objext'
21119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120
(eval $ac_try) 2>&5
21122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123
(exit $ac_status); }; }; then
21126
echo "$as_me: failed program was:" >&5
21127
sed 's/^/| /' conftest.$ac_ext >&5
21131
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21133
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21134
echo "${ECHO_T}$ac_cv_c_const" >&6
21135
if test $ac_cv_c_const = no; then
21137
cat >>confdefs.h <<\_ACEOF
21145
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21146
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21147
if test "${ac_cv_type_signal+set}" = set; then
21148
echo $ECHO_N "(cached) $ECHO_C" >&6
21150
cat >conftest.$ac_ext <<_ACEOF
21153
cat confdefs.h >>conftest.$ac_ext
21154
cat >>conftest.$ac_ext <<_ACEOF
21155
/* end confdefs.h. */
21156
#include <sys/types.h>
21157
#include <signal.h>
21162
extern "C" void (*signal (int, void (*)(int)))(int);
21164
void (*signal ()) ();
21175
rm -f conftest.$ac_objext
21176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21177
(eval $ac_compile) 2>conftest.er1
21179
grep -v '^ *+' conftest.er1 >conftest.err
21181
cat conftest.err >&5
21182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183
(exit $ac_status); } &&
21184
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186
(eval $ac_try) 2>&5
21188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189
(exit $ac_status); }; } &&
21190
{ ac_try='test -s conftest.$ac_objext'
21191
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192
(eval $ac_try) 2>&5
21194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195
(exit $ac_status); }; }; then
21196
ac_cv_type_signal=void
21198
echo "$as_me: failed program was:" >&5
21199
sed 's/^/| /' conftest.$ac_ext >&5
21201
ac_cv_type_signal=int
21203
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21205
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21206
echo "${ECHO_T}$ac_cv_type_signal" >&6
21208
cat >>confdefs.h <<_ACEOF
21209
#define RETSIGTYPE $ac_cv_type_signal
21219
# until we fix it, leave it disabled
21222
if test "$ac_cv_c_compiler_gnu" = yes; then
21224
# gcc-3.4 complains about some of our stuff without this
21225
NOSTRICTALIASING="-fno-strict-aliasing"
21228
case "$host_cpu" in
21233
if test "$host_os" != "linux" -a "$host_os" != "linux-gnu" ; then
21237
if test $x86 = 1; then
21239
cat >>confdefs.h <<\_ACEOF
21245
echo "$as_me:$LINENO: checking whether gcc supports MMX(tm) inline asm" >&5
21246
echo $ECHO_N "checking whether gcc supports MMX(tm) inline asm... $ECHO_C" >&6
21247
if test "${ac_cv_c_inline_mmx+set}" = set; then
21248
echo $ECHO_N "(cached) $ECHO_C" >&6
21250
cat >conftest.$ac_ext <<_ACEOF
21253
cat confdefs.h >>conftest.$ac_ext
21254
cat >>conftest.$ac_ext <<_ACEOF
21255
/* end confdefs.h. */
21260
asm ("movq %mm0, %mm1");
21265
rm -f conftest.$ac_objext conftest$ac_exeext
21266
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21267
(eval $ac_link) 2>conftest.er1
21269
grep -v '^ *+' conftest.er1 >conftest.err
21271
cat conftest.err >&5
21272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273
(exit $ac_status); } &&
21274
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21275
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21276
(eval $ac_try) 2>&5
21278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279
(exit $ac_status); }; } &&
21280
{ ac_try='test -s conftest$ac_exeext'
21281
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282
(eval $ac_try) 2>&5
21284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285
(exit $ac_status); }; }; then
21286
ac_cv_c_inline_mmx=yes
21288
echo "$as_me: failed program was:" >&5
21289
sed 's/^/| /' conftest.$ac_ext >&5
21291
ac_cv_c_inline_mmx=no
21293
rm -f conftest.err conftest.$ac_objext \
21294
conftest$ac_exeext conftest.$ac_ext
21296
echo "$as_me:$LINENO: result: $ac_cv_c_inline_mmx" >&5
21297
echo "${ECHO_T}$ac_cv_c_inline_mmx" >&6
21299
if test "x$ac_cv_c_inline_mmx" = xyes; then
21301
cat >>confdefs.h <<\_ACEOF
21302
#define ASM_X86_MMX 1
21312
# Extract the first word of "pkg-config", so it can be a program name with args.
21313
set dummy pkg-config; ac_word=$2
21314
echo "$as_me:$LINENO: checking for $ac_word" >&5
21315
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21316
if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
21317
echo $ECHO_N "(cached) $ECHO_C" >&6
21319
if test -n "$PKGCONFIG"; then
21320
ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
21322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21323
for as_dir in $PATH
21326
test -z "$as_dir" && as_dir=.
21327
for ac_exec_ext in '' $ac_executable_extensions; do
21328
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21329
ac_cv_prog_PKGCONFIG="pkg-config"
21330
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21338
PKGCONFIG=$ac_cv_prog_PKGCONFIG
21339
if test -n "$PKGCONFIG"; then
21340
echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
21341
echo "${ECHO_T}$PKGCONFIG" >&6
21343
echo "$as_me:$LINENO: result: no" >&5
21344
echo "${ECHO_T}no" >&6
21356
echo "$as_me:$LINENO: checking for gettext" >&5
21357
echo $ECHO_N "checking for gettext... $ECHO_C" >&6
21358
if test "${ac_cv_func_gettext+set}" = set; then
21359
echo $ECHO_N "(cached) $ECHO_C" >&6
21361
cat >conftest.$ac_ext <<_ACEOF
21364
cat confdefs.h >>conftest.$ac_ext
21365
cat >>conftest.$ac_ext <<_ACEOF
21366
/* end confdefs.h. */
21367
/* Define gettext to an innocuous variant, in case <limits.h> declares gettext.
21368
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369
#define gettext innocuous_gettext
21371
/* System header to define __stub macros and hopefully few prototypes,
21372
which can conflict with char gettext (); below.
21373
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374
<limits.h> exists even on freestanding compilers. */
21377
# include <limits.h>
21379
# include <assert.h>
21384
/* Override any gcc2 internal prototype to avoid an error. */
21389
/* We use char because int might match the return type of a gcc2
21390
builtin and then its argument prototype would still apply. */
21392
/* The GNU C library defines this for functions which it implements
21393
to always fail with ENOSYS. Some functions are actually named
21394
something starting with __ and the normal name is an alias. */
21395
#if defined (__stub_gettext) || defined (__stub___gettext)
21398
char (*f) () = gettext;
21407
return f != gettext;
21412
rm -f conftest.$ac_objext conftest$ac_exeext
21413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414
(eval $ac_link) 2>conftest.er1
21416
grep -v '^ *+' conftest.er1 >conftest.err
21418
cat conftest.err >&5
21419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420
(exit $ac_status); } &&
21421
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423
(eval $ac_try) 2>&5
21425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426
(exit $ac_status); }; } &&
21427
{ ac_try='test -s conftest$ac_exeext'
21428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429
(eval $ac_try) 2>&5
21431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432
(exit $ac_status); }; }; then
21433
ac_cv_func_gettext=yes
21435
echo "$as_me: failed program was:" >&5
21436
sed 's/^/| /' conftest.$ac_ext >&5
21438
ac_cv_func_gettext=no
21440
rm -f conftest.err conftest.$ac_objext \
21441
conftest$ac_exeext conftest.$ac_ext
21443
echo "$as_me:$LINENO: result: $ac_cv_func_gettext" >&5
21444
echo "${ECHO_T}$ac_cv_func_gettext" >&6
21445
if test $ac_cv_func_gettext = yes; then
21448
echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
21449
echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
21450
if test "${ac_cv_lib_intl_gettext+set}" = set; then
21451
echo $ECHO_N "(cached) $ECHO_C" >&6
21453
ac_check_lib_save_LIBS=$LIBS
21454
LIBS="-lintl $LIBS"
21455
cat >conftest.$ac_ext <<_ACEOF
21458
cat confdefs.h >>conftest.$ac_ext
21459
cat >>conftest.$ac_ext <<_ACEOF
21460
/* end confdefs.h. */
21462
/* Override any gcc2 internal prototype to avoid an error. */
21466
/* We use char because int might match the return type of a gcc2
21467
builtin and then its argument prototype would still apply. */
21477
rm -f conftest.$ac_objext conftest$ac_exeext
21478
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21479
(eval $ac_link) 2>conftest.er1
21481
grep -v '^ *+' conftest.er1 >conftest.err
21483
cat conftest.err >&5
21484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485
(exit $ac_status); } &&
21486
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488
(eval $ac_try) 2>&5
21490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491
(exit $ac_status); }; } &&
21492
{ ac_try='test -s conftest$ac_exeext'
21493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494
(eval $ac_try) 2>&5
21496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497
(exit $ac_status); }; }; then
21498
ac_cv_lib_intl_gettext=yes
21500
echo "$as_me: failed program was:" >&5
21501
sed 's/^/| /' conftest.$ac_ext >&5
21503
ac_cv_lib_intl_gettext=no
21505
rm -f conftest.err conftest.$ac_objext \
21506
conftest$ac_exeext conftest.$ac_ext
21507
LIBS=$ac_check_lib_save_LIBS
21509
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
21510
echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
21511
if test $ac_cv_lib_intl_gettext = yes; then
21512
INTLIBS="-lintl" HAVEGETTEXT="yes"
21520
# Extract the first word of "xgettext", so it can be a program name with args.
21521
set dummy xgettext; ac_word=$2
21522
echo "$as_me:$LINENO: checking for $ac_word" >&5
21523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21524
if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21525
echo $ECHO_N "(cached) $ECHO_C" >&6
21527
if test -n "$XGETTEXT"; then
21528
ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21531
for as_dir in $PATH
21534
test -z "$as_dir" && as_dir=.
21535
for ac_exec_ext in '' $ac_executable_extensions; do
21536
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21537
ac_cv_prog_XGETTEXT="xgettext"
21538
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21546
XGETTEXT=$ac_cv_prog_XGETTEXT
21547
if test -n "$XGETTEXT"; then
21548
echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21549
echo "${ECHO_T}$XGETTEXT" >&6
21551
echo "$as_me:$LINENO: result: no" >&5
21552
echo "${ECHO_T}no" >&6
21556
if test "$XGETTEXT" != ""; then
21557
if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
21558
echo "xgettext isn't GNU version"
21563
if test "$LINGUAS" != ""; then
21564
if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
21566
cat >>confdefs.h <<\_ACEOF
21571
# if test "$LINGUAS" = ""; then
21572
# ling=` (cd src/po; /bin/ls *.po) `
21573
# for l in $ling; do
21574
# lcode=`basename $l .po`
21575
# LINGUAS="$LINGUAS $lcode"
21578
echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
21582
echo "xgettext and libintl.a don't both exist; will not build i18n support"
21593
supported_locales="be bg bs ca cs da de el es et fi fr gl hr hu it ja ko ms nl no pl pt ro ru sk sv tr zh_CN zh_TW.Big5"
21594
supported_wprefs_locales="bg ca cs de es et fi fr hr hu it ja ko pt ru sk zh_CN zh_TW.Big5"
21595
supported_wings_locales="bg ca cs de fr sk"
21597
for lang in $LINGUAS; do
21599
for l in $supported_locales; do
21600
if test "$l" = "$lang"; then
21605
if test "$ok" = 1; then
21606
MOFILES="$MOFILES $lang.mo"
21608
echo "Locale $lang is not supported."
21611
for l in $supported_wprefs_locales; do
21612
if test "$l" = "$lang"; then
21617
if test "$ok" = 1; then
21618
WPMOFILES="$WPMOFILES $lang.mo"
21621
for l in $supported_wings_locales; do
21622
if test "$l" = "$lang"; then
21627
if test "$ok" = 1; then
21628
WINGSMOFILES="$WINGSMOFILES $lang.mo"
21636
echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
21637
echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
21638
if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
21639
echo $ECHO_N "(cached) $ECHO_C" >&6
21641
ac_check_lib_save_LIBS=$LIBS
21642
LIBS="-lxpg4 $LIBS"
21643
cat >conftest.$ac_ext <<_ACEOF
21646
cat confdefs.h >>conftest.$ac_ext
21647
cat >>conftest.$ac_ext <<_ACEOF
21648
/* end confdefs.h. */
21650
/* Override any gcc2 internal prototype to avoid an error. */
21654
/* We use char because int might match the return type of a gcc2
21655
builtin and then its argument prototype would still apply. */
21665
rm -f conftest.$ac_objext conftest$ac_exeext
21666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21667
(eval $ac_link) 2>conftest.er1
21669
grep -v '^ *+' conftest.er1 >conftest.err
21671
cat conftest.err >&5
21672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673
(exit $ac_status); } &&
21674
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676
(eval $ac_try) 2>&5
21678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679
(exit $ac_status); }; } &&
21680
{ ac_try='test -s conftest$ac_exeext'
21681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682
(eval $ac_try) 2>&5
21684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685
(exit $ac_status); }; }; then
21686
ac_cv_lib_xpg4_setlocale=yes
21688
echo "$as_me: failed program was:" >&5
21689
sed 's/^/| /' conftest.$ac_ext >&5
21691
ac_cv_lib_xpg4_setlocale=no
21693
rm -f conftest.err conftest.$ac_objext \
21694
conftest$ac_exeext conftest.$ac_ext
21695
LIBS=$ac_check_lib_save_LIBS
21697
echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
21698
echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
21699
if test $ac_cv_lib_xpg4_setlocale = yes; then
21700
LIBS="$LIBS -lxpg4"
21710
# Check whether --with-nlsdir or --without-nlsdir was given.
21711
if test "${with_nlsdir+set}" = set; then
21712
withval="$with_nlsdir"
21717
if test "x$NLSDIR" = "x"; then
21718
if test "x$with_nlsdir" != "x"; then
21719
NLSDIR=$with_nlsdir
21721
NLSDIR='$(prefix)/lib/locale'
21741
# Check whether --enable-lite or --disable-lite was given.
21742
if test "${enable_lite+set}" = set; then
21743
enableval="$enable_lite"
21744
if test x$enableval = xyes; then
21747
cat >>confdefs.h <<\_ACEOF
21760
echo "$as_me:$LINENO: checking for connect" >&5
21761
echo $ECHO_N "checking for connect... $ECHO_C" >&6
21762
if test "${ac_cv_func_connect+set}" = set; then
21763
echo $ECHO_N "(cached) $ECHO_C" >&6
21765
cat >conftest.$ac_ext <<_ACEOF
21768
cat confdefs.h >>conftest.$ac_ext
21769
cat >>conftest.$ac_ext <<_ACEOF
21770
/* end confdefs.h. */
21771
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
21772
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21773
#define connect innocuous_connect
21775
/* System header to define __stub macros and hopefully few prototypes,
21776
which can conflict with char connect (); below.
21777
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21778
<limits.h> exists even on freestanding compilers. */
21781
# include <limits.h>
21783
# include <assert.h>
21788
/* Override any gcc2 internal prototype to avoid an error. */
21793
/* We use char because int might match the return type of a gcc2
21794
builtin and then its argument prototype would still apply. */
21796
/* The GNU C library defines this for functions which it implements
21797
to always fail with ENOSYS. Some functions are actually named
21798
something starting with __ and the normal name is an alias. */
21799
#if defined (__stub_connect) || defined (__stub___connect)
21802
char (*f) () = connect;
21811
return f != connect;
21816
rm -f conftest.$ac_objext conftest$ac_exeext
21817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21818
(eval $ac_link) 2>conftest.er1
21820
grep -v '^ *+' conftest.er1 >conftest.err
21822
cat conftest.err >&5
21823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824
(exit $ac_status); } &&
21825
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21827
(eval $ac_try) 2>&5
21829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830
(exit $ac_status); }; } &&
21831
{ ac_try='test -s conftest$ac_exeext'
21832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833
(eval $ac_try) 2>&5
21835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836
(exit $ac_status); }; }; then
21837
ac_cv_func_connect=yes
21839
echo "$as_me: failed program was:" >&5
21840
sed 's/^/| /' conftest.$ac_ext >&5
21842
ac_cv_func_connect=no
21844
rm -f conftest.err conftest.$ac_objext \
21845
conftest$ac_exeext conftest.$ac_ext
21847
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21848
echo "${ECHO_T}$ac_cv_func_connect" >&6
21849
if test $ac_cv_func_connect = yes; then
21852
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21853
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21854
if test "${ac_cv_lib_socket_connect+set}" = set; then
21855
echo $ECHO_N "(cached) $ECHO_C" >&6
21857
ac_check_lib_save_LIBS=$LIBS
21858
LIBS="-lsocket $LIBS"
21859
cat >conftest.$ac_ext <<_ACEOF
21862
cat confdefs.h >>conftest.$ac_ext
21863
cat >>conftest.$ac_ext <<_ACEOF
21864
/* end confdefs.h. */
21866
/* Override any gcc2 internal prototype to avoid an error. */
21870
/* We use char because int might match the return type of a gcc2
21871
builtin and then its argument prototype would still apply. */
21881
rm -f conftest.$ac_objext conftest$ac_exeext
21882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21883
(eval $ac_link) 2>conftest.er1
21885
grep -v '^ *+' conftest.er1 >conftest.err
21887
cat conftest.err >&5
21888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889
(exit $ac_status); } &&
21890
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21891
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892
(eval $ac_try) 2>&5
21894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895
(exit $ac_status); }; } &&
21896
{ ac_try='test -s conftest$ac_exeext'
21897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898
(eval $ac_try) 2>&5
21900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901
(exit $ac_status); }; }; then
21902
ac_cv_lib_socket_connect=yes
21904
echo "$as_me: failed program was:" >&5
21905
sed 's/^/| /' conftest.$ac_ext >&5
21907
ac_cv_lib_socket_connect=no
21909
rm -f conftest.err conftest.$ac_objext \
21910
conftest$ac_exeext conftest.$ac_ext
21911
LIBS=$ac_check_lib_save_LIBS
21913
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21914
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21915
if test $ac_cv_lib_socket_connect = yes; then
21916
NETLIBS="$NETLIBS -lsocket"
21922
echo "$as_me:$LINENO: checking for gethostbyname" >&5
21923
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21924
if test "${ac_cv_func_gethostbyname+set}" = set; then
21925
echo $ECHO_N "(cached) $ECHO_C" >&6
21927
cat >conftest.$ac_ext <<_ACEOF
21930
cat confdefs.h >>conftest.$ac_ext
21931
cat >>conftest.$ac_ext <<_ACEOF
21932
/* end confdefs.h. */
21933
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21934
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21935
#define gethostbyname innocuous_gethostbyname
21937
/* System header to define __stub macros and hopefully few prototypes,
21938
which can conflict with char gethostbyname (); below.
21939
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21940
<limits.h> exists even on freestanding compilers. */
21943
# include <limits.h>
21945
# include <assert.h>
21948
#undef gethostbyname
21950
/* Override any gcc2 internal prototype to avoid an error. */
21955
/* We use char because int might match the return type of a gcc2
21956
builtin and then its argument prototype would still apply. */
21957
char gethostbyname ();
21958
/* The GNU C library defines this for functions which it implements
21959
to always fail with ENOSYS. Some functions are actually named
21960
something starting with __ and the normal name is an alias. */
21961
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21964
char (*f) () = gethostbyname;
21973
return f != gethostbyname;
21978
rm -f conftest.$ac_objext conftest$ac_exeext
21979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21980
(eval $ac_link) 2>conftest.er1
21982
grep -v '^ *+' conftest.er1 >conftest.err
21984
cat conftest.err >&5
21985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986
(exit $ac_status); } &&
21987
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21988
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21989
(eval $ac_try) 2>&5
21991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992
(exit $ac_status); }; } &&
21993
{ ac_try='test -s conftest$ac_exeext'
21994
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995
(eval $ac_try) 2>&5
21997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998
(exit $ac_status); }; }; then
21999
ac_cv_func_gethostbyname=yes
22001
echo "$as_me: failed program was:" >&5
22002
sed 's/^/| /' conftest.$ac_ext >&5
22004
ac_cv_func_gethostbyname=no
22006
rm -f conftest.err conftest.$ac_objext \
22007
conftest$ac_exeext conftest.$ac_ext
22009
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22010
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22011
if test $ac_cv_func_gethostbyname = yes; then
22014
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22015
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22016
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22017
echo $ECHO_N "(cached) $ECHO_C" >&6
22019
ac_check_lib_save_LIBS=$LIBS
22021
cat >conftest.$ac_ext <<_ACEOF
22024
cat confdefs.h >>conftest.$ac_ext
22025
cat >>conftest.$ac_ext <<_ACEOF
22026
/* end confdefs.h. */
22028
/* Override any gcc2 internal prototype to avoid an error. */
22032
/* We use char because int might match the return type of a gcc2
22033
builtin and then its argument prototype would still apply. */
22034
char gethostbyname ();
22043
rm -f conftest.$ac_objext conftest$ac_exeext
22044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22045
(eval $ac_link) 2>conftest.er1
22047
grep -v '^ *+' conftest.er1 >conftest.err
22049
cat conftest.err >&5
22050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051
(exit $ac_status); } &&
22052
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054
(eval $ac_try) 2>&5
22056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057
(exit $ac_status); }; } &&
22058
{ ac_try='test -s conftest$ac_exeext'
22059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060
(eval $ac_try) 2>&5
22062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063
(exit $ac_status); }; }; then
22064
ac_cv_lib_nsl_gethostbyname=yes
22066
echo "$as_me: failed program was:" >&5
22067
sed 's/^/| /' conftest.$ac_ext >&5
22069
ac_cv_lib_nsl_gethostbyname=no
22071
rm -f conftest.err conftest.$ac_objext \
22072
conftest$ac_exeext conftest.$ac_ext
22073
LIBS=$ac_check_lib_save_LIBS
22075
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22076
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22077
if test $ac_cv_lib_nsl_gethostbyname = yes; then
22078
NETLIBS="$NETLIBS -lnsl"
22084
echo "$as_me:$LINENO: checking for inet_aton" >&5
22085
echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
22086
if test "${ac_cv_func_inet_aton+set}" = set; then
22087
echo $ECHO_N "(cached) $ECHO_C" >&6
22089
cat >conftest.$ac_ext <<_ACEOF
22092
cat confdefs.h >>conftest.$ac_ext
22093
cat >>conftest.$ac_ext <<_ACEOF
22094
/* end confdefs.h. */
22095
/* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
22096
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22097
#define inet_aton innocuous_inet_aton
22099
/* System header to define __stub macros and hopefully few prototypes,
22100
which can conflict with char inet_aton (); below.
22101
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22102
<limits.h> exists even on freestanding compilers. */
22105
# include <limits.h>
22107
# include <assert.h>
22112
/* Override any gcc2 internal prototype to avoid an error. */
22117
/* We use char because int might match the return type of a gcc2
22118
builtin and then its argument prototype would still apply. */
22120
/* The GNU C library defines this for functions which it implements
22121
to always fail with ENOSYS. Some functions are actually named
22122
something starting with __ and the normal name is an alias. */
22123
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
22126
char (*f) () = inet_aton;
22135
return f != inet_aton;
22140
rm -f conftest.$ac_objext conftest$ac_exeext
22141
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22142
(eval $ac_link) 2>conftest.er1
22144
grep -v '^ *+' conftest.er1 >conftest.err
22146
cat conftest.err >&5
22147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148
(exit $ac_status); } &&
22149
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151
(eval $ac_try) 2>&5
22153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154
(exit $ac_status); }; } &&
22155
{ ac_try='test -s conftest$ac_exeext'
22156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157
(eval $ac_try) 2>&5
22159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160
(exit $ac_status); }; }; then
22161
ac_cv_func_inet_aton=yes
22163
echo "$as_me: failed program was:" >&5
22164
sed 's/^/| /' conftest.$ac_ext >&5
22166
ac_cv_func_inet_aton=no
22168
rm -f conftest.err conftest.$ac_objext \
22169
conftest$ac_exeext conftest.$ac_ext
22171
echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
22172
echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
22173
if test $ac_cv_func_inet_aton = yes; then
22175
cat >>confdefs.h <<\_ACEOF
22176
#define HAVE_INET_ATON 1
22180
for lib in resolv socket inet bsd; do
22181
as_ac_Lib=`echo "ac_cv_lib_$lib''_inet_aton" | $as_tr_sh`
22182
echo "$as_me:$LINENO: checking for inet_aton in -l$lib" >&5
22183
echo $ECHO_N "checking for inet_aton in -l$lib... $ECHO_C" >&6
22184
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
22185
echo $ECHO_N "(cached) $ECHO_C" >&6
22187
ac_check_lib_save_LIBS=$LIBS
22188
LIBS="-l$lib $NETLIBS $LIBS"
22189
cat >conftest.$ac_ext <<_ACEOF
22192
cat confdefs.h >>conftest.$ac_ext
22193
cat >>conftest.$ac_ext <<_ACEOF
22194
/* end confdefs.h. */
22196
/* Override any gcc2 internal prototype to avoid an error. */
22200
/* We use char because int might match the return type of a gcc2
22201
builtin and then its argument prototype would still apply. */
22211
rm -f conftest.$ac_objext conftest$ac_exeext
22212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22213
(eval $ac_link) 2>conftest.er1
22215
grep -v '^ *+' conftest.er1 >conftest.err
22217
cat conftest.err >&5
22218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219
(exit $ac_status); } &&
22220
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222
(eval $ac_try) 2>&5
22224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225
(exit $ac_status); }; } &&
22226
{ ac_try='test -s conftest$ac_exeext'
22227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228
(eval $ac_try) 2>&5
22230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231
(exit $ac_status); }; }; then
22232
eval "$as_ac_Lib=yes"
22234
echo "$as_me: failed program was:" >&5
22235
sed 's/^/| /' conftest.$ac_ext >&5
22237
eval "$as_ac_Lib=no"
22239
rm -f conftest.err conftest.$ac_objext \
22240
conftest$ac_exeext conftest.$ac_ext
22241
LIBS=$ac_check_lib_save_LIBS
22243
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
22244
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
22245
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
22246
cat >>confdefs.h <<\_ACEOF
22247
#define HAVE_INET_ATON 1
22250
NETLIBS="$NETLIBS -l$lib"; break
22262
if test "x$ac_path_x_has_been_run" != xyes; then
22263
echo "$as_me:$LINENO: checking for X" >&5
22264
echo $ECHO_N "checking for X... $ECHO_C" >&6
22266
ac_path_x_has_been_run=yes
22268
# Check whether --with-x or --without-x was given.
22269
if test "${with_x+set}" = set; then
22273
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22274
if test "x$with_x" = xno; then
22275
# The user explicitly disabled X.
22278
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22279
# Both variables are already set.
22282
if test "${ac_cv_have_x+set}" = set; then
22283
echo $ECHO_N "(cached) $ECHO_C" >&6
22285
# One or both of the vars are not set, and there is no cached value.
22286
ac_x_includes=no ac_x_libraries=no
22287
rm -fr conftest.dir
22288
if mkdir conftest.dir; then
22290
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
22291
cat >Imakefile <<'_ACEOF'
22293
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22295
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22296
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22297
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22298
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22299
for ac_extension in a so sl; do
22300
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22301
test -f $ac_im_libdir/libX11.$ac_extension; then
22302
ac_im_usrlibdir=$ac_im_libdir; break
22305
# Screen out bogus values from the imake configuration. They are
22306
# bogus both because they are the default anyway, and because
22307
# using them would break gcc on systems where it needs fixed includes.
22308
case $ac_im_incroot in
22310
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22312
case $ac_im_usrlibdir in
22313
/usr/lib | /lib) ;;
22314
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22318
rm -fr conftest.dir
22321
# Standard set of common directories for X headers.
22322
# Check X11 before X11Rn because it is often a symlink to the current release.
22334
/usr/local/X11/include
22335
/usr/local/X11R6/include
22336
/usr/local/X11R5/include
22337
/usr/local/X11R4/include
22339
/usr/local/include/X11
22340
/usr/local/include/X11R6
22341
/usr/local/include/X11R5
22342
/usr/local/include/X11R4
22346
/usr/XFree86/include/X11
22350
/usr/unsupported/include
22351
/usr/athena/include
22352
/usr/local/x11r5/include
22353
/usr/lpp/Xamples/include
22355
/usr/openwin/include
22356
/usr/openwin/share/include'
22358
if test "$ac_x_includes" = no; then
22359
# Guess where to find include files, by looking for a specified header file.
22360
# First, try using that file with no special directory specified.
22361
cat >conftest.$ac_ext <<_ACEOF
22364
cat confdefs.h >>conftest.$ac_ext
22365
cat >>conftest.$ac_ext <<_ACEOF
22366
/* end confdefs.h. */
22367
#include <X11/Intrinsic.h>
22369
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22370
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22372
grep -v '^ *+' conftest.er1 >conftest.err
22374
cat conftest.err >&5
22375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376
(exit $ac_status); } >/dev/null; then
22377
if test -s conftest.err; then
22378
ac_cpp_err=$ac_c_preproc_warn_flag
22379
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22386
if test -z "$ac_cpp_err"; then
22387
# We can compile using X headers with no special include directory.
22390
echo "$as_me: failed program was:" >&5
22391
sed 's/^/| /' conftest.$ac_ext >&5
22393
for ac_dir in $ac_x_header_dirs; do
22394
if test -r "$ac_dir/X11/Intrinsic.h"; then
22395
ac_x_includes=$ac_dir
22400
rm -f conftest.err conftest.$ac_ext
22401
fi # $ac_x_includes = no
22403
if test "$ac_x_libraries" = no; then
22404
# Check for the libraries.
22405
# See if we find them without any special options.
22406
# Don't add to $LIBS permanently.
22409
cat >conftest.$ac_ext <<_ACEOF
22412
cat confdefs.h >>conftest.$ac_ext
22413
cat >>conftest.$ac_ext <<_ACEOF
22414
/* end confdefs.h. */
22415
#include <X11/Intrinsic.h>
22424
rm -f conftest.$ac_objext conftest$ac_exeext
22425
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22426
(eval $ac_link) 2>conftest.er1
22428
grep -v '^ *+' conftest.er1 >conftest.err
22430
cat conftest.err >&5
22431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432
(exit $ac_status); } &&
22433
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22434
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435
(eval $ac_try) 2>&5
22437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438
(exit $ac_status); }; } &&
22439
{ ac_try='test -s conftest$ac_exeext'
22440
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441
(eval $ac_try) 2>&5
22443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444
(exit $ac_status); }; }; then
22446
# We can link X programs with no special library path.
22449
echo "$as_me: failed program was:" >&5
22450
sed 's/^/| /' conftest.$ac_ext >&5
22453
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22455
# Don't even attempt the hair of trying to link an X program!
22456
for ac_extension in a so sl; do
22457
if test -r $ac_dir/libXt.$ac_extension; then
22458
ac_x_libraries=$ac_dir
22464
rm -f conftest.err conftest.$ac_objext \
22465
conftest$ac_exeext conftest.$ac_ext
22466
fi # $ac_x_libraries = no
22468
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22469
# Didn't find X anywhere. Cache the known absence of X.
22470
ac_cv_have_x="have_x=no"
22472
# Record where we found X for the cache.
22473
ac_cv_have_x="have_x=yes \
22474
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22479
eval "$ac_cv_have_x"
22482
if test "$have_x" != yes; then
22483
echo "$as_me:$LINENO: result: $have_x" >&5
22484
echo "${ECHO_T}$have_x" >&6
22487
# If each of the values was on the command line, it overrides each guess.
22488
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22489
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22490
# Update the cache value to reflect the command line values.
22491
ac_cv_have_x="have_x=yes \
22492
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22493
# It might be that x_includes is empty (headers are found in the
22494
# standard search path. Then output the corresponding message
22495
ac_out_x_includes=$x_includes
22496
test "x$x_includes" = x && ac_out_x_includes="in standard search path"
22497
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
22498
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
22502
if test "$no_x" = yes; then
22503
# Not all programs may use this symbol, but it does not hurt to define it.
22505
cat >>confdefs.h <<\_ACEOF
22506
#define X_DISPLAY_MISSING 1
22509
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22511
if test -n "$x_includes"; then
22512
X_CFLAGS="$X_CFLAGS -I$x_includes"
22515
# It would also be nice to do this for all -L options, not just this one.
22516
if test -n "$x_libraries"; then
22517
X_LIBS="$X_LIBS -L$x_libraries"
22518
# For Solaris; some versions of Sun CC require a space after -R and
22519
# others require no space. Words are not sufficient . . . .
22520
case `(uname -sr) 2>/dev/null` in
22522
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22523
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22524
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22525
cat >conftest.$ac_ext <<_ACEOF
22528
cat confdefs.h >>conftest.$ac_ext
22529
cat >>conftest.$ac_ext <<_ACEOF
22530
/* end confdefs.h. */
22540
rm -f conftest.$ac_objext conftest$ac_exeext
22541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22542
(eval $ac_link) 2>conftest.er1
22544
grep -v '^ *+' conftest.er1 >conftest.err
22546
cat conftest.err >&5
22547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548
(exit $ac_status); } &&
22549
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551
(eval $ac_try) 2>&5
22553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554
(exit $ac_status); }; } &&
22555
{ ac_try='test -s conftest$ac_exeext'
22556
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557
(eval $ac_try) 2>&5
22559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560
(exit $ac_status); }; }; then
22563
echo "$as_me: failed program was:" >&5
22564
sed 's/^/| /' conftest.$ac_ext >&5
22568
rm -f conftest.err conftest.$ac_objext \
22569
conftest$ac_exeext conftest.$ac_ext
22570
if test $ac_R_nospace = yes; then
22571
echo "$as_me:$LINENO: result: no" >&5
22572
echo "${ECHO_T}no" >&6
22573
X_LIBS="$X_LIBS -R$x_libraries"
22575
LIBS="$ac_xsave_LIBS -R $x_libraries"
22576
cat >conftest.$ac_ext <<_ACEOF
22579
cat confdefs.h >>conftest.$ac_ext
22580
cat >>conftest.$ac_ext <<_ACEOF
22581
/* end confdefs.h. */
22591
rm -f conftest.$ac_objext conftest$ac_exeext
22592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22593
(eval $ac_link) 2>conftest.er1
22595
grep -v '^ *+' conftest.er1 >conftest.err
22597
cat conftest.err >&5
22598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599
(exit $ac_status); } &&
22600
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602
(eval $ac_try) 2>&5
22604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605
(exit $ac_status); }; } &&
22606
{ ac_try='test -s conftest$ac_exeext'
22607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608
(eval $ac_try) 2>&5
22610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611
(exit $ac_status); }; }; then
22614
echo "$as_me: failed program was:" >&5
22615
sed 's/^/| /' conftest.$ac_ext >&5
22619
rm -f conftest.err conftest.$ac_objext \
22620
conftest$ac_exeext conftest.$ac_ext
22621
if test $ac_R_space = yes; then
22622
echo "$as_me:$LINENO: result: yes" >&5
22623
echo "${ECHO_T}yes" >&6
22624
X_LIBS="$X_LIBS -R $x_libraries"
22626
echo "$as_me:$LINENO: result: neither works" >&5
22627
echo "${ECHO_T}neither works" >&6
22630
LIBS=$ac_xsave_LIBS
22634
# Check for system-dependent libraries X programs must link with.
22635
# Do this before checking for the system-independent R6 libraries
22636
# (-lICE), since we may need -lsocket or whatever for X linking.
22638
if test "$ISC" = yes; then
22639
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22641
# Martyn Johnson says this is needed for Ultrix, if the X
22642
# libraries were built with DECnet support. And Karl Berry says
22643
# the Alpha needs dnet_stub (dnet does not exist).
22644
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22645
cat >conftest.$ac_ext <<_ACEOF
22648
cat confdefs.h >>conftest.$ac_ext
22649
cat >>conftest.$ac_ext <<_ACEOF
22650
/* end confdefs.h. */
22652
/* Override any gcc2 internal prototype to avoid an error. */
22656
/* We use char because int might match the return type of a gcc2
22657
builtin and then its argument prototype would still apply. */
22658
char XOpenDisplay ();
22667
rm -f conftest.$ac_objext conftest$ac_exeext
22668
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22669
(eval $ac_link) 2>conftest.er1
22671
grep -v '^ *+' conftest.er1 >conftest.err
22673
cat conftest.err >&5
22674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675
(exit $ac_status); } &&
22676
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678
(eval $ac_try) 2>&5
22680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681
(exit $ac_status); }; } &&
22682
{ ac_try='test -s conftest$ac_exeext'
22683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684
(eval $ac_try) 2>&5
22686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687
(exit $ac_status); }; }; then
22690
echo "$as_me: failed program was:" >&5
22691
sed 's/^/| /' conftest.$ac_ext >&5
22693
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22694
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22695
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22696
echo $ECHO_N "(cached) $ECHO_C" >&6
22698
ac_check_lib_save_LIBS=$LIBS
22699
LIBS="-ldnet $LIBS"
22700
cat >conftest.$ac_ext <<_ACEOF
22703
cat confdefs.h >>conftest.$ac_ext
22704
cat >>conftest.$ac_ext <<_ACEOF
22705
/* end confdefs.h. */
22707
/* Override any gcc2 internal prototype to avoid an error. */
22711
/* We use char because int might match the return type of a gcc2
22712
builtin and then its argument prototype would still apply. */
22722
rm -f conftest.$ac_objext conftest$ac_exeext
22723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22724
(eval $ac_link) 2>conftest.er1
22726
grep -v '^ *+' conftest.er1 >conftest.err
22728
cat conftest.err >&5
22729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730
(exit $ac_status); } &&
22731
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733
(eval $ac_try) 2>&5
22735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736
(exit $ac_status); }; } &&
22737
{ ac_try='test -s conftest$ac_exeext'
22738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739
(eval $ac_try) 2>&5
22741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742
(exit $ac_status); }; }; then
22743
ac_cv_lib_dnet_dnet_ntoa=yes
22745
echo "$as_me: failed program was:" >&5
22746
sed 's/^/| /' conftest.$ac_ext >&5
22748
ac_cv_lib_dnet_dnet_ntoa=no
22750
rm -f conftest.err conftest.$ac_objext \
22751
conftest$ac_exeext conftest.$ac_ext
22752
LIBS=$ac_check_lib_save_LIBS
22754
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22755
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22756
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22757
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22760
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22761
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22762
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22763
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22764
echo $ECHO_N "(cached) $ECHO_C" >&6
22766
ac_check_lib_save_LIBS=$LIBS
22767
LIBS="-ldnet_stub $LIBS"
22768
cat >conftest.$ac_ext <<_ACEOF
22771
cat confdefs.h >>conftest.$ac_ext
22772
cat >>conftest.$ac_ext <<_ACEOF
22773
/* end confdefs.h. */
22775
/* Override any gcc2 internal prototype to avoid an error. */
22779
/* We use char because int might match the return type of a gcc2
22780
builtin and then its argument prototype would still apply. */
22790
rm -f conftest.$ac_objext conftest$ac_exeext
22791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22792
(eval $ac_link) 2>conftest.er1
22794
grep -v '^ *+' conftest.er1 >conftest.err
22796
cat conftest.err >&5
22797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798
(exit $ac_status); } &&
22799
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22800
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801
(eval $ac_try) 2>&5
22803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804
(exit $ac_status); }; } &&
22805
{ ac_try='test -s conftest$ac_exeext'
22806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807
(eval $ac_try) 2>&5
22809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810
(exit $ac_status); }; }; then
22811
ac_cv_lib_dnet_stub_dnet_ntoa=yes
22813
echo "$as_me: failed program was:" >&5
22814
sed 's/^/| /' conftest.$ac_ext >&5
22816
ac_cv_lib_dnet_stub_dnet_ntoa=no
22818
rm -f conftest.err conftest.$ac_objext \
22819
conftest$ac_exeext conftest.$ac_ext
22820
LIBS=$ac_check_lib_save_LIBS
22822
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22823
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22824
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22825
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22830
rm -f conftest.err conftest.$ac_objext \
22831
conftest$ac_exeext conftest.$ac_ext
22832
LIBS="$ac_xsave_LIBS"
22834
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22835
# to get the SysV transport functions.
22836
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22838
# The nsl library prevents programs from opening the X display
22839
# on Irix 5.2, according to T.E. Dickey.
22840
# The functions gethostbyname, getservbyname, and inet_addr are
22841
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22842
echo "$as_me:$LINENO: checking for gethostbyname" >&5
22843
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22844
if test "${ac_cv_func_gethostbyname+set}" = set; then
22845
echo $ECHO_N "(cached) $ECHO_C" >&6
22847
cat >conftest.$ac_ext <<_ACEOF
22850
cat confdefs.h >>conftest.$ac_ext
22851
cat >>conftest.$ac_ext <<_ACEOF
22852
/* end confdefs.h. */
22853
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22854
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22855
#define gethostbyname innocuous_gethostbyname
22857
/* System header to define __stub macros and hopefully few prototypes,
22858
which can conflict with char gethostbyname (); below.
22859
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22860
<limits.h> exists even on freestanding compilers. */
22863
# include <limits.h>
22865
# include <assert.h>
22868
#undef gethostbyname
22870
/* Override any gcc2 internal prototype to avoid an error. */
22875
/* We use char because int might match the return type of a gcc2
22876
builtin and then its argument prototype would still apply. */
22877
char gethostbyname ();
22878
/* The GNU C library defines this for functions which it implements
22879
to always fail with ENOSYS. Some functions are actually named
22880
something starting with __ and the normal name is an alias. */
22881
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22884
char (*f) () = gethostbyname;
22893
return f != gethostbyname;
22898
rm -f conftest.$ac_objext conftest$ac_exeext
22899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22900
(eval $ac_link) 2>conftest.er1
22902
grep -v '^ *+' conftest.er1 >conftest.err
22904
cat conftest.err >&5
22905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906
(exit $ac_status); } &&
22907
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909
(eval $ac_try) 2>&5
22911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912
(exit $ac_status); }; } &&
22913
{ ac_try='test -s conftest$ac_exeext'
22914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915
(eval $ac_try) 2>&5
22917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918
(exit $ac_status); }; }; then
22919
ac_cv_func_gethostbyname=yes
22921
echo "$as_me: failed program was:" >&5
22922
sed 's/^/| /' conftest.$ac_ext >&5
22924
ac_cv_func_gethostbyname=no
22926
rm -f conftest.err conftest.$ac_objext \
22927
conftest$ac_exeext conftest.$ac_ext
22929
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22930
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
22932
if test $ac_cv_func_gethostbyname = no; then
22933
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22934
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22935
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22936
echo $ECHO_N "(cached) $ECHO_C" >&6
22938
ac_check_lib_save_LIBS=$LIBS
22940
cat >conftest.$ac_ext <<_ACEOF
22943
cat confdefs.h >>conftest.$ac_ext
22944
cat >>conftest.$ac_ext <<_ACEOF
22945
/* end confdefs.h. */
22947
/* Override any gcc2 internal prototype to avoid an error. */
22951
/* We use char because int might match the return type of a gcc2
22952
builtin and then its argument prototype would still apply. */
22953
char gethostbyname ();
22962
rm -f conftest.$ac_objext conftest$ac_exeext
22963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22964
(eval $ac_link) 2>conftest.er1
22966
grep -v '^ *+' conftest.er1 >conftest.err
22968
cat conftest.err >&5
22969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970
(exit $ac_status); } &&
22971
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973
(eval $ac_try) 2>&5
22975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976
(exit $ac_status); }; } &&
22977
{ ac_try='test -s conftest$ac_exeext'
22978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979
(eval $ac_try) 2>&5
22981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982
(exit $ac_status); }; }; then
22983
ac_cv_lib_nsl_gethostbyname=yes
22985
echo "$as_me: failed program was:" >&5
22986
sed 's/^/| /' conftest.$ac_ext >&5
22988
ac_cv_lib_nsl_gethostbyname=no
22990
rm -f conftest.err conftest.$ac_objext \
22991
conftest$ac_exeext conftest.$ac_ext
22992
LIBS=$ac_check_lib_save_LIBS
22994
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22995
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22996
if test $ac_cv_lib_nsl_gethostbyname = yes; then
22997
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23000
if test $ac_cv_lib_nsl_gethostbyname = no; then
23001
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23002
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23003
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23004
echo $ECHO_N "(cached) $ECHO_C" >&6
23006
ac_check_lib_save_LIBS=$LIBS
23008
cat >conftest.$ac_ext <<_ACEOF
23011
cat confdefs.h >>conftest.$ac_ext
23012
cat >>conftest.$ac_ext <<_ACEOF
23013
/* end confdefs.h. */
23015
/* Override any gcc2 internal prototype to avoid an error. */
23019
/* We use char because int might match the return type of a gcc2
23020
builtin and then its argument prototype would still apply. */
23021
char gethostbyname ();
23030
rm -f conftest.$ac_objext conftest$ac_exeext
23031
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23032
(eval $ac_link) 2>conftest.er1
23034
grep -v '^ *+' conftest.er1 >conftest.err
23036
cat conftest.err >&5
23037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038
(exit $ac_status); } &&
23039
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041
(eval $ac_try) 2>&5
23043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044
(exit $ac_status); }; } &&
23045
{ ac_try='test -s conftest$ac_exeext'
23046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047
(eval $ac_try) 2>&5
23049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050
(exit $ac_status); }; }; then
23051
ac_cv_lib_bsd_gethostbyname=yes
23053
echo "$as_me: failed program was:" >&5
23054
sed 's/^/| /' conftest.$ac_ext >&5
23056
ac_cv_lib_bsd_gethostbyname=no
23058
rm -f conftest.err conftest.$ac_objext \
23059
conftest$ac_exeext conftest.$ac_ext
23060
LIBS=$ac_check_lib_save_LIBS
23062
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23063
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23064
if test $ac_cv_lib_bsd_gethostbyname = yes; then
23065
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23071
# lieder@skyler.mavd.honeywell.com says without -lsocket,
23072
# socket/setsockopt and other routines are undefined under SCO ODT
23073
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23074
# on later versions), says Simon Leinen: it contains gethostby*
23075
# variants that don't use the name server (or something). -lsocket
23076
# must be given before -lnsl if both are needed. We assume that
23077
# if connect needs -lnsl, so does gethostbyname.
23078
echo "$as_me:$LINENO: checking for connect" >&5
23079
echo $ECHO_N "checking for connect... $ECHO_C" >&6
23080
if test "${ac_cv_func_connect+set}" = set; then
23081
echo $ECHO_N "(cached) $ECHO_C" >&6
23083
cat >conftest.$ac_ext <<_ACEOF
23086
cat confdefs.h >>conftest.$ac_ext
23087
cat >>conftest.$ac_ext <<_ACEOF
23088
/* end confdefs.h. */
23089
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23090
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23091
#define connect innocuous_connect
23093
/* System header to define __stub macros and hopefully few prototypes,
23094
which can conflict with char connect (); below.
23095
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23096
<limits.h> exists even on freestanding compilers. */
23099
# include <limits.h>
23101
# include <assert.h>
23106
/* Override any gcc2 internal prototype to avoid an error. */
23111
/* We use char because int might match the return type of a gcc2
23112
builtin and then its argument prototype would still apply. */
23114
/* The GNU C library defines this for functions which it implements
23115
to always fail with ENOSYS. Some functions are actually named
23116
something starting with __ and the normal name is an alias. */
23117
#if defined (__stub_connect) || defined (__stub___connect)
23120
char (*f) () = connect;
23129
return f != connect;
23134
rm -f conftest.$ac_objext conftest$ac_exeext
23135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23136
(eval $ac_link) 2>conftest.er1
23138
grep -v '^ *+' conftest.er1 >conftest.err
23140
cat conftest.err >&5
23141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142
(exit $ac_status); } &&
23143
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145
(eval $ac_try) 2>&5
23147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148
(exit $ac_status); }; } &&
23149
{ ac_try='test -s conftest$ac_exeext'
23150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151
(eval $ac_try) 2>&5
23153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154
(exit $ac_status); }; }; then
23155
ac_cv_func_connect=yes
23157
echo "$as_me: failed program was:" >&5
23158
sed 's/^/| /' conftest.$ac_ext >&5
23160
ac_cv_func_connect=no
23162
rm -f conftest.err conftest.$ac_objext \
23163
conftest$ac_exeext conftest.$ac_ext
23165
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23166
echo "${ECHO_T}$ac_cv_func_connect" >&6
23168
if test $ac_cv_func_connect = no; then
23169
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23170
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23171
if test "${ac_cv_lib_socket_connect+set}" = set; then
23172
echo $ECHO_N "(cached) $ECHO_C" >&6
23174
ac_check_lib_save_LIBS=$LIBS
23175
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23176
cat >conftest.$ac_ext <<_ACEOF
23179
cat confdefs.h >>conftest.$ac_ext
23180
cat >>conftest.$ac_ext <<_ACEOF
23181
/* end confdefs.h. */
23183
/* Override any gcc2 internal prototype to avoid an error. */
23187
/* We use char because int might match the return type of a gcc2
23188
builtin and then its argument prototype would still apply. */
23198
rm -f conftest.$ac_objext conftest$ac_exeext
23199
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200
(eval $ac_link) 2>conftest.er1
23202
grep -v '^ *+' conftest.er1 >conftest.err
23204
cat conftest.err >&5
23205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206
(exit $ac_status); } &&
23207
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209
(eval $ac_try) 2>&5
23211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212
(exit $ac_status); }; } &&
23213
{ ac_try='test -s conftest$ac_exeext'
23214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215
(eval $ac_try) 2>&5
23217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218
(exit $ac_status); }; }; then
23219
ac_cv_lib_socket_connect=yes
23221
echo "$as_me: failed program was:" >&5
23222
sed 's/^/| /' conftest.$ac_ext >&5
23224
ac_cv_lib_socket_connect=no
23226
rm -f conftest.err conftest.$ac_objext \
23227
conftest$ac_exeext conftest.$ac_ext
23228
LIBS=$ac_check_lib_save_LIBS
23230
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23231
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23232
if test $ac_cv_lib_socket_connect = yes; then
23233
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23238
# Guillermo Gomez says -lposix is necessary on A/UX.
23239
echo "$as_me:$LINENO: checking for remove" >&5
23240
echo $ECHO_N "checking for remove... $ECHO_C" >&6
23241
if test "${ac_cv_func_remove+set}" = set; then
23242
echo $ECHO_N "(cached) $ECHO_C" >&6
23244
cat >conftest.$ac_ext <<_ACEOF
23247
cat confdefs.h >>conftest.$ac_ext
23248
cat >>conftest.$ac_ext <<_ACEOF
23249
/* end confdefs.h. */
23250
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23251
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23252
#define remove innocuous_remove
23254
/* System header to define __stub macros and hopefully few prototypes,
23255
which can conflict with char remove (); below.
23256
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23257
<limits.h> exists even on freestanding compilers. */
23260
# include <limits.h>
23262
# include <assert.h>
23267
/* Override any gcc2 internal prototype to avoid an error. */
23272
/* We use char because int might match the return type of a gcc2
23273
builtin and then its argument prototype would still apply. */
23275
/* The GNU C library defines this for functions which it implements
23276
to always fail with ENOSYS. Some functions are actually named
23277
something starting with __ and the normal name is an alias. */
23278
#if defined (__stub_remove) || defined (__stub___remove)
23281
char (*f) () = remove;
23290
return f != remove;
23295
rm -f conftest.$ac_objext conftest$ac_exeext
23296
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23297
(eval $ac_link) 2>conftest.er1
23299
grep -v '^ *+' conftest.er1 >conftest.err
23301
cat conftest.err >&5
23302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303
(exit $ac_status); } &&
23304
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306
(eval $ac_try) 2>&5
23308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309
(exit $ac_status); }; } &&
23310
{ ac_try='test -s conftest$ac_exeext'
23311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312
(eval $ac_try) 2>&5
23314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315
(exit $ac_status); }; }; then
23316
ac_cv_func_remove=yes
23318
echo "$as_me: failed program was:" >&5
23319
sed 's/^/| /' conftest.$ac_ext >&5
23321
ac_cv_func_remove=no
23323
rm -f conftest.err conftest.$ac_objext \
23324
conftest$ac_exeext conftest.$ac_ext
23326
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23327
echo "${ECHO_T}$ac_cv_func_remove" >&6
23329
if test $ac_cv_func_remove = no; then
23330
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23331
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23332
if test "${ac_cv_lib_posix_remove+set}" = set; then
23333
echo $ECHO_N "(cached) $ECHO_C" >&6
23335
ac_check_lib_save_LIBS=$LIBS
23336
LIBS="-lposix $LIBS"
23337
cat >conftest.$ac_ext <<_ACEOF
23340
cat confdefs.h >>conftest.$ac_ext
23341
cat >>conftest.$ac_ext <<_ACEOF
23342
/* end confdefs.h. */
23344
/* Override any gcc2 internal prototype to avoid an error. */
23348
/* We use char because int might match the return type of a gcc2
23349
builtin and then its argument prototype would still apply. */
23359
rm -f conftest.$ac_objext conftest$ac_exeext
23360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23361
(eval $ac_link) 2>conftest.er1
23363
grep -v '^ *+' conftest.er1 >conftest.err
23365
cat conftest.err >&5
23366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367
(exit $ac_status); } &&
23368
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370
(eval $ac_try) 2>&5
23372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373
(exit $ac_status); }; } &&
23374
{ ac_try='test -s conftest$ac_exeext'
23375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23376
(eval $ac_try) 2>&5
23378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379
(exit $ac_status); }; }; then
23380
ac_cv_lib_posix_remove=yes
23382
echo "$as_me: failed program was:" >&5
23383
sed 's/^/| /' conftest.$ac_ext >&5
23385
ac_cv_lib_posix_remove=no
23387
rm -f conftest.err conftest.$ac_objext \
23388
conftest$ac_exeext conftest.$ac_ext
23389
LIBS=$ac_check_lib_save_LIBS
23391
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23392
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23393
if test $ac_cv_lib_posix_remove = yes; then
23394
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23399
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23400
echo "$as_me:$LINENO: checking for shmat" >&5
23401
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23402
if test "${ac_cv_func_shmat+set}" = set; then
23403
echo $ECHO_N "(cached) $ECHO_C" >&6
23405
cat >conftest.$ac_ext <<_ACEOF
23408
cat confdefs.h >>conftest.$ac_ext
23409
cat >>conftest.$ac_ext <<_ACEOF
23410
/* end confdefs.h. */
23411
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23412
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23413
#define shmat innocuous_shmat
23415
/* System header to define __stub macros and hopefully few prototypes,
23416
which can conflict with char shmat (); below.
23417
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23418
<limits.h> exists even on freestanding compilers. */
23421
# include <limits.h>
23423
# include <assert.h>
23428
/* Override any gcc2 internal prototype to avoid an error. */
23433
/* We use char because int might match the return type of a gcc2
23434
builtin and then its argument prototype would still apply. */
23436
/* The GNU C library defines this for functions which it implements
23437
to always fail with ENOSYS. Some functions are actually named
23438
something starting with __ and the normal name is an alias. */
23439
#if defined (__stub_shmat) || defined (__stub___shmat)
23442
char (*f) () = shmat;
23456
rm -f conftest.$ac_objext conftest$ac_exeext
23457
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23458
(eval $ac_link) 2>conftest.er1
23460
grep -v '^ *+' conftest.er1 >conftest.err
23462
cat conftest.err >&5
23463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464
(exit $ac_status); } &&
23465
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23466
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467
(eval $ac_try) 2>&5
23469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470
(exit $ac_status); }; } &&
23471
{ ac_try='test -s conftest$ac_exeext'
23472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473
(eval $ac_try) 2>&5
23475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476
(exit $ac_status); }; }; then
23477
ac_cv_func_shmat=yes
23479
echo "$as_me: failed program was:" >&5
23480
sed 's/^/| /' conftest.$ac_ext >&5
23482
ac_cv_func_shmat=no
23484
rm -f conftest.err conftest.$ac_objext \
23485
conftest$ac_exeext conftest.$ac_ext
23487
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23488
echo "${ECHO_T}$ac_cv_func_shmat" >&6
23490
if test $ac_cv_func_shmat = no; then
23491
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23492
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23493
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23494
echo $ECHO_N "(cached) $ECHO_C" >&6
23496
ac_check_lib_save_LIBS=$LIBS
23498
cat >conftest.$ac_ext <<_ACEOF
23501
cat confdefs.h >>conftest.$ac_ext
23502
cat >>conftest.$ac_ext <<_ACEOF
23503
/* end confdefs.h. */
23505
/* Override any gcc2 internal prototype to avoid an error. */
23509
/* We use char because int might match the return type of a gcc2
23510
builtin and then its argument prototype would still apply. */
23520
rm -f conftest.$ac_objext conftest$ac_exeext
23521
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23522
(eval $ac_link) 2>conftest.er1
23524
grep -v '^ *+' conftest.er1 >conftest.err
23526
cat conftest.err >&5
23527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528
(exit $ac_status); } &&
23529
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531
(eval $ac_try) 2>&5
23533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534
(exit $ac_status); }; } &&
23535
{ ac_try='test -s conftest$ac_exeext'
23536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537
(eval $ac_try) 2>&5
23539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540
(exit $ac_status); }; }; then
23541
ac_cv_lib_ipc_shmat=yes
23543
echo "$as_me: failed program was:" >&5
23544
sed 's/^/| /' conftest.$ac_ext >&5
23546
ac_cv_lib_ipc_shmat=no
23548
rm -f conftest.err conftest.$ac_objext \
23549
conftest$ac_exeext conftest.$ac_ext
23550
LIBS=$ac_check_lib_save_LIBS
23552
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23553
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23554
if test $ac_cv_lib_ipc_shmat = yes; then
23555
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23561
# Check for libraries that X11R6 Xt/Xaw programs need.
23562
ac_save_LDFLAGS=$LDFLAGS
23563
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23564
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23565
# check for ICE first), but we must link in the order -lSM -lICE or
23566
# we get undefined symbols. So assume we have SM if we have ICE.
23567
# These have to be linked with before -lX11, unlike the other
23568
# libraries we check for below, so use a different variable.
23569
# John Interrante, Karl Berry
23570
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23571
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23572
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23573
echo $ECHO_N "(cached) $ECHO_C" >&6
23575
ac_check_lib_save_LIBS=$LIBS
23576
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23577
cat >conftest.$ac_ext <<_ACEOF
23580
cat confdefs.h >>conftest.$ac_ext
23581
cat >>conftest.$ac_ext <<_ACEOF
23582
/* end confdefs.h. */
23584
/* Override any gcc2 internal prototype to avoid an error. */
23588
/* We use char because int might match the return type of a gcc2
23589
builtin and then its argument prototype would still apply. */
23590
char IceConnectionNumber ();
23594
IceConnectionNumber ();
23599
rm -f conftest.$ac_objext conftest$ac_exeext
23600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23601
(eval $ac_link) 2>conftest.er1
23603
grep -v '^ *+' conftest.er1 >conftest.err
23605
cat conftest.err >&5
23606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607
(exit $ac_status); } &&
23608
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23609
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610
(eval $ac_try) 2>&5
23612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613
(exit $ac_status); }; } &&
23614
{ ac_try='test -s conftest$ac_exeext'
23615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616
(eval $ac_try) 2>&5
23618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619
(exit $ac_status); }; }; then
23620
ac_cv_lib_ICE_IceConnectionNumber=yes
23622
echo "$as_me: failed program was:" >&5
23623
sed 's/^/| /' conftest.$ac_ext >&5
23625
ac_cv_lib_ICE_IceConnectionNumber=no
23627
rm -f conftest.err conftest.$ac_objext \
23628
conftest$ac_exeext conftest.$ac_ext
23629
LIBS=$ac_check_lib_save_LIBS
23631
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23632
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23633
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23634
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23637
LDFLAGS=$ac_save_LDFLAGS
23642
if test $no_x; then
23643
{ { echo "$as_me:$LINENO: error: The path for the X11 files not found!
23644
Make sure you have X and it's headers and libraries (the -devel packages
23645
in Linux) installed." >&5
23646
echo "$as_me: error: The path for the X11 files not found!
23647
Make sure you have X and it's headers and libraries (the -devel packages
23648
in Linux) installed." >&2;}
23649
{ (exit 1); exit 1; }; }
23652
X_LIBRARY_PATH=$x_libraries
23654
XCFLAGS="$X_CFLAGS"
23658
XLIBS="-lX11 $X_EXTRA_LIBS"
23661
lib_search_path="$lib_search_path $XLFLAGS"
23662
inc_search_path="$inc_search_path $XCFLAGS"
23670
# Check whether --enable-locale or --disable-locale was given.
23671
if test "${enable_locale+set}" = set; then
23672
enableval="$enable_locale"
23676
if test "$use_locale" = yes; then
23677
echo "$as_me:$LINENO: checking for _Xsetlocale in -lX11" >&5
23678
echo $ECHO_N "checking for _Xsetlocale in -lX11... $ECHO_C" >&6
23679
if test "${ac_cv_lib_X11__Xsetlocale+set}" = set; then
23680
echo $ECHO_N "(cached) $ECHO_C" >&6
23682
ac_check_lib_save_LIBS=$LIBS
23683
LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
23684
cat >conftest.$ac_ext <<_ACEOF
23687
cat confdefs.h >>conftest.$ac_ext
23688
cat >>conftest.$ac_ext <<_ACEOF
23689
/* end confdefs.h. */
23691
/* Override any gcc2 internal prototype to avoid an error. */
23695
/* We use char because int might match the return type of a gcc2
23696
builtin and then its argument prototype would still apply. */
23697
char _Xsetlocale ();
23706
rm -f conftest.$ac_objext conftest$ac_exeext
23707
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23708
(eval $ac_link) 2>conftest.er1
23710
grep -v '^ *+' conftest.er1 >conftest.err
23712
cat conftest.err >&5
23713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714
(exit $ac_status); } &&
23715
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717
(eval $ac_try) 2>&5
23719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720
(exit $ac_status); }; } &&
23721
{ ac_try='test -s conftest$ac_exeext'
23722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723
(eval $ac_try) 2>&5
23725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726
(exit $ac_status); }; }; then
23727
ac_cv_lib_X11__Xsetlocale=yes
23729
echo "$as_me: failed program was:" >&5
23730
sed 's/^/| /' conftest.$ac_ext >&5
23732
ac_cv_lib_X11__Xsetlocale=no
23734
rm -f conftest.err conftest.$ac_objext \
23735
conftest$ac_exeext conftest.$ac_ext
23736
LIBS=$ac_check_lib_save_LIBS
23738
echo "$as_me:$LINENO: result: $ac_cv_lib_X11__Xsetlocale" >&5
23739
echo "${ECHO_T}$ac_cv_lib_X11__Xsetlocale" >&6
23740
if test $ac_cv_lib_X11__Xsetlocale = yes; then
23742
cat >>confdefs.h <<\_ACEOF
23751
echo "$as_me:$LINENO: checking for XInternAtoms in -lX11" >&5
23752
echo $ECHO_N "checking for XInternAtoms in -lX11... $ECHO_C" >&6
23753
if test "${ac_cv_lib_X11_XInternAtoms+set}" = set; then
23754
echo $ECHO_N "(cached) $ECHO_C" >&6
23756
ac_check_lib_save_LIBS=$LIBS
23757
LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
23758
cat >conftest.$ac_ext <<_ACEOF
23761
cat confdefs.h >>conftest.$ac_ext
23762
cat >>conftest.$ac_ext <<_ACEOF
23763
/* end confdefs.h. */
23765
/* Override any gcc2 internal prototype to avoid an error. */
23769
/* We use char because int might match the return type of a gcc2
23770
builtin and then its argument prototype would still apply. */
23771
char XInternAtoms ();
23780
rm -f conftest.$ac_objext conftest$ac_exeext
23781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23782
(eval $ac_link) 2>conftest.er1
23784
grep -v '^ *+' conftest.er1 >conftest.err
23786
cat conftest.err >&5
23787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788
(exit $ac_status); } &&
23789
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23790
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791
(eval $ac_try) 2>&5
23793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794
(exit $ac_status); }; } &&
23795
{ ac_try='test -s conftest$ac_exeext'
23796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797
(eval $ac_try) 2>&5
23799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800
(exit $ac_status); }; }; then
23801
ac_cv_lib_X11_XInternAtoms=yes
23803
echo "$as_me: failed program was:" >&5
23804
sed 's/^/| /' conftest.$ac_ext >&5
23806
ac_cv_lib_X11_XInternAtoms=no
23808
rm -f conftest.err conftest.$ac_objext \
23809
conftest$ac_exeext conftest.$ac_ext
23810
LIBS=$ac_check_lib_save_LIBS
23812
echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XInternAtoms" >&5
23813
echo "${ECHO_T}$ac_cv_lib_X11_XInternAtoms" >&6
23814
if test $ac_cv_lib_X11_XInternAtoms = yes; then
23816
cat >>confdefs.h <<\_ACEOF
23817
#define HAVE_XINTERNATOMS 1
23823
echo "$as_me:$LINENO: checking for XConvertCase in -lX11" >&5
23824
echo $ECHO_N "checking for XConvertCase in -lX11... $ECHO_C" >&6
23825
if test "${ac_cv_lib_X11_XConvertCase+set}" = set; then
23826
echo $ECHO_N "(cached) $ECHO_C" >&6
23828
ac_check_lib_save_LIBS=$LIBS
23829
LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
23830
cat >conftest.$ac_ext <<_ACEOF
23833
cat confdefs.h >>conftest.$ac_ext
23834
cat >>conftest.$ac_ext <<_ACEOF
23835
/* end confdefs.h. */
23837
/* Override any gcc2 internal prototype to avoid an error. */
23841
/* We use char because int might match the return type of a gcc2
23842
builtin and then its argument prototype would still apply. */
23843
char XConvertCase ();
23852
rm -f conftest.$ac_objext conftest$ac_exeext
23853
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23854
(eval $ac_link) 2>conftest.er1
23856
grep -v '^ *+' conftest.er1 >conftest.err
23858
cat conftest.err >&5
23859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860
(exit $ac_status); } &&
23861
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23862
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863
(eval $ac_try) 2>&5
23865
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866
(exit $ac_status); }; } &&
23867
{ ac_try='test -s conftest$ac_exeext'
23868
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869
(eval $ac_try) 2>&5
23871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872
(exit $ac_status); }; }; then
23873
ac_cv_lib_X11_XConvertCase=yes
23875
echo "$as_me: failed program was:" >&5
23876
sed 's/^/| /' conftest.$ac_ext >&5
23878
ac_cv_lib_X11_XConvertCase=no
23880
rm -f conftest.err conftest.$ac_objext \
23881
conftest$ac_exeext conftest.$ac_ext
23882
LIBS=$ac_check_lib_save_LIBS
23884
echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XConvertCase" >&5
23885
echo "${ECHO_T}$ac_cv_lib_X11_XConvertCase" >&6
23886
if test $ac_cv_lib_X11_XConvertCase = yes; then
23888
cat >>confdefs.h <<\_ACEOF
23889
#define HAVE_XCONVERTCASE 1
23896
# Check whether --enable-modelock or --disable-modelock was given.
23897
if test "${enable_modelock+set}" = set; then
23898
enableval="$enable_modelock"
23900
cat >>confdefs.h <<\_ACEOF
23901
#define XKB_MODELOCK 1
23909
# Check whether --enable-shape or --disable-shape was given.
23910
if test "${enable_shape+set}" = set; then
23911
enableval="$enable_shape"
23919
if test "$shape" = yes; then
23920
echo "$as_me:$LINENO: checking for XShapeSelectInput in -lXext" >&5
23921
echo $ECHO_N "checking for XShapeSelectInput in -lXext... $ECHO_C" >&6
23922
if test "${ac_cv_lib_Xext_XShapeSelectInput+set}" = set; then
23923
echo $ECHO_N "(cached) $ECHO_C" >&6
23925
ac_check_lib_save_LIBS=$LIBS
23926
LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
23927
cat >conftest.$ac_ext <<_ACEOF
23930
cat confdefs.h >>conftest.$ac_ext
23931
cat >>conftest.$ac_ext <<_ACEOF
23932
/* end confdefs.h. */
23934
/* Override any gcc2 internal prototype to avoid an error. */
23938
/* We use char because int might match the return type of a gcc2
23939
builtin and then its argument prototype would still apply. */
23940
char XShapeSelectInput ();
23944
XShapeSelectInput ();
23949
rm -f conftest.$ac_objext conftest$ac_exeext
23950
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23951
(eval $ac_link) 2>conftest.er1
23953
grep -v '^ *+' conftest.er1 >conftest.err
23955
cat conftest.err >&5
23956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957
(exit $ac_status); } &&
23958
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960
(eval $ac_try) 2>&5
23962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963
(exit $ac_status); }; } &&
23964
{ ac_try='test -s conftest$ac_exeext'
23965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966
(eval $ac_try) 2>&5
23968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969
(exit $ac_status); }; }; then
23970
ac_cv_lib_Xext_XShapeSelectInput=yes
23972
echo "$as_me: failed program was:" >&5
23973
sed 's/^/| /' conftest.$ac_ext >&5
23975
ac_cv_lib_Xext_XShapeSelectInput=no
23977
rm -f conftest.err conftest.$ac_objext \
23978
conftest$ac_exeext conftest.$ac_ext
23979
LIBS=$ac_check_lib_save_LIBS
23981
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeSelectInput" >&5
23982
echo "${ECHO_T}$ac_cv_lib_Xext_XShapeSelectInput" >&6
23983
if test $ac_cv_lib_Xext_XShapeSelectInput = yes; then
23984
XLIBS="-lXext $XLIBS"
23987
cat >>confdefs.h <<\_ACEOF
24002
if test "x$PKGCONFIG" != x -a "`$PKGCONFIG xft; echo $?`" = 0; then
24003
XFTCONFIG="$PKGCONFIG xft"
24006
# Extract the first word of "xft-config", so it can be a program name with args.
24007
set dummy xft-config; ac_word=$2
24008
echo "$as_me:$LINENO: checking for $ac_word" >&5
24009
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24010
if test "${ac_cv_prog_XFTCONFIG+set}" = set; then
24011
echo $ECHO_N "(cached) $ECHO_C" >&6
24013
if test -n "$XFTCONFIG"; then
24014
ac_cv_prog_XFTCONFIG="$XFTCONFIG" # Let the user override the test.
24016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24017
for as_dir in $PATH
24020
test -z "$as_dir" && as_dir=.
24021
for ac_exec_ext in '' $ac_executable_extensions; do
24022
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24023
ac_cv_prog_XFTCONFIG="xft-config"
24024
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24032
XFTCONFIG=$ac_cv_prog_XFTCONFIG
24033
if test -n "$XFTCONFIG"; then
24034
echo "$as_me:$LINENO: result: $XFTCONFIG" >&5
24035
echo "${ECHO_T}$XFTCONFIG" >&6
24037
echo "$as_me:$LINENO: result: no" >&5
24038
echo "${ECHO_T}no" >&6
24043
echo "$as_me:$LINENO: checking for the Xft2 library" >&5
24044
echo $ECHO_N "checking for the Xft2 library... $ECHO_C" >&6
24046
if test "x$XFTCONFIG" != x; then
24047
XFTLIBS=`$XFTCONFIG --libs`
24048
XFTFLAGS=`$XFTCONFIG --cflags`
24049
echo "$as_me:$LINENO: result: found" >&5
24050
echo "${ECHO_T}found" >&6
24052
echo "$as_me:$LINENO: result: not found" >&5
24053
echo "${ECHO_T}not found" >&6
24055
echo "ERROR!!! libXft2 is not installed or could not be found."
24056
echo " Xft2 is a requirement for building Window Maker."
24057
echo " Please install it (along with fontconfig) before continuing."
24066
CPPFLAGS_old="$CPPFLAGS"
24067
CPPFLAGS="$CPPFLAGS $XFTFLAGS $inc_search_path"
24068
xft_major_version=`echo $minXFT | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24069
xft_minor_version=`echo $minXFT | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24070
xft_micro_version=`echo $minXFT | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24071
echo "$as_me:$LINENO: checking whether libXft is at least version $minXFT" >&5
24072
echo $ECHO_N "checking whether libXft is at least version $minXFT... $ECHO_C" >&6
24073
if test "${ac_cv_lib_xft_version_ok+set}" = set; then
24074
echo $ECHO_N "(cached) $ECHO_C" >&6
24076
cat >conftest.$ac_ext <<_ACEOF
24079
cat confdefs.h >>conftest.$ac_ext
24080
cat >>conftest.$ac_ext <<_ACEOF
24081
/* end confdefs.h. */
24082
/* Test version of libXft we have */
24083
#include <X11/Xft/Xft.h>
24085
#if !defined(XFT_VERSION) || XFT_VERSION < $xft_major_version*10000 + $xft_minor_version*100 + $xft_micro_version
24086
#error libXft on this system is too old. Consider upgrading to at least $minXFT
24097
rm -f conftest.$ac_objext conftest$ac_exeext
24098
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24099
(eval $ac_link) 2>conftest.er1
24101
grep -v '^ *+' conftest.er1 >conftest.err
24103
cat conftest.err >&5
24104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105
(exit $ac_status); } &&
24106
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108
(eval $ac_try) 2>&5
24110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111
(exit $ac_status); }; } &&
24112
{ ac_try='test -s conftest$ac_exeext'
24113
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114
(eval $ac_try) 2>&5
24116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117
(exit $ac_status); }; }; then
24118
eval "ac_cv_lib_xft_version_ok=yes"
24120
echo "$as_me: failed program was:" >&5
24121
sed 's/^/| /' conftest.$ac_ext >&5
24123
eval "ac_cv_lib_xft_version_ok=no"
24125
rm -f conftest.err conftest.$ac_objext \
24126
conftest$ac_exeext conftest.$ac_ext
24129
if eval "test \"`echo '$ac_cv_lib_xft_version_ok'`\" = yes"; then
24130
echo "$as_me:$LINENO: result: yes" >&5
24131
echo "${ECHO_T}yes" >&6
24134
echo "$as_me:$LINENO: result: no" >&5
24135
echo "${ECHO_T}no" >&6
24138
CPPFLAGS="$CPPFLAGS_old"
24141
if test "$goodxft" = no; then
24143
echo "ERROR!!! libXft on this system is an old version."
24144
echo " Please consider upgrading to at least version ${minXFT}."
24154
# Check whether --enable-xinerama or --disable-xinerama was given.
24155
if test "${enable_xinerama+set}" = set; then
24156
enableval="$enable_xinerama"
24157
xinerama=$enableval
24162
if test "$xinerama" = yes; then
24163
echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
24164
echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
24165
if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
24166
echo $ECHO_N "(cached) $ECHO_C" >&6
24168
ac_check_lib_save_LIBS=$LIBS
24169
LIBS="-lXinerama $XLFLAGS $XLIBS $LIBS"
24170
cat >conftest.$ac_ext <<_ACEOF
24173
cat confdefs.h >>conftest.$ac_ext
24174
cat >>conftest.$ac_ext <<_ACEOF
24175
/* end confdefs.h. */
24177
/* Override any gcc2 internal prototype to avoid an error. */
24181
/* We use char because int might match the return type of a gcc2
24182
builtin and then its argument prototype would still apply. */
24183
char XineramaQueryScreens ();
24187
XineramaQueryScreens ();
24192
rm -f conftest.$ac_objext conftest$ac_exeext
24193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24194
(eval $ac_link) 2>conftest.er1
24196
grep -v '^ *+' conftest.er1 >conftest.err
24198
cat conftest.err >&5
24199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200
(exit $ac_status); } &&
24201
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203
(eval $ac_try) 2>&5
24205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206
(exit $ac_status); }; } &&
24207
{ ac_try='test -s conftest$ac_exeext'
24208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209
(eval $ac_try) 2>&5
24211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212
(exit $ac_status); }; }; then
24213
ac_cv_lib_Xinerama_XineramaQueryScreens=yes
24215
echo "$as_me: failed program was:" >&5
24216
sed 's/^/| /' conftest.$ac_ext >&5
24218
ac_cv_lib_Xinerama_XineramaQueryScreens=no
24220
rm -f conftest.err conftest.$ac_objext \
24221
conftest$ac_exeext conftest.$ac_ext
24222
LIBS=$ac_check_lib_save_LIBS
24224
echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
24225
echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
24226
if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
24227
XLIBS="-lXinerama $XLIBS"
24234
echo "$as_me:$LINENO: checking for XineramaGetInfo in -lXext" >&5
24235
echo $ECHO_N "checking for XineramaGetInfo in -lXext... $ECHO_C" >&6
24236
if test "${ac_cv_lib_Xext_XineramaGetInfo+set}" = set; then
24237
echo $ECHO_N "(cached) $ECHO_C" >&6
24239
ac_check_lib_save_LIBS=$LIBS
24240
LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
24241
cat >conftest.$ac_ext <<_ACEOF
24244
cat confdefs.h >>conftest.$ac_ext
24245
cat >>conftest.$ac_ext <<_ACEOF
24246
/* end confdefs.h. */
24248
/* Override any gcc2 internal prototype to avoid an error. */
24252
/* We use char because int might match the return type of a gcc2
24253
builtin and then its argument prototype would still apply. */
24254
char XineramaGetInfo ();
24258
XineramaGetInfo ();
24263
rm -f conftest.$ac_objext conftest$ac_exeext
24264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24265
(eval $ac_link) 2>conftest.er1
24267
grep -v '^ *+' conftest.er1 >conftest.err
24269
cat conftest.err >&5
24270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271
(exit $ac_status); } &&
24272
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274
(eval $ac_try) 2>&5
24276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277
(exit $ac_status); }; } &&
24278
{ ac_try='test -s conftest$ac_exeext'
24279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280
(eval $ac_try) 2>&5
24282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283
(exit $ac_status); }; }; then
24284
ac_cv_lib_Xext_XineramaGetInfo=yes
24286
echo "$as_me: failed program was:" >&5
24287
sed 's/^/| /' conftest.$ac_ext >&5
24289
ac_cv_lib_Xext_XineramaGetInfo=no
24291
rm -f conftest.err conftest.$ac_objext \
24292
conftest$ac_exeext conftest.$ac_ext
24293
LIBS=$ac_check_lib_save_LIBS
24295
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaGetInfo" >&5
24296
echo "${ECHO_T}$ac_cv_lib_Xext_XineramaGetInfo" >&6
24297
if test $ac_cv_lib_Xext_XineramaGetInfo = yes; then
24305
if test "$xfxine" = yes; then
24309
if test "$sunxine" = yes; then
24312
cat >>confdefs.h <<\_ACEOF
24313
#define SOLARIS_XINERAMA 1
24318
if test "$xine" = 1; then
24320
cat >>confdefs.h <<\_ACEOF
24330
# Check whether --enable-shm or --disable-shm was given.
24331
if test "${enable_shm+set}" = set; then
24332
enableval="$enable_shm"
24338
if test "$shm" = yes; then
24339
echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
24340
echo $ECHO_N "checking for XShmAttach in -lXext... $ECHO_C" >&6
24341
if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
24342
echo $ECHO_N "(cached) $ECHO_C" >&6
24344
ac_check_lib_save_LIBS=$LIBS
24345
LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
24346
cat >conftest.$ac_ext <<_ACEOF
24349
cat confdefs.h >>conftest.$ac_ext
24350
cat >>conftest.$ac_ext <<_ACEOF
24351
/* end confdefs.h. */
24353
/* Override any gcc2 internal prototype to avoid an error. */
24357
/* We use char because int might match the return type of a gcc2
24358
builtin and then its argument prototype would still apply. */
24359
char XShmAttach ();
24368
rm -f conftest.$ac_objext conftest$ac_exeext
24369
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24370
(eval $ac_link) 2>conftest.er1
24372
grep -v '^ *+' conftest.er1 >conftest.err
24374
cat conftest.err >&5
24375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376
(exit $ac_status); } &&
24377
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379
(eval $ac_try) 2>&5
24381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382
(exit $ac_status); }; } &&
24383
{ ac_try='test -s conftest$ac_exeext'
24384
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385
(eval $ac_try) 2>&5
24387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388
(exit $ac_status); }; }; then
24389
ac_cv_lib_Xext_XShmAttach=yes
24391
echo "$as_me: failed program was:" >&5
24392
sed 's/^/| /' conftest.$ac_ext >&5
24394
ac_cv_lib_Xext_XShmAttach=no
24396
rm -f conftest.err conftest.$ac_objext \
24397
conftest$ac_exeext conftest.$ac_ext
24398
LIBS=$ac_check_lib_save_LIBS
24400
echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
24401
echo "${ECHO_T}$ac_cv_lib_Xext_XShmAttach" >&6
24402
if test $ac_cv_lib_Xext_XShmAttach = yes; then
24409
if test "$ok" = yes; then
24410
echo "$as_me:$LINENO: checking for shmget" >&5
24411
echo $ECHO_N "checking for shmget... $ECHO_C" >&6
24412
if test "${ac_cv_func_shmget+set}" = set; then
24413
echo $ECHO_N "(cached) $ECHO_C" >&6
24415
cat >conftest.$ac_ext <<_ACEOF
24418
cat confdefs.h >>conftest.$ac_ext
24419
cat >>conftest.$ac_ext <<_ACEOF
24420
/* end confdefs.h. */
24421
/* Define shmget to an innocuous variant, in case <limits.h> declares shmget.
24422
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24423
#define shmget innocuous_shmget
24425
/* System header to define __stub macros and hopefully few prototypes,
24426
which can conflict with char shmget (); below.
24427
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24428
<limits.h> exists even on freestanding compilers. */
24431
# include <limits.h>
24433
# include <assert.h>
24438
/* Override any gcc2 internal prototype to avoid an error. */
24443
/* We use char because int might match the return type of a gcc2
24444
builtin and then its argument prototype would still apply. */
24446
/* The GNU C library defines this for functions which it implements
24447
to always fail with ENOSYS. Some functions are actually named
24448
something starting with __ and the normal name is an alias. */
24449
#if defined (__stub_shmget) || defined (__stub___shmget)
24452
char (*f) () = shmget;
24461
return f != shmget;
24466
rm -f conftest.$ac_objext conftest$ac_exeext
24467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24468
(eval $ac_link) 2>conftest.er1
24470
grep -v '^ *+' conftest.er1 >conftest.err
24472
cat conftest.err >&5
24473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474
(exit $ac_status); } &&
24475
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477
(eval $ac_try) 2>&5
24479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480
(exit $ac_status); }; } &&
24481
{ ac_try='test -s conftest$ac_exeext'
24482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483
(eval $ac_try) 2>&5
24485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486
(exit $ac_status); }; }; then
24487
ac_cv_func_shmget=yes
24489
echo "$as_me: failed program was:" >&5
24490
sed 's/^/| /' conftest.$ac_ext >&5
24492
ac_cv_func_shmget=no
24494
rm -f conftest.err conftest.$ac_objext \
24495
conftest$ac_exeext conftest.$ac_ext
24497
echo "$as_me:$LINENO: result: $ac_cv_func_shmget" >&5
24498
echo "${ECHO_T}$ac_cv_func_shmget" >&6
24499
if test $ac_cv_func_shmget = yes; then
24507
if test "$ok" = yes; then
24508
if test "$added_xext" = no; then
24509
XLIBS="-lXext $XLIBS"
24512
cat >>confdefs.h <<\_ACEOF
24524
#AC_SUBST(XSMPLIBS)
24534
# Check whether --enable-xpm or --disable-xpm was given.
24535
if test "${enable_xpm+set}" = set; then
24536
enableval="$enable_xpm"
24542
if test "$xpm" = yes; then
24544
LDFLAGS_old="$LDFLAGS"
24545
LDFLAGS="$LDFLAGS $lib_search_path"
24546
echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
24547
echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
24548
if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
24549
echo $ECHO_N "(cached) $ECHO_C" >&6
24551
ac_check_lib_save_LIBS=$LIBS
24552
LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
24553
cat >conftest.$ac_ext <<_ACEOF
24556
cat confdefs.h >>conftest.$ac_ext
24557
cat >>conftest.$ac_ext <<_ACEOF
24558
/* end confdefs.h. */
24560
/* Override any gcc2 internal prototype to avoid an error. */
24564
/* We use char because int might match the return type of a gcc2
24565
builtin and then its argument prototype would still apply. */
24566
char XpmCreatePixmapFromData ();
24570
XpmCreatePixmapFromData ();
24575
rm -f conftest.$ac_objext conftest$ac_exeext
24576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24577
(eval $ac_link) 2>conftest.er1
24579
grep -v '^ *+' conftest.er1 >conftest.err
24581
cat conftest.err >&5
24582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583
(exit $ac_status); } &&
24584
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586
(eval $ac_try) 2>&5
24588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589
(exit $ac_status); }; } &&
24590
{ ac_try='test -s conftest$ac_exeext'
24591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592
(eval $ac_try) 2>&5
24594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595
(exit $ac_status); }; }; then
24596
ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
24598
echo "$as_me: failed program was:" >&5
24599
sed 's/^/| /' conftest.$ac_ext >&5
24601
ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
24603
rm -f conftest.err conftest.$ac_objext \
24604
conftest$ac_exeext conftest.$ac_ext
24605
LIBS=$ac_check_lib_save_LIBS
24607
echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
24608
echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
24609
if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
24615
LDFLAGS="$LDFLAGS_old"
24618
if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
24620
CPPFLAGS_old="$CPPFLAGS"
24621
CPPFLAGS="$CPPFLAGS $inc_search_path"
24622
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
24623
echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
24624
echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
24625
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
24626
echo $ECHO_N "(cached) $ECHO_C" >&6
24628
echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
24629
echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
24631
# Is the header compilable?
24632
echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
24633
echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
24634
cat >conftest.$ac_ext <<_ACEOF
24637
cat confdefs.h >>conftest.$ac_ext
24638
cat >>conftest.$ac_ext <<_ACEOF
24639
/* end confdefs.h. */
24640
$ac_includes_default
24641
#include <X11/xpm.h>
24643
rm -f conftest.$ac_objext
24644
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24645
(eval $ac_compile) 2>conftest.er1
24647
grep -v '^ *+' conftest.er1 >conftest.err
24649
cat conftest.err >&5
24650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651
(exit $ac_status); } &&
24652
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24653
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24654
(eval $ac_try) 2>&5
24656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657
(exit $ac_status); }; } &&
24658
{ ac_try='test -s conftest.$ac_objext'
24659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24660
(eval $ac_try) 2>&5
24662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663
(exit $ac_status); }; }; then
24664
ac_header_compiler=yes
24666
echo "$as_me: failed program was:" >&5
24667
sed 's/^/| /' conftest.$ac_ext >&5
24669
ac_header_compiler=no
24671
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24672
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24673
echo "${ECHO_T}$ac_header_compiler" >&6
24675
# Is the header present?
24676
echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
24677
echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
24678
cat >conftest.$ac_ext <<_ACEOF
24681
cat confdefs.h >>conftest.$ac_ext
24682
cat >>conftest.$ac_ext <<_ACEOF
24683
/* end confdefs.h. */
24684
#include <X11/xpm.h>
24686
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24687
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24689
grep -v '^ *+' conftest.er1 >conftest.err
24691
cat conftest.err >&5
24692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693
(exit $ac_status); } >/dev/null; then
24694
if test -s conftest.err; then
24695
ac_cpp_err=$ac_c_preproc_warn_flag
24696
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24703
if test -z "$ac_cpp_err"; then
24704
ac_header_preproc=yes
24706
echo "$as_me: failed program was:" >&5
24707
sed 's/^/| /' conftest.$ac_ext >&5
24709
ac_header_preproc=no
24711
rm -f conftest.err conftest.$ac_ext
24712
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24713
echo "${ECHO_T}$ac_header_preproc" >&6
24715
# So? What about this header?
24716
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24718
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
24719
echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24720
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
24721
echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
24722
ac_header_preproc=yes
24725
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
24726
echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
24727
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
24728
echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
24729
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
24730
echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
24731
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
24732
echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
24733
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
24734
echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
24735
{ echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
24736
echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
24739
## ------------------------------------------ ##
24740
## Report this to the AC_PACKAGE_NAME lists. ##
24741
## ------------------------------------------ ##
24744
sed "s/^/$as_me: WARNING: /" >&2
24747
echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
24748
echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
24749
if test "${ac_cv_header_X11_xpm_h+set}" = set; then
24750
echo $ECHO_N "(cached) $ECHO_C" >&6
24752
ac_cv_header_X11_xpm_h=$ac_header_preproc
24754
echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
24755
echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
24760
CPPFLAGS="$CPPFLAGS_old"
24762
if test "x$ac_cv_header_X11_xpm_h" = xyes; then
24763
GFXLIBS="$GFXLIBS -lXpm"
24764
supported_gfx="XPM"
24766
cat >>confdefs.h <<\_ACEOF
24771
supported_gfx="builtin-XPM"
24788
# Check whether --enable-png or --disable-png was given.
24789
if test "${enable_png+set}" = set; then
24790
enableval="$enable_png"
24797
if test "$png" = yes ; then
24799
LDFLAGS_old="$LDFLAGS"
24800
LDFLAGS="$LDFLAGS $lib_search_path"
24801
echo "$as_me:$LINENO: checking for png_get_valid in -lpng" >&5
24802
echo $ECHO_N "checking for png_get_valid in -lpng... $ECHO_C" >&6
24803
if test "${ac_cv_lib_png_png_get_valid+set}" = set; then
24804
echo $ECHO_N "(cached) $ECHO_C" >&6
24806
ac_check_lib_save_LIBS=$LIBS
24807
LIBS="-lpng -lz -lm $LIBS"
24808
cat >conftest.$ac_ext <<_ACEOF
24811
cat confdefs.h >>conftest.$ac_ext
24812
cat >>conftest.$ac_ext <<_ACEOF
24813
/* end confdefs.h. */
24815
/* Override any gcc2 internal prototype to avoid an error. */
24819
/* We use char because int might match the return type of a gcc2
24820
builtin and then its argument prototype would still apply. */
24821
char png_get_valid ();
24830
rm -f conftest.$ac_objext conftest$ac_exeext
24831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24832
(eval $ac_link) 2>conftest.er1
24834
grep -v '^ *+' conftest.er1 >conftest.err
24836
cat conftest.err >&5
24837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838
(exit $ac_status); } &&
24839
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841
(eval $ac_try) 2>&5
24843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844
(exit $ac_status); }; } &&
24845
{ ac_try='test -s conftest$ac_exeext'
24846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847
(eval $ac_try) 2>&5
24849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850
(exit $ac_status); }; }; then
24851
ac_cv_lib_png_png_get_valid=yes
24853
echo "$as_me: failed program was:" >&5
24854
sed 's/^/| /' conftest.$ac_ext >&5
24856
ac_cv_lib_png_png_get_valid=no
24858
rm -f conftest.err conftest.$ac_objext \
24859
conftest$ac_exeext conftest.$ac_ext
24860
LIBS=$ac_check_lib_save_LIBS
24862
echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_valid" >&5
24863
echo "${ECHO_T}$ac_cv_lib_png_png_get_valid" >&6
24864
if test $ac_cv_lib_png_png_get_valid = yes; then
24870
LDFLAGS="$LDFLAGS_old"
24873
if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
24875
CPPFLAGS_old="$CPPFLAGS"
24876
CPPFLAGS="$CPPFLAGS $inc_search_path"
24877
if test "${ac_cv_header_png_h+set}" = set; then
24878
echo "$as_me:$LINENO: checking for png.h" >&5
24879
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24880
if test "${ac_cv_header_png_h+set}" = set; then
24881
echo $ECHO_N "(cached) $ECHO_C" >&6
24883
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24884
echo "${ECHO_T}$ac_cv_header_png_h" >&6
24886
# Is the header compilable?
24887
echo "$as_me:$LINENO: checking png.h usability" >&5
24888
echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24889
cat >conftest.$ac_ext <<_ACEOF
24892
cat confdefs.h >>conftest.$ac_ext
24893
cat >>conftest.$ac_ext <<_ACEOF
24894
/* end confdefs.h. */
24895
$ac_includes_default
24898
rm -f conftest.$ac_objext
24899
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24900
(eval $ac_compile) 2>conftest.er1
24902
grep -v '^ *+' conftest.er1 >conftest.err
24904
cat conftest.err >&5
24905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906
(exit $ac_status); } &&
24907
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24909
(eval $ac_try) 2>&5
24911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912
(exit $ac_status); }; } &&
24913
{ ac_try='test -s conftest.$ac_objext'
24914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915
(eval $ac_try) 2>&5
24917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918
(exit $ac_status); }; }; then
24919
ac_header_compiler=yes
24921
echo "$as_me: failed program was:" >&5
24922
sed 's/^/| /' conftest.$ac_ext >&5
24924
ac_header_compiler=no
24926
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24927
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24928
echo "${ECHO_T}$ac_header_compiler" >&6
24930
# Is the header present?
24931
echo "$as_me:$LINENO: checking png.h presence" >&5
24932
echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24933
cat >conftest.$ac_ext <<_ACEOF
24936
cat confdefs.h >>conftest.$ac_ext
24937
cat >>conftest.$ac_ext <<_ACEOF
24938
/* end confdefs.h. */
24941
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24942
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24944
grep -v '^ *+' conftest.er1 >conftest.err
24946
cat conftest.err >&5
24947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948
(exit $ac_status); } >/dev/null; then
24949
if test -s conftest.err; then
24950
ac_cpp_err=$ac_c_preproc_warn_flag
24951
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24958
if test -z "$ac_cpp_err"; then
24959
ac_header_preproc=yes
24961
echo "$as_me: failed program was:" >&5
24962
sed 's/^/| /' conftest.$ac_ext >&5
24964
ac_header_preproc=no
24966
rm -f conftest.err conftest.$ac_ext
24967
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24968
echo "${ECHO_T}$ac_header_preproc" >&6
24970
# So? What about this header?
24971
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24973
{ echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24974
echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24975
{ echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24976
echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24977
ac_header_preproc=yes
24980
{ echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24981
echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
24982
{ echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24983
echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24984
{ echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24985
echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24986
{ echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24987
echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
24988
{ echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24989
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
24990
{ echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24991
echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
24994
## ------------------------------------------ ##
24995
## Report this to the AC_PACKAGE_NAME lists. ##
24996
## ------------------------------------------ ##
24999
sed "s/^/$as_me: WARNING: /" >&2
25002
echo "$as_me:$LINENO: checking for png.h" >&5
25003
echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25004
if test "${ac_cv_header_png_h+set}" = set; then
25005
echo $ECHO_N "(cached) $ECHO_C" >&6
25007
ac_cv_header_png_h=$ac_header_preproc
25009
echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25010
echo "${ECHO_T}$ac_cv_header_png_h" >&6
25015
CPPFLAGS="$CPPFLAGS_old"
25017
if test "x$ac_cv_header_png_h" = xyes; then
25018
GFXLIBS="$GFXLIBS -lpng -lz"
25019
supported_gfx="$supported_gfx PNG"
25021
cat >>confdefs.h <<\_ACEOF
25032
# Check whether --enable-jpeg or --disable-jpeg was given.
25033
if test "${enable_jpeg+set}" = set; then
25034
enableval="$enable_jpeg"
25040
if test "$jpeg" = yes; then
25042
LDFLAGS_old="$LDFLAGS"
25043
LDFLAGS="$LDFLAGS $lib_search_path"
25044
echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
25045
echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
25046
if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
25047
echo $ECHO_N "(cached) $ECHO_C" >&6
25049
ac_check_lib_save_LIBS=$LIBS
25050
LIBS="-ljpeg $LIBS"
25051
cat >conftest.$ac_ext <<_ACEOF
25054
cat confdefs.h >>conftest.$ac_ext
25055
cat >>conftest.$ac_ext <<_ACEOF
25056
/* end confdefs.h. */
25058
/* Override any gcc2 internal prototype to avoid an error. */
25062
/* We use char because int might match the return type of a gcc2
25063
builtin and then its argument prototype would still apply. */
25064
char jpeg_destroy_compress ();
25068
jpeg_destroy_compress ();
25073
rm -f conftest.$ac_objext conftest$ac_exeext
25074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25075
(eval $ac_link) 2>conftest.er1
25077
grep -v '^ *+' conftest.er1 >conftest.err
25079
cat conftest.err >&5
25080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081
(exit $ac_status); } &&
25082
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25083
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084
(eval $ac_try) 2>&5
25086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087
(exit $ac_status); }; } &&
25088
{ ac_try='test -s conftest$ac_exeext'
25089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090
(eval $ac_try) 2>&5
25092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093
(exit $ac_status); }; }; then
25094
ac_cv_lib_jpeg_jpeg_destroy_compress=yes
25096
echo "$as_me: failed program was:" >&5
25097
sed 's/^/| /' conftest.$ac_ext >&5
25099
ac_cv_lib_jpeg_jpeg_destroy_compress=no
25101
rm -f conftest.err conftest.$ac_objext \
25102
conftest$ac_exeext conftest.$ac_ext
25103
LIBS=$ac_check_lib_save_LIBS
25105
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
25106
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
25107
if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
25113
LDFLAGS="$LDFLAGS_old"
25116
if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
25121
CPPFLAGS_old="$CPPFLAGS"
25122
CPPFLAGS="$CPPFLAGS $inc_search_path"
25123
if test "${ac_cv_header_jpeglib_h+set}" = set; then
25124
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25125
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25126
if test "${ac_cv_header_jpeglib_h+set}" = set; then
25127
echo $ECHO_N "(cached) $ECHO_C" >&6
25129
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25130
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25132
# Is the header compilable?
25133
echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
25134
echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
25135
cat >conftest.$ac_ext <<_ACEOF
25138
cat confdefs.h >>conftest.$ac_ext
25139
cat >>conftest.$ac_ext <<_ACEOF
25140
/* end confdefs.h. */
25141
$ac_includes_default
25142
#include <jpeglib.h>
25144
rm -f conftest.$ac_objext
25145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25146
(eval $ac_compile) 2>conftest.er1
25148
grep -v '^ *+' conftest.er1 >conftest.err
25150
cat conftest.err >&5
25151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152
(exit $ac_status); } &&
25153
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155
(eval $ac_try) 2>&5
25157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158
(exit $ac_status); }; } &&
25159
{ ac_try='test -s conftest.$ac_objext'
25160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161
(eval $ac_try) 2>&5
25163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164
(exit $ac_status); }; }; then
25165
ac_header_compiler=yes
25167
echo "$as_me: failed program was:" >&5
25168
sed 's/^/| /' conftest.$ac_ext >&5
25170
ac_header_compiler=no
25172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25173
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25174
echo "${ECHO_T}$ac_header_compiler" >&6
25176
# Is the header present?
25177
echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
25178
echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
25179
cat >conftest.$ac_ext <<_ACEOF
25182
cat confdefs.h >>conftest.$ac_ext
25183
cat >>conftest.$ac_ext <<_ACEOF
25184
/* end confdefs.h. */
25185
#include <jpeglib.h>
25187
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25188
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25190
grep -v '^ *+' conftest.er1 >conftest.err
25192
cat conftest.err >&5
25193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194
(exit $ac_status); } >/dev/null; then
25195
if test -s conftest.err; then
25196
ac_cpp_err=$ac_c_preproc_warn_flag
25197
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25204
if test -z "$ac_cpp_err"; then
25205
ac_header_preproc=yes
25207
echo "$as_me: failed program was:" >&5
25208
sed 's/^/| /' conftest.$ac_ext >&5
25210
ac_header_preproc=no
25212
rm -f conftest.err conftest.$ac_ext
25213
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25214
echo "${ECHO_T}$ac_header_preproc" >&6
25216
# So? What about this header?
25217
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25219
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25220
echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25221
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
25222
echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
25223
ac_header_preproc=yes
25226
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
25227
echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
25228
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
25229
echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
25230
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
25231
echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
25232
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
25233
echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25234
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
25235
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
25236
{ echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
25237
echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
25240
## ------------------------------------------ ##
25241
## Report this to the AC_PACKAGE_NAME lists. ##
25242
## ------------------------------------------ ##
25245
sed "s/^/$as_me: WARNING: /" >&2
25248
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25249
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25250
if test "${ac_cv_header_jpeglib_h+set}" = set; then
25251
echo $ECHO_N "(cached) $ECHO_C" >&6
25253
ac_cv_header_jpeglib_h=$ac_header_preproc
25255
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25256
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25261
CPPFLAGS="$CPPFLAGS_old"
25263
if test "x$ac_cv_header_jpeglib_h" = xyes; then
25264
GFXLIBS="$GFXLIBS -ljpeg"
25265
supported_gfx="$supported_gfx JPEG"
25267
cat >>confdefs.h <<\_ACEOF
25277
# Check whether --enable-gif or --disable-gif was given.
25278
if test "${enable_gif+set}" = set; then
25279
enableval="$enable_gif"
25285
if test "$gif" = yes; then
25288
LDFLAGS_old="$LDFLAGS"
25289
LDFLAGS="$LDFLAGS $lib_search_path"
25290
echo "$as_me:$LINENO: checking for DGifOpenFileName in -lungif" >&5
25291
echo $ECHO_N "checking for DGifOpenFileName in -lungif... $ECHO_C" >&6
25292
if test "${ac_cv_lib_ungif_DGifOpenFileName+set}" = set; then
25293
echo $ECHO_N "(cached) $ECHO_C" >&6
25295
ac_check_lib_save_LIBS=$LIBS
25296
LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
25297
cat >conftest.$ac_ext <<_ACEOF
25300
cat confdefs.h >>conftest.$ac_ext
25301
cat >>conftest.$ac_ext <<_ACEOF
25302
/* end confdefs.h. */
25304
/* Override any gcc2 internal prototype to avoid an error. */
25308
/* We use char because int might match the return type of a gcc2
25309
builtin and then its argument prototype would still apply. */
25310
char DGifOpenFileName ();
25314
DGifOpenFileName ();
25319
rm -f conftest.$ac_objext conftest$ac_exeext
25320
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25321
(eval $ac_link) 2>conftest.er1
25323
grep -v '^ *+' conftest.er1 >conftest.err
25325
cat conftest.err >&5
25326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327
(exit $ac_status); } &&
25328
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330
(eval $ac_try) 2>&5
25332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333
(exit $ac_status); }; } &&
25334
{ ac_try='test -s conftest$ac_exeext'
25335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336
(eval $ac_try) 2>&5
25338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339
(exit $ac_status); }; }; then
25340
ac_cv_lib_ungif_DGifOpenFileName=yes
25342
echo "$as_me: failed program was:" >&5
25343
sed 's/^/| /' conftest.$ac_ext >&5
25345
ac_cv_lib_ungif_DGifOpenFileName=no
25347
rm -f conftest.err conftest.$ac_objext \
25348
conftest$ac_exeext conftest.$ac_ext
25349
LIBS=$ac_check_lib_save_LIBS
25351
echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpenFileName" >&5
25352
echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpenFileName" >&6
25353
if test $ac_cv_lib_ungif_DGifOpenFileName = yes; then
25359
LDFLAGS="$LDFLAGS_old"
25361
if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
25364
if test "x$my_libname" = x; then
25366
LDFLAGS_old="$LDFLAGS"
25367
LDFLAGS="$LDFLAGS $lib_search_path"
25368
echo "$as_me:$LINENO: checking for DGifOpenFileName in -lgif" >&5
25369
echo $ECHO_N "checking for DGifOpenFileName in -lgif... $ECHO_C" >&6
25370
if test "${ac_cv_lib_gif_DGifOpenFileName+set}" = set; then
25371
echo $ECHO_N "(cached) $ECHO_C" >&6
25373
ac_check_lib_save_LIBS=$LIBS
25374
LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
25375
cat >conftest.$ac_ext <<_ACEOF
25378
cat confdefs.h >>conftest.$ac_ext
25379
cat >>conftest.$ac_ext <<_ACEOF
25380
/* end confdefs.h. */
25382
/* Override any gcc2 internal prototype to avoid an error. */
25386
/* We use char because int might match the return type of a gcc2
25387
builtin and then its argument prototype would still apply. */
25388
char DGifOpenFileName ();
25392
DGifOpenFileName ();
25397
rm -f conftest.$ac_objext conftest$ac_exeext
25398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25399
(eval $ac_link) 2>conftest.er1
25401
grep -v '^ *+' conftest.er1 >conftest.err
25403
cat conftest.err >&5
25404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405
(exit $ac_status); } &&
25406
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25407
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408
(eval $ac_try) 2>&5
25410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411
(exit $ac_status); }; } &&
25412
{ ac_try='test -s conftest$ac_exeext'
25413
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414
(eval $ac_try) 2>&5
25416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417
(exit $ac_status); }; }; then
25418
ac_cv_lib_gif_DGifOpenFileName=yes
25420
echo "$as_me: failed program was:" >&5
25421
sed 's/^/| /' conftest.$ac_ext >&5
25423
ac_cv_lib_gif_DGifOpenFileName=no
25425
rm -f conftest.err conftest.$ac_objext \
25426
conftest$ac_exeext conftest.$ac_ext
25427
LIBS=$ac_check_lib_save_LIBS
25429
echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpenFileName" >&5
25430
echo "${ECHO_T}$ac_cv_lib_gif_DGifOpenFileName" >&6
25431
if test $ac_cv_lib_gif_DGifOpenFileName = yes; then
25437
LDFLAGS="$LDFLAGS_old"
25439
if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
25444
if test "$my_libname" != x; then
25446
CPPFLAGS_old="$CPPFLAGS"
25447
CPPFLAGS="$CPPFLAGS $inc_search_path"
25448
if test "${ac_cv_header_gif_lib_h+set}" = set; then
25449
echo "$as_me:$LINENO: checking for gif_lib.h" >&5
25450
echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
25451
if test "${ac_cv_header_gif_lib_h+set}" = set; then
25452
echo $ECHO_N "(cached) $ECHO_C" >&6
25454
echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
25455
echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
25457
# Is the header compilable?
25458
echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
25459
echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
25460
cat >conftest.$ac_ext <<_ACEOF
25463
cat confdefs.h >>conftest.$ac_ext
25464
cat >>conftest.$ac_ext <<_ACEOF
25465
/* end confdefs.h. */
25466
$ac_includes_default
25467
#include <gif_lib.h>
25469
rm -f conftest.$ac_objext
25470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25471
(eval $ac_compile) 2>conftest.er1
25473
grep -v '^ *+' conftest.er1 >conftest.err
25475
cat conftest.err >&5
25476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477
(exit $ac_status); } &&
25478
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25479
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480
(eval $ac_try) 2>&5
25482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483
(exit $ac_status); }; } &&
25484
{ ac_try='test -s conftest.$ac_objext'
25485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486
(eval $ac_try) 2>&5
25488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489
(exit $ac_status); }; }; then
25490
ac_header_compiler=yes
25492
echo "$as_me: failed program was:" >&5
25493
sed 's/^/| /' conftest.$ac_ext >&5
25495
ac_header_compiler=no
25497
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25498
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25499
echo "${ECHO_T}$ac_header_compiler" >&6
25501
# Is the header present?
25502
echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
25503
echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
25504
cat >conftest.$ac_ext <<_ACEOF
25507
cat confdefs.h >>conftest.$ac_ext
25508
cat >>conftest.$ac_ext <<_ACEOF
25509
/* end confdefs.h. */
25510
#include <gif_lib.h>
25512
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25513
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25515
grep -v '^ *+' conftest.er1 >conftest.err
25517
cat conftest.err >&5
25518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519
(exit $ac_status); } >/dev/null; then
25520
if test -s conftest.err; then
25521
ac_cpp_err=$ac_c_preproc_warn_flag
25522
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25529
if test -z "$ac_cpp_err"; then
25530
ac_header_preproc=yes
25532
echo "$as_me: failed program was:" >&5
25533
sed 's/^/| /' conftest.$ac_ext >&5
25535
ac_header_preproc=no
25537
rm -f conftest.err conftest.$ac_ext
25538
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25539
echo "${ECHO_T}$ac_header_preproc" >&6
25541
# So? What about this header?
25542
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25544
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25545
echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25546
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
25547
echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
25548
ac_header_preproc=yes
25551
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
25552
echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
25553
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
25554
echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
25555
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
25556
echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
25557
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
25558
echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25559
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
25560
echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
25561
{ echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
25562
echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
25565
## ------------------------------------------ ##
25566
## Report this to the AC_PACKAGE_NAME lists. ##
25567
## ------------------------------------------ ##
25570
sed "s/^/$as_me: WARNING: /" >&2
25573
echo "$as_me:$LINENO: checking for gif_lib.h" >&5
25574
echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
25575
if test "${ac_cv_header_gif_lib_h+set}" = set; then
25576
echo $ECHO_N "(cached) $ECHO_C" >&6
25578
ac_cv_header_gif_lib_h=$ac_header_preproc
25580
echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
25581
echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
25586
CPPFLAGS="$CPPFLAGS_old"
25588
if test "x$ac_cv_header_gif_lib_h" = xyes; then
25589
GFXLIBS="$GFXLIBS $my_libname"
25590
supported_gfx="$supported_gfx GIF"
25592
cat >>confdefs.h <<\_ACEOF
25602
# Check whether --enable-tiff or --disable-tiff was given.
25603
if test "${enable_tiff+set}" = set; then
25604
enableval="$enable_tiff"
25611
# TIFF can optionally have JPEG and/or zlib support. Must find out
25612
# when they are supported so that correct library flags are passed during
25613
# detection and linkage
25616
# By default use xpm icons if tiff is not found.
25620
if test "$tif" = yes; then
25623
LDFLAGS_old="$LDFLAGS"
25624
LDFLAGS="$LDFLAGS $lib_search_path"
25625
echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
25626
echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
25627
if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
25628
echo $ECHO_N "(cached) $ECHO_C" >&6
25630
ac_check_lib_save_LIBS=$LIBS
25631
LIBS="-ltiff -lm $LIBS"
25632
cat >conftest.$ac_ext <<_ACEOF
25635
cat confdefs.h >>conftest.$ac_ext
25636
cat >>conftest.$ac_ext <<_ACEOF
25637
/* end confdefs.h. */
25639
/* Override any gcc2 internal prototype to avoid an error. */
25643
/* We use char because int might match the return type of a gcc2
25644
builtin and then its argument prototype would still apply. */
25645
char TIFFGetVersion ();
25654
rm -f conftest.$ac_objext conftest$ac_exeext
25655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25656
(eval $ac_link) 2>conftest.er1
25658
grep -v '^ *+' conftest.er1 >conftest.err
25660
cat conftest.err >&5
25661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662
(exit $ac_status); } &&
25663
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665
(eval $ac_try) 2>&5
25667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668
(exit $ac_status); }; } &&
25669
{ ac_try='test -s conftest$ac_exeext'
25670
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671
(eval $ac_try) 2>&5
25673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674
(exit $ac_status); }; }; then
25675
ac_cv_lib_tiff_TIFFGetVersion=yes
25677
echo "$as_me: failed program was:" >&5
25678
sed 's/^/| /' conftest.$ac_ext >&5
25680
ac_cv_lib_tiff_TIFFGetVersion=no
25682
rm -f conftest.err conftest.$ac_objext \
25683
conftest$ac_exeext conftest.$ac_ext
25684
LIBS=$ac_check_lib_save_LIBS
25686
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
25687
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
25688
if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
25694
LDFLAGS="$LDFLAGS_old"
25696
if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
25697
my_libname="-ltiff"
25699
unset ac_cv_lib_tiff_TIFFGetVersion
25700
if test "x$my_libname" = x; then
25702
LDFLAGS_old="$LDFLAGS"
25703
LDFLAGS="$LDFLAGS $lib_search_path"
25704
echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
25705
echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
25706
if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
25707
echo $ECHO_N "(cached) $ECHO_C" >&6
25709
ac_check_lib_save_LIBS=$LIBS
25710
LIBS="-ltiff $ljpeg -lz -lm $LIBS"
25711
cat >conftest.$ac_ext <<_ACEOF
25714
cat confdefs.h >>conftest.$ac_ext
25715
cat >>conftest.$ac_ext <<_ACEOF
25716
/* end confdefs.h. */
25718
/* Override any gcc2 internal prototype to avoid an error. */
25722
/* We use char because int might match the return type of a gcc2
25723
builtin and then its argument prototype would still apply. */
25724
char TIFFGetVersion ();
25733
rm -f conftest.$ac_objext conftest$ac_exeext
25734
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25735
(eval $ac_link) 2>conftest.er1
25737
grep -v '^ *+' conftest.er1 >conftest.err
25739
cat conftest.err >&5
25740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741
(exit $ac_status); } &&
25742
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744
(eval $ac_try) 2>&5
25746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747
(exit $ac_status); }; } &&
25748
{ ac_try='test -s conftest$ac_exeext'
25749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25750
(eval $ac_try) 2>&5
25752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753
(exit $ac_status); }; }; then
25754
ac_cv_lib_tiff_TIFFGetVersion=yes
25756
echo "$as_me: failed program was:" >&5
25757
sed 's/^/| /' conftest.$ac_ext >&5
25759
ac_cv_lib_tiff_TIFFGetVersion=no
25761
rm -f conftest.err conftest.$ac_objext \
25762
conftest$ac_exeext conftest.$ac_ext
25763
LIBS=$ac_check_lib_save_LIBS
25765
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
25766
echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
25767
if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
25773
LDFLAGS="$LDFLAGS_old"
25775
if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
25776
my_libname="-ltiff -lz"
25780
if test "x$my_libname" = x; then
25782
LDFLAGS_old="$LDFLAGS"
25783
LDFLAGS="$LDFLAGS $lib_search_path"
25784
echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff34" >&5
25785
echo $ECHO_N "checking for TIFFGetVersion in -ltiff34... $ECHO_C" >&6
25786
if test "${ac_cv_lib_tiff34_TIFFGetVersion+set}" = set; then
25787
echo $ECHO_N "(cached) $ECHO_C" >&6
25789
ac_check_lib_save_LIBS=$LIBS
25790
LIBS="-ltiff34 $ljpeg -lm $LIBS"
25791
cat >conftest.$ac_ext <<_ACEOF
25794
cat confdefs.h >>conftest.$ac_ext
25795
cat >>conftest.$ac_ext <<_ACEOF
25796
/* end confdefs.h. */
25798
/* Override any gcc2 internal prototype to avoid an error. */
25802
/* We use char because int might match the return type of a gcc2
25803
builtin and then its argument prototype would still apply. */
25804
char TIFFGetVersion ();
25813
rm -f conftest.$ac_objext conftest$ac_exeext
25814
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25815
(eval $ac_link) 2>conftest.er1
25817
grep -v '^ *+' conftest.er1 >conftest.err
25819
cat conftest.err >&5
25820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821
(exit $ac_status); } &&
25822
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25824
(eval $ac_try) 2>&5
25826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827
(exit $ac_status); }; } &&
25828
{ ac_try='test -s conftest$ac_exeext'
25829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25830
(eval $ac_try) 2>&5
25832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833
(exit $ac_status); }; }; then
25834
ac_cv_lib_tiff34_TIFFGetVersion=yes
25836
echo "$as_me: failed program was:" >&5
25837
sed 's/^/| /' conftest.$ac_ext >&5
25839
ac_cv_lib_tiff34_TIFFGetVersion=no
25841
rm -f conftest.err conftest.$ac_objext \
25842
conftest$ac_exeext conftest.$ac_ext
25843
LIBS=$ac_check_lib_save_LIBS
25845
echo "$as_me:$LINENO: result: $ac_cv_lib_tiff34_TIFFGetVersion" >&5
25846
echo "${ECHO_T}$ac_cv_lib_tiff34_TIFFGetVersion" >&6
25847
if test $ac_cv_lib_tiff34_TIFFGetVersion = yes; then
25853
LDFLAGS="$LDFLAGS_old"
25855
if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
25856
my_libname="-ltiff34"
25861
if test "x$my_libname" != x; then
25863
CPPFLAGS_old="$CPPFLAGS"
25864
CPPFLAGS="$CPPFLAGS $inc_search_path"
25865
if test "${ac_cv_header_tiffio_h+set}" = set; then
25866
echo "$as_me:$LINENO: checking for tiffio.h" >&5
25867
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25868
if test "${ac_cv_header_tiffio_h+set}" = set; then
25869
echo $ECHO_N "(cached) $ECHO_C" >&6
25871
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25872
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25874
# Is the header compilable?
25875
echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25876
echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25877
cat >conftest.$ac_ext <<_ACEOF
25880
cat confdefs.h >>conftest.$ac_ext
25881
cat >>conftest.$ac_ext <<_ACEOF
25882
/* end confdefs.h. */
25883
$ac_includes_default
25884
#include <tiffio.h>
25886
rm -f conftest.$ac_objext
25887
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25888
(eval $ac_compile) 2>conftest.er1
25890
grep -v '^ *+' conftest.er1 >conftest.err
25892
cat conftest.err >&5
25893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894
(exit $ac_status); } &&
25895
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897
(eval $ac_try) 2>&5
25899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900
(exit $ac_status); }; } &&
25901
{ ac_try='test -s conftest.$ac_objext'
25902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25903
(eval $ac_try) 2>&5
25905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906
(exit $ac_status); }; }; then
25907
ac_header_compiler=yes
25909
echo "$as_me: failed program was:" >&5
25910
sed 's/^/| /' conftest.$ac_ext >&5
25912
ac_header_compiler=no
25914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25915
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25916
echo "${ECHO_T}$ac_header_compiler" >&6
25918
# Is the header present?
25919
echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25920
echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25921
cat >conftest.$ac_ext <<_ACEOF
25924
cat confdefs.h >>conftest.$ac_ext
25925
cat >>conftest.$ac_ext <<_ACEOF
25926
/* end confdefs.h. */
25927
#include <tiffio.h>
25929
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25930
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25932
grep -v '^ *+' conftest.er1 >conftest.err
25934
cat conftest.err >&5
25935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936
(exit $ac_status); } >/dev/null; then
25937
if test -s conftest.err; then
25938
ac_cpp_err=$ac_c_preproc_warn_flag
25939
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25946
if test -z "$ac_cpp_err"; then
25947
ac_header_preproc=yes
25949
echo "$as_me: failed program was:" >&5
25950
sed 's/^/| /' conftest.$ac_ext >&5
25952
ac_header_preproc=no
25954
rm -f conftest.err conftest.$ac_ext
25955
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25956
echo "${ECHO_T}$ac_header_preproc" >&6
25958
# So? What about this header?
25959
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25961
{ echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25962
echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25963
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25964
echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25965
ac_header_preproc=yes
25968
{ echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25969
echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
25970
{ echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25971
echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25972
{ echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25973
echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25974
{ echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25975
echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
25976
{ echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25977
echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
25978
{ echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25979
echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
25982
## ------------------------------------------ ##
25983
## Report this to the AC_PACKAGE_NAME lists. ##
25984
## ------------------------------------------ ##
25987
sed "s/^/$as_me: WARNING: /" >&2
25990
echo "$as_me:$LINENO: checking for tiffio.h" >&5
25991
echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25992
if test "${ac_cv_header_tiffio_h+set}" = set; then
25993
echo $ECHO_N "(cached) $ECHO_C" >&6
25995
ac_cv_header_tiffio_h=$ac_header_preproc
25997
echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25998
echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26003
CPPFLAGS="$CPPFLAGS_old"
26005
if test "x$ac_cv_header_tiffio_h" = xyes; then
26006
GFXLIBS="$my_libname $GFXLIBS"
26008
supported_gfx="$supported_gfx TIFF"
26010
cat >>confdefs.h <<\_ACEOF
26018
LIBRARY_SEARCH_PATH="$lib_search_path"
26019
HEADER_SEARCH_PATH="$inc_search_path"
26032
for ac_header in stdlib.h
26034
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26035
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26036
echo "$as_me:$LINENO: checking for $ac_header" >&5
26037
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26038
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26039
echo $ECHO_N "(cached) $ECHO_C" >&6
26041
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26042
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26044
# Is the header compilable?
26045
echo "$as_me:$LINENO: checking $ac_header usability" >&5
26046
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26047
cat >conftest.$ac_ext <<_ACEOF
26050
cat confdefs.h >>conftest.$ac_ext
26051
cat >>conftest.$ac_ext <<_ACEOF
26052
/* end confdefs.h. */
26053
$ac_includes_default
26054
#include <$ac_header>
26056
rm -f conftest.$ac_objext
26057
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26058
(eval $ac_compile) 2>conftest.er1
26060
grep -v '^ *+' conftest.er1 >conftest.err
26062
cat conftest.err >&5
26063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064
(exit $ac_status); } &&
26065
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067
(eval $ac_try) 2>&5
26069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070
(exit $ac_status); }; } &&
26071
{ ac_try='test -s conftest.$ac_objext'
26072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26073
(eval $ac_try) 2>&5
26075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076
(exit $ac_status); }; }; then
26077
ac_header_compiler=yes
26079
echo "$as_me: failed program was:" >&5
26080
sed 's/^/| /' conftest.$ac_ext >&5
26082
ac_header_compiler=no
26084
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26085
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26086
echo "${ECHO_T}$ac_header_compiler" >&6
26088
# Is the header present?
26089
echo "$as_me:$LINENO: checking $ac_header presence" >&5
26090
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26091
cat >conftest.$ac_ext <<_ACEOF
26094
cat confdefs.h >>conftest.$ac_ext
26095
cat >>conftest.$ac_ext <<_ACEOF
26096
/* end confdefs.h. */
26097
#include <$ac_header>
26099
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26100
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26102
grep -v '^ *+' conftest.er1 >conftest.err
26104
cat conftest.err >&5
26105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106
(exit $ac_status); } >/dev/null; then
26107
if test -s conftest.err; then
26108
ac_cpp_err=$ac_c_preproc_warn_flag
26109
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26116
if test -z "$ac_cpp_err"; then
26117
ac_header_preproc=yes
26119
echo "$as_me: failed program was:" >&5
26120
sed 's/^/| /' conftest.$ac_ext >&5
26122
ac_header_preproc=no
26124
rm -f conftest.err conftest.$ac_ext
26125
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26126
echo "${ECHO_T}$ac_header_preproc" >&6
26128
# So? What about this header?
26129
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26131
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26132
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26133
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26134
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26135
ac_header_preproc=yes
26138
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26139
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26140
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26141
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26142
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26143
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26144
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26145
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26146
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26147
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26148
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26149
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26152
## ------------------------------------------ ##
26153
## Report this to the AC_PACKAGE_NAME lists. ##
26154
## ------------------------------------------ ##
26157
sed "s/^/$as_me: WARNING: /" >&2
26160
echo "$as_me:$LINENO: checking for $ac_header" >&5
26161
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26162
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26163
echo $ECHO_N "(cached) $ECHO_C" >&6
26165
eval "$as_ac_Header=\$ac_header_preproc"
26167
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26168
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26171
if test `eval echo '${'$as_ac_Header'}'` = yes; then
26172
cat >>confdefs.h <<_ACEOF
26173
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26181
# AC_PREFIX_PROGRAM(wmaker)
26184
# Check whether --with-pixmapdir or --without-pixmapdir was given.
26185
if test "${with_pixmapdir+set}" = set; then
26186
withval="$with_pixmapdir"
26190
if test "x$with_pixmapdir" != "x"; then
26191
pixmapdir=$with_pixmapdir
26193
pixmapdir=`eval echo ${datadir}/pixmaps`
26197
cat >>confdefs.h <<_ACEOF
26198
#define PIXMAPDIR "$pixmapdir"
26202
pkgdatadir=`eval echo $datadir`
26204
cat >>confdefs.h <<_ACEOF
26205
#define PKGDATADIR "$pkgdatadir/WindowMaker"
26209
_sysconfdir=`eval echo $sysconfdir`
26211
cat >>confdefs.h <<_ACEOF
26212
#define SYSCONFDIR "$_sysconfdir"
26221
# Check whether --with-appspath or --without-appspath was given.
26222
if test "${with_appspath+set}" = set; then
26223
withval="$with_appspath"
26227
if test "x$appspath" = "x"; then
26228
gnustepdir='${prefix}/GNUstep'
26230
if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
26231
gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
26232
gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
26235
with_appspath=$gnustepdir/Applications
26238
wprefsdir=$with_appspath/WPrefs.app
26243
# Check whether --enable-usermenu or --disable-usermenu was given.
26244
if test "${enable_usermenu+set}" = set; then
26245
enableval="$enable_usermenu"
26246
if test "$enableval" = yes; then
26248
cat >>confdefs.h <<\_ACEOF
26249
#define USER_MENU 1
26259
ac_config_files="$ac_config_files Makefile po/Makefile util/Makefile test/Makefile WINGs/Makefile WINGs/WINGs/Makefile WINGs/Documentation/Makefile WINGs/Examples/Makefile WINGs/Resources/Makefile WINGs/Tests/Makefile WINGs/Extras/Makefile WINGs/po/Makefile wmlib/Makefile wrlib/Makefile src/Makefile src/wconfig.h doc/Makefile doc/sk/Makefile WindowMaker/Makefile WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile WindowMaker/Themes/Makefile WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile WPrefs.app/po/Makefile contrib/Makefile contrib/WindowMaker.spec"
26260
cat >confcache <<\_ACEOF
26261
# This file is a shell script that caches the results of configure
26262
# tests run on this system so they can be shared between configure
26263
# scripts and configure runs, see configure's option --config-cache.
26264
# It is not useful on other systems. If it contains results you don't
26265
# want to keep, you may remove or edit it.
26267
# config.status only pays attention to the cache file if you give it
26268
# the --recheck option to rerun configure.
26270
# `ac_cv_env_foo' variables (set or unset) will be overridden when
26271
# loading this file, other *unset* `ac_cv_foo' will be assigned the
26272
# following values.
26276
# The following way of writing the cache mishandles newlines in values,
26277
# but we know of no workaround that is simple, portable, and efficient.
26278
# So, don't put newlines in cache variables' values.
26279
# Ultrix sh set writes to stderr and can't be redirected directly,
26280
# and sets the high bit in the cache file unless we assign to the vars.
26283
case `(ac_space=' '; set | grep ac_space) 2>&1` in
26285
# `set' does not quote correctly, so add quotes (double-quote
26286
# substitution turns \\\\ into \\, and sed turns \\ into \).
26289
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26292
# `set' quotes correctly as required by POSIX, so do not add quotes.
26294
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26301
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26303
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26305
if diff $cache_file confcache >/dev/null 2>&1; then :; else
26306
if test -w $cache_file; then
26307
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26308
cat confcache >$cache_file
26310
echo "not updating unwritable cache $cache_file"
26315
test "x$prefix" = xNONE && prefix=$ac_default_prefix
26316
# Let make expand exec_prefix.
26317
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26319
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26320
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26321
# trailing colons and then remove the whole line if VPATH becomes empty
26322
# (actually we leave an empty line to preserve line numbers).
26323
if test "x$srcdir" = x.; then
26324
ac_vpsub='/^[ ]*VPATH[ ]*=/{
26325
s/:*\$(srcdir):*/:/;
26326
s/:*\${srcdir}:*/:/;
26328
s/^\([^=]*=[ ]*\):*/\1/;
26334
DEFS=-DHAVE_CONFIG_H
26338
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26339
# 1. Remove the extension, and $U if already installed.
26340
ac_i=`echo "$ac_i" |
26341
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26343
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26344
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26346
LIBOBJS=$ac_libobjs
26348
LTLIBOBJS=$ac_ltlibobjs
26352
: ${CONFIG_STATUS=./config.status}
26353
ac_clean_files_save=$ac_clean_files
26354
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26355
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26356
echo "$as_me: creating $CONFIG_STATUS" >&6;}
26357
cat >$CONFIG_STATUS <<_ACEOF
26359
# Generated by $as_me.
26360
# Run this file to recreate the current configuration.
26361
# Compiler output produced by configure, useful for debugging
26362
# configure, is in config.log if it exists.
26365
ac_cs_recheck=false
26367
SHELL=\${CONFIG_SHELL-$SHELL}
26370
cat >>$CONFIG_STATUS <<\_ACEOF
26371
## --------------------- ##
26372
## M4sh Initialization. ##
26373
## --------------------- ##
26375
# Be Bourne compatible
26376
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26379
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26380
# is contrary to our usage. Disable this feature.
26381
alias -g '${1+"$@"}'='"$@"'
26382
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26385
DUALCASE=1; export DUALCASE # for MKS sh
26387
# Support unset when possible.
26388
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26395
# Work around bugs in pre-3.0 UWIN ksh.
26396
$as_unset ENV MAIL MAILPATH
26403
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26404
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26405
LC_TELEPHONE LC_TIME
26407
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26408
eval $as_var=C; export $as_var
26414
# Required to use basename.
26415
if expr a : '\(a\)' >/dev/null 2>&1; then
26421
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26422
as_basename=basename
26428
# Name of the executable.
26429
as_me=`$as_basename "$0" ||
26430
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26431
X"$0" : 'X\(//\)$' \| \
26432
X"$0" : 'X\(/\)$' \| \
26433
. : '\(.\)' 2>/dev/null ||
26435
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26436
/^X\/\(\/\/\)$/{ s//\1/; q; }
26437
/^X\/\(\/\).*/{ s//\1/; q; }
26441
# PATH needs CR, and LINENO needs CR and PATH.
26442
# Avoid depending upon Character Ranges.
26443
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26444
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26445
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26446
as_cr_digits='0123456789'
26447
as_cr_alnum=$as_cr_Letters$as_cr_digits
26449
# The user is always right.
26450
if test "${PATH_SEPARATOR+set}" != set; then
26451
echo "#! /bin/sh" >conf$$.sh
26452
echo "exit 0" >>conf$$.sh
26454
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26463
as_lineno_1=$LINENO
26464
as_lineno_2=$LINENO
26465
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26466
test "x$as_lineno_1" != "x$as_lineno_2" &&
26467
test "x$as_lineno_3" = "x$as_lineno_2" || {
26468
# Find who we are. Look in the path if we contain no path at all
26471
*[\\/]* ) as_myself=$0 ;;
26472
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26473
for as_dir in $PATH
26476
test -z "$as_dir" && as_dir=.
26477
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26482
# We did not find ourselves, most probably we were run as `sh COMMAND'
26483
# in which case we are not to be found in the path.
26484
if test "x$as_myself" = x; then
26487
if test ! -f "$as_myself"; then
26488
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26489
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26490
{ (exit 1); exit 1; }; }
26492
case $CONFIG_SHELL in
26494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26495
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26498
test -z "$as_dir" && as_dir=.
26499
for as_base in sh bash ksh sh5; do
26502
if ("$as_dir/$as_base" -c '
26503
as_lineno_1=$LINENO
26504
as_lineno_2=$LINENO
26505
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26506
test "x$as_lineno_1" != "x$as_lineno_2" &&
26507
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26508
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26509
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26510
CONFIG_SHELL=$as_dir/$as_base
26511
export CONFIG_SHELL
26512
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26520
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26521
# uniformly replaced by the line number. The first 'sed' inserts a
26522
# line-number line before each line; the second 'sed' does the real
26523
# work. The second script uses 'N' to pair each line-number line
26524
# with the numbered line, and appends trailing '-' during
26525
# substitution so that $LINENO is not a special case at line end.
26526
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26527
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
26528
sed '=' <$as_myself |
26533
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26536
s,^['$as_cr_digits']*\n,,
26537
' >$as_me.lineno &&
26538
chmod +x $as_me.lineno ||
26539
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26540
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26541
{ (exit 1); exit 1; }; }
26543
# Don't try to exec as it changes $[0], causing all sort of problems
26544
# (the dirname of $[0] is not the place where we might find the
26545
# original and so on. Autoconf is especially sensible to this).
26547
# Exit status is that of the last command.
26552
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26553
*c*,-n*) ECHO_N= ECHO_C='
26555
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26556
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
26559
if expr a : '\(a\)' >/dev/null 2>&1; then
26565
rm -f conf$$ conf$$.exe conf$$.file
26567
if ln -s conf$$.file conf$$ 2>/dev/null; then
26568
# We could just check for DJGPP; but this test a) works b) is more generic
26569
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26570
if test -f conf$$.exe; then
26571
# Don't use ln at all; we don't have any links
26576
elif ln conf$$.file conf$$ 2>/dev/null; then
26581
rm -f conf$$ conf$$.exe conf$$.file
26583
if mkdir -p . 2>/dev/null; then
26586
test -d ./-p && rmdir ./-p
26590
as_executable_p="test -f"
26592
# Sed expression to map a string onto a valid CPP name.
26593
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26595
# Sed expression to map a string onto a valid variable name.
26596
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26600
# We need space, tab and new line, in precisely that order.
26610
# Open the log real soon, to keep \$[0] and so on meaningful, and to
26611
# report actual input values of CONFIG_FILES etc. instead of their
26612
# values after options handling. Logging --version etc. is OK.
26616
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26617
## Running $as_me. ##
26622
This file was extended by $as_me, which was
26623
generated by GNU Autoconf 2.59. Invocation command line was
26625
CONFIG_FILES = $CONFIG_FILES
26626
CONFIG_HEADERS = $CONFIG_HEADERS
26627
CONFIG_LINKS = $CONFIG_LINKS
26628
CONFIG_COMMANDS = $CONFIG_COMMANDS
26632
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26636
# Files that config.status was made for.
26637
if test -n "$ac_config_files"; then
26638
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26641
if test -n "$ac_config_headers"; then
26642
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26645
if test -n "$ac_config_links"; then
26646
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26649
if test -n "$ac_config_commands"; then
26650
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26653
cat >>$CONFIG_STATUS <<\_ACEOF
26656
\`$as_me' instantiates files from templates according to the
26657
current configuration.
26659
Usage: $0 [OPTIONS] [FILE]...
26661
-h, --help print this help, then exit
26662
-V, --version print version number, then exit
26663
-q, --quiet do not print progress messages
26664
-d, --debug don't remove temporary files
26665
--recheck update $as_me by reconfiguring in the same conditions
26666
--file=FILE[:TEMPLATE]
26667
instantiate the configuration file FILE
26668
--header=FILE[:TEMPLATE]
26669
instantiate the configuration header FILE
26671
Configuration files:
26674
Configuration headers:
26677
Configuration commands:
26680
Report bugs to <bug-autoconf@gnu.org>."
26683
cat >>$CONFIG_STATUS <<_ACEOF
26686
configured by $0, generated by GNU Autoconf 2.59,
26687
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26689
Copyright (C) 2003 Free Software Foundation, Inc.
26690
This config.status script is free software; the Free Software Foundation
26691
gives unlimited permission to copy, distribute and modify it."
26696
cat >>$CONFIG_STATUS <<\_ACEOF
26697
# If no file are specified by the user, then we need to provide default
26698
# value. By we need to know if files were specified by the user.
26704
ac_option=`expr "x$1" : 'x\([^=]*\)='`
26705
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26713
*) # This is not an option, so the user has probably given explicit
26716
ac_need_defaults=false;;
26720
# Handling of the options.
26722
cat >>$CONFIG_STATUS <<\_ACEOF
26723
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26725
--version | --vers* | -V )
26726
echo "$ac_cs_version"; exit 0 ;;
26728
# Conflict between --help and --header
26729
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
26730
Try \`$0 --help' for more information." >&5
26731
echo "$as_me: error: ambiguous option: $1
26732
Try \`$0 --help' for more information." >&2;}
26733
{ (exit 1); exit 1; }; };;
26734
--help | --hel | -h )
26735
echo "$ac_cs_usage"; exit 0 ;;
26736
--debug | --d* | -d )
26738
--file | --fil | --fi | --f )
26740
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26741
ac_need_defaults=false;;
26742
--header | --heade | --head | --hea )
26744
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26745
ac_need_defaults=false;;
26746
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
26747
| -silent | --silent | --silen | --sile | --sil | --si | --s)
26750
# This is an error.
26751
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26752
Try \`$0 --help' for more information." >&5
26753
echo "$as_me: error: unrecognized option: $1
26754
Try \`$0 --help' for more information." >&2;}
26755
{ (exit 1); exit 1; }; } ;;
26757
*) ac_config_targets="$ac_config_targets $1" ;;
26763
ac_configure_extra_args=
26765
if $ac_cs_silent; then
26767
ac_configure_extra_args="$ac_configure_extra_args --silent"
26771
cat >>$CONFIG_STATUS <<_ACEOF
26772
if \$ac_cs_recheck; then
26773
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26774
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26779
cat >>$CONFIG_STATUS <<_ACEOF
26781
# INIT-COMMANDS section.
26790
cat >>$CONFIG_STATUS <<\_ACEOF
26791
for ac_config_target in $ac_config_targets
26793
case "$ac_config_target" in
26794
# Handling of arguments.
26795
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26796
"po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
26797
"util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
26798
"test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
26799
"WINGs/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Makefile" ;;
26800
"WINGs/WINGs/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/WINGs/Makefile" ;;
26801
"WINGs/Documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Documentation/Makefile" ;;
26802
"WINGs/Examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Examples/Makefile" ;;
26803
"WINGs/Resources/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Resources/Makefile" ;;
26804
"WINGs/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Tests/Makefile" ;;
26805
"WINGs/Extras/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/Extras/Makefile" ;;
26806
"WINGs/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES WINGs/po/Makefile" ;;
26807
"wmlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES wmlib/Makefile" ;;
26808
"wrlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES wrlib/Makefile" ;;
26809
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26810
"src/wconfig.h" ) CONFIG_FILES="$CONFIG_FILES src/wconfig.h" ;;
26811
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26812
"doc/sk/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/sk/Makefile" ;;
26813
"WindowMaker/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Makefile" ;;
26814
"WindowMaker/Backgrounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Backgrounds/Makefile" ;;
26815
"WindowMaker/Defaults/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Defaults/Makefile" ;;
26816
"WindowMaker/IconSets/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/IconSets/Makefile" ;;
26817
"WindowMaker/Icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Icons/Makefile" ;;
26818
"WindowMaker/Pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Pixmaps/Makefile" ;;
26819
"WindowMaker/Styles/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Styles/Makefile" ;;
26820
"WindowMaker/Themes/Makefile" ) CONFIG_FILES="$CONFIG_FILES WindowMaker/Themes/Makefile" ;;
26821
"WPrefs.app/Makefile" ) CONFIG_FILES="$CONFIG_FILES WPrefs.app/Makefile" ;;
26822
"WPrefs.app/tiff/Makefile" ) CONFIG_FILES="$CONFIG_FILES WPrefs.app/tiff/Makefile" ;;
26823
"WPrefs.app/xpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES WPrefs.app/xpm/Makefile" ;;
26824
"WPrefs.app/po/Makefile" ) CONFIG_FILES="$CONFIG_FILES WPrefs.app/po/Makefile" ;;
26825
"contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
26826
"contrib/WindowMaker.spec" ) CONFIG_FILES="$CONFIG_FILES contrib/WindowMaker.spec" ;;
26827
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26828
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
26829
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26830
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26831
{ (exit 1); exit 1; }; };;
26835
# If the user did not use the arguments to specify the items to instantiate,
26836
# then the envvar interface is used. Set only those that are not.
26837
# We use the long form for the default assignment because of an extremely
26838
# bizarre bug on SunOS 4.1.3.
26839
if $ac_need_defaults; then
26840
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26841
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26842
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26845
# Have a temporary directory for convenience. Make it in the build tree
26846
# simply because there is no reason to put it here, and in addition,
26847
# creating and moving files from /tmp can sometimes cause problems.
26848
# Create a temporary directory, and hook for its removal unless debugging.
26851
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26852
trap '{ (exit 1); exit 1; }' 1 2 13 15
26855
# Create a (secure) tmp directory for tmp files.
26858
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26859
test -n "$tmp" && test -d "$tmp"
26862
tmp=./confstat$$-$RANDOM
26863
(umask 077 && mkdir $tmp)
26866
echo "$me: cannot create a temporary directory in ." >&2
26867
{ (exit 1); exit 1; }
26872
cat >>$CONFIG_STATUS <<_ACEOF
26875
# CONFIG_FILES section.
26878
# No need to generate the scripts if there are no CONFIG_FILES.
26879
# This happens for instance when ./config.status config.h
26880
if test -n "\$CONFIG_FILES"; then
26881
# Protect against being on the right side of a sed subst in config.status.
26882
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26883
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26884
s,@SHELL@,$SHELL,;t t
26885
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26886
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26887
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26888
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26889
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26890
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26891
s,@exec_prefix@,$exec_prefix,;t t
26892
s,@prefix@,$prefix,;t t
26893
s,@program_transform_name@,$program_transform_name,;t t
26894
s,@bindir@,$bindir,;t t
26895
s,@sbindir@,$sbindir,;t t
26896
s,@libexecdir@,$libexecdir,;t t
26897
s,@datadir@,$datadir,;t t
26898
s,@sysconfdir@,$sysconfdir,;t t
26899
s,@sharedstatedir@,$sharedstatedir,;t t
26900
s,@localstatedir@,$localstatedir,;t t
26901
s,@libdir@,$libdir,;t t
26902
s,@includedir@,$includedir,;t t
26903
s,@oldincludedir@,$oldincludedir,;t t
26904
s,@infodir@,$infodir,;t t
26905
s,@mandir@,$mandir,;t t
26906
s,@build_alias@,$build_alias,;t t
26907
s,@host_alias@,$host_alias,;t t
26908
s,@target_alias@,$target_alias,;t t
26909
s,@DEFS@,$DEFS,;t t
26910
s,@ECHO_C@,$ECHO_C,;t t
26911
s,@ECHO_N@,$ECHO_N,;t t
26912
s,@ECHO_T@,$ECHO_T,;t t
26913
s,@LIBS@,$LIBS,;t t
26914
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26915
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26916
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26917
s,@PACKAGE@,$PACKAGE,;t t
26918
s,@VERSION@,$VERSION,;t t
26919
s,@ACLOCAL@,$ACLOCAL,;t t
26920
s,@AUTOCONF@,$AUTOCONF,;t t
26921
s,@AUTOMAKE@,$AUTOMAKE,;t t
26922
s,@AUTOHEADER@,$AUTOHEADER,;t t
26923
s,@MAKEINFO@,$MAKEINFO,;t t
26924
s,@SET_MAKE@,$SET_MAKE,;t t
26925
s,@build@,$build,;t t
26926
s,@build_cpu@,$build_cpu,;t t
26927
s,@build_vendor@,$build_vendor,;t t
26928
s,@build_os@,$build_os,;t t
26929
s,@host@,$host,;t t
26930
s,@host_cpu@,$host_cpu,;t t
26931
s,@host_vendor@,$host_vendor,;t t
26932
s,@host_os@,$host_os,;t t
26934
s,@CFLAGS@,$CFLAGS,;t t
26935
s,@LDFLAGS@,$LDFLAGS,;t t
26936
s,@CPPFLAGS@,$CPPFLAGS,;t t
26937
s,@ac_ct_CC@,$ac_ct_CC,;t t
26938
s,@EXEEXT@,$EXEEXT,;t t
26939
s,@OBJEXT@,$OBJEXT,;t t
26940
s,@EGREP@,$EGREP,;t t
26941
s,@LN_S@,$LN_S,;t t
26942
s,@ECHO@,$ECHO,;t t
26944
s,@ac_ct_AR@,$ac_ct_AR,;t t
26945
s,@RANLIB@,$RANLIB,;t t
26946
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26947
s,@STRIP@,$STRIP,;t t
26948
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26951
s,@CXXFLAGS@,$CXXFLAGS,;t t
26952
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26953
s,@CXXCPP@,$CXXCPP,;t t
26955
s,@FFLAGS@,$FFLAGS,;t t
26956
s,@ac_ct_F77@,$ac_ct_F77,;t t
26957
s,@LIBTOOL@,$LIBTOOL,;t t
26958
s,@ALLOCA@,$ALLOCA,;t t
26959
s,@CPP_PATH@,$CPP_PATH,;t t
26960
s,@NOSTRICTALIASING@,$NOSTRICTALIASING,;t t
26961
s,@PKGCONFIG@,$PKGCONFIG,;t t
26962
s,@XGETTEXT@,$XGETTEXT,;t t
26963
s,@DLLIBS@,$DLLIBS,;t t
26964
s,@INTLIBS@,$INTLIBS,;t t
26965
s,@NLSDIR@,$NLSDIR,;t t
26966
s,@MOFILES@,$MOFILES,;t t
26967
s,@WPMOFILES@,$WPMOFILES,;t t
26968
s,@WINGSMOFILES@,$WINGSMOFILES,;t t
26969
s,@supported_locales@,$supported_locales,;t t
26970
s,@LITE@,$LITE,;t t
26971
s,@NETLIBS@,$NETLIBS,;t t
26972
s,@X_CFLAGS@,$X_CFLAGS,;t t
26973
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
26974
s,@X_LIBS@,$X_LIBS,;t t
26975
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
26976
s,@X_LIBRARY_PATH@,$X_LIBRARY_PATH,;t t
26977
s,@XFTCONFIG@,$XFTCONFIG,;t t
26978
s,@XFTFLAGS@,$XFTFLAGS,;t t
26979
s,@XFTLIBS@,$XFTLIBS,;t t
26980
s,@XCFLAGS@,$XCFLAGS,;t t
26981
s,@XLFLAGS@,$XLFLAGS,;t t
26982
s,@XLIBS@,$XLIBS,;t t
26983
s,@LIBRARY_SEARCH_PATH@,$LIBRARY_SEARCH_PATH,;t t
26984
s,@HEADER_SEARCH_PATH@,$HEADER_SEARCH_PATH,;t t
26985
s,@GFXLIBS@,$GFXLIBS,;t t
26986
s,@ICONEXT@,$ICONEXT,;t t
26987
s,@wprefsdir@,$wprefsdir,;t t
26988
s,@LIBOBJS@,$LIBOBJS,;t t
26989
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26994
cat >>$CONFIG_STATUS <<\_ACEOF
26995
# Split the substitutions into bite-sized pieces for seds with
26996
# small command number limits, like on Digital OSF/1 and HP-UX.
26997
ac_max_sed_lines=48
26998
ac_sed_frag=1 # Number of current file.
26999
ac_beg=1 # First line for current file.
27000
ac_end=$ac_max_sed_lines # Line after last line for current file.
27003
while $ac_more_lines; do
27004
if test $ac_beg -gt 1; then
27005
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27007
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27009
if test ! -s $tmp/subs.frag; then
27010
ac_more_lines=false
27012
# The purpose of the label and of the branching condition is to
27013
# speed up the sed processing (if there are no `@' at all, there
27014
# is no need to browse any of the substitutions).
27015
# These are the two extra sed commands mentioned above.
27017
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27018
if test -z "$ac_sed_cmds"; then
27019
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27021
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27023
ac_sed_frag=`expr $ac_sed_frag + 1`
27025
ac_end=`expr $ac_end + $ac_max_sed_lines`
27028
if test -z "$ac_sed_cmds"; then
27031
fi # test -n "$CONFIG_FILES"
27034
cat >>$CONFIG_STATUS <<\_ACEOF
27035
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27036
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27038
- | *:- | *:-:* ) # input from stdin
27040
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27041
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27042
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27043
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27044
* ) ac_file_in=$ac_file.in ;;
27047
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27048
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27049
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27050
X"$ac_file" : 'X\(//\)[^/]' \| \
27051
X"$ac_file" : 'X\(//\)$' \| \
27052
X"$ac_file" : 'X\(/\)' \| \
27053
. : '\(.\)' 2>/dev/null ||
27055
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27056
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27057
/^X\(\/\/\)$/{ s//\1/; q; }
27058
/^X\(\/\).*/{ s//\1/; q; }
27060
{ if $as_mkdir_p; then
27065
while test ! -d "$as_dir"; do
27066
as_dirs="$as_dir $as_dirs"
27067
as_dir=`(dirname "$as_dir") 2>/dev/null ||
27068
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27069
X"$as_dir" : 'X\(//\)[^/]' \| \
27070
X"$as_dir" : 'X\(//\)$' \| \
27071
X"$as_dir" : 'X\(/\)' \| \
27072
. : '\(.\)' 2>/dev/null ||
27074
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27075
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27076
/^X\(\/\/\)$/{ s//\1/; q; }
27077
/^X\(\/\).*/{ s//\1/; q; }
27080
test ! -n "$as_dirs" || mkdir $as_dirs
27081
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27082
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27083
{ (exit 1); exit 1; }; }; }
27087
if test "$ac_dir" != .; then
27088
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27089
# A "../" for each directory in $ac_dir_suffix.
27090
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27092
ac_dir_suffix= ac_top_builddir=
27096
.) # No --srcdir option. We are building in place.
27098
if test -z "$ac_top_builddir"; then
27101
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27103
[\\/]* | ?:[\\/]* ) # Absolute path.
27104
ac_srcdir=$srcdir$ac_dir_suffix;
27105
ac_top_srcdir=$srcdir ;;
27106
*) # Relative path.
27107
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27108
ac_top_srcdir=$ac_top_builddir$srcdir ;;
27111
# Do not use `cd foo && pwd` to compute absolute paths, because
27112
# the directories may not exist.
27114
.) ac_abs_builddir="$ac_dir";;
27117
.) ac_abs_builddir=`pwd`;;
27118
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27119
*) ac_abs_builddir=`pwd`/"$ac_dir";;
27122
case $ac_abs_builddir in
27123
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27125
case ${ac_top_builddir}. in
27126
.) ac_abs_top_builddir=$ac_abs_builddir;;
27127
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27128
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27131
case $ac_abs_builddir in
27132
.) ac_abs_srcdir=$ac_srcdir;;
27135
.) ac_abs_srcdir=$ac_abs_builddir;;
27136
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27137
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27140
case $ac_abs_builddir in
27141
.) ac_abs_top_srcdir=$ac_top_srcdir;;
27143
case $ac_top_srcdir in
27144
.) ac_abs_top_srcdir=$ac_abs_builddir;;
27145
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27146
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27152
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27153
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27156
# Let's still pretend it is `configure' which instantiates (i.e., don't
27157
# use $as_me), people would be surprised to read:
27158
# /* config.h. Generated by config.status. */
27159
if test x"$ac_file" = x-; then
27162
configure_input="$ac_file. "
27164
configure_input=$configure_input"Generated from `echo $ac_file_in |
27165
sed 's,.*/,,'` by configure."
27167
# First look for the input files in the build tree, otherwise in the
27169
ac_file_inputs=`IFS=:
27170
for f in $ac_file_in; do
27172
-) echo $tmp/stdin ;;
27174
# Absolute (can't be DOS-style, as IFS=:)
27175
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27176
echo "$as_me: error: cannot find input file: $f" >&2;}
27177
{ (exit 1); exit 1; }; }
27180
if test -f "$f"; then
27183
elif test -f "$srcdir/$f"; then
27188
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27189
echo "$as_me: error: cannot find input file: $f" >&2;}
27190
{ (exit 1); exit 1; }; }
27193
done` || { (exit 1); exit 1; }
27195
if test x"$ac_file" != x-; then
27196
{ echo "$as_me:$LINENO: creating $ac_file" >&5
27197
echo "$as_me: creating $ac_file" >&6;}
27201
cat >>$CONFIG_STATUS <<_ACEOF
27205
cat >>$CONFIG_STATUS <<\_ACEOF
27207
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27208
s,@configure_input@,$configure_input,;t t
27209
s,@srcdir@,$ac_srcdir,;t t
27210
s,@abs_srcdir@,$ac_abs_srcdir,;t t
27211
s,@top_srcdir@,$ac_top_srcdir,;t t
27212
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27213
s,@builddir@,$ac_builddir,;t t
27214
s,@abs_builddir@,$ac_abs_builddir,;t t
27215
s,@top_builddir@,$ac_top_builddir,;t t
27216
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27217
s,@INSTALL@,$ac_INSTALL,;t t
27218
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27220
if test x"$ac_file" != x-; then
27221
mv $tmp/out $ac_file
27229
cat >>$CONFIG_STATUS <<\_ACEOF
27232
# CONFIG_HEADER section.
27235
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27236
# NAME is the cpp macro being defined and VALUE is the value it is being given.
27238
# ac_d sets the value in "#define NAME VALUE" lines.
27239
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27240
ac_dB='[ ].*$,\1#\2'
27243
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27244
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27245
ac_uB='$,\1#\2define\3'
27249
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27250
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27252
- | *:- | *:-:* ) # input from stdin
27254
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27255
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27256
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27257
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27258
* ) ac_file_in=$ac_file.in ;;
27261
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27262
echo "$as_me: creating $ac_file" >&6;}
27264
# First look for the input files in the build tree, otherwise in the
27266
ac_file_inputs=`IFS=:
27267
for f in $ac_file_in; do
27269
-) echo $tmp/stdin ;;
27271
# Absolute (can't be DOS-style, as IFS=:)
27272
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27273
echo "$as_me: error: cannot find input file: $f" >&2;}
27274
{ (exit 1); exit 1; }; }
27275
# Do quote $f, to prevent DOS paths from being IFS'd.
27278
if test -f "$f"; then
27281
elif test -f "$srcdir/$f"; then
27286
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27287
echo "$as_me: error: cannot find input file: $f" >&2;}
27288
{ (exit 1); exit 1; }; }
27291
done` || { (exit 1); exit 1; }
27292
# Remove the trailing spaces.
27293
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27297
# Transform confdefs.h into two sed scripts, `conftest.defines' and
27298
# `conftest.undefs', that substitutes the proper values into
27299
# config.h.in to produce config.h. The first handles `#define'
27300
# templates, and the second `#undef' templates.
27301
# And first: Protect against being on the right side of a sed subst in
27302
# config.status. Protect against being in an unquoted here document
27303
# in config.status.
27304
rm -f conftest.defines conftest.undefs
27305
# Using a here document instead of a string reduces the quoting nightmare.
27306
# Putting comments in sed scripts is not portable.
27308
# `end' is used to avoid that the second main sed command (meant for
27309
# 0-ary CPP macros) applies to n-ary macro definitions.
27310
# See the Autoconf documentation for `clear'.
27311
cat >confdef2sed.sed <<\_ACEOF
27316
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27318
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27321
# If some macros were called several times there might be several times
27322
# the same #defines, which is useless. Nevertheless, we may not want to
27323
# sort them, since we want the *last* AC-DEFINE to be honored.
27324
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27325
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27326
rm -f confdef2sed.sed
27328
# This sed command replaces #undef with comments. This is necessary, for
27329
# example, in the case of _POSIX_SOURCE, which is predefined and required
27330
# on some systems where configure will not decide to define it.
27331
cat >>conftest.undefs <<\_ACEOF
27332
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27335
# Break up conftest.defines because some shells have a limit on the size
27336
# of here documents, and old seds have small limits too (100 cmds).
27337
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27338
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27339
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27340
echo ' :' >>$CONFIG_STATUS
27341
rm -f conftest.tail
27342
while grep . conftest.defines >/dev/null
27344
# Write a limited-size here document to $tmp/defines.sed.
27345
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27346
# Speed up: don't consider the non `#define' lines.
27347
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27348
# Work around the forget-to-reset-the-flag bug.
27349
echo 't clr' >>$CONFIG_STATUS
27350
echo ': clr' >>$CONFIG_STATUS
27351
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27353
sed -f $tmp/defines.sed $tmp/in >$tmp/out
27355
mv $tmp/out $tmp/in
27357
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27358
rm -f conftest.defines
27359
mv conftest.tail conftest.defines
27361
rm -f conftest.defines
27362
echo ' fi # grep' >>$CONFIG_STATUS
27363
echo >>$CONFIG_STATUS
27365
# Break up conftest.undefs because some shells have a limit on the size
27366
# of here documents, and old seds have small limits too (100 cmds).
27367
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27368
rm -f conftest.tail
27369
while grep . conftest.undefs >/dev/null
27371
# Write a limited-size here document to $tmp/undefs.sed.
27372
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27373
# Speed up: don't consider the non `#undef'
27374
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27375
# Work around the forget-to-reset-the-flag bug.
27376
echo 't clr' >>$CONFIG_STATUS
27377
echo ': clr' >>$CONFIG_STATUS
27378
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27380
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27382
mv $tmp/out $tmp/in
27384
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27385
rm -f conftest.undefs
27386
mv conftest.tail conftest.undefs
27388
rm -f conftest.undefs
27390
cat >>$CONFIG_STATUS <<\_ACEOF
27391
# Let's still pretend it is `configure' which instantiates (i.e., don't
27392
# use $as_me), people would be surprised to read:
27393
# /* config.h. Generated by config.status. */
27394
if test x"$ac_file" = x-; then
27395
echo "/* Generated by configure. */" >$tmp/config.h
27397
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27399
cat $tmp/in >>$tmp/config.h
27401
if test x"$ac_file" != x-; then
27402
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27403
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27404
echo "$as_me: $ac_file is unchanged" >&6;}
27406
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27407
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27408
X"$ac_file" : 'X\(//\)[^/]' \| \
27409
X"$ac_file" : 'X\(//\)$' \| \
27410
X"$ac_file" : 'X\(/\)' \| \
27411
. : '\(.\)' 2>/dev/null ||
27413
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27414
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27415
/^X\(\/\/\)$/{ s//\1/; q; }
27416
/^X\(\/\).*/{ s//\1/; q; }
27418
{ if $as_mkdir_p; then
27423
while test ! -d "$as_dir"; do
27424
as_dirs="$as_dir $as_dirs"
27425
as_dir=`(dirname "$as_dir") 2>/dev/null ||
27426
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27427
X"$as_dir" : 'X\(//\)[^/]' \| \
27428
X"$as_dir" : 'X\(//\)$' \| \
27429
X"$as_dir" : 'X\(/\)' \| \
27430
. : '\(.\)' 2>/dev/null ||
27432
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27433
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27434
/^X\(\/\/\)$/{ s//\1/; q; }
27435
/^X\(\/\).*/{ s//\1/; q; }
27438
test ! -n "$as_dirs" || mkdir $as_dirs
27439
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27440
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27441
{ (exit 1); exit 1; }; }; }
27444
mv $tmp/config.h $ac_file
27448
rm -f $tmp/config.h
27452
cat >>$CONFIG_STATUS <<\_ACEOF
27455
# CONFIG_COMMANDS section.
27457
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27458
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27459
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27460
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27461
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27462
X"$ac_dest" : 'X\(//\)[^/]' \| \
27463
X"$ac_dest" : 'X\(//\)$' \| \
27464
X"$ac_dest" : 'X\(/\)' \| \
27465
. : '\(.\)' 2>/dev/null ||
27467
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27468
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27469
/^X\(\/\/\)$/{ s//\1/; q; }
27470
/^X\(\/\).*/{ s//\1/; q; }
27472
{ if $as_mkdir_p; then
27477
while test ! -d "$as_dir"; do
27478
as_dirs="$as_dir $as_dirs"
27479
as_dir=`(dirname "$as_dir") 2>/dev/null ||
27480
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27481
X"$as_dir" : 'X\(//\)[^/]' \| \
27482
X"$as_dir" : 'X\(//\)$' \| \
27483
X"$as_dir" : 'X\(/\)' \| \
27484
. : '\(.\)' 2>/dev/null ||
27486
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27487
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27488
/^X\(\/\/\)$/{ s//\1/; q; }
27489
/^X\(\/\).*/{ s//\1/; q; }
27492
test ! -n "$as_dirs" || mkdir $as_dirs
27493
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27494
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27495
{ (exit 1); exit 1; }; }; }
27499
if test "$ac_dir" != .; then
27500
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27501
# A "../" for each directory in $ac_dir_suffix.
27502
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27504
ac_dir_suffix= ac_top_builddir=
27508
.) # No --srcdir option. We are building in place.
27510
if test -z "$ac_top_builddir"; then
27513
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27515
[\\/]* | ?:[\\/]* ) # Absolute path.
27516
ac_srcdir=$srcdir$ac_dir_suffix;
27517
ac_top_srcdir=$srcdir ;;
27518
*) # Relative path.
27519
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27520
ac_top_srcdir=$ac_top_builddir$srcdir ;;
27523
# Do not use `cd foo && pwd` to compute absolute paths, because
27524
# the directories may not exist.
27526
.) ac_abs_builddir="$ac_dir";;
27529
.) ac_abs_builddir=`pwd`;;
27530
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27531
*) ac_abs_builddir=`pwd`/"$ac_dir";;
27534
case $ac_abs_builddir in
27535
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27537
case ${ac_top_builddir}. in
27538
.) ac_abs_top_builddir=$ac_abs_builddir;;
27539
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27540
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27543
case $ac_abs_builddir in
27544
.) ac_abs_srcdir=$ac_srcdir;;
27547
.) ac_abs_srcdir=$ac_abs_builddir;;
27548
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27549
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27552
case $ac_abs_builddir in
27553
.) ac_abs_top_srcdir=$ac_top_srcdir;;
27555
case $ac_top_srcdir in
27556
.) ac_abs_top_srcdir=$ac_abs_builddir;;
27557
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27558
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27563
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27564
echo "$as_me: executing $ac_dest commands" >&6;}
27566
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
27571
cat >>$CONFIG_STATUS <<\_ACEOF
27573
{ (exit 0); exit 0; }
27575
chmod +x $CONFIG_STATUS
27576
ac_clean_files=$ac_clean_files_save
27579
# configure is writing to config.log, and then calls config.status.
27580
# config.status does its own redirection, appending to config.log.
27581
# Unfortunately, on DOS this fails, as config.log is still kept open
27582
# by configure, so config.status won't be able to write to it; its
27583
# output is simply discarded. So we exec the FD to /dev/null,
27584
# effectively closing config.log, so it can be properly (re)opened and
27585
# appended to by config.status. When coming back to configure, we
27586
# need to make the FD available again.
27587
if test "$no_create" != yes; then
27589
ac_config_status_args=
27590
test "$silent" = yes &&
27591
ac_config_status_args="$ac_config_status_args --quiet"
27593
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27595
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
27596
# would make configure fail if this is the last instruction.
27597
$ac_cs_success || { (exit 1); exit 1; }
27600
# plugins/Makefile plugins/libwmfun/Makefile)
27607
cat <<EOF >get-wraster-flags
27610
WCFLAGS="$inc_search_path"
27611
WLFLAGS="$lib_search_path"
27612
WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
27614
usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
27616
if test \$# -eq 0; then
27617
echo "\${usage}" 1>&2
27621
while test \$# -gt 0; do
27626
--ldflags|--lflags)
27633
echo "\${usage}" 1>&2
27643
cat <<EOF > wrlib/wrlib.pc
27645
Description: Image manipulation and conversion library
27647
Libs: $lib_search_path -lwraster $GFXLIBS $XLIBS -lm
27648
Cflags: $inc_search_path
27651
cat <<EOF >get-wings-flags
27654
WCFLAGS="$inc_search_path"
27655
WLFLAGS="$lib_search_path"
27656
WLIBS="-lWINGs -lwraster $GFXLIBS $XFTLIBS $XLIBS -lm $NETLIBS $INTLIBS"
27658
usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
27660
if test \$# -eq 0; then
27661
echo "\${usage}" 1>&2
27665
while test \$# -gt 0; do
27670
--ldflags|--lflags)
27677
echo "\${usage}" 1>&2
27687
cat <<EOF > WINGs/WINGs.pc
27689
Description: Small widget set with the NeXTStep(TM) look and feel
27692
Libs: $lib_search_path -lWINGs $XFTLIBS $XLIBS -lm $NETLIBS $INTLIBS
27693
Cflags: $inc_search_path
27696
cat <<EOF >get-wutil-flags
27699
WCFLAGS="-I`eval echo ${includedir}`"
27700
WLFLAGS="-L${_libdir}"
27701
WLIBS="-lWUtil $NETLIBS $INTLIBS"
27703
usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
27705
if test \$# -eq 0; then
27706
echo "\${usage}" 1>&2
27710
while test \$# -gt 0; do
27715
--ldflags|--lflags)
27722
echo "\${usage}" 1>&2
27732
cat <<EOF > wmlib/wmlib.pc
27734
Description: FIXME: What do I write here?
27737
Libs: $lib_search_path -lWUtil $NETLIBS $INTLIBS
27738
Cflags: $inc_search_path
27741
sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
27742
sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
27743
sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
27745
chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
27747
rm -f get-wraster-flags get-wings-flags get-wutil-flags
27751
supported_gfx="$supported_gfx builtin-PPM"
27753
if test "x$MOFILES" = "x"; then
27756
mof=`echo $MOFILES`
27759
if test "x$MOFILES" = "x"; then
27762
languages=`echo $MOFILES | sed 's/.mo//g'`
27766
echo "Window Maker was configured as follows:"
27768
echo "Installation path prefix : $prefix"
27769
echo "Installation path for binaries : $_bindir"
27770
echo "Installation path for WPrefs.app : $with_appspath" | sed -e 's|\${prefix}|'"$prefix|"
27771
echo "Supported graphic format libraries : $supported_gfx"
27772
echo "Use assembly routines for wrlib : $asm_support"
27773
echo "Use inline MMX(tm) x86 assembly : $mmx_support"
27774
echo "Antialiased text support in WINGs : $xft"
27775
echo "Xinerama extension support : $xinerama"
27776
echo "Translated message files to install : $mof"
27777
if test "x$MOFILES" != "x"; then
27778
echo "Installation path for translations : $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
27783
if test "x$ac_cv_header_jpeglib_h" != xyes; then
27784
echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
27786
echo "JPEG support will not be included because the JPEG library is"
27787
echo "not installed correctly or was not found. Background images"
27788
echo "from themes will not display as they usually are JPEG files."
27790
echo "To fix, download and install the jpeg library and/or make sure you"
27791
echo "installed all jpeg related packages, SPECIALLY the development packages"
27792
echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
27794
echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"